Manuscript Offprint

arXiv:2610.23436

Generative Policy Improvement from Observational Data

Jonas Schweisthal, Dennis Frauen, Stefan Feuerriegel, Emma Brunskill

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 (X,A,Y)(X, A, Y) 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.

References (94)

  • Policy learning with observational data
  • Deep generative models for offline policy learning: Tutorial, survey, and perspectives on future directions
  • Learning action embeddings for off-policy evaluation
  • Dealing with limited overlap in estimation of average treatment effects
  • Semi-Parametric Efficient Policy Learning with Continuous Actions (opens arXiv in a new tab)
  • Doubly Robust Policy Evaluation and Optimization (opens arXiv in a new tab)
  • Overlap in observational studies with high-dimensional covariates
  • More robust doubly robust off-policy evaluation
  • Off-policy evaluation with deficient support using side information
  • Off-policy deep reinforcement learning without exploration
  • Scaling laws for reward model overoptimization
  • Bonbon alignment for large language models and the sweetness of best-of-n sampling
  • Graphite: Estimating individual effects of graph-structured treatments
  • Is best-of-n the best of them? coverage, scaling, and optimality in inference-time alignment
  • Causal inference in statistics, social, and biomedical sciences
  • Categorical reparameterization with gumbel-softmax
  • Policy learning “without” overlap: Pessimism and generalized empirical bernstein’s inequality
  • Regularized best-of-n sampling with minimum bayes risk objective for language model alignment
  • Learning representations for counterfactual inference
  • Generalization bounds and representation learning for estimation of potential outcomes and causal effects
  • 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. (opens the publisher in a new tab)
  • Policy evaluation and optimization with continuous treatments
  • Doubly robust distributionally robust off-policy evaluation and learning (opens arXiv in a new tab)
  • Who should be treated? empirical welfare maximization methods for treatment choice
  • An off-policy learning approach for steering sentence generation towards personalization
  • Generalized sliced wasserstein distances
  • Offline reinforcement learning with implicit q-learning
  • Conservative Q-learning for offline reinforcement learning
  • The upworthy research archive, a time series of 32,487 experiments in us media
  • How good are llms in generating personalized advertisements? In Companion Proceedings of the ACM Web Conference 2024, pp. 826–829, 2024
  • WebGPT: Browser-assisted question-answering with human feedback
  • Advances in neural information processing systems, 35:27730–27744, 2022
  • Offline policy evaluation in large action spaces via outcome-oriented action grouping
  • Direct preference optimization: Your language model is secretly a reward model
  • The central role of the propensity score in observational studies for causal effects
  • 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. (opens the publisher in a new tab)
  • Off-policy bandits with deficient support
  • Off-policy evaluation for large action spaces via policy convolution
  • Off-policy evaluation for large action spaces via embeddings
  • Off-policy evaluation for large action spaces via conjunct effect modeling
  • Potec: Off-policy contextual bandits for large action spaces via policy decomposition
  • Reliable off-policy learning for dosage combinations
  • Estimating individual treatment effect: generalization bounds and algorithms
  • Human–ai collaboration enables more empathic conversations in text-based peer-to-peer mental health support
  • Leveraging semantic similarity for experimentation with ai-generated treatments
  • Learning to summarize with human feedback
  • Counterfactual risk minimization: learning from logged bandit feedback (opens arXiv in a new tab)
  • Empirical study of off-policy policy evaluation for reinforcement learning
  • Fudge: Controlled text generation with future discriminators
  • Positivity-free policy learning with observational data
  • Plas: Latent action space for offline reinforcement learning
  • 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
  • Several adjacent literatures improve policies that can produce or select complex outputs, but rely on different information or deployment assumptions
  • Overlap controlled
  • even perfect reconstruction of the marginal within-code distribution averages across contexts, whereas deployment requires the context-specific mixture $\mu(\cdot \mid x, c)$
  • By independence of the proposal draws
  • The ideal acceptance sampler draws $A^{(1)}, A^{(2)}, \ldots \stackrel{\mathrm{iid}}{\sim} \mu(\cdot \mid x)$ and returns $A^{(T)}$, where $T := \min\{t \geq 1 : g_\phi(A^{(t)}) = c^\star\}$ is the first accepted index
  • The acceptance probability per draw is $\mu_C(c^\star \mid x)$, and $T$ is geometric with mean $1/\mu_C(c^\star \mid x)$
  • Taking expectations over $X$ and rearranging
  • Let $e_c(x) := m_C(x, c) - \widehat{m}(x, c)$ denote the code-level prediction residual
  • 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
  • The learner observes only $(X_i, A_i, Y_i)$
  • 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
  • We estimate $\mu_G(g \mid z)$ and $m_G(z, g)$ by sample averages and then evaluate oracle policies by table lookup
  • We learn codes with the full Stage 1 objective, including the prediction loss, distributional-overlap regularizer, and marginal code-balance regularizer
  • This diagnostic isolates whether changing the within-code action distribution creates a gap between code-level value and deployed value
  • Representation regret is
  • We report deployed value, improvement over the behavior policy, RA error, unsupported-code rate, and expected draws
  • We average results over independent random seeds and report one standard error across seeds
  • The benchmark evaluates the full method in a noisy structured-text setting under limited code-level overlap while deliberately retaining recoverable reward-relevant structure
  • Table 9 gives the ranking used in all experiments
  • \end{cases} $$
  • The rank effects are
  • The nuisance block has dimension 64 and the final random tail has dimension 2
  • With two tailoring levels, $\kappa_{R}=0.50$ assigns probability 0.75 to the appropriate tailoring level and probability 0.25 to the other level
  • All prompts return structured outputs
  • Use only the following values:
  • Output only JSON
  • Since prompt compliance is not guaranteed, we validate the realized code using $h_A$
  • This validation step is performed before assigning outcomes and does not use $Y$
  • If no valid headline is obtained after $L_{\mathrm{max}}$ attempts, the unit is discarded
  • For valid headlines, the noise-free deployed reward is
  • 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
  • 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 follow the released sentence-embedding procedure, projecting pooled Mistral hidden states to 20 dimensions with the supplied PCA matrix
  • Table 10 reports the strongest residual-effect setting, $\alpha_{\mathrm{dep}} = 1$, under the default synthetic DGP. All rows use the ground-truth code $C^{\star}$, the oracle code-level policy, and the true support rule; rows differ only in the Stage 3 instantiation rule
  • Table 11 reports the default synthetic DGP at $\alpha_{\mathrm{pred}} = 1$
  • Policy improvement is $V_{G}^{\star} - V(\mu)$, where $V_{G}^{\star}$ is the value of the oracle code-level policy for representation $G$
  • codes</td><td>$0.668\,(0.036)$</td><td>$0.288\,(0.036)$</td><td>$0.332\,(0.036)$</td><td>$0.088\,(0.001)$</td></tr><tr><td>Pred
  • Together, the overlap panels distinguish attainable policy improvement from value-estimation accuracy
  • The left panels report policy improvement (higher is better), and the right panels report expected draws (lower is better)
  • RA instead maximizes the fitted code-level outcome directly
  • Within each dataset, the baselines share the candidate generator and deployment evaluator
  • The synthetic column uses $\alpha_{\mathrm{pred}}=1$, $\alpha_{\mathrm{dep}}=0$, $\kappa_{\mathrm{ov}}=0.6$, 5,000 logged observations, and 10,000 noise-free evaluation samples