arXiv:2611.23154cs.LGNov 2026

Manuscript Offprint

arXiv:2611.23154

Learning Stratified Policies for Inference-Time Objectives

Mridul Mahajan, Xuezhou Zhang, Aldo Pacchiano

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Inference-time scaling improves the performance of large language models by sampling multiple responses and evaluating their collective utility. However, many existing approaches obtain these samples by repeatedly sampling from a single policy. In this work, we study if the sample budget at inference time can instead be allocated across a population of policies. We introduce stratified policies, where each of kk learned policies contributes one response to a kk-sample inference-time objective. We realize this policy population using separate LoRA adapters on a shared language model backbone and optimize it for pass@kk. We theoretically motivate the approach by analyzing the linear setting; a population of LoRAs can achieve zero best-of-kk approximation error in settings where every single LoRA has strictly positive prediction error. Empirically, we demonstrate that stratified policies consistently improve pass@kk over a single-policy baseline across multiple reasoning tasks. Overall, our results highlight how distributing samples across complementary policies can be a more effective use of sample budget than repeated i.i.d. sampling from a single policy at inference time.

1 Introduction

Inference-time computation is an effective way to improve the performance of large language models. Instead of relying on a single response, inference-time procedures sample multiple responses and evaluate their collective utility, such as best-of-kk (Huang et al., 2025), reranking (Cobbe et al., 2021), or majority voting (Wang et al., 2023). Inspired by this, recent works explicitly optimize language models for the inference-time procedure used at deployment (Tang et al., 2025; Chow et al., 2025; Walder and Karkhanis, 2025). This is different from standard post-training methods that optimize the quality of individual responses (Ouyang et al., 2022; Rafailov et al., 2023).

These approaches share a common sampling scheme: all kk responses are sampled independently from a single policy. Although this is natural, it imposes a particular allocation of the inference-time budget: every response must come from the same distribution. Interestingly, even when this distribution assigns probability mass to several useful solution modes, i.i.d. sampling can repeatedly sample from the same modes and miss others. For example, consider a policy whose response distribution places all its probability mass on five distinct solution modes. From the AM-GM inequality, five i.i.d. samples can cover all five modes with probability at most 5!/55≈3.84%5!/5^{5}\approx 3.84\%. This upper bound is achieved when the policy assigns equal mass to each mode. Therefore, even a perfectly uniform policy may fail to realize this diversity in a finite set of responses.

In this work, we formulate inference-time optimization through a population of policies: the sample budget at inference time is treated as an allocation across a policy population. More concretely, given a budget of kk responses, we jointly learn kk policies and sample exactly one response from each. We refer to this as stratified sampling, inspired by classical stratified sampling, which partitions a population into strata and samples separately from each stratum (Cochran, 1977). Unlike classical stratification, the learned policies need not partition the response space or have disjoint support. The standard single-policy formulation is recovered when all policies in the population are constrained to be identical. When this constraint is relaxed, the population can “hedge its bets” by learning policies that specialize in ways that improve the utility of the full set of responses. For pass@kk, this can encourage policy complementarity without any explicit diversity objective (see Fig. 1).

We realize this policy population efficiently using a shared (frozen) language model backbone with a separate low-rank adaptation (LoRA) (Hu et al., 2022) adapter for each policy. We focus on pass@kk as the utility function, where the objective is to maximize the probability that at least one response from the set is correct. Building on policy-gradient optimization for inference-time objectives, we train the population using Group Relative Policy Optimization (GRPO) (Shao et al., 2024).

Theoretically, we show that this population structure has an expressivity advantage in the linear setting. Specifically, when the target requires applying different linear maps over different regions of the input space, a LoRA population can assign a separate adapter to each region, but a single linear map must approximate all regions simultaneously. With sufficient rank, the policy population can achieve zero best-of-kk approximation error, whereas every single linear map incurs strictly positive error whenever the maps in different regions differ.

We evaluate stratified policies on a broad range of reasoning tasks spanning valid arithmetic expression construction, logical deduction, constraint satisfaction, and mathematical word problems. Across all tasks, stratification improves pass@55 over a single-policy baseline under the same inference-time response budget. On Sudoku, specifically, the pass@55 score increases from 74.2%74.2\% to 80.3%80.3\%. Furthermore, when the rank of the single LoRA adapter is increased 5×5\times to match the population, performance remains essentially the same, at 74.2%74.2\%, which suggests that the improvement is not explained by additional parameters alone. The learned population of policies also exhibits complementary behavior: for instance, on Sudoku, only 6.0%6.0\% of examples are solved by all five adapters, whereas 44.0%44.0\% are solved by exactly one. Together, these results demonstrate that population size provides an orthogonal scaling axis for inference-time objectives: instead of adding parameters to a single policy and repeatedly sampling from it, parameters can be distributed across policies that contribute complementary responses.

Figure 1: An illustrative example of stratification. With a fixed budget of five responses, i.i.d. sampling from a single policy may repeatedly sample the same solution modes (left). For five modes, the probability of covering all modes is at most 5!/55≈3.84%5!/5^{5}\approx 3.84\%, which is attained when the policy assigns equal probability to each mode. In contrast, stratified sampling allocates one response to each policy in a learned population, which allows specialized policies to produce complementary responses (right); under perfect specialization, all five modes are covered with probability one.

To summarize, our work makes the following contributions:

I. We introduce stratified policies for inference-time objectives, which replace kk i.i.d. samples from a single policy with one sample from each of kk learned policies (Section 4.1). For pass@kk, the objective recovers the binary-reward special case of Grinsztajn et al. (2023). II. We provide a practical realization of this population using multiple LoRA adapters on a shared language model backbone, and train the resulting population using a group-mean pass@kk advantage within GRPO (Sections 4.2 and 4.3). III. Theoretically, we prove that in a linear setting, stratification is strictly more expressive: with sufficient rank, a LoRA population can achieve zero best-of-kk approximation error while any single linear map incurs strictly positive error (Section 4.4). IV. We empirically demonstrate consistent pass@55 improvements across multiple reasoning tasks, along with the emergence of complementary specialization (Section 5).

We emphasize that our goal is not to design a state-of-the-art method for pass@kk. Instead, we show that allocating the sample budget across a learned population of policies, rather than repeatedly sampling a single policy, is a complementary axis to single-policy pass@kk training.

References (38)