Abstract Counterfactuals for Language Model Agents

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Pona, Edoardo, Kazemi, Milad, Du, Yali, Watson, David, Paoletti, Nicola
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915321575636992
author Pona, Edoardo
Kazemi, Milad
Du, Yali
Watson, David
Paoletti, Nicola
author_facet Pona, Edoardo
Kazemi, Milad
Du, Yali
Watson, David
Paoletti, Nicola
contents 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 \emph{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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_02946
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Abstract Counterfactuals for Language Model Agents
Pona, Edoardo
Kazemi, Milad
Du, Yali
Watson, David
Paoletti, Nicola
Machine Learning
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 \emph{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.
title Abstract Counterfactuals for Language Model Agents
topic Machine Learning
url https://arxiv.org/abs/2506.02946