mlsanityData to 14 Oct 2026

Abstract Counterfactuals for Language Model Agents

arXiv 2506.02946 ↗First posted 3 Jun 2025cs.LGcited by 2

On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks

Abstract (arXiv)

Counterfactual inference is a powerful tool for analysing and evaluating autonomous agents, but its application to language model (LM) agents remains challenging. Existing work on counterfactuals in LMs has primarily focused on token-level counterfactuals, which are often inadequate for LM agents due to their open-ended action spaces. Unlike traditional agents with fixed, clearly defined action spaces, the actions of LM agents are often implicit in the strings they output, making their action spaces difficult to define and interpret. Furthermore, the meanings of individual tokens can shift depending on the context, adding complexity to token-level reasoning and sometimes leading to biased or meaningless counterfactuals. We introduce Abstract Counterfactuals, a framework that emphasises high-level characteristics of actions and interactions within an environment, enabling counterfactual reasoning tailored to user-relevant features. Our experiments demonstrate that the approach produces consistent and meaningful counterfactuals while minimising the undesired side effects of token-level methods. We conduct experiments on text-based games and counterfactual text generation, while considering both token-level and latent-space interventions.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 27 of its 41 references that are in the map. First posted on arXiv 3 Jun 2025.

Builds on

27 of 41 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challenges21 Jan
  2. 2023A Survey on Large Language Model based Autonomous Agents22 Aug

Other references · 25

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  5. 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 3,080
  6. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  7. 2020GoEmotions: A Dataset of Fine-Grained Emotionscited by 486
  8. 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 349
  9. 2023MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoningcited by 316
  10. 2023Ghost in the Minecraft: Generally Capable Agents for Open-World Environments via Large Language Models with Text-based Knowledge and Memorycited by 289
  11. 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmarkcited by 182
  12. 2019Explainable Reinforcement Learning Through a Causal Lenscited by 177
13 more
  1. 2014A* Samplingcited by 151
  2. 2023Large Language Models in Law: A Surveycited by 128
  3. 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordiacited by 126
  4. 2019Counterfactual Off-Policy Evaluation with Gumbel-Max Structural Causal Modelscited by 117
  5. 2013Probabilities of Causation: Bounds and Identificationcited by 90
  6. 2018Woulda, Coulda, Shoulda: Counterfactually-Guided Policy Searchcited by 82
  7. 2024Escalation Risks from Language Models in Military and Diplomatic Decision-Makingcited by 63
  8. 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 52
  9. 2024Representation Surgery: Theory and Practice of Affine Steeringcited by 50
  10. 2024Counterfactual Token Generation in Large Language Modelscited by 14
  11. 2024Gumbel Counterfactual Generation From Language Modelscited by 14
  12. 2016Constructing Effective Personalized Policies Using Counterfactual Inference from Biased Data Sets with Many Featurescited by 4
  13. 2024Challenges and Opportunities in Text Generation Explainabilitycited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Should I Have Expressed a Different Intent? Counterfactual Generation for LLM-Based Autonomous Control
  2. 2026Would this change your answer? Evaluating Explanations of LLM Behavior In The Wild with Counterfactual Experiments
  3. 2025On the Eligibility of LLMs for Counterfactual Reasoning: A Decompositional Study
  4. 2026COUNTERMEM: World-Model Verified Counter-Factual Memory for Language Agents
  5. 2025CounterBench: Evaluating and Improving Counterfactual Reasoning in Large Language Models
  6. 2025Counterfactual reasoning: an analysis of in-context emergence
  7. 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanations
  8. 2026Evaluating Counterfactual Strategic Reasoning in Large Language Models