Demos

Stylized toy illustrations of a few core ideas related to my work. See the papers for full details and real experiments.

Prediction-Powered Evaluation

Full model evaluations are often expensive (whether from human grading, long reasoning rollouts, or agentic tool calls), so running only n of them leaves wide confidence intervals. Cheap proxies (an autorater, a smaller model, or scores imputed from past runs of other models) can cover thousands of prompts cheaply, giving a tight interval that may be biased. Prediction-powered inference (Angelopoulos et al., 2023), closely related to the method of control variates (Ripley, 1987), combines both by using the n paired full evaluations to estimate and subtract the proxy's bias. That keeps the interval valid without trusting the proxy, while shrinking its width whenever the proxy correlates (r) with the true scores. We build on this for model evaluation by stratifying prompts when proxy accuracy varies (Stratified PPI), extending to Bayesian hybrid estimators (Bayesian PPI), actively selecting which prompts to evaluate (Cost-Optimal Active Evaluation), allocating budget across multiple proxies (MultiPPI), and imputing proxy scores from historical model runs via matrix completion (CollabEval).

To give some basic intuition, the toy plot below shows vanilla PPI for LLM evaluation, comparing 95% confidence intervals around a simulated 72% accuracy with a +9%-biased proxy. Drag n and r to see how a better-correlated proxy lets PPI match the precision of many more full evaluations for the same budget, while staying unbiased even when the proxy is off (and falling back to standard evaluation when r = 0).

100
0.80
Task: Estimate accuracy on 2,000 prompts (100 full evaluations + 2,000 proxy predictions, +9% bias)
Full evals only (95% CI): ±8.8% PPI (95% CI): ±5.5% Gain: 38% narrower

Papers: Stratified PPI · Bayesian PPI · Cost-Optimal Active Evaluation · MultiPPI · CollabEval

Model Routing as a Pandora's Box Problem

Given a query and a pool of specialist models, a router wants to pick the best one in terms of quality and cost. Accurately estimating how well each specialist will do, however, is often hard and costly itself. This has a clean analogy to the Pandora's Box problem (Weitzman, 1979). Each specialist starts with a cheap prior estimate f, and the router can pay c to query a more accurate value estimator g ("open the box"). Under obligatory inspection, Weitzman's optimal rule orders specialists by their reservation price r and stops as soon as the best refined estimate found so far beats the remaining reservation prices (in routing, we also handle the non-obligatory case where you can commit to a specialist sight-unseen). In the toy example with four specialists below, we pay c to query g on the first two, and once the Code Agent's refined estimate comes back at 0.84, we stop inspecting, and commit to using the Code Agent.

Sort the specialists by reservation price r, highest first.

Paper: Pandora's AI Model Routing Box

Model Routing via Auctions

An agentic market is a decentralized serving-time market where AI agents bid to claim each user prompt, and the winners are rewarded according to the quality of the responses they provide. Each responder privately estimates its expected quality and cost on the prompt, which the market has to elicit transparently without assuming agents are honest. Because it's decentralized, the market scales with the number of participants rather than the platform's ability to track them. The main design choice is how to allocate prompts from bids and what price to charge the winner. Much of the literature favors truthful mechanisms like second-price or VCG auctions, but in Trivedi et al. (2026) we analyze the simpler, more transparent first-price auction and show it still keeps most of the available welfare when providers compete closely. In the toy example below, three providers bid on a prompt, and the highest bidder serves it, gets rewarded for answer quality, and pays its bid to the market.

A user sends a query to the market.

Extensions to Sequential Auctions and LLM Workflows

For multi-step workflows, the same idea chains into a sequential market via the bucket brigade principle (Chang et al., 2020). Instead of a central orchestrator planning every step and assigning credit, each winning agent buys the current state from the previous agent in an auction, advances it, and auctions the new state to the next step. Terminal task rewards then flow backward through resale prices, paying each contributor for the value it added. Between zero-profit clone markets (where nobody has an incentive to participate) and no competition (where the market collapses), in Gemp et al. (2026) we show that under imperfect competition agents can learn to shade bids for positive margins while still solving tasks reliably and cheaply. The toy 3-step workflow below (Search → Code → Verify) sketches how state moves forward as payments flow back.

Step 1: Search providers bid for the user's task.

Papers: Price of Anarchy of First-Price Auctions in Agentic Markets · Decentralized LLM Workflows via Sequential Auctions

Adaptive Inference

Not every token needs a Transformer's full depth. After each layer, a cheap confidence score (like softmax margin or a small exit classifier) decides whether to skip the rest once it crosses a threshold λ. Because early-exit errors can compound autoregressively, CALM uses Learn then Test (Angelopoulos et al., 2021) on a calibration set to pick λ for a target tolerance δ, guaranteeing with probability at least 1−ε that expected sequence-level dissimilarity (e.g., ROUGE or BLEURT) or risk increase over the full model stays at most δ. More recently, we brought adaptive depth to looped architectures that reuse shared layers (Relaxed Recursive Transformers) and route each token to its own recursion depth (Mixture-of-Recursions). In the stylized 6-layer example below (from Fig. 4 of CALM), drag δ to see looser tolerances lower λ to exit earlier and eventually branch into an alternate summary.

0.10
Task: News summarization (adapted from Fig. 4 of CALM)
Full 6-layer output: "Grant Elliott hit a six to put New Zealand..."
Generating tokens with adaptive per-token depth
Calibrated exit threshold (λ): 0.88 Avg. layers: 2.3 / 6 Speedup: 2.6×

Papers: CALM (Google Research Blog) · Relaxed Recursive Transformers · Mixture-of-Recursions

Mitigating Reward Hacking

Aligning a language model against a learned reward or preference model (we can call this a proxy model) invites overoptimization. Often the proxy is trained on a fixed preference dataset, and its predictions can become unreliable outside the training data support. Naturally, this can become a risk during training as optimization drives the policy toward samples with higher and higher proxy scores (and potentially quite different from those found in the original preference data). If the proxy scores are inaccurate, true quality can rapidly collapse even as training scores continue to rise (reward hacking). A simple fix is to aggregate an ensemble of reward models, which in Eisenstein et al. (2024) we show mitigates hacking when members differ across pretraining seeds, yet still fails when all models share systematic blind spots. For offline alignment, where DPO can overfit finite preference data into degenerate policies, we distill a plausible family of reward models under a pessimistic objective (Fisch et al., 2025), and for online RLHF we formulate pessimistic policy optimization as a minimax game against a constrained adversarial preference model (Gupta et al., 2025). The diagram below contrasts the training loop and objective across these three approaches.

Step 1: Policy πθ samples responses y, gradually shifting outside the preference data support.
Proxy: Frozen after pre-fit Out-of-support: Blind spots exploited Failure mode: Overoptimizes at high KL

Papers: Helping or Herding? · Robust Preference Optimization · Pessimistic Policy Optimization

Conformal Risk Control

Conformal risk control extends conformal prediction (Vovk et al., 2005) from binary coverage to any loss that decreases as a threshold λ gets stricter, such as filtering low-confidence claims from an LLM response to bound its hallucination rate. Given a target risk α, we calibrate λ on held-out data so expected error stays at or below α on new prompts, trading completeness for reliability. We apply this to open-ended generation by calibrating when to stop sampling and which responses or claims to keep (Conformal Language Modeling), and to deciding when an LLM should abstain based on the consistency of its sampled answers (Conformal Abstention).

The toy example below illustrates claim-level factuality filtering. An LLM generates a draft biography that is split into atomic claims, each with a confidence score on the left. We drop any claim scoring below λ and stitch the surviving claims back into the returned response, calibrating λ so the expected false-claim rate stays at or below α. Drag α to see stricter targets filter out hallucinations (occasionally dropping a true claim too) while looser targets keep more claims at higher error risk. See Mohri & Hashimoto (2024) and Cherian et al. (2024) for some interesting follow-ups.

0.10
Prompt: "Write a short biography of Marie Curie."
Draft claims: keep claims with confidence ≥ calibrated cutoff λ
Calibrated cutoff (λ): 0.80 Claims kept: 4 of 6 Hallucinations kept: 0

Papers: Conformal Risk Control · Conformal Language Modeling · Conformal Abstention