Reading Between the Tokens: Improving Preference Predictions through Mechanistic Forecasting

Sarah Ball, Simeon Allmendinger, Frauke Kreuter, Niklas Kühl

TL;DR

This paper introduces "mechanistic forecasting," a novel approach that leverages the internal representations of Large Language Models (LLMs) to predict human preferences, outperforming traditional methods that only analyze model outputs. By probing these internal "latent" signals, the authors demonstrate a more robust and sometimes more accurate way to forecast preferences, particularly in complex scenarios like political elections.

What Problem Does This Paper Address?

The increasing use of LLMs for tasks like social science research and opinion forecasting presents a challenge: while LLMs are trained on vast amounts of text reflecting human behavior, their predictions can be unstable and sensitive to prompt phrasing. Existing methods primarily focus on the LLM's final output (e.g., predicted probabilities), often missing crucial information encoded within the model's internal workings. This paper addresses the question of whether and how LLMs' internal representations can be more effectively utilized to improve the accuracy and reliability of preference predictions, moving beyond surface-level analysis.

Methods

The core innovation is "mechanistic forecasting." This method involves:

  1. Identifying Party Value Vectors: Using techniques from mechanistic interpretability, the authors identify specific "value vectors" within the Multi-Layer Perceptrons (MLPs) of LLMs that are associated with particular political parties. These vectors represent directions in the model's internal representation space.
  2. Measuring Persona Activation: Synthetic personas (created by combining demographic and ideological attributes) are fed into the LLM. The authors then measure how these personas activate the identified party-specific value vectors.
  3. Aggregating Latent Activations: Instead of relying on the LLM's direct output probabilities, the aggregated activations of these value vectors across many personas are used to form a distributional preference estimate. This "latent" signal is then compared to real-world survey data.
  4. Value-Vector Selection: A rigorous selection process is employed to ensure that the identified value vectors genuinely capture party-relevant information, using sign-inversion tests and non-political intervention setups.

Datasets

  • LLMs: The study evaluates seven LLMs, including Llama 3.1 (base and instruction-tuned), Mistral 7B (base and instruction-tuned), Gemma 2 (base and instruction-tuned), and Qwen 3.
  • Survey Data: Representative cross-sectional election surveys from six countries were used for comparison: United States (2024), United Kingdom (2024), Canada (2019), Germany (2021), Netherlands (2021), and New Zealand (2020).
  • Probe Data: To train probes for identifying party-specific value vectors, the authors compiled data from voting-advice applications (e.g., Wahl-O-Mat in Germany, StemWijzer in the Netherlands, Vote Compass for other countries). This data consists of political statements, party answers, and comments.

Key Insights and Ideas

  • Hidden Knowledge in LLMs: LLMs possess "hidden" or "latent" knowledge about human preferences that is not always fully expressed in their surface-level outputs.
  • Mechanistic Forecasting as a Complement: This new method doesn't replace traditional LLM output analysis but complements it, especially when surface-level predictions are diffuse or unstable.
  • Demographics are More Reliably Encoded: Demographic attributes (like age, education, employment) seem to be more consistently and reliably encoded in LLM latent representations compared to opinion-based attributes, which show greater cross-national variation.
  • Entropy as a Predictor of Success: Mechanistic forecasting is most beneficial for attributes with high "entropy" (where no single category dominates and signals are distributed), as these are precisely the cases where surface-level probabilities become diffuse and less informative.
  • Beyond Factual Correctness: This work extends the concept of "hidden knowledge" from binary factual correctness to more complex, distributional preference prediction tasks.

Key Results

  • Improved Prediction Accuracy: Mechanistic forecasting, by leveraging latent representations, improved prediction accuracy compared to relying solely on next-token probabilities in a significant number of cases across various models, countries, and persona attributes.
  • Win-Rates: The study analyzed over 24 million persona configurations and found that mechanistic forecasting achieved "wins" (i.e., closer predictions to survey data) in a substantial portion of these comparisons.
  • Attribute-Specific Gains: Demographic attributes showed particularly strong gains in countries like the US and UK. Opinion-based attributes showed more variable improvements, depending on the national context and how explicitly the attribute was expressed.
  • Robustness: The method demonstrated robustness across different LLM architectures and instruction-tuning variations.

Limitations and Future Work

  • White-Box Access Required: The method necessitates access to the internal workings of LLMs, limiting its application to models where such access is available.
  • Computational Resources: Training probes and performing Monte Carlo aggregations require significant computational resources.
  • First-Order Approximation: The analysis relies on a first-order approximation of MLP contributions, which might miss higher-order interactions.
  • Future Work: The authors suggest exploring multiclass probes for joint discrimination across parties, developing a more rigorous framework for designing prompt variations, and applying the methodology to other domains beyond elections (e.g., consumer choice, values). They also highlight the need for further research into understanding when and how internal representations support reliable aggregation.

Summary updated

BibTeX
@inproceedings{ball2026reading,
  author = {Sarah Ball and Simeon Allmendinger and Frauke Kreuter and Niklas Kühl},
  title = {{Reading Between the Tokens: Improving Preference Predictions through Mechanistic Forecasting}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=TJvRtbspej},
}
Figure