Aligning LLM with human travel choices: a persona-based embedding learning approach

Tianming Liu, M. H. Li, Yafeng YinarXiv 2025 · DOI

TL;DR

Researchers have developed a novel framework that aligns Large Language Models (LLMs) with human travel behavior by "loading" them with data-driven personas. By combining behavioral embeddings with a Monte-Carlo stochastic EM algorithm, the approach allows "off-the-shelf" LLMs to predict travel choices more accurately than traditional econometric models while remaining resource-efficient and interpretable.

What Problem Does This Paper Address?

Predicting how people choose to travel—whether they take a car, a train, or a bus—is the "bread and butter" of transportation planning. Traditionally, this is done using Discrete Choice Models (DCMs) like the Multinomial Logit (MNL) model. While reliable, these models can be rigid and struggle with complex, unstructured data.

LLMs offer a tempting alternative because of their reasoning capabilities and ability to process natural language. However, LLMs suffer from "behavioral misalignment." Left to their own devices, an LLM might prioritize travel time far more than a typical human would, or ignore budget constraints that a real commuter faces. Existing ways to fix this, like supervised fine-tuning, are computationally expensive and require massive amounts of data that aren't always available in travel surveys.

Methods

The authors propose a two-step "persona-based embedding learning" framework to bridge the gap between LLMs and human reality:

  1. Persona Inference: The researchers use an "expert LLM" to analyze a subset of detailed traveler data. By looking at an individual’s past choices across different scenarios, the expert LLM infers a "persona"—a textual description of that person’s underlying preferences (e.g., "This traveler values comfort and reliability over cost"). This creates a "basis set" of personas grounded in real behavior.
  2. Persona Loading: For a new traveler where only basic demographics (age, income, etc.) are known, the system needs to decide which persona to apply. The authors use representation learning to create a "persona loading function." This function maps socio-demographic variables into an embedding space.
  3. Optimization via Stochastic EM: To train the embedding parameters without bankrupting the researchers on API costs, they employ a Monte-Carlo stochastic Expectation-Maximization (EM) algorithm. This iteratively adjusts the embeddings so that the personas "loaded" into the LLM prompts are those most likely to result in a choice that matches the human ground truth.

The final simulation uses a structured prompt: [Task Instructions] + [Socio-demographics] + [Choice Context] + [Loaded Persona].

Datasets

The framework was validated using the Swissmetro dataset, a classic transport modeling benchmark.

  • Source: A stated-preference survey of 1,192 individuals in Switzerland choosing between train, car, and "Swissmetro" (a hypothetical high-speed rail).
  • Structure: The authors filtered this into 1,004 respondents and ~9,000 choice records, splitting them into a "Detailed set" (for persona inference), a "General set" (for training the loading function), and a "Testing set" (for evaluation).

Key Insights and Ideas

  • The "Latent Class" Connection: The method essentially modernizes "latent class modeling" from econometrics. Instead of using math to find hidden groups, it uses LLMs to describe those groups in natural language and embeddings to link them to demographics.
  • Prompting over Fine-tuning: By keeping the LLM weights frozen and only training a small embedding layer to optimize the prompt, the method is "lightweight." It can be run using standard APIs (like GPT-4o) without specialized hardware.
  • Mitigating LLM Bias: The authors found that "zero-shot" LLMs (no persona) have a strong inherent bias toward the Swissmetro option. Adding the learned persona corrected this, bringing the LLM's "internal values" in line with human ones.
  • Interpretability: Because the embeddings are tied to specific variables (like "Age > 65" or "Car User"), the researchers could visualize behavioral clusters. They discovered six distinct groups, such as "elder rail users" vs. "male non-elder car users," providing "aha moments" for planners.

Key Results

The proposed method outperformed both traditional models and other LLM-based techniques:

  • Aggregate Accuracy: It reduced the Jensen-Shannon Divergence (a measure of how much the predicted market shares differ from reality) by 95.7% compared to the standard MNL model and by 90.3% compared to a few-shot LLM approach.
  • Individual Accuracy: It achieved the highest Macro F1-score (0.556), significantly beating the zero-shot LLM (0.407) and the MNL model (0.474).
  • Balance: Unlike other models that were good at predicting the majority choice but failed on the minority (train), this framework maintained a superior balance across all transport modes.

Limitations and Future Work

  • Prompt Sensitivity: While structured prompting helps, LLMs remain sensitive to phrasing. Future work could explore "meta-prompts" specifically tailored for travel demand.
  • Data Access: The study was limited to the Swissmetro dataset due to data availability. The authors acknowledge the need to test the framework on more diverse, cross-contextual datasets to prove its robustness.
  • Computational Latency: While cheaper than fine-tuning, the approach still requires multiple LLM calls during the inference/loading process, which might be slow for massive, real-time city simulations.

Summary updated

BibTeX
@misc{liu2025aligning,
  author = {Tianming Liu and M. H. Li and Yafeng Yin},
  title = {{Aligning LLM with human travel choices: a persona-based embedding learning approach}},
  year = {2025},
  eprint = {2505.19003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.19003},
  howpublished = {arXiv},
}
Figure