NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Toward A Digital Twin of U.S. Congress

Hayden S. Helm, Tianyi Chen, Harvey McGuinness, Paige Lee, Brandon Duderstadt, Carey E. Priebe

TL;DR

This paper introduces a framework for a "digital twin" of the U.S. Congress by pairing large language models (LLMs) with a massive, daily-updated dataset of congressional tweets. By simulating how individual politicians would respond to specific legislative questions, the system can predict roll-call votes with high accuracy and quantify a politician's likelihood of crossing party lines.

What Problem Does This Paper Address?

While LLMs have shown remarkable human-like behavior in generic social simulations, building a true "digital twin" of specific real-world individuals requires dynamic data, behavioral fidelity, and actionable predictive power. Existing political datasets are often static or topically limited, failing to capture how politicians' views evolve over time.

The authors tackle this challenge by building a system that can accurately simulate individual U.S. congresspersons. This digital twin can predict real-world legislative dynamics—such as individual voting behaviors on upcoming bills—providing a powerful tool for stakeholders (like advocacy groups or analysts) to optimize resource allocation.

Methods

The authors define a four-part requirement for a digital twin: relevant/dynamic data, physical-to-virtual feedback, valuable inference, and virtual-to-physical feedback. Their implementation consists of:

  1. Persona Personalization: They use Meta's LLaMa-3-8B-Instruct as a base model and personalize it using a specific system prompt ("You are U.S. Congressperson {name}") combined with Retrieval-Augmented Generation (RAG) via nomic-embed-text-v1.5 to inject the politician's historical tweets.
  2. Fidelity Testing: They validate the model's realism using a statistical Turing test framework, where Fisher's Linear Discriminant (FLD) attempts to distinguish real tweets from model-generated completions.
  3. Vote Prediction via DKPS: To predict votes on a bill, they generate 20 policy questions using ChatGPT based on official bill summaries. The virtual congresspersons are prompted to write tweets answering these questions. The embeddings of these generated responses are projected into a low-dimensional Data Kernel Perspective Space (DKPS) via Multi-Dimensional Scaling (MDS). A $k$-nearest neighbor ($k$-NN) classifier is then trained on this space to predict roll-call votes.
  4. Flip Score Calculation: To determine who might break rank, they calculate a "flip score" based on the geometric distance in the DKPS between a Senator and the closest member of the House from the same party who crossed party lines on that bill.

Datasets

The paper introduces the Nomic Congressional Database, a new, daily-updated dataset containing over 3 million X (formerly Twitter) posts and retweets from official accounts of U.S. Congress members dating back to 2011. The dataset includes crucial metadata such as party affiliation, state represented, and timestamps.

Key Insights and Ideas

  • Synthesis Over Raw Retrieval: Simply analyzing a politician's past tweets (retrieval) provides poor predictive power for new bills. However, forcing an LLM to synthesize new responses to policy questions based on that persona uncovers latent ideological structures that closely align with actual voting behavior.
  • The Geometry of Ideology: The Data Kernel Perspective Space (DKPS) effectively maps political alignment geometrically. Proximity in this generated text space translates directly to shared political behavior, allowing for a purely distance-based metric to predict real-world party defections.
  • Bi-cameral Knowledge Transfer: Because bills pass through the House before the Senate, House votes can be used to calibrate the digital twin space, which can then successfully predict subsequent Senate behavior on the same bill.

Key Results

  • High Behavioral Fidelity: Incorporating RAG significantly reduced tweet detectability. The undetectability score ($\tau$) dropped from 0.57 (generic prompt) to 0.24 on average, meaning the generated tweets closely mirrored the style of their physical counterparts.
Detectability analysis of different generative systems
  • Accurate Vote Prediction: The DKPS method achieved a median accuracy of 0.87 across 13 pieces of legislation, vastly outperforming raw retrieved tweets (0.62) and performing comparably to strict party-line voting baselines (0.88)—while providing much better granularity when party-line predictions fail.
Average performance of four different methods for predicting voting behaviors
  • Quantifying Defections: The proposed "flip score" demonstrated a strong linear relationship ($R^2 = 0.84$) with the actual proportion of Senators who crossed party lines, proving that spatial proximity to cross-party voters in the model's embedding space correlates with real-world political defections.

Limitations and Future Work

  • Single-Source Bias: The model relies exclusively on Twitter/X data. This platform represents a specific type of public-facing communication and may lack the policy nuance found in campaign speeches, constituent emails, or C-SPAN transcripts.
  • No Interaction Modeling: The current system simulates isolated individuals. It does not model congressperson-to-congressperson negotiations, debates, or the collaborative process of drafting a bill.
  • Strategic Voting Anomalies: The model struggles with bills where politicians vote against their actual policy preferences for purely strategic reasons (e.g., voting "Nay" on a bill they favor because party leadership demands unified opposition).

Summary updated

BibTeX
@inproceedings{helm2026toward,
  author = {Hayden S. Helm and Tianyi Chen and Harvey McGuinness and Paige Lee and Brandon Duderstadt and Carey E. Priebe},
  title = {{Toward A Digital Twin of U.S. Congress}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.493},
}
Figure