arXiv:2610.10848cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10848

Amortized Off-Policy Evaluation for LLMs

Younwoo Choi, Leo Feng, Vincent Liu, Haanvid Lee

ABSTRACT

Accurate evaluation is central to selecting which LLM to deploy, yet testing a candidate on live traffic exposes real users to an unvetted model. Teams therefore evaluate candidates offline, on data produced by already-deployed models. This is off-policy evaluation (OPE), and it faces two distribution shifts: as a model is updated in post-training, its responses diverge from the logged ones (policy shift), and the reward definition under which it is judged changes with business requirements (reward shift). Classical OPE methods are ill-suited to this continual-deployment setting because they are defined per task and require fitting from scratch on every new logged dataset or reward definition. To address this, we propose PFN-OPE, a prior-data fitted network that amortizes OPE across a distribution of contextual-bandit tasks. We pretrain it once on tasks constructed from a pool of LLM responses scored by several reward functions, in which both shifts occur. At test-time it maps a logged dataset and one sampled target response per prompt to a value estimate in a single forward pass, with no per-task fitting. On HelpSteer2 and UltraFeedback with Qwen, Llama, and Gemma policies, PFN-OPE achieves 2.0 to 9.3 times lower error than the best baselines across all tested configurations in the reward-shifted settings.

1 INTRODUCTION

Choosing which large language model (LLM) to deploy hinges on accurate evaluation (Zheng et al., 2023), yet testing a candidate on live traffic exposes users to an unvetted model. As such, candidates are often evaluated offline with logged data from previously deployed LLMs. A company has human-rated chat logs and wants to estimate the reward a candidate model would receive on the same conversations. The logs measure the deployed assistant, not the candidate. The candidate's responses differ from the logged ones, which we call policy shift, and the rubric the human annotators apply changes with the company's requirements, which we call reward shift. Answering the company's question from these logs is off-policy evaluation.

Off-policy evaluation (OPE) for LLM evaluation can be viewed as OPE on a contextual bandit, a one-step interaction in which a context arrives, a policy samples an action, and a reward is observed (Kallus et al., 2022; Wang et al., 2017). For an LLM, the context is the prompt, including any conversation history, the action is the response, and the reward is assigned to the response by an annotator or a reward model (Ouyang et al., 2022). The deployed model that produced the logs is the behavior policy, the candidate is the target policy, and its value is the expected reward it earns on the prompts. OPE estimates that value from the logs, which hold a reward for every behavior response and none for the response the target policy would give to the same prompt.

Three classical estimators exist — inverse propensity scoring (IPS), doubly robust (DR), and the direct method (DM) (Jiang & Li, 2016; Strehl et al., 2010; Dudik et al., 2011)— and the first two are out of reach for many popular LLMs. IPS and DR estimators need the probability of each logged response under both policies, which a black-box model does not expose, and the target policy's responses almost never recur in the logs, so the weights would have little to no support (Saito & Joachims, 2022). LLM evaluation therefore uses the DM: train a reward model on the logs and apply it to the target policy's responses (Ouyang et al., 2022; Gao et al., 2023). This has two costs. First, every new logged dataset or reward definition means training a new reward model. Each checkpoint of a post-training run is judged under a rubric that shifts with requirements, so each is a fit from scratch. Second, no reward model can be checked on the target policy's responses, whose rewards are unobserved — exactly where it must extrapolate. Both costs come from fitting one model to one logged dataset at a time.

Prior-data fitted networks (PFNs) remove the per-dataset fit (Müller et al., 2022; Hollmann et al., 2023; 2025). A PFN is a transformer pretrained on datasets sampled from a prior over tasks; given a new dataset and a query in context, it returns a prediction in one forward pass, so a new dataset is a new input rather than new training data. For OPE this offers two things the direct method lacks. The first is amortization (Cranmer et al., 2020): each new logged dataset is a new input to the same network. The second is generalization across the shifts: a reward model fitted to the logs must extrapolate to responses it has never seen, whereas a network pretrained on many tasks in which the target policy differs from the behavior policy has seen such shifts and learned how far the target value departs from the logged rewards. Neither comes for free, because a PFN is only as good as its prior, and no prior for OPE exists. The question is whether one can build a prior whose tasks capture the reward and policy shifts LLM evaluation faces.

We propose prior-data fitted network for off-policy evaluation PFN-OPE that maps a logged dataset and one sampled response per prompt from the target policy to an estimate of the target policy's value, in one forward pass and with no per-task fitting. Our key insight is that the label a PFN needs, the target policy's value, is unobservable on real logs but computable on tasks built from a pool of stored responses with rewards: when every policy is a distribution over the pool, every value is a weighted sum of stored rewards. We build the pool once, from several LLMs and several reward functions, and sample tasks from it in which both shifts occur: affine combinations of the reward functions play the role of new reward definitions, and reward-tilted reweightings of an LLM's responses play the role of post-trained policies. Pretrained on these tasks, the network learns to read the shift off the observation itself, how the target responses differ from the logged ones and what the logged rewards say under the current definition, and by the PFN argument it approximates the minimum-MSE estimator for tasks drawn from the prior.

Our contributions are:

• Amortized OPE via prior-data fitted in-context learning. One network maps a logged dataset and sampled target responses to a value estimate in one forward pass, with no per-task fitting. This is a new problem setting for PFNs: the input is a set of paired responses, one with a reward and one without, and the label is a functional of the whole set rather than the label of one query (Section 3.1).

• A task prior for LLM off-policy evaluation. Tasks are built from a pool of LLM responses with rewards from several reward functions: affine combinations of the reward functions as reward definitions, reward-tilted and routed policies as policy shifts, and target values computed from the pool (Section 3.2).

• Evaluation with LLM policies. On HelpSteer2 and UltraFeedback, PFN-OPE has the lowest MSE under all five reward definitions, four of them absent from pretraining, by 2.0 to 9.3 times over the best of the baselines. It has the lowest MSE in 11 of 12 behavior–target pairs when the target LLM and the reward model are both absent from pretraining (Section 4).

References (33)