Aligning LLM agents with human learning and adjustment behavior: a dual agent approach

Tianming Liu, Jirong Yang, Yafeng Yin, M. H. Li, Linghao Wang, Zheng Zhu · DOI

TL;DR

This paper introduces a novel dual-agent framework that uses one LLM to simulate human travelers and a second "calibration" LLM to iteratively refine the travelers' personas using textual "pseudo-gradients." By aligning the underlying decision-making logic rather than just mimicking outputs, the system achieves a 19% improvement in predicting human route choices and significantly better captures the nuances of human learning and inertia.

What Problem Does This Paper Address?

Transportation planning relies heavily on Agent-Based Modeling (ABM) to predict how changes in infrastructure—like a new highway or a toll—will affect traffic. However, traditional models often rely on rigid mathematical assumptions (like perfect rationality) that fail to capture how humans actually behave. Humans have "bounded rationality": we are influenced by habits, we overreact to recent bad experiences, and we don't always choose the mathematically optimal path.

While Large Language Models (LLMs) have shown promise in simulating human-like reasoning, "out-of-the-box" LLMs don't naturally align with the specific quirks of individual travelers. There is a significant gap in creating agents that can learn and adjust their behavior over time in a way that matches longitudinal human data.

Methods

The authors propose a dual-agent framework consisting of two distinct roles:

  1. The Traveler Agent: This agent simulates an individual human. It consists of an LLM "brain," a dual-memory system (short-term for recent trips, long-term for general patterns), and a Persona. The Persona is a natural language description of the agent’s traits (e.g., "cautious," "prefers the expressway unless delayed twice").
  2. The Calibration Agent: This is the "supervisor." It observes the discrepancies between the Traveler Agent's simulated choices and actual human data.

The core innovation is Textual Pseudo-Gradient Descent. Instead of updating numerical weights (like in standard AI training), the Calibration Agent:

  • Analyzes errors in a rolling window of travel data.
  • Generates "textual feedback" explaining why the current persona failed.
  • Proposes edits to the Persona text to better match the human's observed tendencies.
  • Applies a smoothing mechanism to merge new insights with long-term baselines, preventing the agent from "overfitting" to a single weird traffic day.

Datasets

The study utilizes a real-world dataset from a day-to-day route choice experiment (Wang et al., 2025b).

  • Participants: 15 humans split into two groups.
  • Task: 160 rounds of choosing between an "expressway" and "local" roads.
  • Dynamics: Travel times were determined by actual congestion levels created by the participants' collective choices (using the BPR function).
  • Split: The first 80 days were used for agent calibration, and the final 80 days were used for out-of-sample evaluation.

Key Insights and Ideas

  • Personas as Latent Variables: The paper treats a natural language description as a learnable parameter. This allows the model to capture complex heuristics (like "risk aversion") that are difficult to squeeze into a standard utility equation.
  • Capturing "Inertia": A major finding was that standard LLMs are often too "reactive"—they switch routes the moment they experience a slight delay (a "lose-shift" bias). The dual-agent approach successfully taught the agents human inertia, or the tendency to stick with a choice even after a sub-optimal outcome.
  • Evolution of Strategy: The framework doesn't just find a static personality; it tracks how a traveler’s strategy matures. For example, an agent might start "naive and reactive" but, through calibration, evolve into a "sophisticated and robust" decision-maker that differentiates between random noise and actual traffic trends.

Key Results

The dual-agent approach consistently outperformed three major baselines (Base-LLM, Recursive-LLM, and Bounded-LLM):

  • Individual Accuracy: Achieved 65.5% accuracy in predicting specific daily choices, a 19.3% relative improvement over the best-performing baseline.
  • Behavioral Fidelity: Using "Behavior Vectors" (measuring the probability of switching after a loss vs. staying after a win), the proposed method achieved a 0.974 cosine similarity with real human behavior.
  • System-Level Dynamics: When simulating the entire traffic network, the model reduced the Mean Squared Error (MSE) of route flows by 20.7% compared to the best baseline.
  • Qualitative Realism: The simulated traffic flows mirrored the "smoothness" of real-world data, whereas baselines often produced highly volatile, chaotic traffic patterns.

Limitations and Future Work

  • Computational Cost: Running two LLMs (especially for calibration) is token-heavy and slower than mathematical models. The authors suggest exploring "batch" updates or more token-efficient aggregation methods.
  • Fixed Retrieval: Currently, the way the agent "remembers" (the retrieval heuristic) is fixed by the researchers. Future versions could allow the agent to learn how to weight its own memories.
  • Scalability: The study focused on 15 agents. Scaling this to a city-wide simulation with thousands of agents would require significant optimizations in how LLM calls are managed.

Summary updated

Abstract

Effective modeling of how human travelers learn and adjust their travel behavior from interacting with transportation systems is critical for system assessment and planning. However, this task is also difficult due to the complex cognition and decision-making involved in such behavior. Recent research has begun to leverage Large Language Model (LLM) agents for this task. Building on this, we introduce a novel dual-agent framework that enables continuous learning and alignment between LLM agents and human travelers on learning and adaptation behavior from online data streams. Our approach involves a set of LLM traveler agents, equipped with a memory system and a learnable persona, which serve as simulators for human travelers. To ensure behavioral alignment, we introduce an LLM calibration agent that leverages the reasoning and analytical capabilities of LLMs to train the personas of these traveler agents. Working together, this dual-agent system is designed to track and align the underlying decision-making mechanisms of travelers and produce realistic, adaptive simulations. Using a real-world dataset from a day-to-day route choice experiment, we show our approach significantly outperforms existing LLM-based methods in both individual behavioral alignment and aggregate simulation accuracy. Furthermore, we demonstrate that our method moves beyond simple behavioral mimicry to capture the evolution of underlying learning processes, a deeper alignment that fosters robust generalization. Overall, our framework provides a new approach for creating adaptive and behaviorally realistic agents to simulate travelers' learning and adaptation that can benefit transportation simulation and policy analysis.
BibTeX
@misc{liu2025aligning,
  author = {Tianming Liu and Jirong Yang and Yafeng Yin and M. H. Li and Linghao Wang and Zheng Zhu},
  title = {{Aligning LLM agents with human learning and adjustment behavior: a dual agent approach}},
  year = {2025},
  eprint = {2511.00993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.00993},
}
Figure