arXiv:2610.34035stat.MLOct 2026

Manuscript Offprint

arXiv:2610.34035

Prior-Data Fitted Networks for In-Context Off-Policy Evaluation

Shuguang Yu, Ting Li, Fan Zhou

ABSTRACT

Off-policy evaluation (OPE) is essential for assessing decision policies before deployment when online experimentation is costly or unsafe. Accurate estimation remains difficult when behavior-policy data are limited and the target policy favors states and actions rarely observed in those data. We propose InCOPE, a prior-data fitted network that learns a shared policy-value prediction rule across synthetic OPE tasks. We construct an OPE task prior over Markov decision processes and behavior-target policy pairs, generating behavior-policy datasets and exact target-policy values for pretraining. For a new tabular decision problem, the pretrained network uses the behavior-policy dataset, target policy, and known task settings as context to predict the policy's expected return without task-specific parameter updates. Experiments across four tabular domains, including a semi-synthetic clinical setting, demonstrate InCOPE's effectiveness for policy-value estimation.

1 INTRODUCTION

Evaluating a decision policy before deployment is essential when online experimentation is costly or unsafe. This concern arises in applications such as healthcare and intelligent tutoring (Gao et al., 2023; 2024; Yu et al., 2024), online advertising (Xu et al., 2023), and ridesharing (Shi et al., 2024). Off-policy evaluation (OPE) estimates a target policy's expected cumulative return from trajectories collected under a behavior policy, without deploying the target policy.

A substantial body of work has developed importance-sampling, model-based and value-based, doubly robust, and marginalized-ratio estimators for OPE (Precup et al., 2000; Le et al., 2019; Jiang & Li, 2016; Liu et al., 2018). With limited offline data, however, states and actions frequently visited by the target policy may be poorly represented, particularly under substantial behavior-target policy mismatch. Importance weighting can then suffer from high variance, while model-based and value-based methods can produce inaccurate estimates for poorly observed state-action pairs (Le et al., 2019; Liu et al., 2018). These difficulties motivate using knowledge acquired from related decision problems to improve value estimation with limited current-task data.

Pretraining can encode cross-task knowledge in an estimator's parameters. Prior-data fitted networks (PFNs) learn from synthetic datasets sampled from a task prior (Müller et al., 2022; Nagler, 2023), with applications to tabular prediction (Hollmann et al., 2025), causal inference (Ma et al., 2026), and policy learning (Schiff et al., 2026; Zighem & Vie, 2026). For OPE, however, extending PFNs to the evaluation of state-dependent target policies remains unexplored, to our knowledge. The challenge is to infer a specified target policy's cumulative return from finite behavior-policy observations, accounting for how its actions and transition dynamics jointly determine that return.

To bridge this gap, we introduce InCOPE (In-Context Off-Policy Evaluation), a prior-data fitted network for OPE. We learn to predict target-policy returns from behavior-policy observations by pretraining on finite datasets paired with exact target-policy values, generated from Markov decision processes (MDPs) and policy pairs sampled from a task prior. The network encodes mean rewards and visit counts for each state-action pair, then combines target-policy-weighted aggregation with repeated propagation through estimated transitions. This incorporates successor-state information under the queried policy, connecting observed local statistics to multi-step returns. At

∗^{*}Corresponding author. Email: zhoufan@mail.shufe.edu.cn test time, the frozen network returns a value estimate in a single forward pass without additional environment interactions. We focus on finite tabular MDPs, which allow exact reference policy values and controlled comparisons across task distributions.

We summarize our contributions as follows.

• We introduce InCOPE, a prior-data fitted network that learns a shared policy-value prediction rule across synthetic OPE tasks. The pretrained network estimates target-policy values in new tasks from historical data collected under behavior policies, without task-specific parameter updates.

• We formulate a joint prior over MDPs, behavior and target policies, and observed trajectories, and characterize the Bayesian policy-value predictor targeted by prior fitting.

• Our empirical results across four structurally distinct tabular OPE task families show that InCOPE improves policy-value estimation relative to representative OPE estimators when behavior-policy data are limited and behavior and target policies differ substantially.