Causal-aware Large Language Models: Enhancing Decision-Making Through Learning, Adapting and Acting
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 4292-4300.
https://doi.org/10.24963/ijcai.2025/478
Keywords
- Knowledge Representation and Reasoning: KRR: Learning and reasoning
- Knowledge Representation and Reasoning: KRR: Causality
- Natural Language Processing: NLP: Language models
- Uncertainty in AI: UAI: Sequential decision making
Abstract
Large language models (LLMs) have shown great potential in decision-making due to the vast amount of knowledge stored within the models.However, these pre-trained models are prone to lack reasoning abilities and are difficult to adapt to new environments, further hindering their application to complex real-world tasks. To address these challenges, inspired by the human cognitive process, we propose Causal-Aware LLMs, which integrate the structural causal model (SCM) into the decision-making process to model, update, and utilize structured knowledge of the environment in a "learning-adapting-acting" paradigm.Specifically, in the learning stage, we first utilize an LLM to extract the environment-specific causal entities and their causal relations to initialize a structured causal model of the environment. Subsequently, in the adapting stage, we update the structured causal model through external feedback about the environment, via an idea of causal intervention. Finally, in the acting stage, Causal-Aware LLMs exploit structured causal knowledge for more efficient policy-making through the reinforcement learning agent. The above processes are performed iteratively to learn causal knowledge, ultimately enabling the causal-aware LLM to achieve a more accurate understanding of the environment and make more efficient decisions. Experimental results across 22 diverse tasks within the open-world game "Crafter" validate the effectiveness of our proposed method.
- [Ashwani et al., 2024] Swagata Ashwani, Kshiteesh Hegde, Nishith Reddy Mannuru, Dushyant Singh Sengar, Mayank Jindal, Krishna Chaitanya Rao Kathala, Dishant Banga, Vinija Jain, and Aman Chadha. Cause and effect: Can large language models truly understand causality? In Pro- ceedings of the AAAI Symposium Series, volume 4, pages 2-9, 2024.
- [Baumli et al., 2023] Kate Baumli, Satinder Singh, Feryal Behbahani, Harris Chan, Gheorghe Comanici, Sebastian Flennerhag, Maxime Gazeau, Kristian Holsheimer, Dan Horgan, Michael Laskin, et al. Vision-language models as a source of rewards. In Second Agent Learning in Open- Endedness Workshop, 2023.
- [Brown et al., 2020] Tom Brown, Benjamin Mann, Nick Ry- der, Melanie Subbiah, Jared D Kaplan, Prafulla Dhari- wal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing sys- tems, 33:1877-1901, 2020.
- [Cai et al., 2024] Ruichu Cai, Yunjin Wu, Xiaokai Huang, Wei Chen, Tom ZJ Fu, and Zhifeng Hao. Granger causal representation learning for groups of time series. Science China Information Sciences, 67(5):152103, 2024.
- [Chen et al., 2024] Sirui Chen, Mengying Xu, Kun Wang, Xingyu Zeng, Rui Zhao, Shengjie Zhao, and Chaochao Lu. CLEAR: Can language models really understand causal graphs? In Yaser Al-Onaizan, Mohit Bansal, and Yun- Nung Chen, editors, Findings of the Association for Com- putational Linguistics: EMNLP 2024, pages 6247-6265, Miami, Florida, USA, November 2024. Association for Computational Linguistics.
- [Du et al., 2023] Yuqing Du, Olivia Watkins, Zihan Wang, Cédric Colas, Trevor Darrell, Pieter Abbeel, Abhishek Gupta, and Jacob Andreas. Guiding pretraining in rein- forcement learning with large language models. In Inter- national Conference on Machine Learning, pages 8657- 8677. PMLR, 2023.
- [Gao et al., 2023] Jinglong Gao, Xiao Ding, Bing Qin, and Ting Liu. Is ChatGPT a good causal reasoner? a com- prehensive evaluation. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, pages 11111- 11126, Singapore, December 2023. Association for Com- putational Linguistics.
- [Hafner et al., 2020] Danijar Hafner, Timothy P Lillicrap, Mohammad Norouzi, and Jimmy Ba. Mastering atari with discrete world models. In International Conference on Learning Representations, 2020.
- [Hafner et al., 2023] Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering di- verse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
- [Hafner, 2021] Danijar Hafner. Benchmarking the spectrum of agent capabilities. In Deep RL Workshop NeurIPS 2021, 2021.
- [Hafner, 2022] Danijar Hafner. Benchmarking the spectrum of agent capabilities. In International Conference on Learning Representations, 2022.
- [Hessel et al., 2018] Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Sil- ver. Rainbow: Combining improvements in deep rein- forcement learning. In Proceedings of the AAAI confer- ence on artificial intelligence, volume 32, 2018.
- [Kahneman, 2011] Daniel Kahneman. Thinking, fast and slow. Farrar, Straus and Giroux, 2011.
- [Kiran et al., 2021] B Ravi Kiran, Ibrahim Sobh, Victor Tal- paert, Patrick Mannion, Ahmad A Al Sallab, Senthil Yoga- mani, and Patrick Pérez. Deep reinforcement learning for autonomous driving: A survey. IEEE Transactions on In- telligent Transportation Systems, 23(6):4909-4926, 2021.
- [Kober et al., 2013] Jens Kober, J Andrew Bagnell, and Jan Peters. Reinforcement learning in robotics: A survey. The International Journal of Robotics Research, 32(11):1238- 1274, 2013.
- [Lillicrap et al., 2015] Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous con- trol with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
- [Liu et al., 2022] Minghuan Liu, Menghui Zhu, and Weinan Zhang. Goal-conditioned reinforcement learning: Prob- lems and solutions. 2022. IJCAI
- [Mnih et al., 2013] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.
- [Mnih et al., 2016] Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asyn- chronous methods for deep reinforcement learning. In In- ternational conference on machine learning, pages 1928- 1937. PMLR, 2016.
- [Moon et al., 2024] Seungyong Moon, Junyoung Yeom, Bumsoo Park, and Hyun Oh Song. Discovering hierarchi- cal achievements in reinforcement learning via contrastive learning. Advances in Neural Information Processing Sys- tems, 36, 2024.
- [Pearl and Mackenzie, 2018] Judea Pearl and Dana Macken- zie. The book of why: the new science of cause and effect. Basic books, 2018. [Pearl, 2009] Judea Pearl. Causality. Cambridge university press, 2009.
- [Schulman et al., 2015] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pages 1889-1897. PMLR, 2015.
- [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Prox- imal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
- [Shao et al., 2019] Kun Shao, Zhentao Tang, Yuanheng Zhu, Nannan Li, and Dongbin Zhao. A survey of deep re- inforcement learning in video games. arXiv preprint arXiv:1912.10944, 2019.
- [Shinn et al., 2023] Noah Shinn, Beck Labash, and Ash- win Gopinath. Reflexion: an autonomous agent with dynamic memory and self-reflection. arXiv preprint arXiv:2303.11366, 2(5):9, 2023.
- [Sondik, 1971] Edward Jay Sondik. The optimal control of partially observable Markov processes. Stanford Univer- sity, 1971.
- [Sun et al., 2023] Haotian Sun, Yuchen Zhuang, Lingkai Kong, Bo Dai, and Chao Zhang. Adaplanner: adaptive planning from feedback with language models. In Pro- ceedings of the 37th International Conference on Neu- ral Information Processing Systems, pages 58202-58245, 2023.
- [Touvron et al., 2023] Hugo Touvron, Thibaut Lavril, Gau- tier Izacard, Xavier Martinet, Marie-Anne Lachaux, Tim- othée Lacroix, Baptiste Rozière, Naman Goyal, Eric Ham- bro, Faisal Azhar, et al. Llama: Open and efficient founda- tion language models. arXiv preprint arXiv:2302.13971, 2023.
- [Watkins, 1989] Christopher John Cornish Hellaby Watkins. Learning from delayed rewards. 1989.
- [Wu et al., 2024] Yue Wu, So Yeon Min, Shrimai Prabhu- moye, Yonatan Bisk, Russ R Salakhutdinov, Amos Azaria, Tom M Mitchell, and Yuanzhi Li. Spring: Studying papers and reasoning to play games. Advances in Neural Informa- tion Processing Systems, 36, 2024.
- [Yao et al., 2023] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language mod- els. In International Conference on Learning Representa- tions (ICLR), 2023.
- [Zhang and Lu, 2024] Wanpeng Zhang and Zongqing Lu. Adarefiner: Refining decisions of language models with adaptive feedback. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 782-799, 2024.
- [Zhang et al., 2024] Yuzhe Zhang, Yipeng Zhang, Yidong Gan, Lina Yao, and Chen Wang. Causal graph discovery with retrieval-augmented generation based large language models. arXiv preprint arXiv:2402.15301, 2024.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
With the advancement of large language models (LLMs) like Generative Pre-trained Transformer (GPT) [Brown et al., 2020] and Large Language Model Meta AI (LLAMA) [Touvron et al., 2023], these models have demonstrated significant potential in the realm of decision-making [Sun et al., 2023;
∗Corresponding Author

Yao et al., 2023]. However, the primary focus of these pretrained models is to predict the next token based on the existing data, limiting their ability to reason structurally and adapt to new environments. These limitations hinder their effectiveness in real-world, complex decision-making tasks. As a result, effectively leveraging the capabilities of LLMs to solve complex tasks remains an ongoing research problem.
To enhance LLMs' reasoning abilities and environmental adaptability, one promising approach is to incorporate reinforcement learning (RL) techniques. As shown in Figure 1(a), the RL agents alone methods [Kiran et al., 2021; Kober et al., 2013; Shao et al., 2019] involve an agent interacting with its environment by selecting actions based on its current state, receiving rewards or penalties, and adjusting its strategy with the goal of maximizing long-term rewards. To improve an agent's ability to extract and interpret environmental data, the methods using LLMs to assist RL agents [Du et al., 2023; Baumli et al., 2023; Zhang and Lu, 2024], have explored integrating LLMs to help the agent better understand the context of its environment, thereby enhancing its policy learning (see Figure 1(b)). Despite this advancement, these approaches still rely on the next-token prediction paradigm, which limits the agent's capacity for structured reasoning and rapid adaptation to unfamiliar or complex environments. This gap highlights the need for more advanced inherent knowledge management mechanism that go beyond token prediction and facilitate deeper reasoning and flexibility in decision-making processes.
The human cognitive processes (e.g. System 1 & 2 ) offer valuable insights into addressing the aforementioned limitations [Kahneman, 2011]. Intuitively, when interacting with a new environment, System 1 (intuitive, fast) and System 2 (analytical, slow) work in concert to acquire and process knowledge effectively. As humans adjust to the environment through actions, System 2 carefully evaluates feedback and refines strategies, while System 1 handles increasingly familiar aspects. Through iterative interactions, humans continuously refine their strategies based on environmental feedback, gradually transforming complex analytical processes into intuitive responses. This cognitive architecture suggests the necessity of a knowledge representation mechanism that supports both rapid retrieval and deliberate reasoning. Specifically, two key challenges arise: 1) how to represent and learn knowledge to understand the environment, and 2) how to adaptive update knowledge and reason to solve complex tasks in dynamic environments.
Based on the above analysis, we find that Structural Causal Models (SCMs) offer a robust framework for knowledge presentation and further provide a potential mechanism for reasoning and adaptive learning. To this end, we introduce a causal-aware LLMs framework (illustrated in Figure 1(c)), which integrates SCMs into LLMs to improve their ability to understand environments, acquire new knowledge, and adapt through dynamic interactions. The framework consists of three key stages: learning, adapting, and acting. In the learning stage, the LLM extracts causal knowledge from the environment to build an initial causal representation. In the adapting stage, we address potential inaccuracies in the causal relationships-often arising from the LLM's tendency to generate hallucinated information-by applying causal intervention techniques to refine the causal graph iteratively. This intervention ensures the model better captures the true structure of the environment. Finally, in the acting stage, the updated causal relationships are integrated into both the LLM and the RL agent, enhancing the agent's understanding of the environment and improving its policy learning. This iterative cycle allows the LLM and RL agent to collaboratively refine their knowledge and strategies, optimizing decision-making until the desired rewards are achieved. This approach promotes more robust and adaptive decisionmaking, enabling the model to tackle complex, real-world tasks effectively. Experimental results across 22 diverse tasks in the open-world game "Crafter" demonstrate the efficacy of our proposed method in improving decision-making.
2 RelatedWork
2.1 LLM for Causality
Numerous scholars have conducted extensive research on whether large language models are capable of understanding causal relationships, which can be divided into exploring LLMs' understanding of causal knowledge and using them to construct causal graphs. Research such as [Gao et al., 2023; Ashwani et al., 2024; Chen et al., 2024] have shown that LLMs can handle some basic tasks related to causal graphs, but they struggle with more complex and nuanced tasks. While LLMs can mimic causal language, they need more explicit knowledge and reasoning mechanisms to truly understand causal relationships.
[Zhang et al., 2024] use LLMs to recover causal graphs by retrieving relevant text, using LLMs to identify factor associations, and aggregating these relationships. But their effectiveness is limited without a causal discovery algorithm. Hallucination also limits LLMs' ability to handle causal knowledge due to the lack of mechanisms to validate and constrain their generated causal relationships. We propose a unique technique that leverage causal intervention to refine and validate the causal relationships generated by LLMs, ensuring they align with environment-specific causal structures and improving their utility in downstream applications.
2.2 LLM for Reinforcement Learning
Recent studies have investigated the integration of LLMs into RL, particularly for reward generation and the use of finetuning LLMs for policy optimization. These methods leverage the power of pre-trained LLMs to guide RL agents in complex tasks. For reward generation, [Du et al., 2023] proposed a framework called ELLM, which generates potential goals relevant to the agent's current state using LLMs, offering a structured approach to reward shaping. Similarly, [Baumli et al., 2023] explored the use of Vision-Language Models (e.g., CLIP) to derive rewards for RL agents targeting language-specified visual goals.
For fine-tuning LLMs, [Zhang and Lu, 2024] introduced AdaRefiner, which utilizes a fine-tuned LLM as an adapter to refine task understanding based on agent feedback, enhancing the collaboration between LLMs and RL agents. Although existing methods have demonstrated a certain degree of effectiveness, whether LLMs can adapt to diverse environments remains a pressing challenge. To address this issue, we propose a framework that integrates SCM to enhance the adaptability of LLMs in complex and dynamic environments.
2.3 Reinforcement Learning
Reinforcement learning aims to learn an optimal policy to maximize the expected cumulative reward, fundamentally optimizing the decision-making process through trial and error. Common approaches include value-based methods and policy-based methods. Value-based methods such as Qlearning [Watkins, 1989], DQN [Mnih et al., 2013], and DDQN [Lillicrap et al., 2015] find the optimal policy by estimating the value of states or state-action pairs. Policy-based methods such as PPO [Schulman et al., 2017], TRPO [Schulman et al., 2015], A2C, and A3C [Mnih et al., 2016] directly optimize the policy rather than finding it through a value function. [Hafner et al., 2023] introduced a general reinforcement learning algorithm named DreamerV3. DreamerV3 improves its behavior by learning an environment model and imagining future scenarios, achieving cross-domain learning.

3 Preliminary
3.1 Causal Structural Model
Structural causal models (SCMs) are commonly represented using causal graphs [Pearl and Mackenzie, 2018; Cai et al., 2024]. A causal graph is comprised of a set of causal variables, denoted as V, which serve as the nodes, and a set of causal edges, represented as E, which connect these variables, forming the edges of the graph. This can be formally expressed as G(V,E). A causal edge from variable vi to variable vj indicates that vi is a direct causal factor for vj. Within our framework, we conceptualize objects in the environment and player-related information as nodes within the causal graph.
3.2 Causal Intervention
In causal inference, an intervention involves applying a change to a system or process to see how this change affects other variables or outcomes, defined as P(vj | do(vi = v)), where do() denotes the do-operator [Pearl, 2009; Pearl and Mackenzie, 2018], which represents forcing vi = v and observing the resulting changes in vj. As shown in Figure 3, before the intervention, the causal effect propagates through vk → vi → vj. By intervening on the variable vi, all incoming edges to vi are removed, and the causal effect flows solely through vi → vj. Intervention helps us understand and confirm causal relationships, not just correlations. By examining the environmental feedback of interventions, we can better understand how variables are related, which helps us evaluate and predict the real influence of actions on a system, aiding both research and decision-making.

4 ProblemFormulation
In this work, we aim to leverage causality to enhance the ability of LLM to understand the environment for effective decision-making. Given the inherent uncertainty and partial observability in real-world environments, we utilize a Partially Observable Markov Process (POMDP) [Sondik, 1971], which characterizes the interaction dynamics between an agent and the environment. Formally, a POMDP is described as a 7-tuple (S, A, P, Ω, O, γ, R). Here, s ∈ S represents the state of the environment, a ∈ A denotes an action sampled from a goal-conditioned policy π [Liu et al., 2022]. The state transition probability P(s′ | s, a) specifies the likelihood of transitioning to a new state s′ after taking action a in the current state s. The observation o ∈ Ω is determined by the observation function O(o | s′ , a), which provides the probability of o given the next state s′ and the action a. The reward function R(s, a) quantifies the reward attained from executing action a in state s, thereby reflecting the agent's benefit from specific actions. The discount factor γ modulates the significance of future rewards in present decisionmaking, where a higher γ value indicates a greater emphasis on long-term rewards.
Algorithm 1 Causal-aware LLMs Framework
Require: Observations o
Ensure: Policy π
- 1: for i in train epoch do
- 2: Learning Stage: Learning a causal graph of the current environment information using a LLM from o.
- 3: Adapting Stage: Updating causal graph G using causal interventions.
- 4: Acting Stage: Using the updated G to assist in guiding the RL agent's policy learning.
- 5: end for
Given the above setup and definitions, we propose a novel approach, causal-aware LLMs. Specifically, it first leverages the LLM to infer a causal graph G . This causal graph is continuously refined through iterative causal interventions (detailed in Section 4.3). The dynamically updated causal knowledge is then leveraged to generate a goal, which guides the RL agent in policy optimization. Therefore, our primary objective is to design a policy π(a | o, goal, G) that incorporates the goal derived from the causal graph G, which maximizes the cumulative reward. This causal-aware mechanism enables the agent to make informed decisions by incorporating causal relationships within the environment.
5 Method
5.1 Framework
In this section, we provide a causal-aware LLMs framework that leverages causal knowledge to facilitate policy learning in the interaction between the LLM and the RL agent, which enhances the reasoning and adaptive ability of LLM. As illustrated in the Figure 2, our proposed framework contains three stages: 1) Learning for obtaining causal knowledge; 2) Adapting for updating causal knowledge; and 3) Acting for causal-aware decision making.
In detail, in the Learning Stage, for the initial environment, we first provide the textual information of the environment to the LLM, which learns the causal variables and an initial causal graph between those variables. In this stage, the causal graph may contain some inaccurate causal relationship due to LLM's hallucinations. In the Adapting Stage, to update the inaccurate causal relationship, we make use of the idea of causal intervention to adapt. If an agent acts to change the state of a variable si , then the states of the other variables change, which indicates that si is the ancestor of those other variables, This idea is incorporated into LLM to let it update the causal graph according to the textual data. In the Acting Stage, based on the learned causal knowledge, another LLM will generate a sub-goal according to the overall achievements the agent needs to accomplish. Driven by this sub-goal, the agent will do a series of actions for learning policy to obtain a reward in the environment. This causes a state transition and may update the information of the environment. The new environment information will be regarded as the input to LLM and the procedure is entered into the latest iteration. The procedure of our framework is summarized in Algorithm 1.

5.2 Learning: Obtaining Causal Knowledge from LLMs
To obtain causal relationships, we begin by extracting causal relations from the environment, which are subsequently used to construct a causal graph G. In the context of a dynamic system, we collect the observations ot over a series of processes from the environment, which can be converted into textual representations. We employ in-context learning with few-shot prompting to leverage the LLM's pre-trained knowledge for extracting causal relations: relations = LLM(ot, prompt). Based on the learned causal relations sit → sjt (i, j = 1, 2, . . . , n i ̸= j), a causal graph G is constructed. Formally, the causal graph can be represented as a causal matrixM. Specifically, the matrix element M[i][j] = 1 indicates the presence of a causal relationship between the causal variables sit and sjt , while M[i][j] = 0 indicates its absence. Note that in this stage, the causal knowledge may be incomplete or incorrect, due to the limited reasoning ability of the pre-training framework of LLM. And the incorrect causal knowledge will be refined in the following updating stage. Detailed information on the prompt design is provided in Appendix A.9.
Example. An example of the learning stage procedure is illustrated in Figure 4. Based on current observation, LLM first extracts the causal relations including tree → wood, wood → wood pickaxe, tree → stone. These relations are then used to construct a causal graph.
5.3 Adapting: Updating Causal Knowledge from Environment Feedback
To update the causal knowledge, we first verify the correctness of the learned causal relations through causal intervention [Pearl, 2009] and environmental feedback, followed by the relationship updating process.
To facilitate causal relationship verification, we design a valid environment Valid Env through a three-step process. First, we construct an independent verification environment separate from the primary training environment. Second, we configure this environment to specifically support the agent's verification of causal relationships. Third, we disable model parameter updates during the verification process, ensuring that the agent evaluates causal relationships using only its currently learned policy.
Subsequently, within this environment, we prompt the LLM to generate an appropriate goal based on the unverified relations and use this goal to sample actions at. We apply the action at to the causal variable vi t as an intervention and observe the changes in the effect variable vj t+1 at the subsequent time step t + 1. After executing the action at on vi t (denoted as do(vi t )), we evaluate whether p(vj t+1 | do(vi t )) = p(vj t+1 | vi t ) holds. If it holds, it indicates that there is no causal relationship between those two variables; otherwise, a causal relationship exists. Through this approach, we can verify the correctness of unverified causal relationships. This mechanism enables the LLM to dynamically update the causal graph based on environmental feedback, ensuring the accuracy of its causal understanding.
Example. In the Crafter environment, to update the causal relation between causal variables tree and wood, we first generate a valid environment. In the generated environment, we will place a tree at each of the four corners of the eight squares surrounding the agent. Then, a well-trained agent will perform an action: chop tree. Finally, we check the status of wood. In such a case, its value will change, which means that the causal relation between tree and wood is correct. According to the result, we will update the causal knowledge as tree → wood.
5.4 Acting: Causal-aware DecisionMaking
To enable causal-aware exploration and decision-making, we leverage the causal knowledge acquired through the previous two stages and propose a goal-guided acting framework that integrates this knowledge with LLMs. The framework incorporates causal relationships into the decision-making process to guide both goal generation and policy learning.
First, inspired by goal-conditioned policy learning, we decompose complex tasks into multiple sub-goals while respecting the causal relations encoded in G. This decomposition establishes a hierarchical structure that supports gradual task completion while maintaining causal consistency. The goals can be represented in various forms, such as "reaching a specific location", "collecting a designated item" or "completing a specific sequence of tasks". As illustrated in the Acting Stage in Figure 2, we utilize LLM to generate appropriate goal: goal = LLM(prompt, G), where the generation is explicitly guided by the causal knowledge captured in G.
Subsequently, the agent executes actions at through a causal-aware policy: at ∼ π(at | st, goal, G), where the policy π is trained to maximize rewards while considering causal constraints. To address the challenge of sparse rewards during early training stages, we introduce a reward enhancement mechanism that leverages semantic alignment. Specifically, we augment the standard reward function with an additional reward term, computed as the cosine similarity between the embeddings of the current goal and environmental observations. This semantic alignment reward provides dense feedback signals that facilitate more efficient exploration and decision-making based on the underlying causal model.
Example. Consider the Crafter environment as an example. After updating the causal relations between tree and wood as tree → wood, if the goal generated by LLM is
"obtaining wood", the agent's policy recognizes that wood acquisition causally depends on the presence of trees. Consequently, the action is sampled as either chop tree or find tree. When the agent executes these actions under the causal constraint (i.e., first finding a tree, then chopping it), it receives positive rewards, which reflects that it makes an efficient decision.
6 Experiment
6.1 Environment Setting
We use Crafter environment [Hafner, 2022] and Meta-Llama3-8B-Instruct as our based LLM to evaluate the performance of our framework. All experiments are conducted on an NVIDIA GeForce 4090 with 24G 1 .
Environment Details. Crafter is a 2Dversion ofMinecraft, with a game map size of 64×64 and a player's field of view of 9×7. The environment contains various interactive objects including natural resources (e.g., trees, iron blocks), hostile entities (e.g., zombies), and craftable items. The primary objective for players is to collect and create various items categorized on an achievement tree, aiming to unlock as many achievements as possible. The partial observability of the environment, coupled with the need for long-term planning and resource management, makes Crafter particularly suitable for evaluating our framework's causal reasoning capabilities. Further details about Crafter can be found in the Appendix A.8.
Evaluation Metrics. To evaluate the effectiveness of our proposed framework, we assess the agent's capabilities through its performance in the Crafter environment. Specifically, we focus on two key metrics: success rate, and overall score. The success rate measures the frequency with which the agent unlocks various achievements during training. The overall score reflects the agent's balanced performance across all tasks, computed using the geometric mean of individual achievement success rates:
where N is the total number of achievements that need to be unlocked. In the Crafter environment, N = 22. We adopt the geometric mean rather than the arithmetic mean because it better reflects the agent's balanced performance across all achievements, being more sensitive to underperformance in any single task. These metrics collectively demonstrate not only the agent's proficiency in specific skills but also indicate our framework's effectiveness in facilitating causal understanding and strategic decision-making in complex environments.
6.2 Baselines
To provide a thorough evaluation context for our framework, we conduct comprehensive comparisons against three categories of current state-of-the-art methods:
1 The code is available at: https://github.com/DMIRLAB-Group/ Causal-aware LLMs
LLM-based Methods. We compare our method with classical reinforcement learning methods that incorporate LLMs, including React [Yao et al., 2023], Reflexion [Shinn et al., 2023] and AdaRefiner [Zhang and Lu, 2024], which leverage the text generation and reasoning capabilities of LLMs to enhance RL agents. These comparisons aim to demonstrate that leveraging causal models for environmental understanding can enhance LLM's reasoning abilities and adaptability to novel environments.
RL-based Methods. We also compare our method with RL methods mentioned in the Crafter benchmark, including classic approaches such as PPO (Resnet version) [Moon et al., 2024], DreamerV2 [Hafner et al., 2020], DreamerV3 [Hafner et al., 2023] and Rainbow [Hessel et al., 2018]. Both DreamerV2 and DreamerV3 try to understand the environments to enhance decision-making capability of agent. Rainbow integrates multiple improvement methods, which significantly enhances the algorithm's performance. These comparisons aim to validate that the integration of LLMs and causal models enables environmental understanding, thereby improving decision-making performance.
Additional references. These methods are based on additional references, including the results of human experts [Hafner, 2021], SPRING [Wu et al., 2024], and random experiments. SPRING explores the use of games and puzzles to cultivate and study people's reasoning abilities, including the reasoning processes in games like Crafter and Minecraft, as well as reasoning strategies in general puzzles and problemsolving games. These comparisons aim to validate the effectiveness of understanding environmental mechanisms in decision-making.
6.3 Results and Analysis
In the experimental results, for methods without publicly available implementations, we reference performance metrics from their original publications, maintaining consistency in experimental protocols and evaluation frameworks wherever possible. Table 1 and Figure 5 demonstrate the performance of our methods and baseline methods.
According to Table 1, our method significantly outperforms all baseline methods except for human experts and SPRING. These results strongly indicate that incorporating causal modeling into causal-aware LLMs enables the agent to develop a more comprehensive understanding of the environment's underlying mechanics. This enhanced understanding not only accelerates policy learning but also significantly improves the agent's ability to handle complex scenarios. While SPRING shows competitive performance in the one-millionstep evaluation, primarily due to its advantage of leveraging pre-defined game rules and environmental knowledge as prior information, our method demonstrates more compelling long-term benefits. Specifically, in the early training stages, our approach faces initial challenges in causal learning and graph updates due to insufficient training. However, the fivemillion-step results reveal a notable performance improvement, where our method surpasses SPRING. This superiority can be attributed to the agent's enhanced ability to perform the acting stage to interact with the environment, and the iterative adapting stage to refine the causal graph, which leads to a more accurate and deeper understanding of the environment's mechanism.
| Method Type | Method | Score (%) |
|---|---|---|
| Ours | Causal-aware LLMs (@1M) Causal-aware LLMs (@5M) | 18.9 ± 0.53 33.6 ± 0.02 |
| RL-based | Rainbow(@1M) DreamerV2(@1M) DreamerV3(@1M) PPO(Resnet)(@1M) | 4.3 ± 0.2 10.0 ± 1.2 14.77 ± 1.42 15.6 ± 1.66 |
| LLM-based | ReAct(GPT-4)(@1M) Reflexion(GPT-4)(@1M) AdaRefiner(@1M) AdaRefiner(@5M) | 8.3 ± 1.2 11.7 ± 1.4 15.8 ± 1.4 28.2 ± 1.8 |
| Additional refs | Human Experts SPRING(+prior)(@1M) Random(@1M) | 50.5 ± 6.8 27.3 ± 1.2 1.6 ± 0.0 |
| Method (@1M) | Score (%) |
|---|---|
| Causal-aware LLMs | 18.9 ± 0.53 |
| Ours w/o learning | 14.89 ± 0.75 |
| Ours w/o adapting | 14.67 ± 0.73 |
| PPO (ResNet) | 15.6 ± 1.66 |
Regarding the success rates of obtaining different achievements, as illustrated in Figure 5, our method shows significant improvements in unlocking and achieving deeper accomplishments as the number of training steps increases. Specifically, we observe that with a deeper understanding of the environment, the agent's ability to achieve more challenging accomplishments also increases. This indicates that integrating environmental causal knowledge not only enhances the agent's understanding of the environment but also improves the agent's performance in complex environments.
6.4 Ablation Study
To evaluate the contribution of each stage in the causalaware LLMs framework, we conducted comprehensive ablation studies. These experiments were specifically designed to assess the impact of different stages in our proposed framework, thereby providing insights into their combined effects on the overall performance.
As illustrated in Table 2, when the causal graph modeling in the learning stage is absent, the framework's decisionmaking process lacks the guidance of the causal graph, significantly reducing its effectiveness. In this scenario, the agent can only gradually adapt to the environment through RL policy learning.
When causal interventions for refining the causal graph are absent, the results are even worse than those without the learning stage. This is because incorrect causal relationships not only fail to provide proper guidance for the decisionmaking process but also introduce noise, misleading the RL agent in its decision-making.

The PPO (Restnet) method is employed to evaluate the contribution of integrating causal knowledge and LLMs into RL agents. Without the assistance of LLMs and causal reasoning mechanisms, PPO (Restnet) exhibits substantially inferior performance, particularly demonstrating notable deficiencies in decision-making and reasoning capabilities. These comparative experiments highlight the significant performance gains achieved through the integration of causal knowledge and LLM components into the RL framework.
Therefore, these results further demonstrate the importance of causal knowledge in understanding environmental mechanisms and enhancing decision-making capabilities, particularly in complex decision-making tasks.
6.5 Convergence Analysis
We analyzed the convergence of the Causal-aware LLMs during the training process. As shown in Table 3, since the causal graph is not fully established in the early training stage, the RL agent's policy learning in the acting stage relies mainly on reward signals. This stage accounts for only the first 10% of the training cycle. As training progresses with the help of reward signals, the agent gradually acquires basic skills, allowing it to refine the causal graph accurately. At this point, the agent begins leveraging accurate causal relationships to guide policy learning, making its policy more accountable and effective in the acting stage.
We also analyzed the unlock times for several achievements, as illustrated in Figure 6. The results demonstrate that our proposed method significantly accelerates the achievement unlocking process, outperforming the PPO (ResNet) by approximately 0.2M training steps. While both approaches showed comparable performance during the initial 0.1M steps, the integrated causal knowledge in our method proved increasingly advantageous as training progressed. This advantage became particularly evident in complex scenarios, enabling the agent to master sophisticated achievements such as "make iron pickaxe".

| Steps range (Million) | [0, 0.1] | [0.1, 0.2] | [0.2, 0.4] | [0.4, 0.6] | [0.6, 0.8] | [0.8, 1] |
|---|---|---|---|---|---|---|
| Causal-aware LLMs PPO (ResNet) | 2.35 | 3.47 | 7.97 | 11.4 | 14.56 | 17.71 |
| 2.34 | 3.18 | 6.69 | 10.02 | 12.85 | 15.01 | |
| Gap | +0.01 | +0.29 | +1.28 | +1.38 | +1.71 | +2.70 |
7 Conclusion
In this paper, we propose a Causal-aware LLMs framework to enhance decision-making, by introducing the structural causal model (SCM) into LLMs. The causal-aware LLMs framework is based on the "learning-adapting-acting" manner. These three stages iterate continuously until convergence is achieved. Experimental results in the Crafter environment demonstrate that by utilizing causal knowledge, the agent achieves substantial improvements in task execution and environmental adaptation, outperforming traditional baseline methods. This implies the possibility that our approach can be applied to complex scenarios especially where the causal mechanism can be modeled. However, during the experiments, we found that in early training, the limited ability of the agent hinders accurate updates of causal knowledge from environmental feedback. While LLM or domain priors help, performance remains poor without them. To address this limitation, future work could dynamically adjust the adaptation phase based on the agent's learning progress.
Ethical Statement
There are no ethical issues.
Acknowledgments
This research was supported in part by the National Science and Technology Major Project of China (2021ZD0111502), the National Science Fund for Excellent Young Scholars (62122022), National Natural Science Foundation of China (U24A20233, 62206064, 62406078), Guangdong Basic and Applied Basic Research Foundation (2025A1515010172, 2023B1515120020), the Guangzhou Basic and Applied Basic Research Foundation (2024A04J4384).
@inproceedings{ijcai2025p478,
title = {Causal-aware Large Language Models: Enhancing Decision-Making Through Learning, Adapting and Acting},
author = {Chen, Wei and Zhang, Jiahao and Zhu, Haipeng and Xu, Boyan and Hao, Zhifeng and Zhang, Keli and Ye, Junjian and Cai, Ruichu},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {4292--4300},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/478},
url = {https://doi.org/10.24963/ijcai.2025/478},
}
TY - CPAPER TI - Causal-aware Large Language Models: Enhancing Decision-Making Through Learning, Adapting and Acting AU - Chen, Wei AU - Zhang, Jiahao AU - Zhu, Haipeng AU - Xu, Boyan AU - Hao, Zhifeng AU - Zhang, Keli AU - Ye, Junjian AU - Cai, Ruichu T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 4292 EP - 4300 DO - 10.24963/ijcai.2025/478 UR - https://doi.org/10.24963/ijcai.2025/478 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: