Skip to main content
QUICK REVIEW

[Paper Review] Language Models as Agent Models

Jacob Andreas|arXiv (Cornell University)|Dec 3, 2022
Topic ModelingComputer Science10 citations
TL;DR

This paper argues that language models (LMs) function as implicit models of agent intentions by inferring and utilizing approximate representations of beliefs, desires, and goals during next-word prediction. Despite limited training data and no direct access to agent states, LMs demonstrate emergent capabilities to simulate communicative intentions, enabling coherent, goal-directed language generation—though with notable failure modes tied to flawed intention modeling.

ABSTRACT

Language models (LMs) are trained on collections of documents, written by individual human agents to achieve specific goals in an outside world. During training, LMs have access only to text of these documents, with no direct evidence of the internal states of the agents that produced them -- a fact often used to argue that LMs are incapable of modeling goal-directed aspects of human language production and comprehension. Can LMs trained on text learn anything at all about the relationship between language and use? I argue that LMs are models of intentional communication in a specific, narrow sense. When performing next word prediction given a textual context, an LM can infer and represent properties of an agent likely to have produced that context. These representations can in turn influence subsequent LM generation in the same way that agents' communicative intentions influence their language. I survey findings from the recent literature showing that -- even in today's non-robust and error-prone models -- LMs infer and use representations of fine-grained communicative intentions and more abstract beliefs and goals. Despite the limited nature of their training data, they can thus serve as building blocks for systems that communicate and act intentionally.

Motivation & Objective

  • To investigate whether language models can infer and represent communicative intentions from text alone, despite lacking direct access to agent mental states.
  • To examine how these inferred agent representations influence language generation, mirroring how human intentions guide speech.
  • To identify and analyze failure modes in language models that stem from inaccurate modeling of beliefs, desires, and intentions.
  • To explore the potential of LMs as scaffolding for future agent-like systems through improved intention modeling.
  • To highlight ethical risks arising from the ability of LMs to simulate both benign and malicious agent intentions.

Proposed method

  • The paper analyzes next-word prediction in LMs as a process of inferring and applying approximate representations of agents' beliefs, desires, and intentions.
  • It draws on empirical results from existing NLP literature to demonstrate that LMs can infer fine-grained communicative intentions and abstract goals from textual context.
  • The framework treats LM inference as a form of agent simulation, where internal representations of agent states causally influence text generation.
  • The authors use case studies from real models (e.g., GPT-3) to illustrate how LMs model differing beliefs and motivations in narrative and reasoning tasks.
  • The analysis includes failure cases where incorrect inferences lead to incoherent or contradictory outputs, even when syntax and semantics are correct.
  • The paper proposes that future architectures should be designed to better represent and reason about agent states, building on text-only pre-training as a foundation.

Experimental results

Research questions

  • RQ1Can language models infer and represent communicative intentions of agents from text alone, despite no access to internal states?
  • RQ2To what extent do inferred agent representations causally influence language generation in LMs, similar to how intentions guide human utterances?
  • RQ3What are the failure modes in current LMs that stem from inaccurate modeling of beliefs, desires, and intentions?
  • RQ4How can text-only pre-trained language models serve as a scaffold for building more robust, intentional agent systems?
  • RQ5What are the ethical risks of enabling LMs to simulate both benign and malicious agent intentions?

Key findings

  • Current language models can infer and use representations of fine-grained communicative intentions, such as differing beliefs about physical laws, even when trained only on text.
  • Models like GPT-3 generate coherent, goal-directed narratives—such as predicting divergent beliefs about falling objects—demonstrating implicit modeling of agent states.
  • Failures in language generation often stem not from syntax or semantics, but from incorrect inference about agent beliefs, desires, or intentions.
  • Despite limitations, LMs show emergent ability to simulate multi-agent scenarios involving conflicting motivations and environmental constraints.
  • The quality of intention modeling is significantly reduced in low-resource languages, limiting the generalization of these capabilities.
  • There is a risk that improved intention modeling could be exploited to prompt LMs into simulating harmful or malicious agent behaviors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.