Where You Go is Who You Are: Behavioral Theory-Guided LLMs for Inverse Reinforcement Learning

Yuran Sun, Susu Xu, Chenguang Wang, Xilei ZhaoarXiv 2025 · DOI

Introduction

Human mobility data, often captured as GPS trajectories, provides critical insights for urban planning and transportation engineering. However, these datasets are typically anonymized, lacking essential sociodemographic information such as age, gender, or income. Previous attempts to infer these attributes relied on "black-box" machine learning models that map movement patterns directly to demographics, often failing to capture the underlying motivations behind human behavior. This research introduces SILIC, a framework that bridges this gap by grounding AI reasoning in the psychological Theory of Planned Behavior (TPB).

The SILIC Framework

The researchers propose SILIC (Sociodemographic Inference with LLM-guided IRL and Cognitive Chain Reasoning), a two-stage approach designed to model the latent cognitive processes driving mobility. Unlike traditional methods, SILIC treats travel behavior as a result of intentions and beliefs rather than just a sequence of coordinates.

The SILIC framework grounded in the Theory of Planned Behavior

1. LLM-guided Inverse Reinforcement Learning (IRL)

In the first stage, travel behavior is modeled as a Markov Decision Process (MDP). Standard IRL algorithms often struggle with "ill-posed" problems where multiple reward functions can explain the same observed behavior. SILIC addresses this by using a Large Language Model (GPT-4o) to provide a "common sense" initialization of reward weights. The LLM acts as a heuristic guide, suggesting updates when simulated behaviors deviate from real-world expert trajectories.

2. Cognitive Chain Reasoning (CCR)

The second stage utilizes the learned reward weights—representing behavioral intentions—to work backward through the TPB. The LLM performs a two-step reasoning process: first, it infers latent beliefs (e.g., attitudes and subjective norms) from the rewards; second, it integrates these beliefs with environmental context (such as transit access and urban density) to predict final sociodemographic attributes.

Experimental Setup

The framework was evaluated using the 2017 Puget Sound Regional Council Household Travel Survey, which includes multi-day smartphone-based GPS diaries from 617 individuals (totaling 11,964 trips). This was supplemented with contextual land-use and transit accessibility data from the U.S. Census and EPA.

Key Results

SILIC demonstrates a significant performance leap over traditional machine learning baselines, including SVM, XGBoost, and CatBoost, as well as zero-shot LLM inference.

Performance comparison for gender prediction across different models
  • Gender Prediction: SILIC achieved an accuracy of 85.5%, a substantial improvement over the ~65% achieved by standard LLM inference and traditional ML models.
  • Age Prediction: The model reached 86.3% accuracy, showing particular strength in identifying older age groups (65+) that baseline models frequently misclassified.
  • Theoretical Necessity: Ablation studies confirmed that the theory-guided reasoning (CCR) and LLM-guided IRL initialization were critical components; removing them resulted in significantly higher error rates.

Discussion and Future Work

By integrating psychological theory with LLMs, SILIC moves beyond simple pattern matching to a more robust, interpretable form of behavioral inference. The model's ability to maintain high performance across underrepresented groups highlights the value of incorporating human behavioral priors.

Future research will focus on validating the inferred latent states (beliefs) against ground-truth psychological data and testing the framework's generalizability across different geographic regions where mobility norms may vary. Additionally, increasing the granularity of the state space could further refine the reward functions and improve predictive precision.

Summary updated

BibTeX
@misc{sun2025where,
  author = {Yuran Sun and Susu Xu and Chenguang Wang and Xilei Zhao},
  title = {{Where You Go is Who You Are: Behavioral Theory-Guided LLMs for Inverse Reinforcement Learning}},
  year = {2025},
  eprint = {2505.17249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17249},
}
Figure