Whip: Move the Vote
Whip turns Congressional activity into personal insight, using ML to predict how your representatives will vote on the bills that affect you.
Problem Statement & Impact
Most people have no practical way to know how their own representative will vote on a bill until after the vote has already happened, and by then there is nothing left to do about it. Trust in government has been falling for decades, from around 73% in the late 1950s to roughly 22% in 2024 by Pew's long-running measure, and only about one in six Americans now say they trust the government to do the right thing most of the time. At the same time, fewer than a quarter of people ever reach out to the representatives who are supposed to speak for them. Part of the reason is that following Congress is genuinely hard. Bills are long and deliberately opaque, a single omnibus can bundle dozens of unrelated provisions, and the updates coming out of Washington are constant, so most people tune out because the system feels too complicated to follow rather than because they don't care.
Whip is built to close that gap by moving engagement from after the vote to before it. Instead of asking people to wade through everything happening in Congress, we only surface the bills that actually matter to a given person, and we only prompt them when their representative is likely to vote against what they want, which is the moment where reaching out can still change something. We summarize what a bill would do in plain language, predict how each of a user's representatives is likely to vote before the roll call, and help draft the outreach message so speaking up takes a few clicks rather than an afternoon of research. In other words, we are trying to democratize the process of following a bill through Congress and give ordinary voters a real shot at influencing how their legislators vote, while there is still time for it to count.
Product & Features
Whip turns the abstract, high-volume flow of Congress into something a single constituent can actually track and act on. After a short one-time setup, users land on a dashboard built around the representatives who serve them and the bills most likely to matter to them, not the full docket of everything moving through the Hill.
- Personalized onboarding. Users enter their state and select the policy areas they care about , which Whip uses to filter which bills to display rather than dumping every active bill.
- Representative lookup. From zip code alone, Whip identifies a user's two senators and surfaces direct contact info, contact-form links, and phone numbers, pulled from official sources, so there's no separate search to find out who to write to.
- Customized bill feed. The dashboard shows only upcoming bills that match a user's selected policy areas, each with a plain-language title and metadata instead of the jargon-heavy text bills are usually published in.
- Vote prediction. For every bill in a user's feed, Whip predicts how each of their representatives is likely to vote, yea or nay, with a confidence score, so users know before the roll call whether their representative is on track to vote the way they want.
- Voting history. A companion view shows each representative's recent floor votes, giving users a track record to sanity-check predictions against.
- One-click outreach. When a prediction signals disagreement, Whip can auto-drafts a personalized message to the relevant representative that references the specific bill and the user's stated interest. Users can edit it, and copy it to paste directly in the contact form, turning what used to be an afternoon of research into a few clicks.
These features move the moment of engagement from after a vote, when nothing can be done, to before it, the only point where a constituent's voice can still change the outcome.
Technical Approach
Data:
- Member information and voting data obtained from voteview.com, a project maintained by UCLA for public use
- Bill content and metadata obtained from congress.gov, the official US govt site for tracking bills
- Historic and live bills pulled from the congress.gov api
Webapp:
- LLM summarization, vote prediction LLM model, and app backend deployed to same EC2 instance (Ubuntu, t3.small)
- Given this is just an MVP, we didn’t have concerns over competing compute between app and model. Something that would need to be addressed in future product iterations
- Not storing user data anywhere, local only; no notification capabilities
- UI is a plain static HTML/CSS/JS served by Express
- Server is a single node that serves static files and exposes a small REST API that proxies external calls to Congress.gov and GovTrack
- Internal service is a separate FastAPI for prediction routes. Can only be accessed by our Node server
- Deploys are git-based (manual pipeline)
- Zip → state references are static and loaded once at startup
- Legislator contact info fetched from US/congress-legislators GitHub and cached to a local JSON file on disk
- Security group only opens to admin IP and app ports are not internet-facing
Models:
- Baseline model: party-match
- Assuming a senator will vote with their party and against the opposition
- Classical models: logistic regression, linear SVM, histogram gradient boosting (HGB), multi-layer perceptron classifier (MLP), random forest
- Models selected to cover common classical approaches for prediction with varying model complexity
- LLM models: zero-shot, fine-tuned with QLORA, and auto-research
- Auto-research is like gradient descent for prompts instead of vectors. One LLM is tasked with predicting Yea and Nay votes for each representative, and a second LLM is tasked with adjusting the prediction prompt to maximize the prediction accuracy.
- Zero-shot yielded poor results and was not further implemented. Auto-research yielded promising results in limited settings, but was not economically or computationally viable for our MVP (training auto-research for one senator cost $30)
- For our fine-tuned approach, we used Phi-3-mini with QLoRA in order to keep computational costs down while still observing whether an LLM might yield promising results
Model Evaluation
All models–including the baseline model, classical models, and fine-tuned LLM model–were evaluated with accuracy, ROC-AUC, and overall efficiency in mind. We selected these metrics in order to balance interpretability, well-roundedness, and scalability. Training data was split 80/20 into training and testing sets, with cross-validation occurring within the training set for hyperparameter tuning. Data was further stratified in order to ensure that bills were discretized across datasets, i.e., the same bill could not be in both the training and testing set.
The best-performing model was Random Forest, with 85% accuracy and 92% ROC-AUC, in comparison with our baseline model at 79% accuracy and 80% ROC-AUC. All classical models had negligible training time, while the fine-tuned LLM model required 2 hours and 47 minutes to train on an A100 GPU. The good performance of our baseline model highlights the predictability of how current senators are voting–most of the time senators will vote for their party and against the opposing party. However, our results show that our other data features are further improving on the baseline. Beyond the party of the voting member and the sponsor of the bill, the most important features for the best model included word count, policy area, the stage the bill has reached, and ideological score per member.
Future Work
The most useful place to keep working is prediction quality, especially where the current model is weakest. Per-legislator accuracy is already fairly consistent, but a few legislators can be improved upon with some of the LLM-based approaches we described. There are also some bills that result in poor predictions: ones tied to unusually polarizing moments like war powers resolutions or a prolonged government shutdown, where a legislator's vote breaks from their usual pattern. Rather than push the single general model harder, we would train more targeted models for the bills our current model struggles with, and lean on LLM-based approaches for representatives.
There is also room to give the models more to work with. While bills have a single final version, it takes many iterations to get there. By using these prior versions, we might glean how as the language changes, votes per representative change accordingly. Additionally, we might be able to use public statements or a representative's own platforms as represented on their sites to improve our predictions.
