Manuscript Offprint
arXiv:2610.23436Generative Policy Improvement from Observational Data
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
We study how to improve decision policies from observational data to generate better actions when actions are complex, structured objects, such as text messages or images. This task is subject to two major challenges: (i) action-level overlap is often too weak for reliable off-policy evaluation and improvement, and (ii) generating new structured actions often requires expensive training or fine-tuning (e.g., of an LLM) and can be ill-defined due to information loss in action representations. To address both, we propose POLICYLIFT, a three-stage framework for generative policy improvement with structured actions from observational data. In Stage 1, POLICYLIFT learns a small set of discrete action codes that capture high-level strategies in the observed action space and are tailored to support policy improvement under limited overlap. In Stage 2, it learns a context-dependent policy over these action codes. At deployment time, Stage 3 “lifts” the learned code-level policy back to the original action space by generating actions from the historical behavior system in a code-conditioned way. We show theoretically that improving the policy over action codes guarantees improvement of the induced policy in the original action space. We demonstrate POLICYLIFT across experiments in synthetic and real-world text generation tasks with consistent policy improvements over the behavior policy.
1 INTRODUCTION
Learning decision policies from observational data, i.e., off-policy learning (OPL), asks how to improve a behavior policy using logged interactions rather than new online experiments (Athey & Wager, 2021; Dudík et al., 2014; Kallus et al., 2022; Swaminathan & Joachims, 2015). Existing work studies off-policy evaluation (OPE) and OPL primarily under relatively simple action spaces, such as binary, categorical, or low-dimensional interventions, where actions correspond to choices like whether to treat a patient, which product to recommend, or which price to offer (Kitagawa & Tetenov, 2018; Athey & Wager, 2021; Kallus et al., 2022). In many modern systems, actions are complex and high-dimensional; for example, an online platform can generate a personalized headline or advertisement (Matias et al., 2021; Meguellati et al., 2024) or a mental health support system may suggest an empathic reply in an online peer-support conversation (Sharma et al., 2023).
We study OPL for such complex action spaces. Given logged triples from a behavior policy, where X is a context, A is an action, and Y is an observed outcome, the goal is to learn a target policy that can generate improved structured actions at deployment time. In online mental health support, X may encode the help-seeker's post and conversation history, A is a generated or suggested supportive response, and Y measures empathy, engagement, or conversation quality. In headline optimization, X may encode an article excerpt, A is a generated headline, and Y is reader engagement.
However, such complex, high-dimensional actions are often implicitly generated by a latent lower-dimensional structure, such as how style and content might be used to generate a specific supportive
*EB is currently also a researcher at Google DeepMind. EB conducted this research solely in their capacity at Stanford. Google DeepMind had no involvement in the research or preparation of this manuscript.
exercise suggestion. In these settings, policy improvement requires not selecting over a small discrete set of actions, but generating high-dimensional, complex actions like such messages. Two challenges make this substantially harder than standard off-policy learning:
① Limited overlap. OPE and OPL require overlap (Dudík et al., 2014; Kallus et al., 2022), which means that the behavior policy covers the actions a new target policy would select. For complex actions, this is often implausible: the behavior system concentrates on a vanishingly small subset of the action space for each context. Even when the behavior system is stochastic, the randomness is often local and thus does not induce meaningful coverage across qualitatively different actions. Existing approaches to limited overlap either constrain the policy class (Kallus, 2021; Schweisthal et al., 2023; Zhao et al., 2024) or optimize conservative objectives (Jin et al., 2025), but these operate in the original action space and cannot resolve the fundamental coverage gap in high-dimensional structured spaces.
② Information loss. It is unclear a priori how to learn action representations that both make overlap plausible and still allow mapping coarse latent actions back to raw actions. A representation-level decision (e.g., a text style) is not yet a deployable action: deployment still requires a specific response in the original action space (e.g., natural language). Prior work learns improved policies in a subspace of the actions (Saito & Joachims, 2022; Peng et al., 2023), but if the representation does not fully mediate the effect of the action on the outcome (Saito et al., 2023), instantiating raw actions (e.g., via a decoder) can induce a systematic mismatch between the value optimized in representation space and the value delivered in the original action space. We formalize this later as a deployment gap.
To address these challenges, we propose POLICYLIFT, a framework for generative policy improvement from observational data. POLICYLIFT first maps each observed action to a discrete action code, where codes represent high-level action strategies that are easier to compare, estimate, and optimize under limited overlap. Next, it learns a context-dependent policy over these codes using standard off-policy learning tools. Finally, it lifts the learned code-level policy back to the original action space by using the behavior system itself as a generator. We call this behavior-consistent lifting (BCL) and show that, when the behavior system is sampled until an action with the target code is found, BCL eliminates the deployment gap, so improvements in true code-level value transfer exactly to the deployed policy over structured actions.
Our contributions are the following. (i) We formulate OPL with generative structured actions, where the target policy must generate new actions rather than select from a fixed action set, and propose POLICYLIFT to address this setting. (ii) We derive various theoretical guarantees for our framework. In particular, we prove that improving the policy over action codes guarantees improvement of the induced policy in the original action space. (iii) We empirically validate our theory and show that POLICYLIFT improves over baselines in LLM-based text generation tasks.
Table 1: Legend. addressed; not addressed; partially addressed; assumed or not enforced; not applicable.
| Unseen structured actions | Learned repr. | Overlap controlled | Learns policy | Generative deployment | |
|---|---|---|---|---|---|
| Overlap-constrained OPL (Kallus, 2021; Schweisthal et al., 2023; Zhao et al., 2024; Jin et al., 2025) | ✕ | - | ✓ | ✓ | - |
| Action embeddings / MIPS (Saito & Joachims, 2022; Saito et al., 2023) | ✕ | (✓) | (✕) | ✕ | ✕ |
| PoTEC (Saito et al., 2025) | ✕ | (✓) | (✕) | ✓ | ✕ |
| Learned action embeddings (Peng et al., 2023; Cief et al., 2024) | ✕ | ✓ | (✕) | ✕ | ✕ |
| Prompt-guided generation (Kiyohara et al., 2025) | (✓) | ✕ | (✕) | ✓ | ✓ |
| POLICYLIFT (ours) | ✓ | ✓ | ✓ | ✓ | ✓ |
OPE/OPL with complex action spaces (an extended related work is in Appendix B). Several works extend OPE and OPL beyond binary or categorical actions. For continuous actions, semiparametric and doubly robust methods learn policies without discretizing the action space (Kallus & Zhou, 2018; Demirer et al., 2019). For OPE in large action spaces, action-embedding methods replace action-level propensities with marginalized propensities (MIPS) over embeddings to reduce variance (Saito & Joachims, 2022), potentially also accounting for residual variance within clusters (OffCEM, (Saito et al., 2023)). PoTEC extends this idea to OPL by decomposing the policy into cluster selection and within-cluster action selection (Saito et al., 2025), using pre-defined clusters or a separate method to a priori perform action clustering (e.g. Peng et al., 2023). These methods operate on a fixed, enumerable action set, and do not extend to the generation of new structured actions. Other approaches learn action groups or action embeddings from logged data (Peng et al., 2023; Cief et al., 2024). However, these methods target OPE, not OPL, and assume sufficient overlap in the learned representation. In contrast, POLICYLIFT learns action codes that encourage overlap, optimizes a policy over those codes, and generates code-conditional structured actions by sampling from the behavior system.
Closest to our setting is Kiyohara et al. (2025), which studies OPL for sentence generation, but where the logged action is an observed discrete prompt and deployment uses a frozen generator (behavior system) to map prompts to text. In contrast, POLICYLIFT learns a code policy from logged structured actions without requiring logged prompts, and deploys it using only sampling access to the behavior system.

Figure 1: Overview. Generative policy improvement from observational data with complex, structured actions.
3 PROBLEM SETUP
Off-policy learning. We consider the standard setup for policy learning from observational data (Dudík et al., 2014; Athey & Wager, 2021; Kallus et al., 2022). We observe i.i.d. data generated by a historical behavior policy , where is a context, is a structured action such as an LLM-generated text, and is an outcome. Importantly, we do not assume a fixed pre-defined set of finite actions. We let denote the potential outcome under action (Rubin, 1974). For any policy over , the policy value is , . In addition to logged data, we assume sampling access to the behavior policy at deployment time: given a context , we can draw candidate structured actions from , but we do not require access to its weights, likelihoods, or training data. This captures settings where the historical behavior system is available as a black-box generator. Our goal is to learn a target policy that can generate complex raw actions at deployment.
Identification. We adopt the standard identification assumptions for OPL (Rubin, 1974; Athey & Wager, 2021), namely, consistency (i.e., ) and ignorability (i.e., for all ). Under these assumptions, the conditional expected potential outcome is identified by the regression function , and the value of any target policy satisfies with . In addition, identification of for a target policy requires overlap (also called positivity or common support) (Rosenbaum & Rubin, 1983; Imbens & Rubin, 2015; D'Amour et al., 2021), namely, the behavior policy covers the support of ; i.e., for -almost all , whenever . Overlap violations bias value estimates (Felicioni et al., 2022; Sachdeva et al., 2020), and weak overlap inflates the variance of importance-weighted estimators (Saito & Joachims, 2022; Sachdeva et al., 2024; Crump et al., 2009) and the extrapolation error of regression-based ones (Farajtabar et al., 2018; Voloshin et al., 2021).
4 POLICYLIFT FRAMEWORK
Overview: We propose POLICYLIFT, a three-stage generative framework for policy improvement from observational data over structured action spaces. Figure 1 shows the framework, which separates policy learning from action generation. Briefly, in Stage ①, we encode each observed action into a discrete action code via a tailored learned encoder. This maps the high-dimensional structured action space to a low-dimensional code space where overlap is more plausible. In Stage ②, we learn a context-dependent code-level policy from the induced data . In Stage ③, we deploy through our so-called behavior-consistent lifting: for a target code sampled from , we draw candidate actions from the behavior system and return an action whose code matches the target. This makes the learned policy generative: POLICYLIFT outputs a deployed policy sampler over original structured actions. Algorithm 1 shows the pseudocode.
Stage ①: Learning action codes. Stage 1 learns an encoder that maps each action to a discrete action code , with induced code-level behavior policy . Encoder learning targets two properties that determine the value of the code-level policy learning in Stage 2, namely the code should be (i) predictive of the outcome, and (ii) the code-conditional context distribution should overlap with the marginal. We describe both below:
• (i) Predictiveness. The code should be predictive of given , i.e., the code regression function should vary meaningfully across . If carries no information about beyond , no code-level policy can improve over . Thus, the underlying variation determines how much a code-level policy can improve over the behavior policy.
• (ii) Overlap. The code-level overlap assumption needed for policy learning and deployment is formulated wrt. the behavior code propensity . Stage 1 uses a distributional surrogate for this assumption instead: the code-conditional context distribution should be close to the marginal for each code . These two notions are related by Bayes' rule. Let . Whenever (i.e., is absolutely continuous with respect to , so it assigns no mass outside the support of ), we aim for for -almost all . Thus, in the ideal balanced case , the code propensity is context-independent, . More generally, distributional balance controls how much code propensities vary with , while marginal code balance controls whether any code is globally rare. This balance reduces extrapolation when code-level outcome regressors are evaluated under the marginal context distribution.
Objective. We learn the action encoding by minimizing a trade-off between the two properties,
Here is an outcome predictor, is an empirical distributional distance such as sliced Wasserstein, and is the empirical marginal distribution of learned codes. The trade-off weight balances attainable value against finite-sample reliability, while prevents globally rare or empty codes (and a trivial single-code minimizer of the overlap term).
Stage ②: Learning a code-level policy. Given the encoder from Stage 1, we re-encode the logged actions as and learn a code-level policy on .
• Feasible policy class. For a threshold , we restrict to
This constraint is the pointwise code-level overlap condition used for policy learning and deployment. The Stage 1 distributional and marginal-balance regularizers make the constraint easier to satisfy by encouraging code propensities to be less context-dependent and not globally rare. However, these regularizers are only surrogates: distributional balance alone does not imply a uniform lower bound on .
• Objective. We learn by maximizing a regression-adjusted (RA) value estimator
(3) where is a learned regressor for . We use RA rather than IPW or DR estimators because Stage 1 directly regularizes the context regions on which the code-level regressors are evaluated (Theorem (5.6)).
Stage ③: Behavior-consistent lifting. The learned code-level policy is not itself a deployable policy yet: at deployment time, the system must output a concrete action . We propose a simple but effective solution as follows. For a context , Stage 3 first selects a target code given the learned code policy , then generates an action whose code is by behavior-consistent lifting: we sample and accept the first draw with . In practice, we cap the number of draws at and fall back to if no match is found. The threshold also controls deployment cost: for supported target codes, the expected number of draws scales as , and the feasible class keeps this quantity bounded.
5 THEORETICAL ANALYSIS
Algorithm 1: POLICYLIFT
Input: logged data ; number of codes ; overlap weights ; threshold ; draw budget .
Output: deployed policy sampler .
1 Stage ①: Learn action codes
2 Fit encoder and outcome predictor
3 Re-encode logged actions:
4 Stage ②: Learn code-level policy
5 Fit code-level regression on
6 Solve
7 Stage ③: Deployment at context
8 Sample target code
9 for do
10 Sample
11 if then
12 return
13 return an independent draw from
We now analyze three key properties of POLI-
CYLIFT: (1) behavior-consistent lifting makes a code-level policy deployable in the original action space without changing its value; (2) predictiveness of action codes determines the attainable improvement of code-level policy learning; and (3) regression-adjusted policy learning with balanced action codes to reduce extrapolation error. Together, these results justify the three design choices of POLICYLIFT: behavior-consistent lifting, predictive code learning, and overlap regularization. All proofs are in Appendix C.
5.1 BEHAVIOR-CONSISTENT LIFTING
We first analyze Stage ③. The key quantity is the potential value difference between the code-level policy and the deployed action-level policy. We define an instantiation rule (i.e., decoder or generator) as a conditional distribution over actions given a context-code pair. Combined with a code policy , it induces a deployed policy on actions (Saito et al., 2025) .
Behavior-consistent lifting corresponds to , the within-code behavior distribution. We denote the resulting deployed policy by
The acceptance loop used by POLICYLIFT implements this instantiation rule exactly in the ideal uncapped case: Proposition C.4 in Appendix C.4 shows that accepting the first draw from whose code equals returns a sample from . Thus, behavior-consistent lifting is not an additional learned decoder, but a sampler of the within-code behavior distribution.
Theorem 5.1 (Value under code-based deployment). Under consistency and ignorability, for any code policy and instantiation rule , the policy value at deployment is given by
where , . In particular, if , or if is constant over actions receiving mass within code .
This condition is analogous to Assumption 3.2 of Saito & Joachims (2022): the action embedding fully mediates the effect of the action on the outcome.
Intuitively, Theorem 5.1 decomposes deployed value into (i) the code-level policy value and (ii) the deployment gap, which measures how the instantiation rule changes the within-code action distribution relative to the behavior system. The deployment gap can be nonzero whenever reweights actions within a code in a way that changes their expected outcomes. Our behavior-consistent lifting avoids this issue by setting directly. Consequently, Theorem 5.1 gives , so the deployment gap vanishes: the value optimized at the code level matches exactly the value achieved after deployment, as shown in the following corollary:
Corollary 5.2 (Value equivalence). Under consistency and ignorability, for any satisfying code-level overlap, the behavior-consistent deployed policy from Eq. (4) satisfies .
Corollary 5.2 makes code-level policy learning a valid deployment target: a policy can be optimized and evaluated in the simpler code space, and the same improvement value is realized when the policy is lifted back to the original structured action space. In particular, any code-level improvement transfers directly to a deployed improvement over the behavior policy in the original action space.
Corollary 5.3 (Improvement transfer). Under the conditions of Corollary 5.2: if , then .
Behavior-consistent lifting also has bounded expected sampling costs. For a target code , the number of behavior-system samples required for acceptance is controlled by the code propensity . Therefore, the overlap threshold ensures code-level support while also bounding the expected number of behavior-system samples required in expectation, with providing an additional safeguard on worst-case cost.
Lemma 5.4 (Sampling cost). For a target code at context , the expected number of draws from until is . For , this is bounded by .
5.2 PREDICTIVENESS AND THE ATTAINABLE CODE-LEVEL VALUE
We next lower-bound the attainable code-level policy value in terms of the predictive power of . Let denote the context-only regression. The baseline value of the behavior policy is . The best attainable code-level value under encoder is the oracle value
where the supremum is over code policies assigning mass only to codes with , and the second equality follows by linearity in . We define the predictiveness signal of the encoder as the conditional variance of the code regression, i.e., i.e., . If is conditionally constant given , then almost surely and ; in that case, we have , and no code-level policy can improve over the behavior policy.
Theorem 5.5 (Predictiveness implies value potential). Assume a.s. for some . Then, admits the equivalent characterizations
and the oracle value in Eq. (6) satisfies the lower bound
The second equality in Eq. (7) identifies as the reduction in optimal prediction error when predicting Y from instead of from X alone. Learning to make the induced code predictive of Y, i.e., to reduce the MSE of predicting Y from , therefore increases . The inequality in Eq. (8) then translates this signal into attainable improvement over the behavior policy. This directly relates to the predictiveness term in the Stage ① loss.
The deployment gap can be positive if the instantiation rule improves over the code-level policy value; PoTEC (Saito et al., 2025) uses a two-stage OPL approach that exploits this for a finite, enumerable action set. However, in complex structured action spaces such as text, new actions must be generated for a new context x. The key challenge is that can then place mass outside the within-code support of , making the deployed value not identified from logged data when this occurs with positive probability under the learned policy (Proposition C.2). The deployed policy can then be even worse than the original behavior policy.
Theorem 5.5 has a different focus from existing OPE analyses for action embeddings or clusters (Saito & Joachims, 2022; Saito et al., 2023; Peng et al., 2023). Existing analyses characterize estimator bias, variance, or MSE under embedding-mediation, local-correctness, or within-group outcome-similarity conditions; here, we lower-bound the value attainable by code-level policy learning in terms of an MSE-reduction signal.
5.3 OVERLAP AND RA ESTIMATION ERROR
Recall that code policy learning proceeds by first estimating the outcome regressor and then producing a code-level policy by maximizing (or soft-maximizing) this function for a given input context. The central challenge for regression is extrapolation. The code regressor is fit on contexts drawn from , but the RA value estimator from Eq. (3) integrates against the full marginal weighted by . If is far from for some code, learning requires extrapolating to context regions with few or no logged observations under code . Let denote the prediction error. To quantify how this extrapolation inflates the estimation error of , we posit the following shift bound, which relates prediction error under to prediction error under :
for some distance on distributions over and a constant Recall is the true value of . We can upper bound the RA estimation error into the prediction error on the code-conditional distribution, by an overlap penalty measuring the total distance between and the code-conditional distributions , and a standard sample-complexity term:
Theorem 5.6 (RA estimation error under limited overlap). Assume a.s. and for all . Let be independent of the evaluation sample (e.g., via cross-fitting), let be a finite code-policy class, and assume Eq. (9) holds. Then, with probability at least , simultaneously for all , it holds that
Note the overlap penalty is propensity-free: depends only on the empirical distributions of and , so it can be minimized directly during representation learning. This justifies the second term of the Stage ① loss. Theorem 5.6 is unlike prior work on OPE under limited overlap, which focuses on variance inflation of importance-weighted estimators (Crump et al., 2009; Dudík et al., 2014; Farajtabar et al., 2018; Swaminathan & Joachims, 2015; Voloshin et al., 2021); in contrast, our theorem characterizes RA extrapolation error and adapts the balanced-representation bound (Johansson et al., 2016; Shalit et al., 2017) to learned discrete codes and code-level policy value.
6 NEURAL IMPLEMENTATION
We describe a neural implementation of POLICYLIFT. We provide a full pseudocode with implementation choices in Appendix H in Alg. 2.
Stage ①: Learning action codes. For learning the encoder , we use a two-branch network. The action branch maps A to logits over and applies a Gumbel–Softmax layer (Jang et al., 2017) to obtain a differentiable code vector during training; at inference, we take the arg-max to obtain discrete codes. The context branch produces an embedding , which we concatenate with and feed into an outcome predictor trained with MSE. For the overlap distance , we use the sliced Wasserstein distance (Kolouri et al., 2019) on minibatches of , comparing the pooled distribution to each within-code distribution ; we stop gradients through in this term, so that the overlap penalty adjusts code assignments via rather than by distorting the context representation. Because the overlap term is minimized trivially by collapsing all actions into
Standard choices include Wasserstein-1 (under Lipschitzness of ) or kernel MMD (under RKHS control of ) (Johansson et al., 2022).
a single code, we add a marginal code-balance penalty , where is the empirical code histogram in the minibatch. The total Stage 1 loss is thus .
Stage ②: Learning a code-level policy. To fit the code-level regression , we initialize the predictor from Stage 1 and fine-tune the prediction head on with the encoder frozen, reusing the Stage 1 representation while adapting the head to hard codes. We then define the code-level policy by , where is a propensity proxy fit by cross-entropy on . Using the estimated propensity, this approximates the feasible-class constraint while optimizing the regression-adjusted objective in Eq. (3).
Stage ③: Deployment. For deployment at context x, we select the target code greedily as . We then run the acceptance loop of Algorithm 1 with budget . Since the policy optimization already restricts to supported codes satisfying , no additional overlap fallback is required at deployment. The cap still controls worst-case deployment cost and limits deviation from the behavior policy when matching target codes is difficult.
7 EXPERIMENTS
We evaluate POLICYLIFT in three steps. ① We use synthetic experiments to test the theoretical properties of behavior-consistent lifting, outcome-predictive code learning, and overlap-aware code learning. ② To show the modularity of POLICYLIFT, we evaluate the policy improvement across three datasets while varying the Stage ① code and Stage ② policy learning objective. ③ We assess practical applicability on a challenging, realistic, public language-generation benchmark and compare against prompt-based methods with additional information.
Datasets. For evaluation, we use three datasets that progress from isolated mechanisms to fully realistic generated text. (i) Our synthetic DGP uses numeric structured actions and separately controls within-code reward variation, code predictiveness, and overlap (Appendix D). (ii) We construct a headline generation benchmark that combines real article contexts with GPT-5.4 mini-generated headline actions and a controlled reward function. We use MiniLM embeddings with constructed simulator features (Appendices E and H.1) to ensure that a learnable signal can be retrieved from the noisy data. (iii) We test on the public OfflinePrompts (Kiyohara et al., 2025) benchmark that provides a MovieLens-based personalization benchmark with Mistral-generated text and a public reward simulator trained on real-world user responses. Here, POLICYLIFT learns from context, generated text, and reward and does not require observing the generating prompt like other methods (Appendix F).
Baseline. Related methods (Saito & Joachims, 2022; Saito et al., 2023; 2025) are not directly applicable due to important differences; these works (a) have mostly used a large but finite action space, which prevents generating new actions (e.g., the

Figure 2: Synthetic experiments. (a) Deployment; (b) predictiveness; (c1–c2) overlap. (a,b,c1) Policy improvement (higher better); (c2) RA estimation error (lower better). 5 seeds, std errors where available. Each diagnostic fixes other stages; see Appendix D.4.
within-cluster policy of PoTEC (Saito et al., 2025)); or (b) make additional assumptions such as access to an observed discrete action cluster (like discrete prompt strategies (Kiyohara et al., 2025)) or are OPE methods rather than OPL (Saito & Joachims, 2022; Saito et al., 2023). However, to demonstrate the modularity of our framework, we show we can integrate the aforementioned methods into POLICYLIFT for extending them to generative policy learning. We proceed as follows: For Stage 1, we replace the codes learned with our full objective with random codes, k-means codes, or predictive-only codes ( ), while keeping RA and behavior-consistent lifting. For Stage 2, we retain the proposed codes but use code-IPS, code-DR, or kernel-IS objectives to directly adapt the methods from OPE MIPS (Saito & Joachims, 2022), OPE OffCEM (Saito et al., 2023), and sentence-level importance weighting (Kiyohara et al., 2025). On OfflinePrompts (where additionally prompt strategies are observed), we also compare with prompt-based regression and DSO (Kiyohara et al., 2025). These baseline can use prompt information that is unavailable to POLICYLIFT. Appendix H.1 describes the implementations. Our primary metric is policy improvement over behavior, . Tables report mean standard error over five seeds.
① Validation of theoretical properties. Figure 2 isolates the following three mechanisms (see Appendix D.4 for details): (i) To compare BCL against alternative decoding (uniform, context-free, and learned decoding), we vary within-code reward effects with oracle codes fixed. (ii) To isolate the effect of the code quality, we vary the predictive signal with oracle Stage 2 optimization. (iii) We vary logging-policy concentration to examine overlap and estimation error. Findings: (i) BCL preserves code-policy value and guarantees improvement while alternative decoders show the deployment gap, i.e., even value deterioration (Figure 2, (a)). (ii) Outcome-predictive codes increase the value, i.e., enabling larger policy improvement (Figure 2, (b)). The overlap diagnostic demonstrates the tradeoff between representation quality (predictiveness) and reliable policy learning (stage 2 error) (Figure 2 (c)), showing the code value in theory for improvement (c1), and how consistently we can learn a good policy on these codes from finite data (c2). The experiments demonstrate the importance of our three main modeling choices: predictive codes, support-constrained policy learning, and behavior-consistent lifting.
② Modularity and policy improvement. Table 2 shows results for various configurations of POLICYLIFT. Importantly, we show positive mean improvement for every configuration of POLICYLIFT on all three datasets. Hence, POLICYLIFT is flexible and can be combined with various stage 1 and 2 alternatives to extend them for genera-
Table 2: POLICYLIFT ablations. Policy improvement ( ); cells report mean SE over 5 seeds. Green: proposed configuration. Red: mean SE intervals entirely below proposed. Gray: overlapping intervals.
| Variant | Synthetic | Headlines | Offline Prompts |
|---|---|---|---|
| Proposed: | |||
| Pred.&bal. codes + Code-RA | 0.1579 ± 0.0083 | 0.0482 ± 0.0095 | 0.1332 ± 0.0034 |
| Stage 1: code replacement | |||
| Random | 0.0049 ± 0.0040 | 0.0400 ± 0.0084 | 0.0116 ± 0.0019 |
| k-means | 0.0015 ± 0.0040 | 0.0219 ± 0.0000 | 0.0902 ± 0.0036 |
| Predictive only | 0.1547 ± 0.0076 | 0.0059 ± 0.0026 | 0.1498 ± 0.0280 |
| Stage 2: objective replacement | |||
| Code-IPS (Saito & Joachims, 2022) | 0.1437 ± 0.0115 | 0.0522 ± 0.0058 | 0.1031 ± 0.0053 |
| Code-DR (Saito et al., 2023) | 0.1334 ± 0.0257 | 0.0529 ± 0.0063 | 0.1088 ± 0.0030 |
| Kernel-IS (Kiyohara et al., 2025) | 0.1083 ± 0.0229 | 0.0448 ± 0.0095 | 0.1112 ± 0.0086 |
tive policy improvement. Between the configurations, we observe the following: ① Code learning: Our proposed code learning improves over the behavior policy and achieves higher mean improvement than methods without predictiveness (k-means, random) across all datasets. Additional balancing improves on the synthetic and semi-synthetic datasets with challenging overlap, with an increase in improvement on the headline data from 0.0059 to 0.0482, and stays competitive for OfflinePrompts. ② Policy learning: With our proposed codes fixed, our proposed RA objective achieves the highest improvement on synthetic data and OfflinePrompts, and remains competitive with the alternative objectives on headlines. Our proposed configuration is a very strong default, and our POLICYLIFT also can extend alternative estimators to produce effective generative policies.
③ Policy improvement without logged prompts. Offline-Prompts tests whether the framework remains effective on fully realistic generated text even beyond our carefully designed headline benchmark. Table 3 compares the same proposed configuration against methods that evaluate and select different prompts that generated the text explicitly; hence, POLICYLIFT uses strictly less information than the baselines. POLICYLIFT increases the policy value from 0.1031 to 0.2363, a relative improvement of approximately . Its mean exceeds prompt-based regression, and compares similarly to DSO; however, DSO suffers from higher variation across seeds. POLICYLIFT demonstrates clear policy improvement and strong performance also in challenging realistic settings and even despite access to less information.
Table 3: OfflinePrompts. Policy value ( ), mean SE over five seeds. Green: POLICYLIFT. Red: behavior. Gray: references using additional prompt information unavailable to POLICYLIFT; their mean SE intervals overlap its interval.
| Method | Policy value |
|---|---|
| Behavior policy | 0.1031 ± 0.0000 |
| POLICYLIFT | 0.2363 ± 0.0034 |
| Information-advantaged references | |
| Prompt-based regression | 0.2266 ± 0.0109 |
| DSO-style prompt policy | 0.2684 ± 0.0458 |
Discussion. We prove theoretically and show empirically that POLICYLIFT improves policies with structured actions by learning in a supported code space and deploying through behavior-consistent lifting, which removes the deployment gap. Our framework has two main limitations: it requires sampling access to the behavior system at deployment time, and preserves the within-code behavior distribution but does not optimize among actions with the same code. Future work could study less conservative lifting rules, further improved code representations, and online deployed evaluations of rolled-out policies beyond public benchmarking, such as A/B testing in personalized online marketing. To avoid negative impacts, we emphasize that deployment must be done in a safe, ethical, and reliable manner.
FUNDING STATEMENT
This work has been supported by the German Federal Ministry of Education and Research (Grant: 01IS24082).
REFERENCES
Susan Athey and Stefan Wager. Policy learning with observational data. Econometrica, 89(1):133–161, 2021.
Jiayu Chen, Bhargav Ganguly, Yang Xu, Yongsheng Mei, Tian Lan, and Vaneet Aggarwal. Deep generative models for offline policy learning: Tutorial, survey, and perspectives on future directions. Transactions on Machine Learning Research, 2024.
Matej Cief, Jacek Golebiowski, Philipp Schmidt, Ziawasch Abedjan, and Artur Bekasov. Learning action embeddings for off-policy evaluation. In European Conference on Information Retrieval, pp. 108–122. Springer, 2024.
Richard K Crump, V Joseph Hotz, Guido W Imbens, and Oscar A Mitnik. Dealing with limited overlap in estimation of average treatment effects. Biometrika, 96(1):187–199, 2009.
Mert Demirer, Vasilis Syrgkanis, Greg Lewis, and Victor Chernozhukov. Semi-Parametric Efficient Policy Learning with Continuous Actions. In NeurIPS, 2019. URL https://arxiv.org/pdf/1905.10116.
Miroslav Dudík, Dumitru Erhan, John Langford, and Lihong Li. Doubly Robust Policy Evaluation and Optimization. Statistical Science, 29(4), 2014. ISSN 0883-4237. doi: 10.1214/14-STS500. URL https://arxiv.org/pdf/1503.02834.
Alexander D'Amour, Peng Ding, Avi Feller, Lihua Lei, and Jasjeet Sekhon. Overlap in observational studies with high-dimensional covariates. Journal of Econometrics, 221(2):644–654, 2021.
Mehrdad Farajtabar, Yinlam Chow, and Mohammad Ghavamzadeh. More robust doubly robust off-policy evaluation. In International Conference on Machine Learning, pp. 1447–1456. PMLR, 2018.
Nicolò Felicioni, Maurizio Ferrari Dacrema, Marcello Restelli, and Paolo Cremonesi. Off-policy evaluation with deficient support using side information. Advances in Neural Information Processing Systems, 35:30250–30264, 2022.
Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In ICML, 2019.
Leo Gao, John Schulman, and Jacob Hilton. Scaling laws for reward model overoptimization. In International Conference on Machine Learning, pp. 10835–10866. PMLR, 2023.
Lin Gui, Cristina Gärbacea, and Victor Veitch. Bonbon alignment for large language models and the sweetness of best-of-n sampling. Advances in Neural Information Processing Systems, 37:2851–2885, 2024.
Shonosuke Harada and Hisashi Kashima. Graphite: Estimating individual effects of graph-structured treatments. In Proceedings of the 30th ACM international conference on information & knowledge management, pp. 659–668, 2021.
Audrey Huang, Adam Block, Qinghua Liu, Nan Jiang, Akshay Krishnamurthy, and Dylan J Foster. Is best-of-n the best of them? coverage, scaling, and optimality in inference-time alignment. In International Conference on Machine Learning, pp. 25075–25126. PMLR, 2025.
Guido W Imbens and Donald B Rubin. Causal inference in statistics, social, and biomedical sciences. Cambridge university press, 2015.
Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations, 2017.
Ying Jin, Zhimei Ren, Zhuoran Yang, and Zhaoran Wang. Policy learning “without” overlap: Pessimism and generalized empirical bernstein’s inequality. The Annals of Statistics, 53(4):1483–1512, 2025.
Yuu Jinnai, Tetsuro Morimura, Kaito Ariu, and Kenshi Abe. Regularized best-of-n sampling with minimum bayes risk objective for language model alignment. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 9321–9347, 2025.
Fredrik Johansson, Uri Shalit, and David Sontag. Learning representations for counterfactual inference. In International conference on machine learning, pp. 3020–3029. PMLR, 2016.
Fredrik D Johansson, Uri Shalit, Nathan Kallus, and David Sontag. Generalization bounds and representation learning for estimation of potential outcomes and causal effects. Journal of Machine Learning Research, 23(166):1–50, 2022.
Nathan Kallus. More efficient policy learning via optimal retargeting. Journal of the American Statistical Association, 116(534):646–658, 2021. doi: 10.1080/01621459.2020.1788948.
Nathan Kallus and Angela Zhou. Policy evaluation and optimization with continuous treatments. In AISTATS, 2018.
Nathan Kallus, Xiaojie Mao, Kaiwen Wang, and Zhengyuan Zhou. Doubly robust distributionally robust off-policy evaluation and learning. arXiv preprint, 2022. URL http://arxiv.org/pdf/2202.09667v1.
Toru Kitagawa and Aleksey Tetenov. Who should be treated? empirical welfare maximization methods for treatment choice. Econometrica, 86(2):591–616, 2018.
Haruka Kiyohara, Daniel Yiming Cao, Yuta Saito, and Thorsten Joachims. An off-policy learning approach for steering sentence generation towards personalization. In Proceedings of the Nineteenth ACM Conference on Recommender Systems, pp. 41–50, 2025.
Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo Rohde. Generalized sliced wasserstein distances. Advances in neural information processing systems, 32, 2019.
Ilya Kostrikov, Ashvin Nair, and Sergey Levine. Offline reinforcement learning with implicit q-learning. In International Conference on Learning Representations, 2022.
Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative Q-learning for offline reinforcement learning. In NeurIPS, 2020.
J Nathan Matias, Kevin Munger, Marianne Aubin Le Quere, and Charles Ebersole. The upworthy research archive, a time series of 32,487 experiments in us media. Scientific Data, 8(1):195, 2021.
Elyas Meguellati, Lei Han, Abraham Bernstein, Shazia Sadiq, and Gianluca Demartini. How good are llms in generating personalized advertisements? In Companion Proceedings of the ACM Web Conference 2024, pp. 826–829, 2024.
Sidharth Mudgal, Jong Lee, Harish Ganapathy, Yaguang Li, Tao Wang, Yanping Huang, Zhifeng Chen, Heng-Tze Cheng, Michael Collins, Trevor Strohman, et al. Controlled decoding from language models. In International Conference on Machine Learning, pp. 36486–36503. PMLR, 2024.
Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332, 2021.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744, 2022.
Jie Peng, Hao Zou, Jiashuo Liu, Shaoming Li, Yibao Jiang, Jian Pei, and Peng Cui. Offline policy evaluation in large action spaces via outcome-oriented action grouping. In Proceedings of the ACM Web Conference 2023, pp. 1220–1230, 2023.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36:53728–53741, 2023.
Paul R Rosenbaum and Donald B Rubin. The central role of the propensity score in observational studies for causal effects. Biometrika, 70(1):41–55, 1983.
Donald B. Rubin. Estimating causal effects of treatments in randomized and nonrandomized studies. Journal of Educational Psychology, 66(5):688–701, 1974. ISSN 0022-0663. doi: 10.1037/h0037350.
Noveen Sachdeva, Yi Su, and Thorsten Joachims. Off-policy bandits with deficient support. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 965–975, 2020.
Noveen Sachdeva, Lequn Wang, Dawen Liang, Nathan Kallus, and Julian McAuley. Off-policy evaluation for large action spaces via policy convolution. In Proceedings of the ACM Web Conference 2024, pp. 3576–3585, 2024.
Yuta Saito and Thorsten Joachims. Off-policy evaluation for large action spaces via embeddings. In International Conference on Machine Learning (ICML), 2022.
Yuta Saito, Qingyang Ren, and Thorsten Joachims. Off-policy evaluation for large action spaces via conjunct effect modeling. In international conference on Machine learning, pp. 29734–29759. PMLR, 2023.
Yuta Saito, Jihan Yao, and Thorsten Joachims. Potec: Off-policy contextual bandits for large action spaces via policy decomposition. In The Thirteenth International Conference on Learning Representations, 2025.
Jonas Schweisthal, Dennis Frauen, Valentyn Melnychuk, and Stefan Feuerriegel. Reliable off-policy learning for dosage combinations. Advances in Neural Information Processing Systems, 36: 67900–67924, 2023.
Uri Shalit, Fredrik D Johansson, and David Sontag. Estimating individual treatment effect: generalization bounds and algorithms. In International conference on machine learning, pp. 3076–3085. PMLR, 2017.
Ashish Sharma, Inna W Lin, Adam S Miner, David C Atkins, and Tim Althoff. Human–ai collaboration enables more empathic conversations in text-based peer-to-peer mental health support. Nature Machine Intelligence, 5(1):46–57, 2023.
Lei Shi, David Arbour, Raghavendra Addanki, Ritwik Sinha, and Avi Feller. Leveraging semantic similarity for experimentation with ai-generated treatments. Advances in Neural Information Processing Systems, 2025.
Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. Learning to summarize with human feedback. Advances in neural information processing systems, 33:3008–3021, 2020.
Adith Swaminathan and Thorsten Joachims. Counterfactual risk minimization: learning from logged bandit feedback. In ICML, 2015. URL https://arxiv.org/pdf/1502.02362.
Cameron Voloshin, Hoang M Le, Nan Jiang, and Yisong Yue. Empirical study of off-policy policy evaluation for reinforcement learning. Advances in Neural Information Processing Systems, 2021.
Kevin Yang and Dan Klein. Fudge: Controlled text generation with future discriminators. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 3511–3535, 2021.
Pan Zhao, Antoine Chambaz, Julie Josse, and Shu Yang. Positivity-free policy learning with observational data. In International Conference on Artificial Intelligence and Statistics, pp. 1918–1926. PMLR, 2024.
Wenxuan Zhou, Sujay Bajracharya, and David Held. Plas: Latent action space for offline reinforcement learning. In Conference on Robot Learning, pp. 1719–1735. PMLR, 2021.
A EXTENDED DISCUSSION AND LIMITATIONS
POLICYLIFT addresses policy improvement with structured actions by learning a code-level policy and deploying it through behavior-consistent lifting. This separates policy learning from action generation: the policy is optimized in a supported code space, while deployment remains in the original action space by sampling from the behavior system. We show theoretically and empirically that this removes the deployment gap for behavior-consistent lifting and transfers code-level improvement to deployed improvement over the behavior policy.
The approach has different limitations. First, POLICYLIFT requires sampling access to the behavior system at deployment time. It does not apply when the logging policy cannot be queried or when deployment must use a different generator. Second, behavior-consistent lifting preserves the within-code behavior distribution. This gives an identified deployment rule, but it does not optimize among actions with the same code. If reliable within-code outcome scores or model-weight access are available, less conservative instantiation rules may improve further, but they require additional assumptions to avoid a deployment gap. Third, the method depends on learning codes that are both predictive of outcomes and sufficiently supported. If no code representation satisfies this predictiveness-overlap trade-off (e.g. due to a close-to-deterministic behavior system), the attainable improvement is limited. All three represent interesting directions for future work, as does evaluating our framework in real-world settings, e.g., via A/B testing in personalized online marketing. In such applications, our framework could improve personalization and decision-making in generative systems, though care should be taken to ensure that optimization objectives remain aligned with user well-being and broader platform goals.
B EXTENDED RELATED WORK
LLMs and generative alignment. Several adjacent literatures improve policies that can produce or select complex outputs, but rely on different information or deployment assumptions. RLHF and direct preference optimization fine-tune generative models from preference data and require access to model weights (Ouyang et al., 2022; Rafailov et al., 2023). Controlled decoding steers a frozen generator at inference time, but requires decoding-time access and an external reward, value, or attribute scorer (Mudgal et al., 2024; Yang & Klein, 2021). Inference-time reranking and Best-of-N sampling select among generated candidates using a learned reward model, typically trained from preference data (Stiennon et al., 2020; Nakano et al., 2021; Gao et al., 2023). Plain Best-of-N can overoptimize such proxy rewards as the candidate set grows (Gao et al., 2023); recent regularized variants mitigate this effect, but still optimize in the original structured action space using reward-model scores (Gui et al., 2024; Huang et al., 2025; Jinnai et al., 2025). In contrast, POLICYLIFT starts only from logged observational triples : it does not assume preference data, reward-model supervision, model-weight access, action-level likelihoods, or a scorer that can evaluate arbitrary generated candidates.
Offline reinforcement learning. Offline RL learns from logged data using support constraints, pessimism, or behavior regularization (Fujimoto et al., 2019; Kumar et al., 2020; Kostrikov et al., 2022), but typically operates directly in the original action space rather than learning a deployable representation-level policy. In a similar setting, deep generative policy-learning methods use generative models and latent action decoders for policies (Chen et al., 2024; Zhou et al., 2021), but require training such models and do not rule out a deployment gap when latent actions are decoded into original actions.
Balanced representation learning in causal inference. Related work on balanced representations for treatment effect estimation uses distributional distance regularization on covariate representations to adjust for covariate shift between treatment groups (Johansson et al., 2016; Shalit et al., 2017; Johansson et al., 2022), but assumes discrete treatments. Harada & Kashima (2021) extend this balancing to high-dimensional treatments. However, these works consider only treatment effect estimation and not policy learning. Relatedly, Shi et al. (2025) learn representations of high-dimensional treatments for causal effect estimation and adaptive online experimentation, while our focus is offline policy learning from fixed observational data.
Table 4: Differences to selected related streams. We compare POLICYLIFT to the most relevant lines of work along the two challenges emphasized in this paper: overlap in structured action spaces and deployment of a representation-level policy as a policy over original structured actions.
| Obs. outcomes | Structured actions | Learned repr. | Overlap controlled | Deploys in orig. space | |
|---|---|---|---|---|---|
| Standard OPE/OPL (Dudík et al., 2014; Swaminathan & Joachims, 2015; Kallus, 2021) | ✓ | ✕ | - | (✕) | - |
| Action embeddings / clusters (Saito & Joachims, 2022; Saito et al., 2023; 2025) | ✓ | ✓ | (✓) | (✕) | ✕ |
| Learned action representations (Peng et al., 2023; Cief et al., 2024) | ✓ | ✓ | ✓ | (✕) | ✕ |
| Prompt-guided generation (Kiyohara et al., 2025) | ✓ | ✓ | ✕ | (✕) | (✓) |
| Decoder-based offline RL (Fujimoto et al., 2019; Zhou et al., 2021) | ✓ | (✓) | ✓ | (✓) | (✓) |
| Inference-time reranking / Best-of-N (Gao et al., 2023; Gui et al., 2024; Huang et al., 2025) | ✕ | ✓ | ✕ | - | ✓ |
| POLICYLIFT (ours) | ✓ | ✓ | ✓ | ✓ | ✓ |
Legend. addressed; not addressed; partially addressed; assumed or not enforced; = not applicable. "Overlap controlled" means that overlap is encouraged or enforced by the learning procedure rather than only assumed for identification. "Deploys in original space" means that the learned policy is deployable as a policy over original structured actions.
Research gap. Existing methods address only parts of our setting: overlap-constrained OPL targets simpler action spaces, representation-based OPE/OPL typically assumes fixed actions and representation-level overlap, and generative alignment or offline RL requires stronger access such as preference data, reward models, model weights, or learned generators. This leaves open generative policy improvement from observational data. POLICYLIFT addresses this gap by learning overlap-aware action codes, optimizing a code-level policy, and lifting the policy through the behavior system.
C PROOFS AND EXTENSIONS
C.1 A TECHNICAL ASSUMPTION ON WITHIN-CODE CONDITIONALS
For the results below, we assume existence of regular conditional distributions for the within-code behavior.
Assumption A3 (Within-code behavior conditional). For each and with , there exists a conditional distribution such that
for all measurable (interpreting da generically; in discrete replace by sums).
C.2 DEPLOYMENT GAP AND CONTEXT-FREE DECODING
Proof of Theorem 5.1. Let . By consistency and ignorability,
Subtracting and adding , which holds by Lemma C.3 below, yields
which is (5). The two claims on when are immediate from the definition of .
Corollary C.1 (Context-free decoding can yield a nonzero deployment gap under perfect marginal fit). Suppose the decoder is context-free, , and matches the marginal within-code behavior distribution, . Then
Consequently, perfect marginal fit does not guarantee a zero deployment gap.
Proof. Apply Theorem 5.1 with . The deployment gap at simplifies to
which gives (17) after substitution into (5).
Corollary C.1 makes precise why context-free decoding can break alignment between code-level evaluation and deployed value: even perfect reconstruction of the marginal within-code distribution averages across contexts, whereas deployment requires the context-specific mixture .
Proposition C.2 (Non-identifiability under support mismatch). Fix a context-code pair with . Suppose there exists an action such that and
Then is not identified from the observational distribution under consistency and ignorability. The policy value is likewise not identified if such support mismatch occurs on a set of context-code pairs with positive probability under .
Proof. Construct two data-generating processes that share the same behavior policy and agree on all potential outcomes , but assign different values to . Because , the action is never observed under the behavior distribution at , so both processes induce the same observational distribution of and the same . However, since , the quantity differs between the two processes. Thus, if such support mismatches occur on a set of positive -measure, is not identified either.
C.3 VALUE EQUIVALENCE AND IMPROVEMENT TRANSFER
We begin with a lemma showing that the code regression function admits a causal interpretation as a within-code mixture of potential-outcome regressions. This is the key identity used in the proof of Theorem 5.1 and the corollaries that follow.
Lemma C.3 (Code regression as within-code mixture). The code regression function is defined as a statistical object under the observational distribution of . Under consistency and ignorability, and under Assumption A3, it admits the causal interpretation
for any with .
Proof. By definition and consistency,
Applying the tower property by conditioning on A and then using ignorability,
where the last equality uses Assumption A3.
Proof of Corollary 5.2. Apply Theorem 5.1 with . Then for all in the support of , and (5) reduces to .
Proof of Corollary 5.3. Applying Corollary 5.2 with shows , since . Combining with and Corollary 5.2 yields .
C.4 ACCEPTANCE SAMPLING
Proposition C.4 (Acceptance sampling implements the behavioral decoder). Fix a context x and a target code with . Define the behavioral decoder
for all measurable . Let and define
Then, for all measurable ,
Proof. Let and
Since , the stopping time is finite almost surely. By independence of the proposal draws,
where the last equality follows from (26).
Fix a context and a target code with . The ideal acceptance sampler draws and returns , where is the first accepted index.
Proof of Lemma 5.4. For any measurable ,
Conditioning on acceptance yields , so the returned action has distribution . The acceptance probability per draw is , and is geometric with mean . On , the bound gives .
Finite-cap variant. In practice, the acceptance loop is capped at draws, and we fall back to an independent draw from . Let be the probability of no acceptance within draws. If almost surely, then this fallback produces an deviation in deployed value:
where is the capped sampler's induced deployed policy. This quantifies the trade-off between computational cost (at most behavior draws) and approximation error ( decaying exponentially in ).
C.5 STOCHASTIC ENCODER EXTENSION
The main text uses a deterministic encoder to match the neural implementation at inference time. For completeness, we show that the value equivalence result extends to stochastic encoders.
Suppose the encoder is stochastic: . The induced code-level behavior policy is , and the within-code behavior conditional is , both taken under the joint distribution over . Behavior-consistent lifting is defined exactly as in (4).
Theorem C.5 (Value equivalence with stochastic encoding). Under consistency and ignorability and under Assumption A3 applied to the joint , for any the behavior-consistent deployed policy satisfies , where under the joint distribution.
Proof. Identical to the proof of Corollary 5.2, using conditioning on and Lemma C.3 for the joint distribution over .
C.6 PROOF OF THEOREM 5.5
Recall and .
Equivalent characterizations of . By the tower property applied to C conditional on X,
Hence
which is the first equality in (7).
For the second equality, note that
The law of total variance gives . Taking expectations over and rearranging,
which is the second equality in (7).
Oracle value lower bound. Fix and let with . Then and
Let
Since almost surely, for -almost every we have whenever , and hence .
We use the elementary bounded-support inequality
To see this, note that almost surely, so
Taking expectations conditional on and subtracting gives
Moreover, since ,
Therefore,
Using and rearranging yields
Taking expectations over X and using and yields
C.7 PROOF OF THEOREM 5.6
Fix and define
so that and . Let denote the code-level prediction residual.
Bias term. By linearity,
Cauchy–Schwarz pointwise in X gives
using . Taking expectations and applying Jensen's inequality (since is concave) yields
Since for all ,
where the last inequality is the shift bound (9). This gives the first term of (10).
Sample fluctuation term. Treating as fixed and independent of the evaluation sample (by cross-fitting), we have for all , since and . Hoeffding's inequality and a union bound over the finite class imply that with probability at least ,
Combining with the bias bound via the triangle inequality yields (10).
EVALUATION BENCHMARKS
Evaluation design. Benchmarking off-policy learning against known ground-truth policy values requires counterfactual outcomes for actions that were not taken, which are unavailable in ordinary logged data. Controlled and semi-synthetic benchmarks are therefore standard for validating OPE/OPL methods against known ground truth, including in closely related large-action work using synthetic, supervised-to-bandit, and reward-simulator evaluations (Saito & Joachims, 2022; Saito et al., 2023; 2025; Kiyohara et al., 2025). We first evaluate POLICYLIFT on two deliberately controlled benchmarks with complementary purposes: the synthetic DGP isolates the mechanisms analyzed by the theory and enables oracle diagnostics, while the semi-synthetic headline benchmark combines real article contexts and LLM-generated structured actions with deliberately recoverable reward-relevant structure. Additionally, to evaluate the complete method in a less controlled, externally defined generative setting, we use the public OfflinePrompts benchmark with real MovieLens-derived contexts, raw generated text without injected simulator features, and a released reward simulator trained on real user ratings.
D SYNTHETIC DIAGNOSTICS
Here, we give the full data-generating process (DGP) and evaluation protocol for the synthetic diagnostics in Section 7. The goal is not to provide a broad benchmark, but to isolate the three mechanisms of POLICYLIFT under controlled conditions: behavior-consistent lifting (BCL), predictive action codes, and overlap-aware code learning. All diagnostics use the same DGP and vary only the relevant control parameter. The three parameters are: , which controls residual within-code action effects; , which controls the between-code outcome signal; and , which controls code-level overlap.
D.1 DATA-GENERATING PROCESS
We generate logged triples from a simulator with hidden context type , hidden simulator code , and structured numeric action . The learner observes only . The hidden variables are used only to construct oracle diagnostics.
Contexts. Let K = 8. For each unit,
The observed context is
where is the one-hot vector for context type . Thus . The hidden context type creates context-dependent optimal codes, while the low-dimensional observed context keeps oracle evaluation simple.
Logging policy over simulator codes. We define a relative code
The logging policy samples D according to
and sets
Equivalently, the true code propensity is
The relative-code construction makes the optimal code depend on the context while keeping all contexts symmetric. The parameter controls overlap: larger values concentrate the logging policy on the plausible but suboptimal relative code .
Actions. The action vector has five blocks,
The first block carries a recoverable signal for the true simulator code:
Here is the one-hot vector for the hidden code . This block makes the outcome-relevant code recoverable by predictive code learning.
The second block carries a signal for a more balanced auxiliary code. Define
Then
The auxiliary code creates a representation that is slightly coarser than but better balanced across contexts, matching the predictiveness–overlap trade-off targeted by Stage 1. In our experiments, we use as oracle balanced codes.
The third block creates residual within-code action variation:
where is a fixed context-specific prototype. This block makes the concrete action matter within a code and therefore tests whether deployment changes the within-code action distribution.
The fourth block is high-dimensional nuisance geometry:
where are fixed nuisance prototypes. The nuisance block has no effect on the outcome but dominates Euclidean action geometry, so geometric clustering can fail.
Finally,
This independent block is used only to construct random balanced codes.
Outcomes. Let
and define the between-code reward signal by
Thus the optimal relative code is , while the logging policy favors the suboptimal but plausible relative code .
The within-code residual effect is
Under behavior-consistent lifting,
which is constant in . Hence this term does not change the best code-level policy under behavior-consistent lifting; it only penalizes deployment rules that change the within-code action distribution.
The observed outcome is
This separates the two relevant failure modes. The parameter controls the value of learning predictive codes, while controls the deployment loss from non-behavior-consistent instantiation.
D.2 ORACLE QUANTITIES
For the true simulator code , the code regression is available in closed form:
The behavior value is
The unconstrained oracle code value is
For a support threshold , the support-constrained oracle value is
For a deterministic code policy , the expected number of behavior-system draws required by behavior-consistent lifting is
For learned or unsupervised representations , oracle quantities are estimated by a noise-free Monte Carlo sample from the known simulator. We estimate and by sample averages and then evaluate oracle policies by table lookup. This keeps the oracle diagnostics cheap and avoids training additional oracle models.
D.3 CODE REPRESENTATIONS
The diagnostics compare the following code representations.
Ground-truth oracle codes. The representation is . This is, in general, not available to the learner and serves as an upper benchmark for the information contained in the simulator code.
Oracle balanced codes. The representation is . This is, in general, not available to the learner and serves as an optimistic target performance for the learned balanced codes.
Random balanced codes. We construct by quantile-binning a fixed random projection of into K bins. These codes are balanced by construction but independent of the outcome-relevant action structure.
Geometric k-means codes. We fit k-means with K clusters on the raw action vector A. Since is high-dimensional and high-variance, this representation tests whether purely geometric action clustering can be dominated by nuisance variation.
Learned predictive codes. We learn codes with the Stage 1 prediction objective and set the overlap and marginal-balance weights to zero. This representation tests whether outcome-predictive code learning can recover useful action structure from A.
Learned predictive and balanced codes. We learn codes with the full Stage 1 objective, including the prediction loss, distributional-overlap regularizer, and marginal code-balance regularizer. This representation tests whether overlap-aware code learning preserves most predictive signal while improving finite-sample reliability.
D.4 DIAGNOSTIC PROTOCOLS
Deployment diagnostic. The deployment diagnostic fixes the representation to , uses the oracle code-level policy, and uses the true support rule. It varies only the Stage 3 instantiation rule and . We compare behavior-consistent lifting, a marginal decoder , a learned Gaussian decoder , and a uniform within-code sampler. The main metric is deployment loss,
where is the oracle code-level policy and is the deployed action-level policy induced by instantiation rule . This diagnostic isolates whether changing the within-code action distribution creates a gap between code-level value and deployed value.
Predictiveness diagnostic. The predictiveness diagnostic fixes behavior-consistent lifting and uses an oracle Stage 2 policy for each representation. It varies the code representation and . For a representation G, the oracle policy is
We report oracle value, improvement over the behavior policy, representation regret relative to , and prediction error. Representation regret is
Because Stage 2 and Stage 3 are fixed to their oracle versions, differences in this diagnostic isolate the information contained in the learned or constructed code representation, and thus, show the change in the oracle attainable policy value.
Overlap diagnostic. The overlap diagnostic fixes behavior-consistent lifting and learns the Stage 2 policy with a regression-adjusted objective. It varies the representation, the support rule, and . For each representation, we evaluate policies with and without the -constraint. The constrained policy selects only supported codes,
while the unconstrained policy maximizes over all codes. We report deployed value, improvement over the behavior policy, RA error, unsupported-code rate, and expected draws. The unsupported-code rate is
and the RA error is
This diagnostic isolates whether overlap-aware code learning and the support rule improve reliability when code-level support becomes weak.
D.5 DEFAULT PARAMETERS
Unless otherwise stated, we use the parameters in Table 5. We average results over independent random seeds and report one standard error across seeds.
Table 5: Default parameters for the synthetic diagnostics.
| Quantity | Value |
|---|---|
| Number of simulator codes and context types | |
| Observed context dimension | |
| Action block dimensions | |
| Outcome noise | |
| Absolute-code block | |
| Balanced-code block | |
| Deployment block | |
| Nuisance block | |
| Default predictiveness strength | |
| Default deployment-residual strength | |
| Default overlap severity | |
| Support threshold | |
| Deployment sweep | |
| Predictiveness sweep | |
| Overlap sweep |
E SEMI-SYNTHETIC BENCHMARK CONSTRUCTION
We construct a semi-synthetic text benchmark with real article excerpts as contexts from the Upworthy Research Archive (Matias et al., 2021) (CC BY 4.0), LLM-generated headlines as actions , and rewards assigned by a controlled simulator. The benchmark evaluates the full method in a noisy structured-text setting under limited code-level overlap while deliberately retaining recoverable reward-relevant structure. All methods receive the same numerical representations (Appendix E.4), which makes comparisons less sensitive to whether generic text embeddings capture the simulated reward-relevant structure. OfflinePrompts (Appendix F) separately evaluates raw generated text without injected simulator features.
E.1 STRUCTURAL DATA-GENERATING PROCESS
The simulator follows the graph
For each unit , we generate
Learner inputs are specified in Appendix E.4; the annotators and are not provided to learning methods.
E.2 SIMULATOR CONTEXT AND ACTION SPACES
We use Upworthy article excerpts as contexts. The real data provide natural language inputs, but outcomes are assigned by the simulator rather than by observed click rates. This gives realistic text contexts while retaining known counterfactual rewards.
The hidden simulator context representation is
where is the article topic, is the tone, and is the specificity need.
Table 6: Core notation for the semi-synthetic benchmark.
| Symbol | Meaning |
|---|---|
| observed context text, here an Upworthy article excerpt | |
| observed action text, here a generated headline | |
| observed scalar reward | |
| hidden simulator context representation | |
| hidden simulator action code | |
| code-level logging policy | |
| prompted headline generator | |
| accepted generator after validation | |
| context annotator returning | |
| action validator returning realized code and faithfulness | |
| structural mean reward | |
| oracle code-level reward table for context |
Table 7: Hidden simulator context representation .
| Component | Meaning | Values |
|---|---|---|
| topic | public_affairs, science_health, entertainment, sports_human | |
| tone | informational, emotional, surprising | |
| specificity need | low, high |
The hidden simulator action code is
where is the headline strategy and is the tailoring level.
A summary headline states the core content directly. A curiosity headline withholds a key detail to induce curiosity without being misleading. An emotion headline foregrounds affective framing. A direct headline addresses the reader or frames the article as personally relevant. A generic headline avoids article-specific named entities or concrete details, while a tailored headline includes article-specific entities, details, or concrete context.
E.3 REWARD-RELEVANT STRATEGY STRUCTURE
For each topic–tone pair , we define a full simulator ranking of headline strategies
where is best and is worst. Table 9 gives the ranking used in all experiments.
The logging-preferred tailoring level is
For context type , the reward-maximizing codes are
E.4 STRUCTURAL REWARD MODEL
For and , the reward depends on the context-specific rank of the strategy :
Here is given by the strategy lookup table in Table 9. The rank effects are
Table 8: Hidden simulator action code .
| Component | Meaning | Values |
|---|---|---|
| headline strategy | summary, curiosity, emotion, direct | |
| tailoring level | generic, tailored |
Table 9: Simulator ranking of headline strategies. Entries are ordered from best to worst.
| Topic | |||
|---|---|---|---|
| public_affairs | summary > direct > emotion > curiosity | direct > emotion > summary > curiosity | curiosity > direct > summary > emotion |
| science_health | summary > curiosity > direct > emotion | direct > emotion > summary > curiosity | curiosity > summary > direct > emotion |
| entertainment | direct > curiosity > emotion > summary | emotion > curiosity > direct > summary | curiosity > emotion > direct > summary |
| sports_human | summary > emotion > direct > curiosity | emotion > direct > summary > curiosity | curiosity > emotion > direct > summary |
The additive context baseline is deterministic and does not affect the optimal action code:
where is the index of the observed hidden context label among the labels in the constructed benchmark. In the reported benchmark there is no additional outcome noise, so
Policy values are evaluated using the same noise-free oracle reward table.
Observed numerical representations. The text learner operates on numerical representations that augment base text embeddings with controlled simulator-derived features: an exact context-label encoding and noisy action-code and strategy signals, alongside nuisance and random features. For contexts,
where is a one-hot encoding of the hidden context label. For actions,
where is the four-way strategy component of , is a random normalized nuisance prototype, and the noise scales are 0.15, 0.25, and 0.5 for the , strategy, and nuisance blocks, respectively. The nuisance block has dimension 64 and the final random tail has dimension 2. This construction preserves the same generated texts, logging policy, and candidate pool, but makes explicit which reward-relevant and nuisance signals are available to representation learning.
E.5 CODE-LEVEL LOGGING POLICY
The logged simulator code is sampled from
This factorization reflects that headline strategy depends on topic and tone, while tailoring depends on specificity need.
For strategy logging, we use an orientation parameter
and a concentration parameter . Define
Then
Thus, gives uniform strategy logging, while larger concentrates mass on the preferred logging strategy. In the suboptimal-oriented regime, the historical policy favors a plausible but non-optimal strategy while still assigning nonzero probability to the optimal one.
For tailoring, we use
Larger means that the logging policy more often chooses the tailoring level appropriate for the context.
With four strategies, assigns probability 0.70 to the preferred strategy and probability 0.10 to each other strategy. With two tailoring levels, assigns probability 0.75 to the appropriate tailoring level and probability 0.25 to the other level.
E.6 PROMPT-BASED CONSTRUCTION
The benchmark uses three prompt-based components: a context annotator , a headline generator G, and an action validator . All prompts return structured outputs.
Prompt 1: Context annotator
Read the article excerpt and return JSON with keys topic, tone, and specificity_need. Use only the following values:
• topic ∈ {public_affairs, science_health, entertainment, sports_human},
• tone ∈ {informational, emotional, surprising},
• specificity_need ∈ {low, high}.
Set specificity_need = high if an effective headline should mention article-specific entities, people, places, or concrete details; otherwise set it to low. Output only JSON.
Prompt 2: Headline generator G
Read the article excerpt. Write exactly one Upworthy-style headline that is faithful to the excerpt and does not invent facts.
Required strategy: {summary | curiosity | emotion | direct}.
Required tailoring level: {generic | tailored}.
Definitions:
• summary: state the core content of the article directly.
• curiosity: withhold a key detail to create curiosity without being misleading.
• emotion: foreground emotional or affective framing.
• direct: address the reader or make the article personally relevant.
• generic: avoid article-specific named entities or concrete details.
• tailored: include article-specific entities, details, or concrete context.
Keep the headline concise. If an observed headline is provided, use it only as a stylistic anchor and do not copy it verbatim. Output only the headline.
Prompt 3: Action validator
Given an article excerpt and a headline, return JSON with keys strategy, tailoring, and faithful. Use only:
- strategy ,
- tailoring ,
- faithful .
Set faithful = 1 only if the headline is supported by the excerpt and does not introduce unsupported claims. Output only JSON.
E.7 ACCEPTED ACTION GENERATOR
The prompt asks the language model to generate a headline with the requested simulator code. Since prompt compliance is not guaranteed, we validate the realized code using . For intended code , write
We accept a generated headline only if
This defines the accepted generator
Equivalently, is implemented by rejection sampling from . This validation step is performed before assigning outcomes and does not use . Its role is to ensure that the observed text action is semantically aligned with the simulator code whose reward is assigned.
In implementation, we use a fixed retry budget . If no valid headline is obtained after attempts, the unit is discarded.
E.8 LOGGED DATA AND ORACLE EVALUATION
After construction, all learners use the representations specified in Appendix E.4 for the logged data
The simulator reward function and oracle counterfactual rewards are not provided to learners.
For the main benchmark, we store the oracle code-level reward table
The oracle code policy is
and its value is evaluated without outcome noise.
For any deployed text action , we first validate the realized simulator code:
Only valid and faithful deployed headlines are evaluated. For valid headlines, the noise-free deployed reward is
In the main code-sufficient benchmark, this reduces to
Thus, the benchmark has an exact code-level oracle while deployed policies return generated headlines.
F OFFLINEPROMPTS BENCHMARK
Beyond the two controlled benchmarks, we evaluate the complete method on the public MovieLens task from OfflinePrompts (Kiyohara et al., 2025), providing additional validation in an externally defined generative setting. Contexts combine the released embeddings of real MovieLens users and movies; actions are raw movie-related sentences generated by the frozen Mistral-7B-Instruct-v0.2 model, with no injected simulator features. Rewards come from the released personalized DistilBERT reward simulator trained on real user ratings. POLICYLIFT learns from context, generated text, and reward without observing the generating prompt.
Behavior system and logged data. For reproducible and computationally efficient evaluation, we pre-generate the Mistral outputs under the benchmark prompt set and reuse the same generated outputs across methods. We use a fixed subset of 500 movies and 100 prompts. For each movie–prompt pair, we generate one sentence by greedy decoding with a maximum of 30 new tokens and the released prompt formatter. The behavior system samples a prompt from a context-dependent softmax distribution and returns the corresponding pre-generated sentence. Its scores are bilinear in the context and prompt embeddings; we calibrate the softmax concentration on training contexts so that the top 50 prompts carry mean probability mass 0.90. Prompt identities and their logging probabilities are hidden from POLICYLIFT, which receives only context, sentence embedding, and reward. Each of five seeds produces 10,000 logged observations, adding independent Gaussian reward noise with standard deviation 0.05.
Representation and evaluation. We follow the released sentence-embedding procedure, projecting pooled Mistral hidden states to 20 dimensions with the supplied PCA matrix. We use the released user split, with disjoint training and test halves, and evaluate all methods on the same 10,000 sampled test contexts. The movie and prompt catalog is shared across the split. All learned policies and generated-sentence selections are frozen before evaluation with the reward simulator. Reported values average its expected rewards, without added observation noise. Behavior draws use the same behavior system for every method; POLICYLIFT uses a cap of and an independent behavior draw on fallback.
Training configuration. We use , , two hidden layers of width 64, batch size 32, learning rate , and 50 Stage 1 epochs. The proposed configuration uses and ; predictive-only codes set both to zero. Stage 2 fits a ridge outcome model with context-code interactions and a multinomial logistic propensity model. RA selects the highest predicted reward among supported codes. Standard errors describe variability across these runs on the fixed test contexts and pre-generated outputs.
G ADDITIONAL RESULTS
G.1 SYNTHETIC DIAGNOSTICS
Figure 3 presents the complete synthetic diagnostics. Its columns vary within-code reward effects (, left), predictive signal (, middle), and logging-policy concentration (, right). The left legend lists deployment rules; the right legend lists code representations for the middle and right columns. Predictiveness and overlap curves show means with standard errors over 5 seeds. Deployment values are computed analytically, so no standard errors are shown. The protocols are described in Appendix D.4.

(a) Deployment
(b) Predictiveness
(c) Overlap
Figure 3: Complete synthetic diagnostics. Top: policy improvement (higher is better). Bottom: deployment loss, code regret, and RA estimation error, respectively (lower is better).
G.1.1 DEPLOYMENT
In the left column of Figure 3, ground-truth codes and the oracle code-level policy are fixed while the instantiation rule varies. Table 10 reports the strongest residual-effect setting, , under the default synthetic DGP. All rows use the ground-truth code , the oracle code-level policy, and the true support rule; rows differ only in the Stage 3 instantiation rule. Values are computed analytically under the known DGP, so no standard errors are reported.
Deployment loss is , and absolute deployment error is . Behavior-consistent lifting (BCL) preserves the code-level value, while alternative instantiation rules change the within-code action distribution and therefore incur deployment loss.
Table 10: Deployment diagnostic. Default synthetic DGP at ; analytically computed values.
| Deployment rule | Policy improvement | Value | Deployment loss | Abs. deployment error |
|---|---|---|---|---|
| BCL / Ours | 0.620 | 0.938 | 0.000 | 0.000 |
| Marginal | -2.188 | -1.870 | 2.808 | 2.808 |
| Learned dec. | -2.170 | -1.853 | 2.790 | 2.790 |
| Uniform | -2.010 | -1.693 | 2.630 | 2.630 |
G.1.2 PREDICTIVENESS
In the middle column of Figure 3, oracle Stage 2 optimization and behavior-consistent lifting are fixed while the representation varies. Table 11 reports the default synthetic DGP at . All rows use an oracle Stage 2 code-level policy and behavior-consistent lifting; rows differ only in the Stage 1 code representation. Values are reported as mean (standard error) over random seeds.
Oracle true codes give the learner-inaccessible upper benchmark, while oracle balanced codes are a designed support-aware proxy. Policy improvement is , where is the value of the oracle code-level policy for representation . Code regret is . Prediction error is the noise-free grouped error . Because Stage 2 is oracle for every row, differences isolate the information contained in the code representation.
Table 11: Predictiveness diagnostic. Default synthetic DGP at ; mean (standard error) over random seeds.
| Code representation | Value | Policy improvement | Code regret | Prediction error |
|---|---|---|---|---|
| Oracle true codes | ||||
| Oracle balanced codes | ||||
| Pred.+bal. codes | ||||
| Pred. codes | ||||
| K-means | ||||
| Random |
G.1.3 OVERLAP
In the right column of Figure 3, behavior-consistent lifting and the support constraint are fixed while representations are compared under increasing logging-policy concentration. Together, the overlap panels distinguish attainable policy improvement from value-estimation accuracy.
Table 12 reports the default synthetic DGP at . Rows use the same code representations as in Table 11, while Stage 2 is learned with a regression-adjusted objective and all rows use the support constraint and behavior-consistent lifting. Values are reported as mean (standard error) over random seeds.
Oracle true codes give the learner-inaccessible upper benchmark under the support constraint, while oracle balanced codes are a designed support-aware proxy. RA error is . Expected draws is and measures the cost of behavior-consistent lifting. All rows are support constrained, so unsupported-code rates are zero by construction and omitted.
Table 12: Overlap diagnostic. Default synthetic DGP at ; mean (standard error) over random seeds.
| Code representation | Value | Policy improvement | RA error | Expected draws |
|---|---|---|---|---|
| Oracle true codes | ||||
| Oracle balanced codes | ||||
| Pred.+bal. codes | ||||
| Pred. codes | ||||
| K-means | ||||
| Random |
G.2 SENSITIVITY TO LOSS PARAMETERS
Figure 4 shows sensitivity to the loss parameters (top) and (bottom) on the semi-synthetic dataset. The left panels report policy improvement (higher is better), and the right panels report expected draws (lower is better).


Figure 4: Sensitivity to loss parameters on the semi-synthetic dataset. varies in the top row and in the bottom row. Left: policy improvement; right: expected draws.
H IMPLEMENTATION DETAILS
Synthetic diagnostics. We follow the data generation and evaluation as described in D. Table 13 gives the implementation choices for the reported runs. We provide code of our method in https://github.com/JSchweisthal/PolicyLift
Semi-synthetic headline benchmark. The semi-synthetic experiments use the logged headlines, validation procedure, and candidate pool from Appendix E. Table 14 gives the implementation choices for the reported runs.
H.1 IMPLEMENTATION OF THE EXPERIMENTAL COMPARISONS
Code substitutions. All configurations use K = 8 codes. Random codes provide an outcome-independent comparison: synthetic and OfflinePrompts actions receive a fixed random-projection assignment with quantile bins fitted on logged training actions; headlines use seeded balanced random assignments. The k-means alternative clusters action features without reward supervision. Predictive-only codes retain the learned architecture and prediction loss but set . Code substitutions retain the RA objective and the same evaluation protocol. For objective substitutions, all methods share the proposed encoder within each seed.
Stage 2 objectives. Our Code-IPS objective applies inverse propensity weighting to the observed code, following the marginalization principle of MIPS (Saito & Joachims, 2022). Code-DR adds a code-level reward prediction and an importance-weighted residual correction, motivated by regression-assisted estimation such as OffCEM (Saito et al., 2023). Kernel-IS adapts the sentence-level smoothing idea of Kiyohara et al. (2025): Gaussian distances from action features to code centroids define normalized soft memberships, and a soft-label propensity model estimates their conditional means. We use the median-distance bandwidth heuristic. The kernel objective weights rewards by policy
Algorithm 2: PolicyLift (implementation-aligned)
Input: Logged data ; code encoder (action branch), context encoder , outcome head ; number of codes ; weights ; threshold ; acceptance cap .
Output: Deployed policy sampler .
1 Stage 1: Learn code encoder and predictor; 2 Initialize ; 3 while not converged do 4 Compute logits and straight-through Gumbel-hard codes ; 5 Compute context embedding ; 6 ; 7 ; // stop-gradient through in this term 8 , with ; 9 Update to minimize ; 10 Freeze Stage-1 model; define hard codes for Stage 2 by ; 11 Stage 2: Learn outcome head, propensity proxy, and code policy; 12 Fit on (neural head; optional initialization from Stage-1 head); 13 Fit via multiclass cross-entropy on ; 14 Define ; 15 Stage 3: Deployment at context ; 16 Select target code ; 17 for do 18 Sample ; 19 if then 20 return 21 return sample from behavior ; // fallback after cap
Table 13: Implementation details for the synthetic diagnostics.
| Component | Choice |
|---|---|
| Code space | |
| Context/action dimensions | and |
| Support threshold | |
| Deployment diagnostic | oracle codes and oracle code policy; vary only deployment rule |
| Predictiveness diagnostic | BCL and oracle Stage 2; vary code representation and |
| Overlap diagnostic | learned RA Stage 2 with support rule; vary representation and |
| POLICYLIFT Stage 1 | MLP hidden sizes (64, 64), latent dimension 8, Gumbel temperature 0.5 |
| Optimization | 50 epochs, batch size 32, learning rate |
| Main regularization | for Pred.+bal. |
| Reported uncertainty | mean with one standard error across seeds |
probabilities times these memberships divided by their estimated conditional means. For all three objectives, inverse propensities are capped at , where .
We optimize linear softmax code policies on standardized context features and deploy their highest-scoring supported code. RA instead maximizes the fitted code-level outcome directly. IPS and DR use hard-code propensities; kernel-IS uses soft-membership propensities for its objective and support on the text benchmarks. The synthetic comparison uses the common hard-code support at deployment for every objective. Synthetic support is computed from grouped simulator frequencies
Table 14: Implementation details for the semi-synthetic headline benchmark.
| Component | Choice |
|---|---|
| Data | 905 logged actions, 2513 generated actions, 5 seeds |
| Data generator model | GPT-5.4-mini |
| Code space and support | |
| Reward | strategy-rank lookup with (1.00, 0.65, 0.15, -0.15) and context baseline scale 0.2 |
| Context representation | sentence-transformers/all-MiniLM-L6-v2; append |
| Action representation | sentence-transformers/all-MiniLM-L6-v2; append noisy , strategy, nuisance, and random blocks |
| Action-block parameters | for , for strategy, nuisance dim 64 with scale 4.0 and noise 0.5 |
| POLICYLIFT Stage 1 | MLP hidden sizes (64, 64), latent dimension 8, Gumbel temperature 0.5 |
| Optimization | 50 epochs, batch size 32, learning rate |
| Main regularization | for Pred.+bal. |
conditional on the latent context group, following the controlled diagnostic protocol; headline and OfflinePrompts propensities are fitted from logged data. Within each dataset, the baselines share the candidate generator and deployment evaluator.
Main table: configurations and evaluation. The synthetic column uses , , , 5,000 logged observations, and 10,000 noise-free evaluation samples. Its Stage 1 network has two hidden layers of width 32, learning rate , 50 epochs, batch size 32, and . We evaluate ideal BCL through grouped simulator conditional rewards. The headline column retains MiniLM features alongside the constructed context and action feature blocks described in Appendix E; it uses width 64, learning rate , 50 epochs, batch size 32, and . We perform runs across five random seeds.
Prompt-based reference methods. On OfflinePrompts, prompt-based regression fits a neural reward predictor to context and logged prompt embeddings, then selects the highest-scoring prompt from the 100-prompt catalog. The DSO-style prompt policy learns a context-dependent distribution over that 100-prompt catalog using kernel importance weighting in sentence-embedding space. It uses the logging distribution and an exact sum over the pre-generated prompt outputs to compute the kernel-smoothed logging marginal; importance ratios are clipped at 200. The bandwidth is the median within-movie sentence-embedding distance. Both baselines use the same generated sentences, logged reward data, test contexts, and reward simulator as POLICYLIFT, but additionally have access to prompt information that is unavailable to POLICYLIFT. In particular, prompt-based regression observes logged prompt embeddings, while the DSO-style policy accesses the prompt catalog, its generated outputs, and the logging distribution.
Compute resources. Experimental runs were conducted on commodity CPU hardware without GPU acceleration, with typical runs completing in under one hour. The semi-synthetic benchmark additionally required OpenAI API calls for headline generation and validation during dataset construction, which also completed within approximately one hour.