Manuscript Offprint
arXiv:2610.20486Average-Reward Policy Identification from a Single Continuing Trajectory
Tongxi Wang
Southeast University
Abstract. In reinforcement learning, an agent must explore an unknown environment to learn how to make good decisions. Unlike methods that can freely sample any state–action pair, an agent learning from a single trajectory must spend additional time navigating between states. It is therefore natural to expect that learning from a single trajectory requires more experience. In this paper, we show that this additional cost is not always necessary. For average-reward reinforcement learning, we develop an algorithm that learns where to collect information while ensuring that the required samples can be obtained efficiently. We establish an upper bound on the number of interactions needed to identify a near-optimal policy. Furthermore, we prove a matching information theoretic lower bound, showing that, for a broad class of environments and at sufficiently high accuracy, learning from a single trajectory is no harder in the worst case than learning with unrestricted access to state action samples. Our results reveal that the additional complexity cost of navigation can be avoided by adapting information gathering requirements to how the environment provides information.
Keywords: reinforcement learning, policy identification, sample complexity, adaptive sampling
1 Introduction
Reinforcement learning uses experience to learn effective decisions in an unknown environment. In tasks that operate continuously, performance depends on the rewards accumulated over the long run. Average reward captures this objective. Policy identification asks how much experience is needed before the learner can recommend a policy with a specified performance guarantee (Tuynman et al., 2024; Zurek and Chen, 2025a). The amount of experience required depends on both statistical estimation and data collection. Actions determine both observations and future sampling.
A generative model allows queries to any state–action pair, providing a statistical benchmark that separates estimation from navigation. On one continuing trajectory, obtaining the same useful samples may require many intervening steps. Can a learner attain that benchmark while counting every exploration and navigation step? We study this question with a fixed known reward table. Even with immediate rewards known, the learner must estimate how transitions determine future state visits and accumulated rewards.
Tuynman et al. (2024, Section 7) pose this question for the rate. The precision term of Online-DFE is ; directly combining a generative planner (Zurek and Chen, 2025a) and sample collector (Tarbouriech et al., 2021) also retains this extra diameter factor in its diameter-based upper bound (Appendix F). Attaining the generative rate remains open.
We establish matching worst-case rates over a model class for continuing and generative access under the conditions of Corollary 2. Both models have complexity for two-successor classes throughout , and for unrestricted support at sufficiently high accuracy. The continuing learner requires no structural parameters and counts every interaction, including exploration and unsuccessful attempts. Its output is a deterministic stationary policy, with stopping and all-state quality guaranteed jointly. The lower-bound kernels share one known reward. The refined upper bound also adapts to support and optimal bias span. In these regimes, restricting where samples can be obtained does not increase the worst-case complexity order: learning the sampling allocation allows exploration and collection to fit within the statistical budget.
Our approach. Uniform requests can provide statistical coverage while requiring frequent visits to states that the dynamics rarely reach. A generic collector pays for this mismatch through a diameter factor. Two mathematical connections yield coverage and low collection cost.
First, inverse-count exploration produces an empirical allocation with statistical coverage. A time-uniform trajectory flow bound shows that the same visit counts can be covered by a balanced flow of comparable mass, up to an additive cost. This holds for any nonanticipating controller, so it applies directly to the adaptive exploration history. The learned requests can then be collected at constant flow cost per unit mass once startup is paid.
Second, nonuniform estimation converts these requests into an all-state policy guarantee. A negative term from value truncation offsets the error due to transient flow imbalance. The statistical error therefore scales as and the transient correction as , where is the requested mass. Combining this separation with low collection cost gives the precision terms . An observable width certificate and a search over budgets complete the learner, with all attempts counted and polynomial bit work on the same success event.
Related work. Generative identification permits independent row sampling and span-agnostic stopping (Zurek and Chen, 2025a); Online-DFE (Tuynman et al., 2024) pays for continuing interaction. Behavior-policy methods such as SAVIC+ (Lee et al., 2026) obtain prior-free all-state identification under coverage parameters of the behavior policy, which are distinct from controlled diameter. Discounted identification, offline learning and regret impose different output or information conditions (Lazzaro et al., 2026; Lee and Ryu, 2025; Zamir et al., 2026).
Navigation-constrained allocation has direct precedents. Al Marjani et al. (2021) combine information requirements with stationary-flow constraints and track a learned allocation to identify the unique optimal policy in a discounted MDP. Their principal sample-complexity guarantee is instance-dependent and asymptotic as . Here the objective is fixed-accuracy average-reward identification, with a nonasymptotic joint stopping-and-quality guarantee. Our finite-time trajectory flow and controller bounds make allocation learning and collection affordable without structural inputs, leading to the stated classwise matching result. Optimistic collection (Tarbouriech et al., 2021) already makes prescribed requests executable; our analysis also pays for learning which requests to make. The statistic uses quantile planning and monotonicity (Zurek et al., 2025), span-agnostic stopping (Zurek and Chen, 2025a), and source-state decoupling (Zurek and Chen, 2025b). Our analysis makes these tools effective with nonuniform weights fixed after a pilot, and bounds the interactions needed to obtain those samples. Table 1 and Appendix F compare the upper bounds.
Sections 2–3 define the problem and state the results. Sections 4–6 give the algorithm and the upper- and lower-bound arguments; Section 7 examines a prediction of the statistical analysis.
For a stationary policy , define its gain by
An optimal Bellman bias satisfies , with optimal gain independent of the initial state. Writing for the data-dependent stopping time, the required joint event is
The learner stops using observed data. The bound is used only in analysis.
Let , . Define for an optimal Bellman bias with , where . Write for the startup expression.
For the access-model comparison, a generative learner may adaptively request independent successors from any row. For either access model, the complexity of a model class is the smallest common deterministic budget T for which the joint stopping-and-correctness event holds on every instance in the class. This criterion controls both stopping and policy quality from every state.
3 Main Results
3.1 Upper Bound
Theorem 1 separates the cost of learning the allocation from the subsequent precision cost. The support-dependent term is paid at startup; the accuracy terms depend on the fixed reward through .
Theorem 1 (Policy identification from one trajectory). Under the model of Section 2, Algorithm 1 returns a deterministic stationary policy with all-state gain gap at most , jointly with stopping within
interactions, with probability at least . It needs no support, diameter, mixing-time or minimum-transition input. Its complete rational realization has polynomial bit work on that event. The full controller, schedule and proof are in Appendix C.8.
The three terms pay for exploration and collection startup, statistical precision, and the transient correction in this upper bound, respectively. Since and , Theorem 1 implies the diameter-dependent bound
A weaker startup bound using total support follows from ; its expanded form is recorded in Appendix A.
The guarantee counts pilots, navigation, surplus observations and every unsuccessful attempt. Suppressed logarithms may depend on . Polynomial bit work holds on the same success event; no expected stopping-time bound on failure histories is asserted.
Relative to , the precision term has factor : small optimal span helps at high accuracy, while startup and the transport term still depend on diameter.
3.2 Matching Rates
The next consequence identifies when the continuing upper bound matches hardness even with arbitrary row queries. Section 2 defines class complexity through a common budget and joint guarantee.
Corollary 2 (Matching continuing and generative access). Let , , , , and
Consider the class of communicating kernels with at most states, at most actions per state, diameter at most , and total support at most , together with fixed known rational reward tables in . Require a deterministic stationary output policy that is -optimal from every state, jointly with stopping within a common budget with probability at least on every instance. If
both continuing and generative access have class complexity . The upper bound holds for every known reward table; the lower-bound family shares one table across all kernels.
The matching condition absorbs startup: its ratio to is . Let and denote the complexities for the same class, accuracy, confidence and joint stopping-and-output requirement in Corollary 2. For an absolute , the comparison is
The middle inequality holds because generative access can simulate the continuing learner. Theorem D.1 gives the first inequality with at most two successors per row; Theorem 1 gives the last. The resulting ranges, under the other conditions of Corollary 2, are:
| Model class | Established matching range |
|---|---|
| At most two successors per row | |
| Unrestricted support |
For unrestricted support outside this condition, access-model matching remains open. The lower bound is classwise and uses a shared reward table; Appendix D gives the complete comparison.
3.3 Comparison with Prior Bounds
Table 1 separates startup from precision costs. Substituting , our leading precision term is , compared with in the other displayed bounds. This improvement concerns the precision term of these upper bounds; startup and span refinements are retained.
Table 1. Continuing policy-identification upper bounds, suppressing logarithms. . The second row is a derived composition, derived in Appendix F.
| Method | Startup | Precision |
|---|---|---|
| Online-DFE (Tuynman et al., 2024) | ||
| Generative + GOSPRL (Zurek and Chen, 2025a; Tarbouriech et al., 2021) | ||
| Theorem 1 |
4 Algorithm
Each attempt explores and freezes , collects fresh prefixes of lengths , and computes ; width at most ends the search. Certificate validity holds for every positive . Pilot quality determines the required mass and collection cost. Algorithm 1 searches over pilot lengths and masses, clearing memory between attempts while the physical trajectory continues.
4.1 Sampling Allocation
Example 1 (Equal coverage, different collection cost). With two identical actions per state, the chain below admits two allocations with and flow costs and , for .

Uniform requests assign half the samples to state 2, whose stationary frequency is . Matching this frequency lowers collection cost. Weights are ordered as . The identical actions isolate allocation geometry; equal alone leaves policy-identification information unspecified (Appendix A.3).
An allocation , , divides statistical requests among rows. Its statistical quality depends on inverse sample weights along all feasible long-run occupations. Its collection cost also depends on navigation: supplying a difficult row may require many visits elsewhere. Let denote normalized stationary state–action flows. These two requirements lead to
The coverage coefficient measures the first requirement. The ideal collection cost is the minimum balanced mass that supplies every requested proportion. For quotas , these definitions give
The controller analysis in Section 5 converts this balanced-flow cost into a bound on finite random collection time, including transient visits. Both quantities describe the unknown kernel and guide the analysis; the learner estimates its allocation from visits.
A known kernel suggests how to meet both requirements. Choose
Communication ensures a positive feasible flow, so a maximizer is positive. First-order optimality gives
The inequality gives coverage SA, with equality at ; feasibility gives unit collection cost. This known-model design (Appendix A.1) motivates learning both properties to within constant or logarithmic factors from finite interaction.
The next controller learns coverage of order SA and bounded collection cost from visits. Statistical estimation then determines the mass to request.
4.2 Exploration and Collection
The same controller serves two purposes: inverse-count rewards encourage exploration during the pilot, and indicators of unfinished quotas guide collection. If counts pilot visits, the reward is the derivative of : another visit is more valuable at a less visited row. After interactions the pilot freezes ; write . The smoothed weights are positive, and the analysis establishes both coverage and low collection cost for these empirical proportions.
For each row, the controller forms two upper predictions of the expected next-state value. The first maximizes over a confidence region for the whole transition distribution and benefits from sparse support. The second uses recent scalar evaluations at value vectors fixed before each transition, giving an error bound independent of support size. On their common confidence event, the smaller prediction remains optimistic. Using it in each rounded Bellman backup lets different rows benefit from different bounds, yielding the startup term . This controller builds on optimistic sample collection (Tarbouriech et al., 2021); its analysis handles the decreasing auxiliary rewards used in both phases. Appendix B.2 specifies these updates and restarts.
After the pilot, a fresh controller collects successors per row using reward , where is its visit count. The nominal mass differs from . All visits update navigation information; the statistic uses the first post-pilot successors per row. Within an invocation, restarts retain visits and nested confidence regions but clear scalar windows. Between attempts all algorithm memory is cleared and the physical trajectory continues. Each attempt costs at most , with confidence allowances specified in Appendix B.4.
Algorithm 1: Continuing policy identification
Input: States, actions, known rational , accuracy , confidence ; one continuing trajectory.
Output: Deterministic stationary policy .
for stage do Set cap and each event allowance for , lexicographically do Clear algorithm memory at the current physical state; run the -step pilot and freeze Set ; if , continue to the next attempt Set ; start a fresh zero-count quota controller and collect these prefixes for at most interactions if quotas are incomplete, continue to the next attempt Compute residual-corrected and from these prefixes if , return end end
4.3 Stopping Rule
Since sufficient pilot and sample sizes are unknown, stopping requires both a lower bound on the output policy and an upper bound on optimal gain:
The learner accepts when . On the common confidence event, the bounds hold for any positive frozen allocation; its geometry determines how quickly the width shrinks. For each row, the quantile functional truncates the upper tail of under the fixed-prefix empirical distribution and subtracts an empirical-variance penalty. Reflection gives . For each chosen discount, solve
The fixed-point concentration argument bounds the true expectation between these predictions at the value vectors used in this analysis. The lower solve uses and its greedy policy . At its exact fixed point, implies
Summing conditional expectations along a trajectory telescopes the value terms. Their bounded endpoint difference vanishes after division by time, giving the all-state lower bound . The upper prediction gives the reverse inequality for every action; a finite dyadic discount search yields . Both endpoints are clipped to . Algorithm 1 tests the width after each completed batch, with the numerical residual corrections and finite fallback in Appendix B.3.
5 Proof Overview
Two connections establish the interaction bound. The first turns an adaptive exploration history into requests with low balanced-flow cost. The second converts their nonuniform sample counts into an all-state certificate, with a linear transient correction. We state their consequences first, then explain the arguments in Sections 5.2 and 5.3.
5.1 Interaction Bound
Lemma 3 (Coverage and collection cost of the pilot allocation). For a fixed inverse-count invocation, on the joint controller and trajectory flow-balance event specified in Appendix C.8, a pilot of length suffices to give
The sufficient length is an analysis quantity unknown to the learner.
Lemma 4 (Sample requirements and collection cost). Fix a finite pilot history and its positive frozen w. For each prescribed batch , the virtual fixed-prefix statistic is sound with conditional probability at least . At a sufficiently large prescribed mass it also accepts on that event, with sufficient mass of order
If , the combined controller collects the successors in interactions on its confidence event, when and the cap is sufficient.
Here is a local conditional failure allowance. The statistical statement is defined on virtual row streams even when a collection cap fails; the collection statement requires a sufficient cap.
To see how the lemmas combine, a sufficient pilot gives , , and . Substitute these into the sufficient mass in Lemma 4, then its collection bound:
The enumeration reaches such an attempt with only logarithmic overhead, while a summable allocation of conditional failure probabilities keeps the total below (Appendix B.4). Certificates remain sound at poor pilots. Conditioning on each finite entry history preserves the law of the unused samples, including on paths where collection later fails.
The pilot controls statistical demand through , and the collector converts that demand into interactions. The next two arguments establish these properties for the same random allocation.
5.2 Trajectory Flow
The first connection covers realized visit counts by a balanced flow.
Proposition 5 (Flow cost of an adaptive trajectory). Under the model of Section 2, let count visits to row through time . For any nonanticipating controller and , with probability at least , simultaneously for all integers ,
Thus every adaptive trajectory supplies counts that a balanced flow can cover at comparable mass, after an additive transient cost. This bound applies throughout exploration, including before stationary behavior emerges. The controller converts this flow bound into a collection-time guarantee. The additive form matters: after normalization by the pilot length, the transient contribution decreases, while the leading flow cost stays bounded. This allows a single sufficiently long pilot to support larger subsequent requests. The proof below establishes this property directly for the visit counts generated during learning, including their history-dependent choice of actions.
Proof idea. Let be row counts through time and . For a fixed potential , replacing observed successors by their conditional means leaves the exact residual
The endpoint term is bounded by the span of h. The martingale term is more delicate: the potential that prices a realized request is selected after observing the trajectory. Applying concentration to that fitted potential as if it were fixed would be invalid.
The dual characterization of the collection cost is
An optimizing bias can be replaced by one in . This deterministic polytope has at most vertices. For each vertex, a variance identity and two all-time martingale bounds control the residual. The same event then holds for every potential in by linearity of , allowing the path-dependent optimizer to be selected afterwards. This proves the stated flow bound; Proposition C.5 gives the full argument and constants. The deterministic vertex set is used only in the analysis.
This bound makes the link to the empirical allocation explicit. Subadditivity and the regenerative cost bound imply
Once the pilot absorbs the additive terms, its allocation is affordable. Inverse-count exploration separately bounds by a harmonic-sum argument. The same adaptive history thus provides coverage and low collection cost.
The controller supplies the other part of this argument. With probability at least , every prefix up to invocation cap obeys (Lemma C.4)
where is the optimistic gain scale. For inverse-count rewards, this bounds time through a harmonic sum and yields coverage. For quota rewards, it charges productive visits while counting all navigation. The proof uses the smaller error bound separately on each row; the learner implements this choice through its two optimistic predictions.
To turn flow cost into collection time, use the unfinished quotas. Flow subadditivity gives at an affordable allocation. If quota units remain, the binary unfinished-row reward has optimal gain at least . Charging productive visits through a harmonic sum and using the invocation bound for surplus visits gives . The term in Lemma 4 covers prefix rounding. This completes the passage from an adaptive history to requests that can be collected at low interaction cost.
At this point the sampling problem is reduced to choosing the mass M. The remaining task is statistical: a bound expressed through stationary flows must certify a policy from every initial state. This is where the auxiliary bias and the transient correction enter.
5.3 Nonuniform Estimation
Stationary mean error must be converted into policy quality from every starting state. Transient visits need not be flow-balanced, so an auxiliary bias must control their contribution. The resulting error, at exact fixed points with the prescribed discount, has the form
Thus coverage contributes demand proportional to , while transient effects contribute . Here is the confidence factor and is the span of a Bellman bias for auxiliary reward , whose gain is . It satisfies and is distinct from the target bias span . Write for the statistical sample counts and . The scaled bias satisfies
Flow imbalance enters the variance term through the auxiliary span . Value truncation supplies a negative term that controls this contribution linearly. The cancellation is the second connection.
For the lower endpoint, compare with an optimal policy through a virtual pessimistic value function capped at height , with . Let , where is the true discounted value of that policy. The key algebraic step is
for an absolute constant u. The retained negative term absorbs the square-root cost of flow imbalance, leaving a correction linear in .
To obtain these terms, start at a minimum of the capped value and stop on reaching its cap. Let , , and . The normalized occupation before this stop has a terminal flow imbalance. Applying (6) gives , so the quantile variance bound contributes . The same stopped comparison yields the negative term . Under the nontrivial-regime conditions in Appendix C.6, the remaining linear terms are absorbed while retaining . Equation (7) then controls the transient contribution by ; the discount remainder completes the bound. The transfer from virtual caps to the computed policy, including explicit numerical corrections, is in Theorem C.6. The upper endpoint needs a separate self-consistency argument bounding the optimistic value span by (Appendix C.7). Two dependencies must be handled before this calculation is legitimate. First, the prescribed post-pilot row prefixes are defined on independent row streams before collection, including paths where quotas never finish. Conditioning on future quota completion would select their values. Second, the Bellman vectors are fitted to those same prefixes. Source-state decoupling replaces one state’s fixed-point output by a scalar , and uses a second scalar cap for the other outputs. The resulting virtual vectors do not use that state’s outgoing samples. A finite grid in the two scalars, including reflected and truncated vectors, yields simultaneous concentration at the actual fitted fixed points for both signs and all tested discounts. The virtual caps allow this concentration argument to apply to the computed fixed points. Appendix C.6 gives the construction and event count.
Together these arguments shrink the certificate when and , giving sufficient mass
Thus contributes to the term without multiplying the demand.
The two connections now fit together. Coverage controls the leading statistical term, flow cost controls acquisition, and the cancellation above confines transient effects to the lower-order accuracy term. Substituting the pilot guarantees yields the upper bound in Theorem 1.
Computation. The full schedule, including support queries, rounded backups and statistical solves, uses
bit operations on the same success event. Here is the input encoding length (Appendix E).
6 Lower Bound
The access-model comparison requires hardness that survives removing navigation constraints. Theorem D.1 supplies it with one known reward and at most two successors per row, even if the learner may query rows directly. Proving hardness with this stronger access makes the comparison complete: any continuing learner can be simulated by a generative learner using one query per transition. A lower bound on the latter therefore applies to both models. The construction below ensures that identifying the output policy requires information from many rows, even when the learner is free to choose those rows.
Put , and . A routing tree of height at most joins leaf gadgets. Gadget contains a reward-one state and a reward-zero state . Each of candidate actions at moves to with probability ; returns with probability . An extra action leaves the gadget through the tree. The base kernel has . Alternative changes only that row to , keeping rewards and support identical.
The changed gadget has gain ; all other recurrent choices have gain at most . All-state -optimality therefore requires the output policy to route to the changed gadget and select its changed action. This produces disjoint output events under the common support, avoiding any claim that actions in merely transient states must be individually optimal. Controlled routes take at most in expectation, and the construction uses at most states.
For a learner truncated at the common budget T, the adaptive KL chain rule gives
At least disjoint events have base probability at most ; correctness makes their respective alternative probabilities at least . Binary data processing then requires KL at least . Summing the required row counts gives
The diameter factor persists even with generative access because each queried sample carries only information about a change that affects long-run performance. On this family, diameter therefore measures statistical difficulty as well as navigation cost. The upper bound shows that, in the matching range, controlled collection fits within this unavoidable statistical budget.
The conditions in Section 3.2 ensure all constants and routing bounds used here. Appendix D.1 includes the truncation argument and complete proof. Together with the upper bound, this establishes the stated matching regimes. Matching in the dense coarse-accuracy range remains open.
7 Discussion and Conclusion
The matching result shows that navigation constraints can be absorbed within the statistical budget for the model classes and accuracy ranges of Corollary 2. The learner discovers which requests the environment can supply, pays for acquiring them, and certifies their sufficiency using observed data. All three operations are covered by one finite interaction guarantee.
Numerical illustration. Appendix H illustrates the statistical bound's separation of bias span from a comparison policy's hitting time at fixed sample sizes. This experiment uses uniform allocation, a special case also covered by prior generative analyses (Zurek and Chen, 2025a), to isolate the fixed-prefix certificate. Allocation learning and the adaptive schedule are analyzed in the theoretical guarantees. The access-model matching result rests on the upper and lower bounds above.
The mathematical contribution is the connection between these operations. An adaptive history yields a low-cost balanced flow even before stationary behavior emerges. Nonuniform estimation then preserves the statistical rate by controlling transient error linearly in inverse sample mass. Together, these facts explain how one continuing trajectory reaches the generative worst-case rate in the stated regimes.
For unrestricted support at coarse accuracy, the startup upper bound can still dominate. Resolving that range requires a sharper understanding of the interactions needed to learn a useful allocation. A useful next step is to determine how accurately the allocation must be learned at each target policy accuracy. This would clarify when less exploration suffices for certification, sharpening startup while preserving the established precision dependence. Our bounds isolate this question and remove the extra leading diameter factor throughout the matching range.
References
Aymen Al Marjani, Aurélien Garivier, and Alexandre Proutiere. Navigating to the Best Policy in Markov Decision Processes. In Advances in Neural Information Processing Systems, volume 34, pages 25852–25864, 2021.
Yuchen Jiao, Jiin Woo, Gen Li, Gauri Joshi, and Yuejie Chi. Sample Complexity of Average-Reward Q-Learning: From Single-agent to Federated Reinforcement Learning. arXiv preprint arXiv:2601.13642, 2026.
Joseph Lazzaro, Alessio Russo, and Aldo Pacchiano. Non-Asymptotic Best Policy Identification Guarantees in Online Reinforcement Learning. arXiv preprint arXiv:2607.17201, 2026.
Jongmin Lee and Ernest K. Ryu. Finite-Time Bounds for Average-Reward Fitted Q-Iteration. In Advances in Neural Information Processing Systems, volume 38, pages 132144–132177, 2025.
Jongmin Lee, Ernest K. Ryu, and Vaneet Aggarwal. Learning Policy from a Single Trajectory in Average-Reward Markov Decision Process. arXiv preprint arXiv:2606.16729, 2026.
Jean Tarbouriech, Matteo Pirotta, Michal Valko, and Alessandro Lazaric. A Provably Efficient Sample Collection Strategy for Reinforcement Learning. In Advances in Neural Information Processing Systems, volume 34, 2021.
Adrienne Tuynman, Rémy Degenne, and Emilie Kaufmann. Finding Good Policies in Average-Reward Markov Decision Processes Without Prior Knowledge. In Advances in Neural Information Processing Systems, volume 37, pages 109948–109979, 2024.
Jinghan Wang, Mengdi Wang, and Lin F. Yang. Near Sample-Optimal Reduction-based Policy Learning for Average Reward MDP. arXiv preprint arXiv:2212.00603, 2022.
Guy Zamir, Matthew Zurek, and Yudong Chen. Optimal Variance-Dependent Regret Bounds for Infinite-Horizon MDPs. In Proceedings of the 39th Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 7016–7061, 2026.
Matthew Zurek and Yudong Chen. Span-Agnostic Optimal Sample Complexity and Oracle Inequalities for Average-Reward RL. In Proceedings of the 38th Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 6156–6209, 2025a.
Matthew Zurek and Yudong Chen. The Plug-in Approach for Average-Reward and Discounted MDPs: Optimal Sample Complexity Analysis. In Proceedings of the 36th International Conference on Algorithmic Learning Theory, volume 272 of Proceedings of Machine Learning Research, pages 1386–1387, 2025b.
Matthew Zurek, Guy Zamir, and Yudong Chen. Optimal Single-Policy Sample Complexity and Transient Coverage for Average-Reward Offline RL. In Advances in Neural Information Processing Systems, volume 38, pages 187213–187277, 2025.
A Additional Preliminaries
A.1 Known-model occupation design
If were known, a positive maximizer of over would satisfy and . Communication supplies a positive feasible flow by mixing regenerative cycles through all rows. The log objective tends to minus infinity at the boundary; its first-order condition gives for every feasible , with equality at . This known-model observation motivates learning adequate proportions from the current physical state with unknown and no structural inputs, at the stated startup cost, and connect them to reliable observable stopping. The pilot uses auxiliary rewards to encourage coverage. The policy guarantee concerns the target reward , fixed and known before data collection.
The symbols , , , and denote pilot counts, collector counts, requested row-prefix lengths, nominal mass and total requested samples, respectively. concerns the target reward; concerns auxiliary reward . Only the analysis uses , , , , , .
A.2 Total-support bound
Since , the diameter bound (2) also yields
This weaker expression follows for the same algorithm.
A.3 Two-state allocation identities
For the two-state example in Section 4.1, every stationary flow has state marginal . Uniform row weights give . Equal splitting within each state gives as well. A balanced flow of mass must supply total rare-state quota , so . Equal action splitting attains for uniform requests. The occupation allocation is itself a balanced unit flow, and total requested mass one implies .
B Algorithm Details
This appendix specifies the controller and statistic used in Algorithm 1. Their probability and progress arguments appear in Appendix C; bit computation is in Appendix E.
B.1 Rounded exploration controller
Consider a finite communicating transition kernel with states, actions, rows and diameter . Neither nor is an input. Fix an interaction cap and confidence . Rewards are either inverse counts or indicators of unfinished integer row quotas. They decrease coordinatewise. Neither physical state nor invocation counts are reset.
At scale , put , , and . Initialize . At gain-epoch entry set , clear scalar buffers, and use
The index starts at zero on each scale. Each row stores the values computed using the vector chosen before that transition. Old observations are never reevaluated using a new vector. For an unobserved row predict . Otherwise put and use its last scalars, mean , and centered square sum to compute
Order of a decision. At physical time , before drawing a successor, let be the current vector. Use the counts and buffers from transitions to compute all row predictions, then form all scores . With these scores fixed, update every state synchronously:
If , double and reinitialize the scale. Otherwise, if , retain and start a new gain epoch. After either restart, recompute all predictions and scores before testing again; , the physical state and invocation counts do not change. If neither test fires, set and choose an action maximizing the already computed unrounded , breaking ties by action index. Draw , append to that row's buffer, and update counts (and row regions in the combined controller). Only then advance to and the new auxiliary rewards. Thus the stored direction is the post-backup vector, fixed before the transition. Stop at the cap or immediately upon quota completion. Scalar buffers contain only observations from the current gain epoch.
Scalar confidence bounds. For predictable coordinatewise decreasing vectors within an epoch, the unrounded predictions above satisfy simultaneously at queried rows, up to the cap,
Its failure allowance is . Its lag accounting charges each nonnegative mean decrease to at most W later queries; the total is at most KBW. Rounding adds at most T/256 to the right side of (B.2) and preserves (B.1).
B.2 Combined controller
Exact controller. Use the controller of Appendix B.1, with either inverse-count or unfinished-quota rewards. Give its scalar construction allowance , and maintain the dyadic nested row regions of Appendix C.1 at allowance throughout each invocation. At every gain-epoch entry, including entry after a scale restart, replace the scalar-only logarithm by
where uses in Appendix B.1. This is used in both prediction radii and the window length. It dominates the row-confidence logarithms for all retained prefixes . Before every backup, including zero-transition restart loops, intersect its predictor with the upward 1/256 rounding of . For this support prediction use from the decision order above; all predictions are fixed before the simultaneous update to . Within an epoch, intersect retained upper predictions with the current support prediction: older vectors dominate the current one, so these retained bounds remain optimistic. A new observation refreshes its row's scalar prediction, and the next backup intersects it again. Keep the nested regions through gain and scale restarts. An empty row region off containment contributes no coordinate restriction. Stop when quotas are met.
Invocation and data boundaries. The pilot and quota collector are distinct instances of this rule. The pilot starts with zero counts and freezes after its last transition. A new quota instance starts at the resulting physical state, with zero invocation counts , initial simplex row regions and empty scalar buffers, and targets . Its reward is . Every visit increments and updates the row confidence information, including surplus visits. Only the first post-pilot successors enter the statistical histogram. Within an invocation, gain/scale restarts retain and the nested regions, but discard scalar windows; a new attempt discards all these data. Thus neither pilot counts nor surplus tails are silently substituted for the certificate’s fixed prefixes.
B.3 Statistical subroutine
This specification collects the statistical definitions used by Algorithm 1 in one place. Its inputs are the known reward, accuracy , a failure allowance , an integer mass , positive rational weights frozen at a finite pilot history, and the first fresh successors of each row. The collection must be complete before the computation is called. Put ; and generally differ. The outer algorithm skips , so all invoked counts are positive and .
Parameters and row functionals. Set
For a vector , when , let be the largest coordinate value with and put . When , put . Define
The quantile monotonicity result of Zurek et al. (2025, Lemma B.2 and Appendix E.1) applies to this penalty, minimum floor and constant subtraction. Its rowwise argument allows any fixed , including the minimum-vector branch when . Reflection gives the upper sign. Monotonicity and constant-shift equivariance imply sup-norm nonexpansiveness. The range lies between and ; reflection preserves these properties. Consequently the discounted Bellman operators below are contractions on . Minima and spans include zero-mass coordinates. These functionals are the functionals used in Appendix C.6, with the enlarged common confidence parameter for both signs and all discounts.
Fixed points, output, and numerical acceptance. For , the lower discount is and the upper discounts are . At exact fixed points, use the lower greedy policy and endpoints and .
For finite computation use outward enclosures. For any discount write . Enclose by , and set , . The shifted vector is within of the exact fixed point. For the lower solve choose the action maximizing , and use
For each upper solve set and . Return the lower policy only if . Enclose rows to width at most and obtain using the complete rounded contraction fallback of Appendix C.6 when needed.
Clipping the Bellman output to span is inactive on the invariant cube. It therefore preserves the exact fixed point, and the resulting monotone contraction satisfies the same residual-to-distance bound. Constant-shift equivariance also ensures that row evaluations at and at give the same policy and undiscounted residuals. Thus the residual certificate applies to both evaluations.
The lower residual correction follows from that appendix’s policy extraction argument, and upper residual correction follows by contraction. Source-state decoupling and the union over signs and discounts in Appendix C.7 establish simultaneous soundness on virtual fixed row prefixes before intersecting their actual availability. This applies conditional on any finite pilot history with positive frozen w; no coverage, diameter certificate, or true model is an input. The sufficient mass is then established in that appendix, separately from this soundness statement. The uniform experiments specialize to , .
All-state validity, including multichain outputs. Let be the corrected lower endpoint before taking its maximum with zero. It implies for every state. Summing its conditional expectations for transitions gives . The bounded endpoint term vanishes after division by , so g_P^\widehat{\pi}(s) \geq L_{\text{raw}} for every starting state. Nonnegative rewards also give g_P^\widehat{\pi}(s) \geq 0, hence the reported bound . For an exact upper fixed point , all actions satisfy . Hence ; the same telescope bounds every policy’s gain. The residual enclosure enlarges this to . Communication of the controlled MDP guarantees a constant optimal gain.
B.4 Schedule and confidence
At outer stage , let . Enumerate lexicographically. Each attempt starts fresh algorithm memory at the current physical state, runs a -step pilot, and freezes . For skip after paying the pilot. Otherwise collect the fresh prefixes with cap , and run statistics only after completion. Return only when the corrected width is at most ; else continue. The environment is never reset. Each attempt costs at most . Assign each of the pilot-controller, trajectory flow balance, quota-controller and statistical events .
The controller and statistic above are invoked with these event allowances. The joint probability and stopping-cost calculation is in Appendix C.8.
C Proofs of the Upper Bounds
The overall interaction bound is proved in Appendix C.8. Its ingredients can be read separately: trajectory flow balance and pilot quality in Sections C.3–C.4, statistical guarantees in C.5–C.7, and controller bounds in C.1–C.2. Appendix E establishes bit complexity.
C.1 Row confidence sets
Fix a row-family failure allowance . These are the confidence regions used by the combined controller, independent of any coverage test or occupation-design algorithm. For a row with observations and empirical probabilities , let . The coordinate interval contains exactly those satisfying
with endpoints rounded outward by at most . Bernstein’s inequality at the true coordinate, followed by a union over coordinates, rows and prefixes, gives failure at most . At , use the full probability simplex.
Confidence sets and transition-value error. Write and let be the row-family failure allowance. For a row with observations, let be its observed support, , and . Intersect the coordinate intervals defined above, whose total failure allowance is already , with
Use the simplex when . For a fixed subset of size , observing all successors in has probability at most . Union over the subsets, , rows and gives unseen-mass failure at most , since . The coordinate allowance supplies the other . Thus containment holds simultaneously at all row prefixes. The empirical row is feasible. All finite-prefix coordinate bounds have strict outward slack and the group cap is positive, so a sufficiently small mixture with the uniform law is feasible. Thus the extended process communicates even on histories where true containment fails.
We record the quantitative transport argument, including rounding. For , put . Use coordinate endpoint precision . The interval's defining Bernstein inequality and imply for any feasible . For two feasible rows , writing gives
Also , since and the remaining log is at most . Center any real vector at . On , Cauchy–Schwarz bounds the error by ; on it is at most . As ,
The range bound handles n = 0 with effective support one. This is uniform over all v and all compatible rows, including rows with positive mass outside B.
Dyadic confidence sets. Retain the above region at every positive power-of-two row count and intersect all retained regions. Between these counts keep the previous intersection. Define
Containment is inherited from the all-prefix event; no additional union is needed for the data-dependent intersection. The coefficient is nonincreasing and, for , the largest dyadic witness gives . At a witness attaining the minimum, both the true row and any compatible row satisfy (C.1). Thus for an envelope covering the retained prefixes,
The n = 0 case uses the range bound. This inequality is uniform over v, so subsequent value-vector updates need no new confidence event. Merge coordinate lower/upper bounds by maxima/minima and caps on the same unseen set by minima. Unseen sets form a nested chain, so there are at most distinct group constraints. Sorting values and greedily filling the lower-bound-contracted laminar capacities solves each support query. Empty intersections off the containment event contribute no coordinate restriction.
C.2 Exploration Bounds
C.2.1 Scalar prediction bound
We condition only on the finite history at epoch entry. Thus and the confidence allowance are fixed. The following argument applies to any predictable decreasing vectors, without assuming that controller confidence or a later test succeeds. Write and .
Lemma C.1 (A masked martingale bound). Let , where are martingale differences with , , and is predictable. Assume almost surely for a deterministic integer . Put and . For any , except on an event of probability at most , simultaneously in ,
The same assertion holds for , with its own failure allowance.
Proof. For , the Taylor series and for imply
The product supermartingale therefore gives uniformly in time, outside probability . For the uniform claim, stop the nonnegative supermartingale at its first crossing of . Apply its expectation bound to bounded stopping times, then pass to the limit.
For a deterministic upper variance , choose . On the resulting boundary is . Use for the bottom bin and for bins . Predictability and the activation budget give
Hence at most bins suffice. In a nonbottom bin . In the bottom bin, . Union over bins proves the claim.
Fix a deterministic row i, a deterministic row-start index a, and a deterministic length
Let count earlier visits within the epoch and use the mask
The mask, direction and conditional mean are chosen before the next transition. Each activation increments the row count, so the mask activates at most times, including activations whose centered increment equals zero. Apply the preceding lemma to the masked centered increments of , , and for each fixed in the grid . Use both tails for , the upper tail for the squared residual, and the lower tail for each fixed-center square. The masks remain defined when an interval is abandoned; no event conditions on its completion. At completion the sums are precisely those of that row window.
For one such window, put , , , and . The centered-square increments have conditional variance at most . Thus the simultaneous bounds imply
For , the fixed-center bound gives
Here the centered increments are bounded by and their cumulative conditional variance is at most . Also . Select a grid center within of only after the event has been made uniform over grid centers. The identity and for a completed window give
The argument also applies to partial windows when .
To verify the probability count, there are at most masks, at most signed processes per mask, and at most bins per process. Thus total failure is at most for the unchanged chosen . There is no additional union over query times because each bound is uniform in global time. Conditioning on epoch entry fixes all grids; ending an epoch simply stops its predictable masked processes.
From (C.2) and (C.4), . The current row mean is at most the average of the historical means, so the prediction radius, using the actual length , proves (B.1) for partial and full windows. This remains true at intervening backup queries with no new observation of the row: the historical window is unchanged and the current mean can only decrease.
For the cumulative bound, count only the actual selected-row queries. At a full-window query let be the current mean and . All summands lie in . By (C.3),
Combine this with (C.2), the prediction formula, and subadditivity of square roots to obtain
Clipping at B can only decrease this upper bound. For each row, write its successive mean drops as nonnegative increments. Each drop occurs in at most W later window lags, with coefficient at most one; their total is therefore at most WB. There are at most KW warm-up queries, each with excess at most B. Each observed conditional variance belongs to at most W later windows, so Cauchy–Schwarz gives
Summing proves the slightly stronger coefficient 60 in the last term of (B.2), and hence its displayed coefficient 64. This proves both statistical assertions used by the controller.
C.2.2 Invariants and restart costs
Lemma C.2. On the simultaneous scalar-confidence event, every updated V is a supersolution of the current true discounted Bellman operator. No scale larger than the first dyadic is reached. At an executed step, , , and .
Proof. Initialization is a supersolution since . Historical scalar directions dominate the current pre- and post-update vectors, since V decreases within an epoch. Thus . Both and the rounded backup dominate : for the former use the previous supersolution, decreasing rewards and monotonicity, and for the latter use confidence. Their coordinatewise minimum is therefore a supersolution. A gain restart retains this invariant; a scale restart reinitializes it.
For any target , follow a hitting policy with mean time at most . Nonnegative rewards and the supersolution imply by stopping at and discarding the nonnegative unhit term. Since , . At the scale test cannot fire. Consequently on this event.
Both update terms are at least ; this property holds pathwise even off confidence. Before the cap and before quota completion, . The entry gain hence has , proving the rounding bound. The two tests give and , whereas monotonicity from epoch entry gives .
At fixed scale each gain restart reduces by a factor strictly greater than two. The positive lower bound above limits their number to . A new scale with empty buffers executes a transition on its first update: and both tests pass. Thus there are no infinite zero-transition restarts, even off confidence, before a finite cap.
C.2.3 Positive potential and absorption
Within one gain epoch write after the backup, , and . Let and . Let range over epoch prefixes, including those ending at restarts.
Lemma C.3. Intersect the scalar event with two potential-martingale events, each off failure at most . Then
Proof. The selected backup and rounding give
In particular . The variance identity and imply
For p = 1, 2, monotonicity gives the pathwise telescope
Indeed the endpoint difference is at most , and intermediate changes are nonnegative decreases whose sum over all coordinates is at most .
Put . The bounded-increment exponential supermartingale with yields, uniformly over stopped prefixes,
To check the second variance coefficient, use . These supermartingales follow from for , followed by Ville's inequality. They are constructed before intersecting with scalar confidence.
The square telescope now gives , which implies (C.5). Summing the productive inequality gives
Substitute (C.5); the reward coefficient becomes 5/4 and the remaining term is . Using gives the conservative bound (C.6).
By (B.2), rounding, (C.5), and ,
For clarity, the square-root term splits into and . Young's inequality bounds each with and the corresponding 25/2048 or 75/1024 term. Absorbing 25E/2048 yields
Substitution in (C.6) gives
Since and , the last term is at most 1930KBW/17. Now 243/34 < 8 and 2410/17 < 160, proving (C.7).
C.2.4 Invocation bound
Let , and define
There are at most gain epochs per scale. The dyadic bounds and imply . Union over the scalar and two potential events costs at most . Conditional application at each epoch entry is legitimate; conditioning on its later success is not. Thus all invocation prefixes obey
with probability at least .
Let denote the nonnegative balanced state-action flows whose total mass is one. For inverse counts, let . Flow balance and the supersolution give . The rowwise harmonic sum is at most ; if , then
For integer quotas , a balanced flow dominating of total mass gives gain at least when quota units remain. Every productive transition removes one unit, so . Surplus visits have zero reward but remain charged on the left side. These bounds control capped exploration and collection. The statistical and stopping arguments complete the policy-identification guarantee.
Lemma C.4 (Invocation bound for the combined controller). For cap N, put , and . Let be the maximum of
The combined controller uses the maximum specified in Appendix B.2 in both its radius and . On the confidence event, its visited scale and epoch indices satisfy and , so that implemented logarithm is at most . The second envelope dominates for every retained . Thus no parameter is enlarged only inside this proof. We claim that, uniformly over prefixes,
The probability of this event is at least .
The proof follows here.
C.2.5 Proof of Lemma C.4
Proof. Both predictions dominate the current true expectation on containment. Monotone rounded backups therefore retain the true Bellman supersolution. The hitting-time argument of Appendix B.1 gives . Both reward types are nonincreasing, and before completion ; hence , rounding costs at most 1/256, and there are at most H gain epochs per scale. At a new scale the vector is constant, so every nonempty row support and the empty-set fallback equal B. The first backup is at least and executes a transition. Thus off-event zero-transition scale loops are also finite.
Fix the analysis-only row set , let , , and . The sparse-transport inequality (C.1), with the dyadic coefficient bound , gives
Here the implemented support uses the pre-backup vector, whereas the variance uses the post-backup vector. Support is 1-Lipschitz in sup norm; their nonnegative decreases sum to at most SB per epoch. This lag charge cannot be discarded. The harmonic sum uses invocation-wide counts. Restricting the scalar-window argument to the other rows gives
Every observation on these rows is itself a selected query on these rows, so the same variance-overlap count applies. The common potential argument gives and . For explicit absorption, the coordinate square-root terms are at most . For the scalar square root, writing and using , choose the explicit Young bounds
Including the coordinate linear terms and lag therefore gives
After division by 125/128, the coefficients of are respectively 3/125, 384/125, 1188608/125, 32, and 121/6400. Rounding these upward gives
and consequently
The last step uses , also when C is empty. This startup is at most
Since over the dyadic scales, summing epochs proves (C.8). For probability accounting, the nested event costs globally. Scalar and the two potential events each get at scale/gain entry. Their total cost is . Conditioning is only on finite entry histories; there is no union over data-selected directions or row partitions.
C.3 Flow Balance of Adaptive Trajectories
For nonnegative row demands q, define the circulation cost
A regenerative cycle taking a prescribed row action and then returning to its state has expected duration at most . Its expected visit counts are balanced and its prescribed row count is at least one. Adding such flows shows finiteness and the bound . The same definition proves positive homogeneity, monotonicity and subadditivity. No circulation is supplied to the learner in the construction below.
Proposition C.5 (Uniform-in-time bound on collection flow cost). Let K = SA and
For any nonanticipating controller, with probability at least , simultaneously for every integer ,
There is no supplied time cap, discretization accuracy, or stationarity assumption. The logarithmic factor is , independent of diameter and horizon.
Proof. Finite-dimensional LP duality gives
We first justify that an optimizing admits a feasible bias of span at most . A dual-feasible reward has optimal gain at most one: multiply its constraint by any stationary probability flow. The regenerative row flow also gives , so rewards are finite. For completeness, a communicating finite MDP has an optimality-equation solution for these rewards by the following compactness argument. Discounted values have span at most , by following a target-hitting policy and then the optimal discounted policy. Center these values and take a convergent subsequence as the discount approaches one; the Bellman equation gives . Moreover, a normalized original dual-feasible potential makes a discounted supersolution, so the limiting . Nonnegativity of rewards gives . Stopping the Bellman inequality along a true target-hitting policy gives ; thus . This replacement bias remains dual-feasible. Normalize it to .
The preceding replacement yields an optimizing bias in the deterministic feasible-bias polytope . It is compact and full dimensional: the constant vector satisfies every inequality strictly. It is described by inequalities. At each vertex, linearly independent active inequalities determine the point uniquely. Assign one such basis to each vertex; two different vertices cannot have the same basis. Hence the number of vertices is at most . Every point of is a convex combination of these vertices. Both facts are finite-polytope properties; the vertices depend on the true kernel only for this analysis and are never enumerated by the learner.
Fix one vertex of , write , and define
The drift is at most one. The exact identity
and the fixed-vector telescope imply . Using the bounded-increment exponential argument already proved, with and , we obtain , uniformly over all integer , outside probability . Hence
With , a second event gives
The all-time assertion follows by applying the nonnegative supermartingale maximal inequality, or by increasing finite horizons with the same threshold and taking the union of the nested crossing events. Each crossing costs at most ; both processes and all vertices together cost at most .
For each fixed realized path and time, is linear in . Therefore its upper bound at every vertex extends by convex combination to every . Selecting the optimizing bias after seeing counts is now valid on this one simultaneous event. Duality and the endpoint telescope give
There is no grid approximation term. Finally .
□
C.4 Pilot Quality and Quota Collection
Pilot allocation. Run inverse counts for steps and freeze . At the endpoint let . Every preceding optimistic gain dominates . If and , the harmonic sum gives
Let be minimum balanced-flow mass dominating . It is homogeneous and subadditive. Execute a row once and return to its source to obtain . Proposition C.5 gives
when , where . As , all pilot conditions hold at . None is tested by the learner.
Statistical demand and actual collection. For pilot-fixed and ,
If quota units remain, a balanced flow dominating gives unfinished reward gain at least . Summing productive visits therefore gives . By (C.8), any cap exceeding
forces completion. Otherwise the prefix inequality at the cap is a contradiction. Surplus interactions and rounding are both charged.
The statistical lemma without pilot-based projection in Appendix C.7 is sound conditional on any finite pilot and positive frozen weights. Its sufficient mass, using auxiliary bias span , is
Thus a good pilot has sufficient mass . Use exactly its discount grid, common confidence parameter and corrected numerical endpoints, with complete rounded fallback. Virtual fixed row prefixes are defined before intersecting collection success.
C.5 Quantile concentration
This calculation is used with the finite source-absorption grids in Appendices C.6 and C.7. Condition on a finite pilot history. An equivalent construction assigns independent infinite successor streams to the rows after that history, revealing the next unused entry when a row is visited. The Markov property gives the original interaction law. Frozen weights and prescribed mass fix every row-prefix length; unused entries define virtual prefixes even if quotas are never completed. Thus conditioning here is on the pilot. For each row, consider independent fresh successors and a finite collection of random vectors independent of that row's samples. Let be the number of row–vector pairs, including all coordinate-level truncations, and let . After a union, the bounds below hold on this collection and transfer to fitted targets within sup distance . Set and . They imply one-sided validity of the quantile functionals without pilot-based projection and, for each covered fitted target of span ,
with the reflected statement for at its covered targets. The grid arguments supply the required independence and approximation; no successful-collection event is used for conditioning.
For one independent vector , write , , and . Scalar Bernstein for and gives, with failure at most ,
The second application uses variance at most and range at most . Subtracting the squared empirical mean error yields . For , the inequalities and give . Hence . A union over row-vector pairs costs at most .
For , standard deviations change by at most sup distance, means by sup distance and spans by twice that distance. Transfer to the covered targets within , including their clipped transforms, to obtain
If , then , and . Half the sum of the two penalty branches dominates , and their maximum is at least that half-sum. The last concentration bound and the subtraction give . The minimum floor cannot violate this inequality. The case is immediate; reflection gives the upper bound.
Quantile clipping and row error. For , let be the threshold and . Maximality gives . Put . If , then by Cauchy–Schwarz. Otherwise , so . Thus . Clipping cannot increase variance, by the independent-copy squared-difference formula, and therefore
Substitute the preceding concentration bounds, and to get . Since , this implies the displayed row-error bound above. For use the trivial range bound for ; the case is immediate. Reflection finishes the upper sign.
C.6 Nonuniform estimation
This section establishes the fixed-mass statistical guarantee used in the stopping proof: quality at a prescribed post-pilot sample mass. Appendix C.7 turns it into an observable stopping rule. The planner is the pessimistic quantile operator without pilot-based projection of Zurek et al. (2025), with conservative confidence and numerical constants. In particular, Zurek and Chen (2025a, Theorem 4) already obtain the uniform-generative oracle rate below using span-constrained planning and parameter selection.
C.6.1 Algorithm and theorem
Let be communicating, be known, and let positive rational weights , summing to one, and an integer be fixed before the fresh observations. Set , , , , and
If , return any policy and lower bound zero. Otherwise, use the chronological first fresh samples from each row. Let be the lower quantile functional of Appendix B.3, with penalty parameter and additive correction . Compute the fixed point of
and return its discounted-greedy policy. Numerical acceptance is specified below. No true kernel, diameter, bias span, or auxiliary potential is an input.
For analysis only, put . Consider any scalar and potential satisfying the familiar Bellman supersolution inequalities for the auxiliary reward :
Write .
Theorem C.6 (Fixed-prefix oracle bound). With probability at least , simultaneously for every deterministic stationary comparator with constant gain and a finite Poisson bias of span , every witness (C.9), and every initial state s, the exact output obeys
For the numerically certified output, subtract on the right, where bounds the sup-norm fixed-point error and is the largest outward row-enclosure width. The same event permits taking the best comparator and the best witness; neither is computed by the learner.
Two witness choices clarify the result. First, , is always feasible. Equal row counts therefore give
up to numerical error, with no diameter or policy-hitting-radius condition. Second, let . An optimal Bellman bias for reward supplies a witness with and . Indeed, and (C.9), stopped along a controlled path from to , imply . Bounded and integrable hitting justify stopping first at and taking limits. Optimizing navigation and varying , gives the bound. Thus the theorem also recovers the diameter-dependent transport guarantee, but can be strictly sharper. The supersolution inequality itself is a standard average-reward tool; the new step is its use with the retained negative clipping term below.
C.6.2 Statistical event and virtual clipping
For , , define , where coordinatewise. Quantile monotonicity, shift equivariance and range preservation (Zurek et al., 2025, Lemma B.2 and Appendix E.1) make these maps monotone -contractions on . Consequently , where ; the largest cap is at least , so its fixed point equals . Common , across the virtual caps are essential. Only is actually computed.
Here global clipping requires a two-parameter decoupling. For a source state , replace its output by a deterministic , and every other output by , with . The resulting fixed point is independent of all samples originating at . Choosing and recovers . Round both parameters upward on . Ordering is preserved and contraction bounds the fixed-point error by . Include the vector and its coordinate-level truncations, whose approximation error is at most .
There are at most row-vector pairs. Conditional scalar Bernstein bounds for a vector and its squared centered value, as derived in Appendix C.5, and a union bound with have failure at most . In particular, with , covered fitted vectors satisfy
These apply also to the covered truncation. If , then , and the maximum of the two penalty branches dominates . The correction covers the remainder. If , the operator returns the minimum directly. Its quantile truncation loses at most when ; the larger- case follows from range preservation. The calculation in Appendix C.5 therefore yields, at every exact virtual fixed point and with ,
C.6.3 Stopped comparison
Fix a comparator of bias span . Its true discounted value satisfies and by applying the linear discounted Bellman operator to . Choose a virtual , and put , , , and . Start at a minimizer of , stopping at the first visit to . Infinite is allowed, with . Define
Then is a probability occupation, , and , where and . Multiplying (C.9) by gives
Off the cap, satisfies ; on it, . Nonnegativity of is not needed, including for a suboptimal comparator. Discounted stopping and bounded terminal remainder yield
Assume . Off the cap, . The flow identities applied to , and , on the cap imply
For clarity, writing , expand the variance as , use and . The remaining flow terms are . This proves the displayed bound without treating as stationary.
Cauchy–Schwarz in (C.11) and absorption of give
Substitute (C.12) into (C.13), retain its negative term, and use . If , the terms depending on are bounded by
It follows that
C.6.4 Policy guarantee
A stationary average of (C.9) shows ; pointwise it gives . In the early branch, some , so . Either or , making the theorem trivial. Otherwise , hence and .
The claim is again trivial if or . In the remaining regime, and : otherwise contradicts that regime. Choose the first dyadic , so . With , (C.14) becomes
Since , its minimum is inherited by the computed fixed point. At , the pessimistic discounted-greedy action and (C.11) yield . Telescoping bounded proves the gain statement from every initial state. The argument holds for each comparator and witness without a union bound.
For finite computation, let have certified distance at most from , and let lower row enclosures have width at most . Choose the action maximizing . Its discounted residual is at least . The enclosure width and the exact functional's minimum floor give
Adding to the discounted residual and using therefore yields
One-sidedness at the exact fixed point and Lipschitz continuity give . Thus subtracting from the computed residual is safe, and its minimum satisfies
The resulting numerical loss is at most .
For a rational normalized proposal , enclose coordinatewise by , put and . The shifted vector has residual at most , so is certified. A complete fallback iterates with downward dyadic rounding of mesh and row error at most . After iterations its distance is at most , and the final residual check passes. Re-rounding bounds intermediate bit lengths, making this fallback polynomial in the raw data size, , , reward bit length and .
C.7 Stopping with unknown bias span
This section proves when the nonuniform statistical test becomes narrow enough to stop. It uses the fixed-mass result of Appendix C.6, independently of how the pilot was obtained. Let for an optimal Bellman bias, satisfying . The discount grid, row parameter and outward intervals are specified in Appendix B.3.
C.7.1 Stopping lemma
Fix any finite pilot history, its positive frozen weights , and a prescribed batch . Write , , and consider an analysis-only witness
Every stationary occupation gives . Let . We show that the observable rule stops at this batch if
The source-absorption construction of Appendix C.6 applies to both quantile signs and the finite discount grid. For the upper operator, replace a source output by and cap other outputs at ; at its unclipped fixed point take , . Both parameters lie on the same bounded rectangle as before. Rounding upward incurs at most error, since . Include the negative vectors and their coordinate-level truncations for the reflected sign. The factor two for signs and the additional discount count are covered by the displayed factor in . At every exact upper fixed point, , , the event gives
Here H is the actual fitted span: transferring scalar Bernstein bounds from the grid uses the target vector's own span plus the explicit rounding slack. The lower virtual points simultaneously satisfy Theorem C.6 with the same larger .
C.7.2 Optimistic value span
Fix a grid discount , put , and let be the optimistic fixed point. Its invariant cube is , so . Let be discounted greedy and its normalized infinite discounted occupation under the true kernel from an arbitrary initial state . The flow identity gives
Write and . On greedy rows, . Expanding conditional variance and using the flow identity,
Combining this with (C.16) yields . Use and to obtain
The constants also bound the sharper coefficient .
Let be the true discounted optimal value. Since , monotone contraction gives . Greediness and optimality respectively give . Iterating this bounded inequality and applying (C.17) shows . The optimal Bellman equation, applied to , bounds . Nonnegativity of then implies
No small-span assumption was made to derive this inequality.
Since , conditions (C.15) imply . The dyadic grid therefore contains
For this point, , , , and . If , dividing (C.18) by bounds its right side by less than , a contradiction. Consequently .
For any true recurrent-class occupation of , stationary flow gives and . The same absorption gives . Averaging the discounted equation yields . Thus the exact upper endpoint obeys
The lower theorem, using a Bellman-greedy optimal comparator, gives . The lower numerical endpoint loses at most , and an accepted upper endpoint adds at most , where . Their total width is therefore less than . The complete rounded fallback in Appendix C.6 also applies to : reflection preserves monotonicity, constant-shift equivariance and the invariant cube.
C.7.3 Conditional guarantees
Let . An optimal auxiliary Bellman bias for reward has span , by the nonnegative-reward stopped hitting argument already proved in Appendix C.6. Then , satisfy the witness inequalities. The preceding lemma ensures stopping by a dyadic mass of order
For the empirical pilot in the main proof, , and . Appendix C.8 charges the resulting mass using its combined quota collector and sums the failure allowances over attempts. The statistical event here is conditional only on the observed finite pilot. It is first proved for virtual row prefixes and then intersected with actual collection. Conditioning uses only the finite pilot history.
Attribution. Span-agnostic generative stopping is due to Zurek and Chen (2025a, Theorem 2). The additional calculation here is the nonuniform optimistic span bound (C.18), controlled by an auxiliary Bellman potential. The interaction improvement additionally requires the affordable pilot and actual-collection argument of the main proof.
C.8 Proof of the Main Theorem
Write , , and . Support and diameter remain unknown. The following refinement combines the nested support interface with the rounded scalar-window controller, and then uses the statistical certificate of Appendix B.3.
We now combine the pilot, collection, and statistical guarantees to prove Theorem 1. The combined invocation bound uses the nested row transport inequality (C.1) and the scalar-window bounds. Proposition C.5 then controls the flow cost of the empirical pilot allocation. Quota collection converts its nonuniform sample requirements into interactions, and the width test certifies the output policy. With the data boundaries in Appendix B.2, it remains to show that enumeration reaches a sufficient attempt and to combine its conditional confidence events.
Total interaction cost. Use the outer enumeration of Appendix B.4, with and four event allowances per attempt. Each attempt costs at most . Conditional union and integration over finite histories give total failure .
A common sufficient attempt. Write and set
These are analysis quantities. For cap and allowance , the explicit logarithms of Lemma C.4 satisfy , and . In particular, . Choose the deterministic dyadic pilot length
Whenever , it meets , , and with allowance . Consequently every pilot history on the two pilot events satisfies
These common bounds remove the pilot randomness from the sufficient mass. For , the statistical total is at most . Its grid size is at most , so the definition of in Appendix B.3, including , gives . Take to be the smallest dyadic number at least
Thus , and both inequalities in (C.15) hold uniformly over those histories, using .
The dyadic rounding gives and . Hence it suffices to choose
This ensures , so and the logarithmic bounds just used apply. It also makes the collector cap exceed
which is at most . Quotas must therefore finish, and the corrected statistical test accepts on its event. For an explicit sufficient stage, put
Then and , proving the required strict inequality. Also . If the learner has not stopped earlier, the fixed pair occurs at stage and accepts on the joint event. Summing every preceding attempt costs less than , as claimed.
The computational assertion follows from Appendix E.
D Proof of the Lower Bound
Theorem D.1 uses one known reward table across a family of unknown kernels. Fix , , , , and . The class contains communicating models with at most states, at most actions per state, diameter at most , and total support at most , with . The learner must satisfy timely stopping and all-start-state correctness jointly on every instance, with deterministic stationary output. For a common deterministic stopping budget, the lower bound is , including with generative access. The proof immediately following supplies the constants.
D.1 Bounded-time lower bound
The following construction concerns a class of fixed known rewards: the reward table is the same for every transition kernel in the hard family. It does not assert a lower bound for every reward table. In particular, constant rewards require no policy identification.
Theorem D.1 (Bounded-time lower bound). Let , , , , and . Let and . Consider the finite family constructed below, whose kernels share one known reward table and have at most S states, A actions per state, diameter at most , and at most two positive successors per row. Suppose a learner is correct on every member of this family: it returns a deterministic stationary policy that is -optimal from every state, jointly with stopping by one common deterministic budget T, with probability at least on each member. Then
The conclusion holds even with generative access and therefore also for one continuing trajectory. Only correctness on this sparse hard family is required, so a learner promised two-successor kernels is also covered. Logarithms in this section are natural.
Proof. Put and . Construct a rooted tree with leaves, at most internal vertices, height at most , and at most children per vertex. One construction recursively divides the leaves into at most nonempty groups of sizes differing by at most one; every non-leaf has at least two children. Internal actions traverse one parent or child edge deterministically, with unused actions holding. The root has no parent. All these rewards are zero.
Replace leaf by a state and add a state . At , each of candidate actions has reward one and moves to with probability , otherwise holding. Its remaining action moves to its parent with reward zero. At every action has reward zero and returns to with probability , otherwise holding. There are at most states. In the base model all . Alternative changes only to . All models have identical support and known rewards.
A controlled route between any two states uses at most one initial y-to-x wait, at most 2h tree transitions, and at most one final x-to-y wait. Consequently its mean is at most
The models communicate. Their diameters are also at least .
Under a deterministic stationary policy, choosing a candidate at makes a closed irreducible pair with gain . Exiting at gives reward zero there. Every other recurrent class therefore has gain at most 1/2. In alternative , the changed pair has gain
A policy routing every other state to this pair attains that gain, so it is the all-state optimum. Conversely, all-state -optimality requires the output policy to have this pair as its sole recurrent class and to choose action at .
Call this global output event . It is determined by the output policy and the common support, so it has the same definition under every model. The such events are disjoint. In particular, under the base transcript law , at least of them have .
First consider a learner using at most T samples. Include its independent random tape in the transcript and pad after stopping with deterministic null observations. If is the number of queries to the changed row, conditional KL chain rules give
The action-selection rule contributes no divergence, even if queries are adaptive. Bernoulli KL is bounded by its chi-squared divergence, giving
For an event with base probability and alternative probability , binary data processing and binary entropy at most imply
Correctness in alternative supplies . Sum the resulting count lower bounds over the at least events. Since , this gives the displayed claim.
Finally truncate the stated learner at its common budget T and output any deterministic policy on timeout. The joint guarantee implies that this truncated learner remains correct with probability at least on every model in the finite hard family. The fixed-budget argument applies. No expected-time guarantee on rare failure histories is assumed or inferred.
Combining this lower bound with the diameter bound (2) gives the matching regimes in Appendix D. For unrestricted support the sufficient condition is ; for at most two successors per row it holds throughout the stated accuracy interval.
Matching consequence. The diameter bound (2) matches up to logarithms under the condition
Its startup is at most , so this condition absorbs it into the precision term. The lower family has at most two successors per row, so the two-successor class matches throughout the stated epsilon range under the same remaining restrictions. For dense classes the sufficient condition is . This assertion fixes a reward across the hard kernels. Constant rewards illustrate why the latter assertion would fail.
E Computational Complexity
E.1 One statistical batch
Lemma E.1 (Bit cost of one statistical batch). For rational inputs as above, the rounded contraction fallback computes the corrected certificate using
bit operations, where is the encoding length of the frozen weights. This bound concerns one completed batch and makes no assumption about the pilot or collector algorithm.
Proof. Put . At discount gap , choose a dyadic mesh . Sorting the successor values identifies each quantile; rational sums compute its mean and variance; integer square-root bracketing encloses the row functional to width at most . Histograms suffice, so a row evaluation does not expand the individual observations. Round each Bellman update downward on this mesh. Row evaluation and rounding cause at most error per update. Starting at zero, sup-norm error after updates is at most . For
this is at most . A further outward evaluation therefore bounds the residual by , which implies the required . Both signs preserve the cube . Fixed-mesh storage prevents repeated growth of rational denominators across iterations; intermediate sums have polynomial bit length in the displayed inputs and count sizes. The smallest gap is at least and there are discounts. Thus at most operator evaluations suffice. The virtual source-absorption grid contributes only to the logarithmic confidence coefficient. Together with , these facts give the asserted bit bound.
E.2 Representation and full schedule
Bit computation. At dyadic witnesses, coordinate bisection endpoints and unseen-set caps have dyadic denominators of bits. The unseen sets form a chain; after contracting lower bounds, sorted greedy filling under the laminar capacities computes row support exactly in rational operations with the simple implementation. Rounded integer backups and scalar predictions have polynomial bit length. On the good event the number of backups is . At every completed statistical attempt and . The rounded contraction calculation in Lemma E.1 bounds its work by times a fixed polynomial in dimensions, input lengths and logarithms. An incomplete collection performs no statistical solve. Summing across the paid schedule proves the computational claim of the theorem.
F Comparison with Prior Work
Navigation constraints. Al Marjani et al. (2021), Sections 3–5, restrict information-directed allocations to stationary flows and track a learned allocation along a controlled trajectory. Their Theorem 6 concerns identifying a unique discounted-optimal policy and bounds expected stopping time asymptotically as . A finite uniform budget in diameter, support and accuracy requires control of allocation learning and collection. We bound arbitrary adaptive trajectory flows, handle decreasing auxiliary rewards with a finite-cap controller, and convert nonuniform statistical requirements into actual collection cost. These steps give Theorem 1's finite-time average-reward guarantee without structural inputs. The principle of respecting navigation constraints in allocation is shared; the new guarantee and its finite-time analysis are the distinction.
Variance-dependent online regret. FOCUS (Zamir et al., 2026) is a tractable online comparator: its published Theorem 3 bounds discounted regret by when the supplied H bounds the true discounted optimal span; here is the maximum row support size. Its average-reward and prior-free consequences are important precedents.
Planner–collector composition. Theorem 4 of Tuynman et al. (2024) gives Online-DFE the interaction bound . It is insufficient to compare only with this bound. Let for an optimal Bellman bias. Zurek and Chen (2025a), Algorithm 2 and Theorem 2, provide observable fixed-accuracy stopping with generative access and samples per row, without knowing . GOSPRL Tarbouriech et al. (2021), Theorem 1, collects prescribed samples online at cost , without knowing . Combining these guarantees gives the following comparator, whose derivation we provide below:
To see this, implement the generative algorithm’s geometric row requests with fresh GOSPRL calls, starting each from the current state. Keep only the first requested successors of each row and charge every intervening transition. Allocate to the simultaneous statistical certificates and to collection call . Conditional on each finite call-start history, unused row stacks have the product law required by the statistical argument. Define their fixed-size prefixes even when collection has not finished. The source’s marginal confidence unions therefore remain valid; neither cross-stage independence nor conditioning on successful collection is needed. Its proof supplies a deterministic sufficient row count , used only in analysis. Through the first geometric request exceeding , the total requested samples are and the number of calls is logarithmic. Sum the conditional collector bounds and intersect their events with the statistical event. This yields (F.1), retaining the observable stop and all-state policy guarantee without a reset.
Since and , the diameter-only consequence of (F.1) is . The diameter-based upper bound improves its polynomial dependence on in both terms. The comparison is between the displayed upper guarantees. For Theorem 1, and, since and , . Its displayed polynomial terms are therefore bounded, up to constants, by those of (F.1). This comparison of upper expressions leaves instancewise runtime comparisons and other oracle inequalities open.
Other access and output criteria. SAVIC+ of Lee et al. (2026), Theorem 3.4, also gives prior-free all-state policy identification on a single trajectory. Writing , its guarantee is for . Its cover time and minimum stationary state–action mass refer to the behavior policy, so this is not a diameter-only comparison. Favorable behavior distributions can give advantages not captured by our bound.
Lazzaro et al. (2026), Theorem 6, analyze expected stopping for exact discounted policy identification under additional assumptions, including a known reference transition measure. Jiao et al. (2026), Section 3.1, use synchronous generative sampling. Lee and Ryu (2025), Section 4.3, analyze offline behavior-policy data under stationary mixing assumptions. These results address adjacent questions.
Attribution and scope. The final contribution is an exploration history with simultaneous coverage and affordable collection, combined with nonuniform statistical stopping on the continuing trajectory. Unfinished-quota rewards and optimistic sample collection have precedents in GOSPRL and its 0/1-UCRL comparison; quantile monotonicity is explicitly imported from Zurek et al. (2025) in Appendix B.3. Theorem D.1 reconstructs the familiar diameter-based lower order associated with Wang et al. (2022), using a bounded-time global output event to match the stopping-and-output requirement used here. Full-range optimality and practical acceleration remain open.
G Experimental Setup
G.1 Cyclic MDP
States are with and , so , and actions 0, 1, 2. Actions 0, 1 receive known reward ; action 2 receives zero. For action , the cycle index advances to (mod ) with probability and otherwise stays at ; independently, the next bit is one with probability if , and otherwise. Action 2 always advances and sets the next bit by a fair coin. Thus controls cycle progress under the rewarding actions. The Bellman equations give and , with span one. We vary , , , and samples per row ; nominal mass is . Uniform random actions collect every prescribed prefix along one continuing path. True-model quantities appear only in simulation and post-hoc evaluation; the planner receives counts and known rewards. Three fresh paired seeds per cell are fixed in advance. Figure H.1 shows optimal-gain-minus-lower-certificate error and its three-seed ranges. The random seeds are 97001–97003. Numerical acceptance requires verification of the single lower solve: exact outward residual distance and maximum row-interval width at most . This yields a numerically verified lower certificate on the statistical event; it is not an -width upper/lower policy stopping test. The fixed-prefix rule uses , with a numerical clamp inactive at the invariant fixed point; no diameter is supplied to the solver.
G.2 Connection to the bound
For uniform row proportions, and , so the auxiliary reward is constant. The witness gives and , hence and in Theorem C.6. The confidence factor depends only on , , and the fixed confidence target. Thus the theorem bounds by a multiple of at exact fixed points; the numerical residual corrections are included in the reported . The experiment isolates this dependence at fixed sample sizes; the theorem's constants and collection complexity require separate analysis. Under the optimal rewarding policy , the hitting radius is
for the values of q used here. A target with bit one attains the minimum: reaching its cycle index takes at most steps in expectation, with an additional from the chance of arriving with bit zero. The resulting radius ratios are about 250 for both state sizes.
H Numerical Illustration
Under the uniform-sampling protocol of Appendix G.1, and , giving lower-certificate error in Theorem C.6. The varied quantity is the optimal policy’s hitting radius, not controlled diameter.
All 36 solves satisfy the residual and row-interval criteria in Appendix G.1. Figure H.1 includes every seed and all 18 ratios paired by S, n and seed, ranging from 0.9889 to 1.0232. This is consistent with the bound on these instances.
(a) Certificate error

(b) Effect of cycle probability

Figure H.1. Certificate errors are similar across cycle probabilities at fixed span. (a) Absolute error . (b) , paired by S, n and seed; one denotes equality. All three seeds, medians and observed min–max are shown. Color and shape identify S; line style identifies q. Policy gaps are reported below.
Six outputs at , have small nonzero policy gaps (approximately to ); the comparison policy used to define the hitting radius is the true optimal policy.