Manuscript Offprint
arXiv:2610.08561Reinforcement Learning for Hierarchical Reasoning Rewards: Minimax-Optimal Rates with Transformers
ABSTRACT
Reinforcement learning (RL) has become a standard tool for post-training language models on reasoning tasks, where the policy is updated by reward feedback while exploring the space of responses. Despite its empirical success, theoretical understanding of RL post-training remains limited, in particular of why on-policy exploration combined with a neural reward model is effective. In this paper, we address this question by modeling the reward as a hierarchical function on the response space: the reward consists of infinitely many local components, each of which becomes relevant only after the preceding ones have been resolved. We show that a natural Transformer-based actor-critic algorithm, which alternates between sampling from the current KL-regularized policy, fitting a Transformer critic to the observed rewards, and updating the policy, achieves the minimax optimal rates in the query budget and in the regularization strength up to logarithmic factors, and is minimax optimal for a fixed number of prompts. In contrast, we prove that sampling from the fixed reference distribution, as in offline reward modeling, can limit regret decay to a logarithmic rate. These results show that on-policy exploration progressively zooms in on the region where the reward is concentrated, and quantify its benefit for RL post-training.
1 INTRODUCTION
Reinforcement learning (RL) has emerged as a central ingredient in post-training large language models (LLMs) for complex reasoning. Recent systems have demonstrated substantial gains on mathematical reasoning, coding, and other verifiable tasks by optimizing model-generated responses against outcome-based rewards (Shao et al., 2024; Guo et al., 2025; Kimi Team, 2025). In contrast to supervised fine-tuning from a fixed collection of demonstrations, RL post-training repeatedly generates responses from the current policy, scores them with a reward model or verifier, and updates the policy with the resulting feedback. This creates a feedback loop: as the model improves, the distribution of responses from which subsequent training data are collected changes as well.
Despite the empirical success of this paradigm, the statistical role of such adaptive data collection is not yet fully understood. Recent theoretical work has identified several benefits of exploration in LLM reasoning and alignment, through the dynamics of reasoning, the generalization of the learned policy, or the implicit exploration of a KL-regularized policy (Foster et al., 2025; Kim et al., 2025; Wang et al., 2026a;b), and suggests that where the training responses come from can be as important as the learning rule applied to them. Yet a basic statistical question remains open: when and why does adapting the response distribution improve the rate of learning, in particular for the reasoning tasks that have driven recent progress in RL post-training, in which a correct solution must clear several difficult steps in succession?
To study this question, we formulate LLM post-training as KL-regularized reward maximization over a response space and introduce a hierarchical model of reasoning rewards. The motivation is that complex reasoning rarely reveals all of its difficulties at once: only after one hard step has been cleared does it become apparent that another, again nontrivial, problem must be solved next. In a mathematical proof, for example, one may first need to find the right theorem to invoke; only once this is settled does it become clear which transformation is needed to apply it, and only then do the finer algebraic and logical decisions come into view. We model this by a hierarchy of smooth reward components supported on nested regions of the response space, with progressively more localized reward structure appearing closer to optimal responses.
This hierarchical structure creates a sharp statistical distinction between fixed and adaptive response collection. Under the uniform reference distribution, the nested regions carrying deeper reward components occupy exponentially small fractions of the response space, and observations outside a region carry no information about the component inside it: one cannot tell that a deeper step is needed before getting that far. Learning a deep component is therefore a rare-event problem. On-policy RL removes this barrier: once a coarse reward component has been learned, the policy shifts its mass toward the corresponding promising region, so that the next batch is collected precisely where the next, finer component becomes visible. Repeating this step progressively localizes the data distribution around high-reward responses.
Contributions. We make this intuition precise through a minimax analysis. Let denote the total number of reward observations, the number of prompts, the strength of the KL regularization, the rate at which deeper reward components decay, and the smoothness of the components in a -dimensional response embedding space. Our contributions are threefold.
-
Hierarchical reward model and minimax characterization. We introduce the nested hierarchical reward model and characterize the minimax regret over all (adaptive) algorithms. For fixed , when the regularization is absent or weak, the minimax rate is : the difficulty is how deep in the hierarchy the learner can explore. In the large-budget regime, the rate is with : the difficulty is the local nonparametric estimation of the reward near the optimum. The upper bounds match the lower bounds up to logarithmic factors and a factor polynomial in , and up to logarithmic factors for fixed .
-
A minimax-optimal Transformer actor–critic. We give an on-policy actor–critic whose critic is a causal Transformer, refitted at every iteration to fresh on-policy observations, and whose actor is the resulting Gibbs policy. Such a procedure, motivated by standard RL post-training, attains both rates above up to logarithmic factors and is thus minimax optimal for fixed M.
-
A statistical separation from fixed response collection. We establish lower bounds for algorithms whose responses are drawn from the fixed reference distribution , as in offline reward modeling, while the estimator and the output policy are unrestricted. Because deeper reward components are exponentially rare under fixed sampling, the regret can decay only logarithmically in when the regularization is weak. The benefit of on-policy RL is therefore statistical, not merely an optimization effect of the policy update.
Related work. A first line of work adapts the distribution of tasks or prompts during training: easy-to-hard schedules (Li et al., 2023; Parashar et al., 2026), adaptive prompt selection from the current performance (Rajaraman et al., 2026), and depth- or hint-based curricula (Bu et al., 2026). The last makes RL post-training with outcome-only rewards polynomial instead of exponential on a discrete reasoning tree. There the adaptivity is over prompts or tasks and the intermediate signal is supplied by the curriculum; here the prompt distribution is fixed and the learner adapts only its response distribution, which is possible because the reward is graded rather than outcome-only.
Technically, the closest algorithms are those for continuum-armed bandits, which partition the action space hierarchically and refine it around the maximizer (Kleinberg et al., 2008; Bubeck et al., 2011; Munos, 2011; Valko et al., 2013). We depart from that line in three ways, all motivated by LLM reasoning: the reward is hierarchical, with a new difficulty appearing at every level; the target is a diverse policy, the Gibbs policy at temperature , rather than the maximizer alone; and the optimal rates are attained by fitting an LLM-compatible Transformer critic and updating a Gibbs actor, rather than by optimistic tree search. Nishikawa & Suzuki (2026) likewise alternate between updating a policy and refitting a neural reward estimator, but for a non-hierarchical reward with a fully connected estimator that must be smoothed before it drives the policy, and their rate is not matched by a lower bound. Appendix A discusses these two lines in more detail, together with search over reasoning trajectories, on-policy exploration under KL regularization, and neural function approximation in estimation and RL.

Figure 1: A hierarchically nested reward (Definition 1), for and zoom depths . (Top) A response is a path in a tree with children per node, and a prefix of depth is a dyadic cube of that depth. The primitive lives on ; inside the cell around its maximizer, is added, rescaled to , and so on. (Bottom) The resulting reward : bumps of decreasing weight and decreasing width accumulate around the maximizer .
2.1 HIERARCHICALLY NESTED REWARDS
We consider multi-step reasoning tasks with a hierarchical reward: at first only the coarse structure of the problem is visible, and solving one step reveals a further problem nested inside it. We model this structure by functions on the response embedding space in which a new term is added each time the argument enters a small region around the maximizer of the previous term; how a response of a language model is mapped to a point of is explained in Section 2.2.
Hierarchically nested functions. Let be the uniform distribution on , being the Lebesgue measure of and its indicator. A dyadic cube of depth is a cube of side of the form with integers , and is the depth-h dyadic cube containing , so that . The idea is that a first function is defined on the whole cube; once the argument enters the small dyadic cube around the maximizer of , a second function is added on that cube (rescaled to ), and so on.
Definition 1 (Hierarchically nested function class). Let be a sequence of uniformly bounded functions , let be positive numbers with , and let be positive integers (zoom depths); write , . For each , fix a maximizer (ties broken by a fixed rule) and let be the depth- dyadic cube containing . Define the active cells recursively by and , of depth , where is the lower-left corner of , so that . The hierarchically nested function generated by is
where is the extension of by zero to , so that is a rescaled copy of on and vanishes outside. We write for , and for the class of all such functions.
The cells are nested, , and the -th level is visible only inside : solving level (entering ) is a prerequisite for collecting the rewards of the deeper levels. Figure 1 illustrates the construction.
We make the following assumption; see Appendix B.1 for -Hölder smoothness.
Assumption 2. Let , , , and integers be known constants, and let with . The function has unknown primitives and unknown zoom depths that satisfy the following conditions: (A1) (Smoothness and boundedness) , , and is -Hölder smooth with constant for all . (A2) (Positive maximum) for all . (A3) (Deep enough zoom) for all , and . (A4) (Zero mean) ().
We collect the structural parameters as , and write for the weight of the levels deeper than . Constants such as and those implicit in , and depend only on and the noise level of Section 2.3.
Remark. (A1) is a standard smoothness condition. Requiring it of the zero extension makes a primitive vanish continuously at the boundary of its cell, so that is continuous although it has infinitely many levels. (A2) and (A3) guarantee a genuine “correct continuation” at every level: is so small that the variation of the previous levels inside it is dominated by the gain of solving level , uniformly in . (A4) makes the deeper levels cancel when averaged over a cell containing them, so that the average of over a region (Section 2.3) reveals only the levels that this region has resolved; by analogy with mathematical research, the deeper one digs into a problem, the deeper the results that come into view. Under Assumption 2, and its unique maximizer is the common point of the nested cells (Lemma 6).
2.2 RL POST-TRAINING AS KL-REGULARIZED REWARD MAXIMIZATION
Let be the set of prompts and the set of responses. A policy specifies, for every prompt , a conditional distribution over responses; a language model is a policy, and generating a response means sampling from it. The quality of a response is measured by an unknown reward function . Given a reference policy , typically the model before post-training, and a regularization strength , post-training maximizes the KL-regularized objective
over prompts , where is the Kullback–Leibler divergence; this is the objective of KL-regularized post-training such as PPO and GRPO (Ziegler et al., 2019; Ouyang et al., 2022; Schulman et al., 2017; Shao et al., 2024). The performance of a policy is its regret
For we have , so is the unregularized regret. The learner does not know and can only query a noisy reward oracle a limited number of times (Section 2.3), which is the dominant cost when the reward comes from a verifier or a human.
For simplicity, we take the prompts to be labels, , drawn uniformly, , and the responses to be infinite binary sequences, , generated one bit at a time; the reference policy generates the bits uniformly at random. Prompts are exogenous: at every round of interaction, a fresh prompt is drawn from independently of the past, and the learner cannot choose or reject prompts. The reward functions of different prompts are unrelated, and we write for .
Embedding of responses. We embed responses into so that the responses sharing a given prefix form a dyadic cube, and a longer prefix a smaller cube inside it. Concretely, we interleave the bits across the coordinates in a round-robin fashion: with for . A prefix of length then corresponds to the dyadic cube , and generating bits uniformly corresponds to . We identify a response with and a prefix with a cube, so that a policy is a distribution over . The embedding can be read as part of the language model itself: it places responses that share a long prefix close to each other, so that the reward, as a function on , records how the quality of a response depends on its reasoning prefix. Any embedding whose regions form a family of dyadic cubes would do; the results do not depend on the particular interleaving.
Hierarchically nested rewards of prompts. For every prompt the reward is a hierarchically nested function satisfying Assumption 2, with unknown primitives ; the weights and the zoom depths are shared, and we write , , for the cells, levels and maximizer of prompt , and for the resulting class of rewards. Each level is one difficulty of the task: its contribution decays with the depth at which it appears and is collected only once the earlier ones have been resolved. The reward is thus a function of the whole response rather than of a final answer, as in post-training pipelines where a verifier or a generative reward model scores the entire trajectory (Shao et al., 2025; DeepSeek-AI, 2026).
2.3 REWARD ORACLE AND LEARNING PROTOCOL
The learner interacts with the environment for rounds, each of which yields exactly one observation. At round a prompt arrives, the learner generates a possibly partial response and queries the reward of one prefix, i.e. one dyadic cube containing the response. The oracle returns the average reward over that cube plus noise,
where, conditionally on the history and on , the noise is mean zero and -sub-Gaussian, with (or an upper bound on it) known to the learner.
Equivalently, is the expected terminal reward of a response with prefix whose remaining bits are generated by the reference policy, the randomness of the completion being absorbed into the noise. This value can be estimated by Monte Carlo completions, as in methods that derive process supervision from terminal outcomes (Wang et al., 2024; Setlur et al., 2024). By (A3) and (A4), a prefix of depth resolves at most the first levels, and deeper levels do not contribute to .
After the rounds the learner outputs a policy for every prompt. It knows and , but neither the primitives, nor the zoom depths, nor the cells, nor the maximizers.
3 TRANSFORMER ACTOR–CRITIC ATTAINS THE MINIMAX RATES
In this section, we present an actor–critic algorithm in which the critic is a Transformer trained by empirical risk minimization on the full class and the actor is a KL-regularized (Gibbs) policy, and prove its regret bound.
3.1 TRANSFORMER CRITIC
The critic takes a prompt and a prefix and outputs a scalar. Its input is a token sequence over the vocabulary : the prompt token , the bits of the prefix, a STOP token, PAD tokens, and a readout token OUT at the last position, the PAD tokens bringing every input to the same length . Tokens are represented by one-hot vectors, . Following Takakura & Suzuki (2023), the Transformer architecture has three components: (i) a position-wise FNN layer, (ii) a self-attention layer, and (iii) an embedding layer.
(i) An FNN of depth and width is with , , and the ReLU activation applied element-wise; is the class of such FNNs with and . (ii) A causal self-attention layer with embedding dimension and parameters maps to , , where and , so that each position attends only to itself and the preceding ones; denotes the class of such layers with . (iii) The embedding layer is with a learnable and the fixed sinusoidal positional encoding , , .
Algorithm 1 Transformer actor-critic with prefix-level exploration
Input: budget n, prompts M, regularization , and the schedule of Section 3.2.
1: Initialize the score .
2: for do
3: Actor: ,
i.e., .
4: Collect: for : receive ; generate prefix by prefix, stopping at the prefix ; observe .
5: Critic: .
6: Update: pointwise in , with the mask and the clipping width .
7: end for
8: return: .
We define the class of Transformers by
where is the number of blocks (the depth of the Transformer; a block consists of a self-attention layer followed by an FNN layer ), the FNNs are applied column-wise, the last FNN has a one-dimensional output, and clip = clip is applied element-wise. A network thus maps an input sequence to a sequence of scalars in , and the critic's prediction is the entry at the readout position, ; we identify with this scalar function. The class is that of Takakura & Suzuki (2023), with causal attention in place of sliding-window attention, a single head, and the output read at the last position.
3.2 ALGORITHM
Algorithm 1 is an on-policy actor–critic of the kind used in RL post-training. It maintains a score , the current estimate of the reward, and an actor , the Gibbs policy of that score at a temperature ; since the score is piecewise constant on dyadic cubes, the actor is sampled autoregressively, the probability of the next bits being the ratio of the Gibbs masses of the children. Each iteration collects a fresh batch of on-policy responses and queries their rewards, fits the critic to them, and updates the actor. Every decision about a sample is a function of its own prefix, the shared critics and the shared rules. What distinguishes the algorithm from a vanilla actor–critic is the choice of the queried prefix.
Depth curriculum and adaptive resolution. Level i of the reward is visible only inside , so the learner has to zoom in along the correct path, while deep bits of a response that is already wrong at a shallow level carry no information (A4). Algorithm 1 therefore uses a depth curriculum: at iteration h the actor's confidence is judged at depth h, which increases by one per iteration, and a response that is confident down to that depth is queried depths deeper, the lookahead. Training on reasoning of increasing length or difficulty is standard practice in RL post-training (Luo et al., 2025; Kimi Team, 2025) and an instance of curriculum learning (Bengio et al., 2009). The critic is a process reward model, trained on prefixes of all depths (Lightman et al., 2024; Wang et al., 2024), which allows a response to be stopped early and queried at a coarse prefix whenever the actor is not confident about it (adaptive resolution). The query rule is
with a constant threshold : generation stops at the first prefix whose actor mass falls below and that prefix is queried; if none does, the response is extended and queried levels deeper. The rule uses only the probability that the current actor assigns to a prefix, which an autoregressive model already computes while generating it. The lookahead is in the small-regularization setting, where the iterations simply continue as long as the budget allows and the output is the last actor, and with and in the large-budget setting, where they are followed by the step described next.
Training the critic. The critic is the least-squares fit over the entire class to all records of the batch, including those of the responses that stopped early; all parameters are fitted, and no quantity is computed or memorized per cube. Its risk is controlled by the approximation power and the covering number of , as in the nonparametric analysis of least squares over deep network classes (Schmidt-Hieber, 2020; Takakura & Suzuki, 2023). The batch of iteration has size up to logarithms, with : an iteration must reach the accuracy of the level it queries (the schedules are given in Appendices C.1 and D.1).
Actor update. Two devices standard in RL post-training are used in the update. In the front phase, the score is replaced only on the cubes of actor mass at least , where the critic has just been trained on fresh on-policy data, and the mask keeps the old score elsewhere: this is a trust region in the spirit of TRPO and PPO (Schulman et al., 2015; 2017). In the front phase no clipping is needed, ; the final update is clipped, as in PPO, since a Gibbs policy at temperature amplifies an overestimate of the score exponentially.
Final refinement step (large budgets only). After exploration iterations the actor has resolved as many levels as can distinguish, and the remaining budget is spent on one last iteration, which samples at temperature , sets , and uses
where is the last exploration iteration at which the region of was updated, is a refinement depth and is a structural constant. Querying levels deeper than the last update balances approximation against estimation: the reward is Hölder in the local coordinates of each shell , so a finer query buys a better fit until the estimation error takes over.
3.3 REGRET UPPER BOUND
We give two upper bounds, one for each regime of , proved in Appendices C and D.
Theorem 3. Suppose that , that the noise is conditionally -sub-Gaussian, that and that with . Run Algorithm 1 with the hyperparameters of Appendix D.1 in the first case below and of Appendix C.1 in the second; in both cases it uses at most queries, and its output satisfies, for a fixed exponent and with hiding logarithmic factors,
Theorem 3 leaves a band between its two cases, namely , in which the algorithm is well defined but we prove no guarantee. Up to logarithmic factors, the gap between the two thresholds is the price of using a single critic for all prompts: the guaranteed depth is rather than , since estimation theory bounds the error under the joint query law, not the error on every prefix that a prompt updates (Lemma 23). For a fixed number of prompts the gap is only polylogarithmic, and outside the band both rates are the minimax rates of Section 4 up to logarithmic factors.
Proof sketch. We sketch the proofs through the three inequalities that produce the two rates.
First, the actor keeps exploring the correct path. The two facts support each other by induction on . If the score is accurate on each cube at the scale of the depth at which that cube was created, then the reward gap between the correct cube of depth and any cube that left the path exceeds the errors made so far, and the Gibbs actor satisfies uniformly in and in the reward (Lemma 12). The correct cube is therefore refined at every iteration, and the fresh batch drawn there restores the accuracy one level deeper; this is what keeps the queries concentrated where the next level is visible, and the same computation shows that the mass leaving the path levels earlier decays like , so the queried prefixes stay in a window of logarithmic length and the critic only has to approximate finitely many Hölder functions there.
Second, the depth reached is fixed by the budget. Resolving level requires an accuracy on a cube average, so the batches needed to reach depth satisfy
up to logarithms, the power being the price of converting the risk of the shared critic into accuracy at each updated prefix. In the small-regularization case this is the whole argument: the output is the last actor, uniform on cubes of depth , its regret is the weight of the unresolved levels, and (8) gives , hence the first exponent of (7). The regularization only adds the penalty , which stays below in the first case.
Third, in the large-budget case the score has to be turned into a regret bound. A Gibbs policy at temperature cannot distinguish levels of weight below , i.e. levels deeper than ; reaching that depth costs queries by (8), up to logarithms. What remains is the fine shape of the reward around the correct path, which the last iteration estimates with one more critic. The regret is an integral of variances under the interpolated Gibbs policies. Pointwise accuracy of the held score, clipping and exponential-moment control bound their density ratios relative to the collecting policy, giving schematically
(Proposition 24). Here the projection error is the squared error from replacing the reward by its cube averages; the core and failure terms are lower order. Since the reward is -Hölder in local coordinates on each shell, the squared error obeys the nonparametric tradeoff, and balancing it against (8) gives the second case of (7).
4 MINIMAX LOWER BOUND
We now show that the rates of Theorem 3 cannot be improved by any algorithm, including algorithms that select prefixes adaptively without any restriction on computation, memory, or the use of past data. Let be the class of noise distributions that are conditionally mean zero and -sub-Gaussian as in Section 2.3, and define the minimax regret
where the infimum is over all learning algorithms that use at most queries in the protocol of Section 2.3.
Theorem 4. Fix , suppose that and let . For all and ,
The proof is given in Appendix E. The condition only ensures that the class is rich enough to contain the hard instances, with the sufficient constant defined in (86) for a bump of amplitude one and radius ; the bounds hold even if the zoom depths are revealed to the learner.
The table below compares Theorems 3 and 4 regime by regime; all entries are up to polylogarithmic factors. The first cases of (7) and (11) hold under the same condition on , and the second case of (11) holds for every . In both regimes the two columns agree in the budget and in the regularization , and for a fixed number of prompts they agree completely: there the algorithm is minimax optimal up to logarithmic factors. Since the lower bounds hold for every algorithm, no amount of computation or memory can improve on our on-policy scheme by more than logarithmic factors. Apart from logarithmic factors, the two columns differ only through , in the rate when the regularization is small and in the range of when the budget is large; both differences come from converting the joint error of the shared critic into accuracy at every updated prefix, which makes the cost of reaching depth in (8) grow as rather than in the number of prompts.
| Lower bound (Theorem 4) | Algorithm 1 (Theorem 3) | |
|---|---|---|
| Small regularization | ||
| Large budget |
Remark (the two bottlenecks). The two bounds describe two different obstructions. Small regularization: the budget. The budget runs out before the levels of weight are resolved, so the regret is dominated by the weight of the unresolved levels and neither nor appears. The bound is the same for and for every , because in that range the regularization changes the optimal value only by , a small fraction of . Large budget: the regularization. The correct path can be resolved down to the last level of weight , at depth , and what is left is to estimate the fine shape of the reward around it. The second bound holds for every , and the first, where it applies, is the larger one.
5 LOWER BOUND FOR FIXED-DISTRIBUTION SAMPLING: THE BENEFIT OF ON-POLICY EXPLORATION
The algorithm of Section 3 is on-policy: the responses whose rewards are queried are generated by the current actor. A common alternative in reward modeling is to collect responses from a fixed base distribution and to fit the reward model offline. In this section, we show that this restriction is costly in the hierarchical setting. Let be the class of algorithms that, at every round , generate the response uniformly at random (independently of the past), may choose the depth of the queried prefix after seeing and the history, and output an arbitrary policy at the end. The only restriction is the sampling distribution: the estimator, the choice of the query depth and the final policy are unrestricted, and past data may be reused freely. Let be the minimax regret (10) with the infimum restricted to .
Theorem 5 (The price of fixed sampling). Suppose that and . There are constants such that, for all ,
The first bound holds for every , that is, even for a noiseless oracle.
The proofs are given in Appendix F. The two bounds describe two budget regimes. While , the regret of any fixed-sampling method decays at most logarithmically in , whereas in the large-budget regime of Theorem 3, the on-policy actor–critic achieves a polynomial rate; the two conditions are compatible for small . For larger budgets the fixed-sampling regret does decay polynomially, but it reaches that same rate only with the multiplicative price , whereas the on-policy bound depends on polynomially. Two complements are proved there: for a fixed and the exponent of is not worsened by fixed sampling (Proposition 40); and the first bound is tight in its regime (Proposition 39).
Why on-policy sampling escapes. Once the actor has learned that a prefix is promising it generates responses from that prefix, so the cell of the next level is visited with constant probability rather than with probability . Each iteration of Algorithm 1 then resolves one level at a cost of queries instead of , which is the statistical benefit of RL post-training over offline reward modeling in this setting.
6 CONCLUSION
We studied RL post-training with hierarchical rewards, in which the reward of a binary response is a sum of infinitely many Hölder primitives revealed level by level. A Transformer actor–critic of the standard form, alternating on-policy sampling from a KL-regularized policy, least-squares training of a shared Transformer critic and a Gibbs policy update, matches the minimax rates in the budget and in the regularization up to logarithmic factors, and is minimax optimal for a fixed number of prompts. The analysis identifies the role of each component: the prefix mass of the current policy selects where to query, the temperature schedule keeps the correct path confident, the full-class ERM adapts to the unknown cells, and a calibrated, clipped final update transfers the estimation error to the regret. Any method that keeps sampling from the fixed reference distribution , in contrast, suffers a logarithmic rate or an exponential price in , which quantifies the benefit of on-policy exploration.
Limitations and future work. Our upper bounds are not optimal in the number of prompts M, for the reason given in Section 4; removing the extra factor, for instance through a prompt-wise estimation guarantee or an analysis of the exploration in expectation over the prompts, is left open. The two upper bounds are also separated by the band described after Theorem 3, where the same algorithm is well defined but we prove no guarantee, and the two parameter settings differ in the lookahead and in the presence of the refinement step. We assumed exact ERM and exact Gibbs sampling; the optimization remains to be analyzed. An empirical study of the prefix-mass exploration rule on synthetic hierarchical rewards and reasoning benchmarks is left for future work.
ACKNOWLEDGMENTS
NN was partially supported by JST ACT-X (JPMJAX24CK) and JST BOOST (JPMJBS2418). TS was partially supported by JST CREST (JPMJCR2115) and JSPS KAKENHI (24K02905). This work was partially supported by JST ERATO (JPMJER2601). This research is supported by the National Research Foundation, Singapore and the Ministry of Digital Development and Information under the AI Visiting Professorship Programme (award number AIVP-2024-004). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of National Research Foundation, Singapore and the Ministry of Digital Development and Information.
AI USE STATEMENT
In this work, generative AI tools assisted with developing the theoretical model and formulating mathematical claims, provided key ingredients for proofs, and assisted with revising mathematical statements, developing and checking proof arguments, and drafting and editing proofs. Additionally, we used generative AI tools for drafting and revising parts of the manuscript, for the code that generates the figure, and for identifying and formatting references. We have reviewed all AI-assisted work. Every theorem, lemma and proof was verified by the authors, and all AI-drafted text was revised by them. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
REFERENCES
Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In International Conference on Machine Learning, pp. 41–48, 2009.
Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013.
Dake Bu, Wei Huang, Andi Han, Atsushi Nitanda, Hau-San Wong, Qingfu Zhang, and Taiji Suzuki. Provable Sample Efficiency of Curriculum Post-Training for Transformer Reasoning. In International Conference on Machine Learning, 2026.
Sébastien Bubeck, Rémi Munos, Gilles Stoltz, and Csaba Szepesvári. X-armed bandits. Journal of Machine Learning Research, 12:1655–1695, 2011.
DeepSeek-AI. DeepSeek-V4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348, 2026.
Jianqing Fan, Zhaoran Wang, Yuchen Xie, and Zhuoran Yang. A theoretical analysis of deep Q-learning. In Proceedings of the 2nd Conference on Learning for Dynamics and Control, volume 120 of Proceedings of Machine Learning Research, pp. 486–489. PMLR, 2020.
Dylan J Foster, Zakaria Mhammedi, and Dhruv Rohatgi. Is a good foundation necessary for efficient reinforcement learning? the computational role of the base model in exploration. In The Thirty Eighth Annual Conference on Learning Theory, pp. 2026–2142. PMLR, 2025.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, et al. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948v1, 2025. URL https://arxiv.org/html/2501.12948v1.
Satoshi Hayakawa and Taiji Suzuki. On the minimax optimality and superiority of deep neural network learning over sparse parameter spaces. Neural Networks, 123:343–361, 2020.
Juno Kim, Denny Wu, Jason D Lee, and Taiji Suzuki. Metastable dynamics of chain-of-thought reasoning: Provable benefits of search, RL and distillation. In International Conference on Machine Learning, 2025.
Kimi Team. Kimi k1.5: Scaling reinforcement learning with LLMs. arXiv preprint arXiv:2501.12599, 2025.
Robert Kleinberg, Aleksandrs Slivkins, and Eli Upfal. Multi-armed bandits in metric spaces. In Proceedings of the 40th Annual ACM Symposium on Theory of Computing, pp. 681–690, 2008.
Qiyang Li, Yuexiang Zhai, Yi Ma, and Sergey Levine. Understanding the complexity gains of single-task RL with a curriculum. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research. PMLR, 2023.
Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations, 2024.
Michael Luo, Sijun Tan, Justin Wong, Xiaoxiang Shi, William Y. Tang, Manan Roongta, Colin Cai, Jeffrey Luo, Li Erran Li, Raluca Ada Popa, and Ion Stoica. DeepScaleR: Surpassing O1-preview with a 1.5B model by scaling RL. Notion blog post, 2025. URL https://pretty-radio-b75.notion.site/DeepScaleR-Surpassing-O1-Preview-with-a-1-5B-Model-by-Scaling-RL-19681902c1468005bed8ca303013a4e2.
Rémi Munos. Optimistic optimization of a deterministic function without the knowledge of its smoothness. In Advances in Neural Information Processing Systems, volume 24, 2011.
Naoki Nishikawa and Taiji Suzuki. Inference-time alignment with rewards in Besov spaces: Provable advantages of feature learning and multi-step policy updates. In International Conference on Machine Learning, 2026.
Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35, 2022.
Shubham Parashar, Shurui Gui, Xiner Li, Hongyi Ling, Sushil Vemuri, Blake Olson, Eric Li, Yu Zhang, James Caverlee, Dileep Kalathil, and Shuiwang Ji. Curriculum reinforcement learning from easy to hard tasks improves LLM reasoning. In International Conference on Learning Representations, 2026.
Nived Rajaraman, Audrey Huang, Miro Dudik, Rob Schapire, Dylan Foster, and Akshay Krishnamurthy. Learning to reason with curriculum I: Provable benefits of autocurriculum. In Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pp. 5518–5555. PMLR, 2026. URL https://proceedings.mlr.press/v336/rajaraman26a.html.
Johannes Schmidt-Hieber. Nonparametric regression using deep neural networks with ReLU activation function. The Annals of Statistics, 48(4):1875–1897, 2020.
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
Amrith Setlur, Chirag Nagpal, Adam Fisch, Xinyang Geng, Jacob Eisenstein, Rishabh Agarwal, Alekh Agarwal, Jonathan Berant, and Aviral Kumar. Rewarding progress: Scaling automated process verifiers for LLM reasoning. arXiv preprint arXiv:2410.08146, 2024.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Zhihong Shao, Yuxiang Luo, Chengda Lu, Z. Z. Ren, Jiewen Hu, Tian Ye, Zhibin Gou, Shirong Ma, and Xiaokang Zhang. DeepSeekMath-V2: Towards self-verifiable mathematical reasoning. arXiv preprint arXiv:2511.22570, 2025.
Taiji Suzuki. Adaptivity of deep ReLU network for learning in Besov and mixed smooth Besov spaces: Optimal rate and curse of dimensionality. In International Conference on Learning Representations, 2019.
Shokichi Takakura and Taiji Suzuki. Approximation and estimation ability of transformers for sequence-to-sequence functions with infinite dimensional input. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 33416–33447. PMLR, 2023.
Alexandre B Tsybakov. Introduction to Nonparametric Estimation. Springer, 2008.
Michal Valko, Alexandra Carpentier, and Rémi Munos. Stochastic simultaneous optimistic optimization. In Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pp. 19–27. PMLR, 2013.
Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhifang Sui. Math-Shepherd: Verify and reinforce LLMs step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 9426–9439, 2024.
Siwei Wang, Yifei Shen, Haoran Sun, Shi Feng, Shang-Hua Teng, Li Dong, Yaru Hao, and Wei Chen. Benefits and pitfalls of reinforcement learning for language model planning: A theoretical perspective. In International Conference on Learning Representations, 2026a.
Zichen Wang, Haoyang Hong, and Huazheng Wang. When greedy sampling explores: KL-regularized contextual bandits without eluder-dimension dependence. arXiv preprint arXiv:2609.13564, 2026b.
Wei Xiong, Hanze Dong, Chenlu Ye, Ziqi Wang, Han Zhong, Heng Ji, Nan Jiang, and Tong Zhang. Iterative preference learning from human feedback: Bridging theory and practice for RLHF under KL-constraint. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research. PMLR, 2024.
Zhuoran Yang, Chi Jin, Zhaoran Wang, Mengdi Wang, and Michael I. Jordan. Provably efficient reinforcement learning with kernel and neural function approximations. In Advances in Neural Information Processing Systems, volume 33, 2020.
Dmitry Yarotsky. Error bounds for approximations with deep ReLU networks. Neural Networks, 94:103–114, 2017.
Heyang Zhao, Chenlu Ye, Wei Xiong, Quanquan Gu, and Tong Zhang. Logarithmic regret for online KL-regularized reinforcement learning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 77864–77884. PMLR, 2025.
Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.
A ADDITIONAL RELATED WORK
This appendix expands the discussion of related work in Section 1.
Prompt-side curricula. Prior work provides theoretical analyses of how easy-to-hard task schedules (Li et al., 2023; Parashar et al., 2026), performance-based prompt selection (Rajaraman et al., 2026), and depth- or hint-based curricula (Bu et al., 2026) improve learning efficiency. These curricula adjust the tasks or prompts used for training. In our setting, the prompt distribution is fixed; reward feedback instead guides the learner to adapt its response distribution toward promising regions. Accordingly, the baseline in our separation is sampling from the fixed reference distribution, not RL without a curriculum, and the two forms of adaptivity can be combined.
Search and exploration over reasoning trajectories. Kim et al. (2025) model chain-of-thought as a metastable Markov process and analyze how search discovers rare transitions between clusters of reasoning states. Wang et al. (2026a) study language models that generate paths between given vertices of a graph, analyzing how exploration and policy updates affect planning accuracy, convergence, and output diversity. In contrast, we ask how much adapting the response distribution can reduce the number of noisy reward observations needed for policy learning, relative to sampling from the fixed reference distribution.
On-policy exploration under KL regularization. Exploration and iterative learning under KL regularization have been analyzed in linear-softmax and preference-feedback frameworks (Foster et al., 2025; Xiong et al., 2024). Zhao et al. (2025) bound the suboptimality of Gibbs policies through squared reward-estimation errors, a mechanism that our analysis also uses (Appendix C.3), while Wang et al. (2026b) show that sampling from the Gibbs policy of an estimated reward can itself provide sufficient exploration under sufficiently strong regularization. In contrast, we study Gibbs-policy learning with noisy prefix-reward observations and hierarchically nested nonparametric rewards.
Continuum-armed bandits. Continuum-armed bandit methods concentrate sampling on promising regions by refining the action space, as in zooming and HOO (Kleinberg et al., 2008; Bubeck et al., 2011); SOO and StoSOO handle unknown local smoothness (Munos, 2011; Valko et al., 2013). Our algorithm shares this coarse-to-fine exploration principle, but our problem formulation reflects two features of LLM post-training. Specifically, we use KL regularization to retain response diversity and hierarchically nested rewards to model reasoning tasks in which resolving one difficulty reveals the next. In addition, our rates are attained not by optimistic tree search with explicit confidence bounds but by an LLM-compatible actor-critic, which fits a Transformer critic to on-policy reward feedback and updates the actor as a Gibbs policy.
Neural function approximation in estimation and RL. Approximation and estimation theory for deep networks provides statistical guarantees for nonparametric regression (Schmidt-Hieber, 2020; Suzuki, 2019; Hayakawa & Suzuki, 2020), and Takakura & Suzuki (2023) establish corresponding results for Transformers with sequence inputs. These results underpin our bounds on the Transformer critic's estimation error. In neural value-function learning for MDPs, Fan et al. (2020) use a fixed sampling distribution, while Yang et al. (2020) use optimism-based exploration. Both analyses link approximation and estimation errors to policy-performance guarantees. In contrast, under a hierarchical reward structure modeling reasoning, we study how much adapting the response distribution can improve learning from reward feedback relative to sampling from the fixed reference distribution.
B COMMON PRELIMINARIES AND TOOLS
This section collects the material that is used by more than one of the proofs that follow: the conventions and notation of the whole appendix (Appendix B.1), the geometry of hierarchically nested rewards (Appendix B.2), the Gibbs mass of the correct cube under a birth-accurate score (Appendix B.3), and the approximation and estimation theory of the Transformer critic on the relevant window (Appendix B.4). The geometry of Appendix B.2 is used by the upper bounds of
Appendices C and D and again by the lower bounds of Appendices E and F; the remaining subsections are common to the two upper bounds. The results specific to one theorem, together with the hyperparameter schedules that they use, are stated in the section devoted to that theorem.
B.1 CONVENTIONS AND NOTATION
-Hölder smoothness. For , put , and . For define
where is a multi-index and the empty sum is zero. On a cube, uses the same restricted norms. We call -Hölder smooth with constant if and . Thus integer smoothness means that derivatives of order are Lipschitz; for , . Condition (A1) preserves the original Hölder condition for and implies for every : when , integrate the gradient along the segment and use . We use (or -Hölder) for the full smoothness of (13), and for function-value oscillations.
Conventions. Throughout the appendix, denote positive constants that depend only on the structural parameters and on , and never on ; their values may change from line to line. We fix a reward and suppress the prompt index when a single prompt is considered. We use the following notation:
The abbreviations and for the two exponents are used in the appendix only (they are recalled where needed). Both upper bounds measure the accuracy of a score at the depth of the cube that carries it, and both pay a power of in the batch sizes; we write
for the known scale attached to a depth (so that for , by (A3)), the exponent of in the budget, and a logarithmic factor of an approximation size .
Table 1 collects the symbols of this list that recur throughout the appendix, and Table 2 the quantities that the two upper bounds share. The schedules that belong to one proof only are listed in Table 3 for the large-budget bound of Theorem 3 and in Appendix D.1 for the small-regularization bound of Theorem 3.
By (A3),
and for ,
Table 1: Notation used throughout the appendix.
| Symbol | Meaning |
|---|---|
| weight of level of the hierarchy | |
| weight of the levels deeper than | |
| depth at which level is fully resolved | |
| active cell of level ; shell | |
| reward truncated at level | |
| optimal reward of prompt | |
| cube average (4) queried by the oracle | |
| gap constant of Lemma 8 | |
| zoom contraction, its -weighted version, branching | |
| the two exponents of Theorem 3 |
Table 2: Notation shared by the two upper bounds.
| Symbol | Meaning | Defined in |
|---|---|---|
| accuracy scale attached to depth | (14) | |
| exponent of in the batch sizes | (14) | |
| score at phase ; partition on which it is constant | Lemma 19 | |
| birth-accuracy level | Definition 11 | |
| correct depth- cube; the level it has reached | Appendix B.3 | |
| Gibbs mass of the correct cube | Lemma 12 | |
| temperature schedule; mass threshold | Appendix B.3 | |
| lookahead: query depth minus phase | Section 3.2 | |
| number of front-phase iterations | Appendices C.1 and D.1 | |
| accuracy required of the critic of phase | (52) | |
| query window; its size, length, approximation size | Lemma 17 | |
| actor mass of a single fine query | Lemma 21 | |
| batch size and failure budget of phase | Appendices C.1 and D.1 | |
| event that all front-phase critics are accurate | (52) |
For a cube we write for the cube average (4); the cube average always carries its arguments, and the cubes of the lower-bound constructions never do. The letters that name the parameters of the Transformer class in Section 3.1 all denote other objects in this appendix ( is a cube, a depth, a score, the lookahead, a tail weight and a branching number), so the class is written here as
where is the embedding dimension, the depth, width and sparsity of the FNN layers (also called FFN layers here), the bound on the parameters and the input length; is the number of blocks, as in the main text. Boundaries of dyadic cubes are -null sets and are assigned by the fixed convention of Section 2.1; all statements below are understood up to such null sets.
B.2 GEOMETRY OF HIERARCHICAL REWARDS
The loss of a response is comparable to the tail weight of the level at which it leaves the correct path: (17) makes exploration necessary and (18) makes reaching a deep cell sufficient.
Lemma 6 (Basic geometry). Under Assumption 2, for every , the series (1) converges uniformly, , and is the unique maximizer of . Moreover, with ,
Proof. Uniform convergence and follow from and .
Convergence and boundedness are immediate from and . For the two gaps we compare an arbitrary response with the maximizer: the levels above the exit contribute nothing, the levels below it contribute at least a fixed fraction of their weight by (A2), and the levels already resolved contribute an error that the zoom condition (A3) keeps below a fraction of the gain; summing the resulting geometric series gives (17), and the same comparison inside a cell gives (18).
Lower bound on the loss outside the cells. Let and . For every we have , i.e., lies in the cube of relative depth that contains the maximizer of , so by (A1), (A2) and (15),
the same bound holds for and any , which is the form used in Lemma 8. For we have . For , both and lie in , which is a cube of relative side at most in the coordinates of , so that
while for we have . Since for , we obtain
Combining (19) and (20),
Since , this gives (17), and shows that no is a maximizer.
Upper bound on the loss inside the cells. If and with , then by the same geometric series and ,
which gives (18); the maximum is attained at the common point of the cells by continuity.
A query at depth sees only the first levels: a deeper primitive lies either inside the queried cube, where it has mean zero (A4), or outside it.
Lemma 7 (Cube averages resolve only finitely many levels). Let be a dyadic cube of depth and . Then
More generally, for any with , either or the interiors of and are disjoint, and in both cases .
Proof. If , then is at least as deep as ; since two dyadic cubes are either nested or have disjoint interiors, it is contained in or disjoint from it. In the former case, by (A4),
Since for , (21) follows.
Leaving the correct path at level costs the whole weight of the levels below , up to the resolution of the current depth.
Lemma 8 (Gap between the correct cube and the others). Fix and let be a finite partition of into dyadic cubes. Let be the cube containing , let be its depth and
Then every satisfies either for a unique , or , and
Moreover,
Proof. If contained for some , it would contain , contradicting disjointness; hence, for each , is inside or disjoint from it, which gives the classification. By Lemma 7, is the average of over ; moreover on and on . The proof of Lemma 6 gives, for and ,
and, for ,
which is (24). Since is an average over a subset of , (24) gives for every , and averaging the first display over yields (22) and (23).
Inside a cube that the hierarchy has not yet split, cube averages at a fixed depth differ by at most the weight of the current level; (26) is the pointwise version on a shell.
Lemma 9 (Oscillation of cube averages at finite depth). Let be a dyadic cube of depth , let (so that for ), and let . For all dyadic cubes , of depth at most ,
Moreover, if for some , then for every dyadic cube and ,
Proof. A level with varies on by at most by (A1). Since and , the sum over such levels is at most
Levels with number at most , and each has amplitude at most . Deeper levels do not contribute to by Lemma 7. This proves (25); (26) follows in the same way, using that on only the levels are active and for .
On a shell the reward is a finite sum of primitives, hence -Hölder in the local coordinates of that shell, with a seminorm of the order of .
Lemma 10 (The reward on a shell is Hölder in local coordinates). Let be the depth-j cube on the correct path, , and . On , , and the function
satisfies and
with as in (14).
Proof. Levels are supported in , hence vanish on . Put for . By (A1), a derivative of order of the rescaled primitive has sup norm at most , its order- derivative has -Hölder seminorm at most , and its function-value -Hölder seminorm is at most . Each exponent is at least , and subtraction of its value at zero also bounds its sup norm on by . Thus, by the same geometric series as in Lemma 9,
Also, because the indices and differ by at most the bounded factor .
B.3 GIBBS MASS OF THE CORRECT CUBE UNDER BIRTH-ACCURATE SCORES
Throughout, denotes the correct depth-h cube and , so that ; we write . The scores of Algorithm 1 are analyzed through the following notion. A cube created early is only ever estimated at the coarse scale of its own depth, so the accuracy the analysis can require of a score is scale-dependent.
Definition 11 (Birth-accurate score). Let D be a finite partition of into dyadic cubes and let W be constant on the cubes of D. We say that W is -birth-accurate on D if
The accuracy allowed on a cube is tied to the depth of the cube, i.e., to the scale of the level that a query at this depth resolves, and not to a common final accuracy.
Lemma 12 (Gibbs mass and cold tail). Fix a prompt m and a phase , and let be the dyadic leaf partition on which the current score is constant, assumed to be such that is a union of cubes of . Let and suppose that is -birth-accurate on in the sense of Definition 11. Suppose that
where is a structural constant. Then, uniformly in the partition, in h and in the zoom sequence, the actor of Algorithm 1, line 3, satisfies
with a structural constant . For , has mass one.
Proof. The proof compares the Gibbs weight inside the correct cube with the total Gibbs weight outside it, through the identity
The step Inside lower-bounds the denominator by Jensen's inequality, and the step Outside upper-bounds the numerator shell by shell, using the reward gap of Lemma 8 and the birth accuracy of the score; combining the two gives the constant lower bound (30), and summing the same geometric series over the deep shells only gives the cold tail (31).
Inside: lower bound on the Gibbs weight of the correct cube. The cubes inside have depth at least , so and on them. Since is the volume-weighted average of the , (tower identity), Jensen's inequality gives
no constancy of inside is needed.
Outside: upper bound on the Gibbs weight of the outer shells. Apply Lemma 8 to the partition , in which is the cube containing : every disjoint from satisfies either for a unique , or , and (22), (23) hold with . A cube is strictly inside , so depth( and by (A3); similarly for . Hence, by (28), (22) and , for ,
once with small (the old errors are absorbed into half of the gap), and the same bound with the right-hand side holds for . By and (A3), the volumes satisfy and . Summing the volumes of the cubes in each shell and using (32) and (29),
which is (30). For (31), a point outside lies in a shell with , hence and ; summing the same geometric series only over these shells gives .
The temperature schedule satisfies (29). Both hyperparameter settings use the same schedule (Appendices C.1 and D.1), and we check here, once for both, that it meets the condition (29) of Lemma 12. Let . If depth corresponds to the level , then and differ by at most a factor , so
We fix so small that ; then Lemma 12 applies at every step with and , and is a structural constant (independent of ).
B.4 WINDOW-RESTRICTED TRANSFORMER APPROXIMATION AND ESTIMATION
The critic is fitted on data collected by the actor, and the two upper bounds both need the same chain of arguments to turn this into a pointwise accuracy statement:
windowed target decomposition → Transformer realization → covering number → risk.
Lemma 13 shows that a causal Transformer can read the token positions that identify a queried cube; Lemma 14 bounds the covering number of the full class; Lemma 15 converts an approximation error and a covering number into a bound on the conditional risk of the empirical minimizer; Lemma 16 shows that, on the window that the actor actually queries, the infinite hierarchical target reduces to finitely many d-dimensional Hölder functions; and Lemma 17 realizes approximations of those functions inside the Transformer class. How the resulting risk bound is turned into accuracy at every updated node is not a generic estimation question and is treated where it is used (Lemma 23).
Position separation by the sinusoidal encoding. Take to be a multiple of 16. The coordinates and of the encoding contain
since . The constructions below read the bits of a queried cube by attention, which requires the fixed sinusoidal encoding to separate positions well enough.
Lemma 13 (Position separation). For integers ,
Consequently, for integer positions ,
and a softmax attention with query , , and keys puts weight at least 7/8 on position s.
Proof. Let be the nearest integers to and , and put , , so that and . If , then is a nonzero integer, hence
By the Cauchy–Schwarz inequality, , and on gives
If , then and the bound is immediate. The softmax claim follows because the logit gap is at least and there are at most positions.
A ReLU “plateau” recovers a one-hot vector exactly from a vector whose correct coordinate is and whose other coordinates are . We also use the exact ReLU gate
and the identity to copy the coordinates that an FFN must preserve (the FFNs have no residual connection, so every FFN reproduces the part of the state that later blocks need; this at most doubles the width).
The complexity of the critic is measured by the covering entropy of the whole class of Section 3.1, all parameters being free; no sub-class adapted to the unknown reward is used.
Lemma 14 (Covering number of the full class). Let with and , let P be its number of parameters, and let . For , the -covering number of in the sup norm over all valid inputs of length satisfies
Proof. There are at most sparsity patterns per FFN. For a fixed pattern, quantize all parameters to a grid of step , which gives networks. Since one-hot inputs and the positional encoding are bounded, the embedded states are bounded by . If the states before a block are bounded by , they are bounded by after the attention (its output is a convex combination of values) and by after the FFN, so all states are bounded by . The softmax is 2-Lipschitz from the sup norm of the logits to the norm of the weights, so the output of one block is -Lipschitz in the parameters and in the input; composing the blocks, the output is -Lipschitz in the parameters, and the output clipping is 1-Lipschitz. The input length does not enter, because the attention weights sum to one. Choosing gives (37).
This is the argument of Takakura & Suzuki (2023, Theorem 5.3) and Schmidt-Hieber (2020, Lemma 5), adapted to causal attention, a learned token embedding of size and the fixed positional encoding.
The batch is collected by the current actor, so the inputs are i.i.d. only given the history and the noise is only conditionally sub-Gaussian; the oracle inequality is stated in that form.
Lemma 15 (ERM oracle inequality under conditionally sub-Gaussian noise). Fix the history at the beginning of a batch. Let be i.i.d. inputs with law and with , where is conditionally mean-zero and -sub-Gaussian given the past and . Let be a class of functions with values in whose sup-norm covering entropy is , and let be any empirical risk minimizer of the squared loss over . Then, for and , with probability at least ,
and the same bound holds in expectation with in place of .
Proof. Let be fixed, and write , and for the empirical measure. The basic inequality of ERM reads
The proof proceeds in three steps, starting from the basic inequality for the empirical risk minimizer. That inequality for the empirical risk minimizer leaves a noise term, an empirical squared error and an approximation term. We bound the noise term uniformly over a covering of the class by a sub-Gaussian maximal inequality, transfer the empirical squared error to its population version by Bernstein's inequality on the same covering, and combine the two with the approximation term.
Noise term. For a fixed g, the process
is a supermartingale with expectation at most one, because is determined before is revealed and the conditional moment generating function of is bounded; the noise is not treated as independent of the inputs. Applying this to an -net of with a union bound, and controlling the discretization error by , we obtain simultaneously for all , with probability ,
Empirical to population. Bernstein’s inequality (Boucheron et al., 2013, Theorem 2.10) for the i.i.d. inputs on the same net, with and , gives simultaneously
Conclusion. Combining (39)–(41) with , absorbing the empirical squared term into the left-hand side and taking the infimum over yields (38); the expectation bound follows by integrating the tail, since the loss is bounded by 4.
Windows. Fix a step and a lookahead , and let be a window length. Put and define the window of step as the set of inputs
i.e., the prefixes of depth between and that agree with the correct path of their prompt up to depth . The window is common to all prompts and is fixed by the step index; it depends on the unknown cells, and is a device of the proof. On the window, the cube average is a sum of few continuous functions of local coordinates.
Lemma 16 (Cube averages on a window are sums of few Hölder functions). Let with . For of depth , write , , and let , a set of at most levels. Then
Moreover, the components of (43) are smooth at the following scales.
(a) (Old component.) In the local coordinates of , the map is -Hölder on with at most and norm at most after subtracting its value at zero, and .
(b) (Window components.) In the local coordinates of , the primitive is -Hölder with at most , and for every .
(c) (Averaging preserves smoothness.) Fix a depth q and a cube A of depth in whose local coordinates a function g is -Hölder with seminorm . Then the cube average
is -Hölder in the lower-left corner with seminorm at most . The number of depths occurring in the window is at most .
Proof. A level with has support of depth at least q, which is either inside D or disjoint from D; in both cases its contribution to vanishes by (A4) and Lemma 7. A level with has support of depth , which either contains D or is disjoint from it; only the former levels contribute, which gives (43). The number of levels with is at most by (A3). For (a), the derivative-by-derivative scaling of Lemma 10, (A1) and the geometric series in Lemma 9 give a norm after subtraction of a constant at most (the first level is included with ), and by (14). (b) is (A1) together with for . For (c), differentiation under the integral gives for ; averaging contracts each derivative sup norm and each top-order -Hölder seminorm. The same holds for the function-value -Hölder seminorm, so subtraction of a constant again bounds the full local norm.
The decomposition uses one coordinate system per level: approximating all levels in the coordinates of a single anchor cube would produce Hölder seminorms of order .
Lemma 17 (Window class: approximation and covering). For integers , let be the class of Section 3.1 with input length and the following architecture parameters. Then the class has the stated capacity, covering entropy and approximation power:
(a) (Architecture.) It suffices to take
(b) (Covering entropy.) Its covering entropy satisfies
(c) (Approximation on the window.) For every step with and , there is a comparator (depending on the unknown reward) with
(d) Consequently, for every law of inputs with ,
Proof. The proof follows the chain announced at the beginning of this subsection, in three steps: first we approximate each of the finitely many Hölder components produced by Lemma 16 by a ReLU network of size N; then we realize the sum of these networks inside the Transformer class, using the fixed positional encoding and Lemma 13 to route each record to the component it needs; finally we read off the architecture parameters and apply Lemma 14 to bound the covering entropy.
Approximation of the components. By Lemma 16, on the window is a sum of at most components, the old sum and those levels of whose support contains the query cube, and for each of the at most query depths q every component is an -Hölder function of the local coordinates of the query cube inside its support cube, with at most and norm at most after subtracting its value at zero; the side length is a discrete branch, not a continuous variable. Subtracting the value at the origin and dividing by sends each component into the unit -Hölder ball of , and by Schmidt-Hieber (2020, Theorem 5) every function of that ball is approximated in sup norm to accuracy by a network of
(the internal precision integer of that theorem is set to , with constants depending on , ; the theorem covers every , including the integer cases). Per prompt there are such functions, one for each component and query depth, of which at most are active on a given input, so the sum of the rescaled approximations, clipped to , satisfies (46) by (a)–(c) of Lemma 16. The approximation holds on the whole continuous range of the local coordinates; no interpolation of observed query values is involved.
Realization with the fixed positional encoding. Let be the four coordinates (34) of the positional encoding and . The comparator is assembled from the following blocks.
(1) Token embedding. The embedding of each token contains its category (prompt, 0, 1, STOP, PAD, OUT) as constants spaced by at least 4 in coordinates separate from . Each positional shift has magnitude at most 1, so the category intervals are disjoint and the first FFN recovers the category exactly by plateaus; it preserves and initializes unused working coordinates to zero. By the gate (36) with the prompt category, the same FFN zeroes at all positions other than 1 the prompt information, namely the index , the bits of the correct path of prompt at the depths , and the level-boundary flags for the depths of the window and , that is, numbers; the positional encoding of position 1 is subtracted in this embedding. These unknown bits and flags are parameters of the comparator, not information available to the learner.
(2) Broadcasting. The second block has zero attention logits, i.e. uniform causal attention, and a value map that copies the prompt information, multiplied by , to fresh coordinates. Since only position 1 carries it, the readout position receives exactly the stored values; other positions receive multiples , which are never read again.
(3) Reading the query cube. Then blocks read the tokens at the absolute positions
one block per position: the query of the readout position is for the target position , the keys are and the values are the token categories. By Lemma 13 the target receives weight at least 7/8, and a plateau recovers its category exactly; the result is stored in a fresh coordinate and the temporary coordinates are reset, so that earlier reads do not contaminate later keys and values. Since the FFNs have no residual connection, each of them copies the coordinates that later blocks need, using ; this at most doubles the width.
(4) Computing the arguments. From the read tokens, an FFN of size computes the query depth q from the position of STOP; the support gates for , as ReLU functions of the number of mismatches between the read bits and the stored path bits up to depth ; and the local coordinates
of the query cube in the coordinates of each candidate support cube of depth p, namely for the old sum and for the level i.
(5) Evaluating and selecting. A shared FFN of width evaluates in parallel the approximating networks of all prompts, components and depths, and the exact gate (36) with the product of the indicators , and the support gate selects the active ones and adds them, so that the approximation error is not multiplied by or ; the output is clipped to .
All information flows to the readout position, in accordance with the causal mask. On inputs outside the window, that is, a prefix that disagrees with the correct path before depth or a depth below , the comparator outputs some value in ; no detection of such inputs is claimed, and their error, at most 2 in absolute value, is charged to in (47). The construction fits (44): the number of blocks is , the state dimension , the FFN depth , and the weights are bounded by .
Covering. Counting the dense token embedding, the attention matrices, the readout and the nonzero FFN weights, the number of parameters is at most , and the sparsity patterns are part of the class; Lemma 14 with these capacities gives (45) (the input length enters only through the logarithm of the weight bound). (47) follows from (46) and .
The learner is not restricted to the comparator: all internal weights of the class are fitted by ERM, and the comparator is used only to bound the approximation error in Lemma 15.
C PROOF OF THE LARGE-BUDGET BOUND OF THEOREM 3
Proof strategy. The algorithm of the large-budget bound of Theorem 3 consists of two stages, and the proof follows that division. The front phase is the sequence of exploration iterations : it refines the score along the correct path and is analyzed in Appendix C.2, whose main result is Proposition 18, a high-probability guarantee that every update stays birth-accurate together with a bound on the total number of queries that the phase consumes. The final refinement step is the single iteration : conditionally on the success event of the front phase, it keeps the score fixed, samples from the Gibbs policy at the target temperature , fits one more critic at a variable query depth and outputs the clipped score. It is analyzed in Appendix C.3, whose main result is Proposition 24, a conditional regret bound that still exhibits the bias-variance tradeoff in the refinement resolution. Appendix C.4 then assembles the two propositions: it balances the resolution, uses the remaining budget , substitutes the bound on and adds the contribution of the front-phase failure event. Schematically,
Proposition 18 (front phase) Proposition 24 (final refinement) Theorem 3.
C.1 HYPERPARAMETERS OF THE LARGE-BUDGET SETTING
This section concerns the large-budget setting of Section 3.2: , , and the last iteration is the refinement step (6) with and ; the small-regularization setting is treated in Appendix D. We call the exploration iterations the front phase and the final iteration the final refinement step, and use the following names: the batch size, class, actor and critic of the final refinement step are , , and ; the query cube of the final refinement step is ; and the clipped score is , so that . In the front phase, the query map is written of (5), and , so that line 6 of Algorithm 1 reads on the selected cubes and elsewhere.
The quantities listed in Table 3 are specific to this proof; the schedules that both upper bounds share are those of Table 2, whose values are fixed below for the large-budget setting.
Table 3: Quantities used only in the proof of the large-budget bound of Theorem 3.
| Symbol | Meaning |
|---|---|
| number of front-phase iterations | |
| refinement depth of the lookahead; the lookahead itself | |
| birth-accuracy level; moment order used in the regret transfer | |
| total and per-phase failure budgets | |
| input length of the front-phase critic | |
| batch, query depth and approximation size of the final refinement step | |
| logarithmic factor |
Given , the algorithm fixes the following quantities before the first query. The structural constants and (the constant of (62)) are chosen in the proofs below, in the order indicated there; in particular with the constant of Lemma 12.
where are large enough that and (recall ), and is the constant of Lemma 12. The accuracy required of the critic of step is tied to the depth of the cubes that this step queries and writes into the score (query-depth accuracy); no common absolute accuracy is required of all steps. For the front phase, the window length, the window size, the input length, the approximation size and the batch sizes are
and is the class of Lemma 17 (whose input-length argument is written there), the same for all ; the window parameter enters only the analysis (through the comparator of Lemma 17), not the algorithm. For the final refinement step, the batch size is , and the integer approximation size is chosen with
the query depth increment is , the input length is , and is the class of Lemma 27 with these . The constants of the large-budget bound of Theorem 3 are such that whenever
(Proposition 18), so that . The second condition of Theorem 3 is this requirement written in terms of , with and implicit constant . If the budget is below this threshold, the algorithm outputs the uniform policy; this case is outside the large-budget bound of Theorem 3.
C.2 THE FRONT PHASE
The goal of this subsection is the following guarantee for the exploration iterations . It is stated here, before the lemmas that prove it, because all of them are ingredients of this one statement. Proposition 18 (Front-phase guarantee and cost). With the parameters of Appendix C.1,
(51)
where is the event (52) that every critic of the front phase is accurate on its update inputs.
The proof is an induction over the phases, and the lemmas below are its steps. It is not a single chain: after the bookkeeping of Lemma 19 the argument branches into Lemma 20 and Lemma 21, and the two branches rejoin at Lemma 23:
Proposition 18 iterates this implication over the H phases, sums the conditional failure probabilities and adds up the batch sizes.
The lemmas of this subsection are stated for a general lookahead , a general accuracy sequence and general batch sizes ; they are used with the parameters of Appendix C.1 here and with in Appendix D. We analyze the scores as functions on the analysis partition generated by the updates: initially , and at step the selected cubes are replaced by their depth- sub-cubes. The algorithm never forms this partition.
Lemma 19 (Analysis partition with lookahead). For every history and every h, the following hold.
(i) is constant on the cubes of a partition of into dyadic cubes.
(ii) Every cube except the initial root was created at a step and has depth .
(iii) The set of responses is a union of cubes of and of depth- cubes, of which there are at most ; these are the selected cubes.
(iv) is obtained from by splitting the selected cubes into their depth- sub-cubes, the fine queries of step ; the other cubes are left untouched and keep their score.
In particular the partitions are refined and never coarsened, so the birth step and the birth depth of every current cube are well defined.
Proof. If a cube has depth at most , the actor is uniform on , so all depth- cubes inside have the same mass and are selected together; if is deeper than , it lies inside one depth- cube. Hence the mask is constant on the cubes of . The update of line 6 with replaces the score on the selected cubes by the values on their depth- sub-cubes , which have depth , and keeps it elsewhere. The count follows since the masses of disjoint cubes sum to at most one.
Let be the event that all critics of the steps are accurate on their update inputs:
(52) and ; is determined by the history at the beginning of step . On , every cube created at step satisfies , i.e., is -birth-accurate on in the sense of Definition 11 (the root is updated at step 0, so no cube keeps the initial value 0 for ).
If the scores written so far are accurate, the correct cube carries enough actor mass to be refined, and the mass of the responses that left the path much earlier is exponentially small.
Lemma 20 (The correct cube is refined at every step). Let . On , for every and , the correct cube is a union of cubes of , all created at step ,
and, with , the correct cube and all its ancestors are selected at step . For the root is selected.
Proof. By induction: if the correct parent was selected at step , it was split into depth- cubes, so (of depth ) is a union of these cubes. On the score is -birth-accurate on , and the temperature satisfies (29) by (33), so Lemma 12 gives (53). Every ancestor of has mass at least , hence passes the mass check.
The previous lemma says which cube is refined; the next says how much probability each cube created by that refinement receives.
Lemma 21 (Every fine query has a positive probability). On , for every , every selected depth- cube and every depth- cube ,
and every response that enters is queried at . In particular for a fixed when , and when .
Proof. If is contained in one cube of , the actor is uniform on and . Otherwise the cubes of inside have depths between and , their cube averages differ by at most by Lemma 9 (with ), and their scores are within of the averages by birth accuracy; as , the density of on is within a factor of uniform, which gives (54). A response entering passes the mass checks of all ancestors of up to depth (their masses are at least that of ), so it is not stopped and is queried at depth , i.e., at . The bound holds for every selected cube, not only for the correct one.
Up to an exponentially small leakage, the queried inputs of step fall in the window , which is the finite region on which Lemmas 16 and 17 operate.
Lemma 22 (Window localization). Let be the joint law of the queried input of step (a fresh prompt and one on-policy response). On ,
and if .
Proof. Every query has depth at most . If the response lies in , all its prefixes up to depth are ancestors of , which pass the mass check by Lemma 20, so the response is not stopped before depth and its queried cube, of depth at least , is contained in , i.e., the input lies in . Hence , whose probability is at most by (53).
The oracle inequality bounds the risk averaged over the query law, whereas the induction needs accuracy at every cube written into the score; each of them has probability at least , so a joint risk of order suffices, and this is where the factor is paid.
Lemma 23 (Joint risk of the full-class ERM and accuracy on the update inputs). Let with and , and let be the ERM of line 5 on the records of step . Conditionally on a history in , with probability at least ,
and, deterministically, for every m and every fine query D of step h,
Proof. Conditionally on the history at the beginning of step , the actor, the query rule and the class are fixed, the inputs are i.i.d. with law (a fresh exogenous prompt and an independent rollout), the targets are with conditionally -sub-Gaussian noise, and all records, including the stopped ones, enter the unweighted loss. Lemma 15 with and the comparator of Lemma 17 gives (56), using (47) with and (45). For (57): the joint probability of the input is by Lemma 21, and .
The factor M in (57) is paid in full: the joint risk is converted into the accuracy on every update input of every prompt, and this is what makes the batch sizes grow like rather than M; no prompt-wise estimation guarantee is used.
Proof of Proposition 18. The accuracy statement is proved by induction over the phases: conditionally on a history in , the parameters are chosen so that the two error terms of the joint risk bound (56) are below the level that (57) needs in order to give the required accuracy at every node updated at phase , which is exactly ; summing the conditional failure probabilities over the phases gives the first half of (51). The cost statement then only adds up the batch sizes and uses the bound on .
Accuracy. Condition on a history in . By (57) it suffices that the right-hand side of the joint risk bound (56) be at most
and we check that each of its three terms is at most separately.
• Leakage. By Lemma 22 and , choosing large gives
where we used and on the range of the theorem.
• Approximation. With and for large, the approximation term of (56) is at most .
• Estimation. Since , (45) and the choice of give
so that with and large the estimation term of (56) is at most as well.
Hence, by (57), with conditional probability at least every fine query of step is -accurate, i.e. holds. Summing the conditional failure probabilities up to the first failure over the steps,
No independence between the noise and the future occurrence of inputs is assumed, and no conditioning on future successes is used.
Cost. Since and ,
which is the first inequality of (51), the rounding in (49) being absorbed into ; the second follows from with large. All records are counted: stopped responses, queries outside the window and the batches after a failure.
C.3 THE FINAL REFINEMENT STEP
Condition on the successful front-phase event of Proposition 18. No query, critic fit or score update takes place between the two stages: the front-phase score is kept fixed and the Gibbs temperature is set to the target regularization level, so that the responses of the last iteration are drawn from . The goal of this subsection is the following conditional guarantee, expressed in terms of the resolution chosen in (50), to display the approximation and estimation errors separately.
Proposition 24 (Final-refinement guarantee). With the parameters of Appendix C.1 on the large-budget range of Theorem 3, including the refinement resolution chosen in (50), the output of Algorithm 1 satisfies
where b is the batch of the final iteration and is the mass of the deep core (64).
The three terms are the approximation error of a resolution- fit, the estimation error of one critic fitted on b records, and the mass of the deep core. The proof is the chain
Lemma 25: pointwise calibration → Lemma 26: Gibbs mass and moments
→ Lemma 27: final critic estimation
→ Lemma 28: continuous reward and clipping
→ Lemma 29: regret transfer.
Calibration and Gibbs control. For the rest of the proof we fix a good front-phase history (the event ) and a prompt ; all conditional expectations below are taken given that history. We write
Only for the proof, consider the analysis partition of the final score . By Lemma 19, each update refines the previous partition and never coarsens it, so the last update index is constant on each final cube , and, on ,
Since the root is updated at , no cube keeps the initial value 0, and everywhere. The algorithm never enumerates ; the index of (6) equals for the cube , and is evaluated for each sample from the saved actors.
A response that leaves the correct path at depth lies in a cube last updated at some step , so the error of the held score there is measured at the scale of that update rather than at a common scale.
Lemma 25 (Calibration of the held score). On , for every final cube contained in the shell (),
and for every with last update index ,
Proof. By Lemma 20 the correct parent is selected at step , so the whole shell satisfies the mass condition at step and is updated at depth ; the holding of later steps never moves a query depth back, which gives (61), and a final cube of depth is contained in one shell by dyadic consistency. Let , so that on . By (27) (the cube has side in the local coordinates of ),
The known scales satisfy
so the oscillation of on is at most , which is at most by the choice of in (48) (). Combining with (60) and gives (62). The accuracy of the held score is the one of its own birth, at the scale of its query depth; no common final accuracy of all steps is used. This is a guarantee for the held score itself; no re-selection of the critic of step is needed.
Deep core mass and exponential moments. The calibration scale varies over the response space, and the next lemma controls its distribution under ; the exponential moment is what bounds the density ratio in the regret transfer.
Lemma 26 (Normalization, deep-core mass and moments of the scale). Let , , and let be large enough that . On , there are constants , , independent of , , , and , such that
and, with and for every fixed ,
(65)
Proof. The three statements are proved in the order in which they depend on each other. We first lower-bound the partition function by restricting the integral to a near-optimal region on which the held score is accurate; this denominator bound, together with the tiny volume of the deepest region, shows that the deep core has negligible mass under both and the true Gibbs policy. For the moments we split the remaining shells into two regimes: shallow shells have a large reward gap and hence exponentially small Gibbs weight, while deep shells may carry mass but there is uniformly bounded. Combining the two regimes gives the exponential moment, the polynomial moments and the weighted quadratic bound.
Normalization. Let . Step is executed, and at this step the correct parent is selected (Lemma 20) and updated as a whole at depth ; since later updates only refine, is a union of final cubes with last update index , whose birth errors are at most by (60). By (18), on , and so are the cube averages of the final cubes inside; hence
and (63) follows from and , with . No constancy of the score on the core is assumed, and the core is also a union of final cubes, all created at step .
Deep-core mass. The core has volume , and on it and (as ); together with (63) this gives the first inequality of (64) for , and the same bound holds for by the lower bound on its normalization from (18). The second inequality holds once the constants , in (48) are large.
Moments. Choose with , where . For a final cube (exit level ), by (17), (62) and ,
and the same holds with replaced by . Fix with . For , (63) and (16) give a contribution at most (the factor is absorbed); for , and , so the exponential factor is bounded by a constant. Inside the core, and , so the core can be included in the first two bounds. Summing gives (65); the decomposition into shells is a device of the proof and does not correspond to any special treatment of the core by the algorithm.
The final critic fit. Let be the joint law of under and ; in the rest of this subsection, denotes the approximation size of (50), with .
The final critic approximates a different target, the reward on each shell in the local coordinates of that shell, by the same pattern as in Appendix B.4.
Lemma 27 (Approximation and capacity for the final refinement). There is a class with and
(66)
whose covering entropy satisfies
and which, on (with the front-phase history fixed as above), contains a comparator (depending on the history) with
Consequently, the ERM over on b fresh records satisfies, for a constant ,
Proof. The proof repeats the approximation–realization–covering–ERM pattern of Appendix B.4 for the shell-wise target, in four steps. We first approximate the local Hölder function of each shell at resolution N by a ReLU network, keeping the side length of the shell out of the approximation problem; then we realize these networks inside the Transformer class with the fixed positional encoding; then we read off the capacity and the covering entropy; and finally we collect the approximation error, the contribution of the deep core and the estimation error of Lemma 15.
Local approximation without treating the side length as a variable. By Lemma 10, belongs to a fixed -Hölder ball on . By Schmidt-Hieber (2020, Theorem 5) (see also Yarotsky (2017)), there is a ReLU network of depth , width and nonzero weights of size with
(for all , including at integer ); the comparator uses , so that , with local networks in parallel and nonzero weights in total. A query cube of a response leaving the path at depth has depth with by (61). Let be its ancestor of depth , and let be the local coordinates of the center of in . Since , Lemma 10 gives
Here by the choice of . Thus only the first bits after the exit from the path have to be read, whatever the query depth; no approximation in variables and no separate approximator per is needed. Reading these bits uses that many blocks, and does not require a table indexed by the fine cubes; each cube query still costs one reward observation.
Realization with the fixed positional encoding. The comparator is built from the following blocks; is fixed throughout.
(1) Reading the input. The first block recovers from , by Lemma 13 and plateaus, the token category and the integers at every position, with sparsity and weights ; a second block delivers the prompt index to all positions by an attention whose logit is on the prompt token, followed by a plateau on .
(2) Locating the exit from the correct path. The comparator stores the dH bits of the correct path of each prompt in an FFN table of size — a property of the comparator, not information given to the learner — and flags as an event every one of the first dH response positions at which the input bit differs from the path bit, as well as the STOP position; later bits raise no event. With the event flag , the readout attends with the logit
so that the first event position receives weight at least 7/8; its position and STOP flag are recovered exactly, and the exit depth
is computed by ReLUs.
(3) Reading the local coordinates. If the first event is a mismatch, further blocks read the bits at the positions
by an attention with logit , , and keys ; accumulating them into coordinates with weights and adding yields . All these bits are present in the input, since .
(4) Selecting the local network. The ReLU gate
selects the local network , so that the approximation error is not multiplied by MH.
(5) The core. If the first event is STOP, i.e. there is no mismatch within the first dH bits, the comparator returns 0; on the actual query support of a good history these inputs are exactly the queries inside .
Capacity and covering. The construction fits (66): the sparsity is dominated by for the position/path tables and for the local networks, the number of blocks is , and the weights are polynomial in ; no address of the final holding cubes has to be memorized, so no extra factor H enters the capacity. Lemma 14 gives (67) (the exponent 5 is not optimized).
Errors. On the queries outside the core, by (70) and the third bound of (65) applied to every prompt (recall that carries the factor ),
on the core, and the comparator returns 0, so the contribution is at most by (64). This gives (68); the value 0 on the core is a property of the comparator, not a removal of these records from the ERM. For the resolution (50), . Lemma 15 with and bounded by (67) gives (69).
The previous lemma bounds the error at the queried cubes, while the output policy is built from the clipped score on the whole space; the transfer uses Lemma 9 and the clipping widths of (6).
Lemma 28 (Projection error and the clipped score). On , the clipped score of line 6 of the final refinement step satisfies , and, with off the core and on the core,
Proof. The index is constant on each final cube, and the query cubes are the -fold subdivisions of the final cubes. Since has constant density on each final cube, it is uniform on each query cube , so that
Off the core, the second term summed over the query cubes and the prompts is at most by (70) and (65). Off the core, (62) shows that and lie in the clipping interval , so the clipping is a projection and does not increase the distance to . On the core, the same update is applied, , and , so the squared error is at most . Combining with (69) gives (71). The clipping interval contains and both and lie in , so .
From squared error to KL-regularized regret. A small squared error does not by itself give a small regret, and it is worth seeing why before the transfer is carried out. Let . For a Gibbs policy , the regret against a reward is the Bregman divergence of ,
so that, by Taylor's formula with integral remainder,
The variance is taken under the interpolated Gibbs policies, not under the collecting policy, and in general a small squared error under the collecting policy does not control (72). Indeed, take , , and for a set of measure ; then
A rare overestimate on a region of tiny mass concentrates the policy there, and bounding the density ratio by the range of the scores alone would cost a factor . The calibration of Lemma 25 and the clipping (6) avoid both.
The conversion uses the calibration and the exponential moment to bound the density ratio along the interpolation.
Lemma 29 (Regret of the clipped update). Let be a known upper bound on the right-hand side of (71) with , and suppose . Then, on ,
Proof. The proof proceeds in three steps. By (72) the regret is an integral of variances under the Gibbs policies interpolating between the clipped score and the reward, so the argument has to compare those policies with the collecting policy . We first bound the density ratio along the interpolation by , using the calibration of the held score; then Hölder's inequality with the exponential moment of Lemma 26 converts the squared error under into a regret bound against the modified reward ; and finally the core is restored, at the price of its mass .
Density ratios along the interpolation. For any interpolation w between and v, we have everywhere (on the core because ). By (65) and Jensen's inequality,
and the same bound holds on the core since ; no constancy of the score on the core is used.
Regret against . By (72) and the density bound, with ,
Hölder's inequality with exponents and and (65) give
using . Taking expectations, using concavity and (71),
where the last step uses by the choice of ; the constant of the exponential moment is uniform in , so no polynomial factor is lost.
Restoring the true reward on the core. By the density bound and (64), . Since and agree off the core,
whose absolute value is at most , while the expected rewards of under and differ by at most . This gives (73).
Proof of Proposition 24. On E, Lemmas 25 to 28 hold for every prompt, and (71) bounds the squared error of the clipped score v under by
For the choice (50), put . The large-budget condition, and give . Taking , sufficiently large makes , and yields . The known bound may be enlarged to at least , so that for large and the clipping widths use only , and . Lemma 29 then gives , which is (59).
C.4 PROOF OF THE LARGE-BUDGET BOUND
By Proposition 18, the front phase uses queries on the range and the event has probability at least ; the final iteration uses the remaining queries, so the total is at most , and . The choice (50) of balances the first two terms of (59), so that Proposition 24 gives, on ,
while on the regret is at most 4, since all scores lie in . Since , , and , and since and , the failure terms are absorbed into the main term, and
which is (7); the factor is absorbed into . The dependence on enters the starting condition through , i.e., through the front-phase cost of Proposition 18, and the rate itself through the joint estimation error of the final fit, which carries the factor of (69) only.
D PROOF OF THE SMALL-REGULARIZATION BOUND OF THEOREM 3
In this section, Algorithm 1 runs with the small-regularization hyperparameters of Section 3.2: , exploration iterations with the query rule (5) and , no refinement step, and the output is the last actor . The conventions of Appendix C are in force, with
and replaced by in the lemmas of Appendix C.2. The regularization enters neither the algorithm nor the analysis until the last step of the proof; in particular is allowed throughout. The lemmas of Appendices B.2 to B.4 are used as they stand, and the lemmas of Appendix C.2 are used with , so that a cube created at step has depth , the accuracy of step is , and .
Proof strategy. The proof has the same two stages as that of the large-budget bound, and differs only in the second. The front phase is the same loop, run with lookahead S = 1, and Appendix D.2 shows that its updates stay birth-accurate and that the budget fixes the depth H it reaches. There is no final refinement step: the output is the last actor, and Appendix D.3 converts the reached depth directly into a reward gap through the Gibbs variational principle. Appendix D.4 combines the two and absorbs the regularization penalty.
D.1 HYPERPARAMETERS OF THE SMALL-REGULARIZATION SETTING
Let be a fixed structural constant (small enough for Lemma 12 and Lemma 32), with from Lemma 12, for all with as fixed after Lemma 12, and
for a candidate number of iterations ; the structural constants are chosen as in Proposition 18. The number of iterations is the largest one that the budget allows,
(75) and if the set is empty (in particular if ), in which case the uniform policy is returned without any query. The input length is , and of Lemma 17, the same for all . The total number of queries is deterministically, and the choice uses neither the reward, nor the zoom sequence, nor any per-prompt quantity.
D.2 THE FRONT PHASE
The front phase is the loop of Appendix C.2 run with S = 1: Lemma 30 shows that its updates stay birth-accurate, and Lemma 31 converts the budget into the depth it reaches.
Lemma 30 (Progress). With the parameters of Appendix D.1, . On , for : the correct cube is a union of cubes of for every , all cubes of have depth at most , and is -birth-accurate on .
Proof. With , Lemmas 20 to 23 apply at every step on , with and . The factors , , , and are bounded by fixed powers of , while the factor is paid explicitly by in (74). For the leakage, gives , so choosing large in yields
The approximation and estimation terms are controlled as in Proposition 18, with in place of . Hence, conditionally on the step succeeds with probability at least , and . The remaining claims are Lemmas 19 and 20 at .
Lemma 31 (Cost and the chosen depth). For ,
and the depth (75) satisfies
Proof. Both inequalities of (76) follow from and , the rounding being absorbed by the constants. Lower bound on . Let . If with large, then with small satisfies and by (76), so ; if , the left inequality of (77) holds trivially with , including . Upper bound. If , then , so ; the case is trivial.
The cost counts every record: stopped responses, responses of prompts that were never selected, and the batches after a failure. The factor , rather than , is the price of converting the joint risk of the critic into the accuracy on the update inputs of every prompt (Lemma 23); the depth reached by the algorithm therefore grows like up to logarithms, and not like .
D.3 THE TERMINAL BOUND
Unlike the large-budget setting, no further critic is fitted: the output is the last actor and its regret is read off the depth it reached.
Lemma 32 turns the heterogeneous birth errors into a one-sided envelope of the score, and Lemma 33 combines that envelope with the Gibbs variational principle and the deterministic KL bound.
Recall that the output is with .
Lemma 32 (Envelope of a birth-accurate score). Let , fix and , and let be -birth-accurate on a partition of into dyadic cubes of depth at most such that is a union of cubes of . Then, for all ,
Proof. Let and . By Lemma 8 (applied as in Lemma 12), either for some , or . Shells. If , then by (17) and (18), for all , so that ; since depth( , the birth error is at most , and for small
which gives (78) and (79) on the shells. Inside. If , then depth( and the birth error is at most , while for by (18) and ; hence , , and, if , .
Lemma 33 (Terminal reward and KL). For every history and every m,
On E, for every m,
Proof. KL. By Lemma 19, is uniform inside every cube of , whose cubes have depth at most (with ); refining to the uniform grid of depth keeps uniform on each cell, so with for the cells,
This holds on every history; for H = 0 the divergence is 0.
Reward. For the claim is trivial since ; let and write , which is -birth-accurate on on by Lemma 30. Let be the uniform distribution on the correct cube, a union of cubes of . The Gibbs variational principle for , (80) and KL give
hence, by KL and ,
By (79), , so , and (78) yields (82). No sup-norm accuracy of the final score is used: the old cubes carry only the accuracy of their own birth, and the envelope of Lemma 32 is what the variational comparison needs.
D.4 PROOF OF THE SMALL-REGULARIZATION BOUND
The number of queries is by (75). For every , (and ), so, by (81),
On the bracket is at most by (82), and on it is at most 2 since by Lemma 30. Therefore
and for the last term vanishes. For , the upper bound in (77) gives
In both cases, the lower bound in (77) yields
where the factor is absorbed into ; this is the first case of (7), and the case (uniform output, regret at most 2) is included by adjusting the constant. The constant is a structural constant that may be taken as small as we like; on the range of the small-regularization bound we have , so the first lower bound of (11) applies on that whole range as soon as , where is the constant of the small-regularization bound of Theorem 4.
E PROOF OF THEOREM 4
Throughout this section, is fixed and . In the lower bound we use independent noise, which belongs to , and we fix the zoom depths ; we may even reveal them to the learner, which only strengthens the statement. We write
Both bounds are first proved for a single prompt and then transferred to M prompts; the transfer is Lemma 34 of Appendix E.1 and is common to the two. The rest of the section proves them one after the other, each in three steps: a hard family, the information bound for that family, and the assembly. The small-regularization bound comes first. Its family, built in Appendix E.2, places the bump of each level in one of two cubes; Appendix E.3 shows that a cube query at any depth carries little information about those placements, so that a constant fraction of them stays undecodable within the budget, and Appendix E.4 assembles the bound. The large-budget bound follows. Its family, built in Appendix E.5, has a Gibbs policy that spreads a comparable mass over a band of levels around and perturbs each level by bumps with random signs; Appendix E.6 bounds the information that the queries carry about those signs, and Appendix E.7 assembles the bound.
E.1 REDUCTION TO A SINGLE PROMPT
For a fixed prompt, the problem is that of a single sequence with regret . For a prior on single-prompt instances, let be the Bayes risk of the best algorithm that uses adaptive cube queries; it is nonincreasing in .
Lemma 34 (Bayes transfer). Let , let be any prior on single-prompt instances that may depend on but not on the data, and put the product prior on the sequences. Then
Proof. Consider the strengthened experiment in which the learner is told the whole prompt sequence in advance and, when evaluated on prompt m, the true functions of all other prompts. Since the sequences are independent under the product prior and the noise is independent across rounds, the answers to queries on other prompts can be simulated from the known functions and independent noise; hence the only source of information about prompt m is its own
queries, and adaptivity across prompts does not help. The Bayes regret on prompt m is therefore at least
where the last step is Markov's inequality with . Averaging over and using that the minimax risk dominates the Bayes risk gives (84). The prior is fixed before the data and is not re-chosen according to the realized .
Lemma 35 (KL divergence of adaptive cube queries). Let , be two instances and let , be the laws of the transcript (internal randomness, prompts, queried cubes, observations) of an algorithm with queries under Gaussian noise. Then
Proof. By the chain rule, the kernels of the internal randomness, of the prompt and of the choice of given the past are identical under both laws and contribute zero; the observation kernel given is Gaussian with the same variance, and the KL divergence of two such Gaussians is the squared mean difference divided by .
E.2 A TWO-CHOICE FAMILY
For and , define on
\psi_{0}(u)=\begin{cases}[1-(\|u\|_{\infty}/r_{c})^{\alpha}]_{+},&0<\alpha\leq1,\\[1-\|u\|_{2}^{2}/r_{c}^{2}]_{+}^{m_{\alpha}},&\alpha>1,\end{cases}\qquad\psi_{z}(u)=\psi_{0}(u-z),Here is the zero-extension seminorm in (A1). For , , so as before. For , the truncated polynomial is with bounded derivatives, hence , including integer . In both cases has height one, a unique maximum at zero, and support inside ; its value is strictly decreasing with radius inside its support. We use the following elementary gluing bound: disjoint translates of , with either sign, have seminorm at most . Indeed, at each point only one component contributes to any derivative; for the highest derivative at points in different supports, insert a zero value at each support boundary and bound each distance by the distance between the two points. The same argument applies to disjoint copies with and : every derivative of order is bounded by the corresponding derivative of , since , and the highest derivative has the same Hölder bound before gluing. Let , , , and
For bits let
Let be the depth- dyadic cube centered at , for . Explicitly,
The bits index reward instances, not response bits: selects a rescaled copy of inside as the next active cell. The same disjoint local pair is used at every level and does not cover . By (A3), . The bumps have disjoint supports and equal integrals, so the deeper primitives have zero mean; their zero extensions have by the gluing bound. Each primitive has maximum one at , so the family lies in whenever . The adaptive lower bound of Appendix E.3 and the fixed-sampling bounds of Appendix F both use this family.
E.3 SMALL REGULARIZATION: THE ADAPTIVE EXPLORATION LOWER BOUND
By Lemma 34 and , it suffices to exhibit, for a single prompt, a prior with
which Lemma 36 then transfers from to .
Lemma 36 (The regularization changes the optimal value by ). There is a constant depending only on such that for all , and ,
Consequently, for every policy , , and
Proof. Since , . Let and let ; by the variational formula, (18), (16) and ,
For a policy , . Taking the supremum over instances and the infimum over algorithms (an algorithm for the problem with parameter is an algorithm for with the same queries) gives (90), together with .
Lemma 37 (Bayes lower bound for adaptive exploration of one prompt). Let and . For every integer there is a prior on the two-choice family (87) such that every algorithm with adaptive cube queries has Bayes regret
Consequently, with ,
Proof. We first prove the finite-s bound by placing a prior on the unknown placements and pairing instances whose words to be decoded differ. For each fixed response, the reward has a spine structure that controls the information in any cube query. A Hellinger-affinity potential carries this control through adaptive histories; decoding the output policy then turns the remaining uncertainty into regret. The stated choice of s yields the rate.
Prior and comparison kernel. Let be the law of the reward-instance bits , where
The corresponding reward is from (87); by Appendix E.2, every lies in the class. The word to decode and its index set are
For , define on by keeping the bits before , flipping , and resampling the bits after . This is an analytical comparison between reward instances, not an operation performed by the learner. Its kernel density with respect to is
It is symmetric, nonnegative, and has unit row integrals, so . Set
Then and . Moreover, implies .
The reward at a fixed point. Fix . We claim that there are bits and reals such that, with
which partition -almost all of the space,
The levels before and the cell do not depend on . If , all later components vanish at . Thus for every ; choose any and set every to this common value.
Suppose now that . Choose a recursively: given with , let be the local coordinate of in that cell. There are two cases because and do not cover .
If for , set . For we have , so and all components after level vanish at . Also, is at -distance greater than from both and , so the level- component vanishes in this two-choice family. Therefore
The earlier reward components in this sum need not vanish.
If , then for either choice of . All components after level vanish, while the level- component may be nonzero:
Set and let be the value for . For , set and let be the value for ; the recursion stops because later bits have no effect on the reward at .
When the recursion continues through level i, moving the first mismatch from to changes the level-i contribution by at most , and may add a level- contribution of at most if the recursion stops there. At the stopping level the difference is at most
thereafter the values are constant. The bumps have disjoint supports and height at most one, so in all cases . Summing these differences and using for proves the last bound in (94).
Information of one cube query. Let be the operator on with kernel
and normalize the indicators of the sets in (93) by
Take and with . Their bits agree before and differ at , so only can be nonzero; this requires . On the reward difference is zero. Thus the kernel of is constant on each block , and the operator vanishes outside the closed span of . For its matrix entries are
By (94),
Each row of this symmetric matrix therefore has absolute sum at most
The Schur test gives . For a dyadic cube and a nonnegative , Jensen's inequality applied to the cube average and give
(96)
uniformly in the depth of D.
A potential along the adaptive history. Fix an algorithm and use observation noise. Let be the law under of the history : the internal randomness, queried cubes, and observations through query . Let be the law of the same algorithm when every observation is regardless of the query. This is a comparison law and need not be a reward instance. The Gaussian observation densities are positive, so the likelihood ratio exists and satisfies
For probability laws dominated by a common law , write their Hellinger affinity as
Put and define
Expanding with shows what this potential measures:
The affinity equals one for identical laws and becomes smaller as they separate; sums these affinities over pairs selected by K.
Condition on the current history and any fresh algorithmic randomness used to choose the next cube. The resulting cube is then the same under every reward instance. For arbitrary , completing the square gives
Thus, for the next query,
Therefore and (96) yield
so that . The bound is applied to the likelihood vector of each history, so it covers adaptive queries and their dependence on the unknown bits; if the algorithm stops before queries, the history is completed by uninformative symbols.
Decoding from the output. After the queries, the algorithm outputs a policy . Draw and append it to the history. This conditional sampling rule is common to all , so and are unchanged.
The word determines , and different words give disjoint cells. Decode as the word whose cell contains Y, choosing an arbitrary word if Y lies in none. Then
For an augmented history h, define the error set and its Bayes probability by
If , the two words differ, so the decoder must err on at least one of them. Symmetry of , , and Cauchy–Schwarz give
Combining this with (97) gives
Regret. If , then for some . By (17),
The Bayes regret at is therefore at least
which proves (91).
Finally, the stated choice makes
Hence by (16). Since , this proves (92).
E.4 SMALL REGULARIZATION: CONCLUSION
For , Lemma 34 with and the product prior (the primitives of different prompts are independent copies of the two-choice family, and the prompts are exogenous), together with (92) and , gives
For , (90) and the identity
(note that ) give
whenever with , which is the first case of (11).
E.5 LARGE BUDGET: THE FLAT-BAND FAMILY
By Lemma 34 and , it now suffices to exhibit, for a single prompt and every , a prior with
Let , and let be the cube in which every primitive of this family places its maximizer:
so that is the fixed point of . Write for the first coordinate vector. Use the bump from (86), and for with define the base family
By (A3) and ,
and is at distance at least from the boundary of . Hence the maximizer of is , the maximum is 1, the placement cube is at every level, , for , and the ranges are as required. The value at the fixed point,
can be chosen continuously in , and for . Indeed, radial monotonicity gives a strictly positive width depending only on the structural parameters, and by (A3). For , the distance from to in either relevant radial norm is at least ; radial monotonicity and therefore give .
Flat band. Let
and . Assume first , and let
Choose the values at the fixed point as
so that inside the band; all values lie in . With and
is nondecreasing up to , constant =: on , and nonincreasing afterwards. On the shell , writing ,
by the geometric series in the proof of Lemma 6. With , the shell masses satisfy
inside the band, in general,
and since for , the normalizing constant satisfies
Thus the Gibbs policy spreads a mass of order over each of the shells of the band.
Perturbations. Let and , a cube disjoint from and from the supports of the positive and negative bumps. Partition into cells of side , and let be the copy on the -th cell of the balanced bump on the unit cell,
thus , , with
which is strictly positive. The zero extensions obey by the scaling and gluing bounds above. Let
For and independent signs , replace by
Since on the band, the amplitude satisfies and . The original and added bumps have disjoint supports, so the scaling and gluing bounds give uniformly in and the signs. The perturbation has sup norm at most and vanishes outside ; it therefore keeps the zero mean, range, unique maximizer , maximum 1, value at , placement cube and the bound off . Hence the perturbed instance belongs to for every sign pattern. The ancestor perturbations vanish on , so (102) and (103) hold for all signs, and each physical cell in the band has Gibbs mass
E.6 LARGE BUDGET: DECODING AND INFORMATION BOUND
For laws with densities relative to a common law , use the squared Hellinger distance
Separation of the two hypotheses on a cell. Let be the conditional density of on a cell of the band under the unperturbed family; it is within a factor of the uniform density on the cell and does not depend on the signs (the ancestor perturbations vanish on and the deeper levels vanish on the shell). With , the conditional densities under the two signs of bit are
and with independent,
Hence the squared Hellinger distance satisfies
Decoding. Given any output policy with density , decode the sign of bit by comparing and on the physical cell. If the decoded sign is wrong, the squared distance between and on the cell is at least (the distance to the half-space of the wrong decision). Using KL , (105) and (106), and summing over cells,
where the probability is over the prior and the transcript. Neither the unknown normalizing constant nor the mass that puts outside the cells affects this bound; if is singular, the regret is infinite.
Information. Let on and 0 elsewhere. Flipping the sign changes the reward by , and since the have disjoint supports and , Jensen's inequality gives, for any cube ,
where is the average over . By Lemma 35, for every sign pattern ,
By the two-point test and Pinsker's inequality (Tsybakov, 2008, proof of Theorem 2.2(i) and Lemma 2.5(i)) averaged over all bits and all sign patterns, and Jensen's inequality on the square root,
Conclusion for small . Choosing
makes the bracket in (110) at least 1/2, so the expected number of wrong bits is at least . Substituting into (107) with and ,
and since (recall ), we obtain (99) for with a constant accounting for the rounding.
Large . For , use the base family with all and perturb only level 2, with amplitude , where
The inclusion in is verified as before, since ; , the true mass of a cell is at least since , and the conditional density is within a factor of uniform. The same decoding and information bounds with give
and since on this range, (99) holds with
depends only on the structural parameters.
E.7 LARGE BUDGET: CONCLUSION
Combining (99) with Lemma 34 and yields (11). The second statement of the large-budget bound of Theorem 4 follows since implies .
F PROOFS FOR SECTION 5
Recall the protocol of : at round , and are generated independently of the past; the learner chooses a depth from the history, and internal randomness, queries and observes ; after rounds it outputs an arbitrary policy. We write
The two bounds of Theorem 5 are proved in Appendix F.1 and Appendix F.3, and Appendices F.2 and F.4 show that neither is an artefact of the method of proof: the first bound is attained by a fixed query depth, and for a fixed the exponent of is not worsened by fixed sampling. The two bounds use different families, but for the same reason: a query made from outside the cell that carries the unknown information cannot see it, whatever its depth, and under uniform sampling that cell is reached only exponentially rarely. The logarithmic bound uses the two-choice family of Appendix E.2, which lies in whenever , and the following form of that property; the exponential bound reuses the flat-band family of Appendix E.5 and applies the same volume factor to the information bound of Appendix E.6.
Lemma 38 (Cancellation). Fix , set all bits to 0 except , and let be the two rewards of prompt (with ). Then, with common to both and ,
In particular, the two oracle cube averages agree whenever .
Proof. The first levels are common, all deeper levels are supported in , and each has zero integral by (A4). A dyadic cube that is not contained in is either disjoint from or contains it; in both cases the cube averages coincide.
F.1 PROOF OF THE LOGARITHMIC BOUND OF THEOREM 5
Fix and use the prior of Lemma 38 with independent fair bits . Let
by the exogenous laws,
exactly. Couple the two experiments by using the same other bits, internal randomness, and noise. On , by induction over rounds, the histories coincide: the same depth is chosen from the same history, and the observation is the same by Lemma 38 when (the queried cube contains ) and trivially otherwise. Hence, conditionally on , the bit is fair and independent of the transcript and of the output policy; this holds also for .
Let . By (17), for , and are disjoint, so for every at least one of the two losses is at least . Integrating the common output policy and averaging the fair bit,
Since the unregularized regret is nonnegative on , averaging over prompts gives, for all and ,
For , Lemma 36 gives for every policy, with the same constant (singular policies have infinite regularized regret). Therefore, for ,
Choose
so that and, by Bernoulli's inequality, . Since and , we get , and the second claim of the first case of (12) follows with such that .
F.2 A UNIFORM-SAMPLING METHOD ATTAINING THE LOGARITHMIC RATE
Proposition 39. Let and . The algorithm in that queries at every round, averages the observations of each (clipped to , 0 if unobserved) and outputs the uniform distribution on the cube with the largest average satisfies, for all , and ,
Consequently, whenever and .
Proof. For each the expected number of observations is
By the exponential supermartingale of the noise sums and the lower binomial tail of the counts, for ,
A union bound over the cubes of one prompt and integration of the tail give, for ,
Let be the cube of depth containing the maximizer and ; then and by (18). The empirically best cube therefore satisfies
and the KL divergence of the output is exactly . Averaging over prompts (no simultaneous success is needed) and treating small by the uniform output gives (115); the matching lower bound is Theorem 5.
F.3 PROOF OF THE EXPONENTIAL BOUND OF THEOREM 5
Fix . We reuse the flat-band family of Appendix E.5, now with independent signs for each prompt and with the common placement cube at all levels (which may be revealed to the learner). The decoding bound (107) holds for each prompt, with an additional factor from the prompt average:
Information under uniform sampling. All perturbations are supported in the cube , of volume , and have zero mean. If a uniform response , then any dyadic cube is disjoint from or contains it, and in both cases for all . If , then by (108). Hence, conditionally on the history and , the expected squared sensitivity of the -th observation to the signs is at most , whatever depth is chosen from and the history. By Lemma 35 and the chain rule, for every sign pattern,
where only the signs of the arriving prompt contribute at each round, so no extra factor M appears.
Conclusion. With signs, the two-point test and Pinsker's inequality give an expected number of wrong signs at least
and the choice
makes it at least . Substituting into (116) with and ,
For small enough, , so that
which gives the second case of (12); the second statement follows by selecting the second term of the minimum.
F.4 FIXED REGULARIZATION: THE EXPONENT IN n IS NOT WORSENED
Proposition 40. For all , and , there is an algorithm in with
Consequently, for , and ,
so that, for each fixed , the optimal exponent of t is p.
Proof. Finite approximation family. For let , so that
On each cell of a dyadic mesh of side , use the degree-k Taylor polynomial of a primitive at the lower-left corner, where . Taylor's formula and (A1) give remainder at most , also for integer ; choose the mesh constant so this is at most . Quantize the finitely many coefficients on each cell to multiples of ; they are bounded by , and quantization adds at most on that cell. Clip the resulting piecewise polynomial to . This gives a finite sup-norm net with cells and coefficients per cell. Next let be the smallest nonnegative integer with , and replace every candidate by its averages on the depth- grid. Averaging contracts the approximation error, while the true primitive differs from its own grid averages by at most . Thus these piecewise constant candidates have sup error at most and the same cardinality, with
candidates. Enumerate also all placements of the first levels bits). Let be the finite set of scores obtained from these candidates; then
Least squares on cube averages. Fix the query depth ; every is constant on the depth- grid, and the observation is , where is the projection of onto the grid. For each prompt use its first observations and let minimize the empirical squared loss over . The ERM basic inequality, the conditional sub-Gaussian bound for the noise with a union bound over , Bernstein's inequality for the i.i.d. uniform cells and the orthogonality give
Choosing gives
Gibbs output. Output . Since , the Gibbs densities along the segment between them are bounded by , and (72) gives
Prompts. If , output the uniform distribution (regret at most 2); for , and conditionally on the prompt sequence the first inputs of a prompt are i.i.d. uniform. Averaging over prompts gives (118). The lower bound in the second statement is the large-budget bound of Theorem 4, which applies to as a subclass of all algorithms.