Learning When to Stop: Selective Imitation Learning Under Arbitrary Dynamics Shift
Surbhi Goel, Jonathan Pei, James Wang
DEMO @ ICML 2026
TL;DR. We define selective imitation under arbitrary dynamics shift via two criteria: completeness (rarely abstain in train) and soundness (low regret before abstaining in test), and give algorithms achieving both with horizon-free sample complexity.
Abstract. Behavior cloning provides strong imitation learning guarantees when training and test environments share the same dynamics. However, in many deployment settings the test environment's transitions differ from training, and classical offline IL offers no recourse: the learner must commit to an action at every state, even when its demonstrations are uninformative and could lead to arbitrary degradation of performance. This motivates the study of selective imitation, where the learner may choose to stop when it cannot act reliably. We introduce a model for selective imitation under arbitrary dynamics shift: given labeled expert demonstrations from a training environment and unlabeled state trajectories from the same expert in a test environment, the learner outputs a selective policy that is complete (rarely stops in training) and sound (incurs low regret before stopping in test). Our algorithm, , constructs a stopping rule using a small set of validator policies whose size is independent of the horizon or policy class. For deterministic policies, this yields horizon-free sample complexity, assuming sparse costs. For stochastic policies, we obtain analogous horizon-free guarantees using a cumulative Hellinger stopping time. We extend the framework to misspecified experts and different expert policies across train and test and obtain results that gracefully degrade with the amount of misspecification.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studies reliable imitation learning under environment shifts, which generalizes earlier problem of "reliable classification under distribution shifts" to the sequential decision making setting. The paper proposes an algorithm, SeqRejectron, that satisfies completeness (when the test environment is the same as training it has low probability of stopping) and soundness (its stopped regret in any test environment is small). The paper provides a sample complexity bound that only depends on the total return in the deterministic realizable expert setting; it then extends this to stochastic policies, and to misspecified policy classes setting. Experiments in LunarLander environment validates the theory.
Strengths:
- New problem formulation that extends reliable learning to learning in sequential decision making settings
- the results are quite comprehensive: well-specified stochastic policies and misspecified settings are both considered
- Experiments are helpful
Weaknesses (and weaknesses the meta-review would like to see addressed):
- The paper establishes the completeness guarantee mostly in the original environment, with extension to the bounded shift only appearing in the appendix. Can we establish completeness guarantee in broader settings?
- the algorithm in the stochastic setting may be hard to implement in practice -- how to make it practical?
- Experiments can be done in more environments beyond LunarLander (Eje3, pp4t)
In the rebuttal stage the authors satisfactorily addressed the questions and weaknesses concerns; specifically with additional completeness guarantees in broader environments; the rebuttal isolated the computational challenge in the stochastic policy setting and tried to justify posterior sampling; the additional experiments in gridworld, 2d-driving, and bipedal walker showed the generalizability of the results. The AC therefore recommends acceptance for the paper, but encourages the authors to make the discussions of the limitations pointed out by Reviewer pp4t explicit in the final version.
Final justification
The meta-review includes the AC's updated justification.
- Final justification
- The meta-review includes the AC's updated justification.
Read meta-review
Meta-review
This paper studies reliable imitation learning under environment shifts, which generalizes earlier problem of "reliable classification under distribution shifts" to the sequential decision making setting. The paper proposes an algorithm, SeqRejectron, that satisfies completeness (when the test environment is the same as training it has low probability of stopping) and soundness (its stopped regret in any test environment is small). The paper provides a sample complexity bound that only depends on the total return in the deterministic realizable expert setting; it then extends this to stochastic policies, and to misspecified policy classes setting. Experiments in LunarLander environment validates the theory.
Strengths:
- New problem formulation that extends reliable learning to learning in sequential decision making settings
- the results are quite comprehensive: well-specified stochastic policies and misspecified settings are both considered
- Experiments are helpful
Weaknesses (and weaknesses the meta-review would like to see addressed):
- The paper establishes the completeness guarantee mostly in the original environment, with extension to the bounded shift only appearing in the appendix. Can we establish completeness guarantee in broader settings?
- the algorithm in the stochastic setting may be hard to implement in practice -- how to make it practical?
- Experiments can be done in more environments beyond LunarLander (Eje3, pp4t)
In the rebuttal stage the authors satisfactorily addressed the questions and weaknesses concerns; specifically with additional completeness guarantees in broader environments; the rebuttal isolated the computational challenge in the stochastic policy setting and tried to justify posterior sampling; the additional experiments in gridworld, 2d-driving, and bipedal walker showed the generalizability of the results. The AC therefore recommends acceptance for the paper, but encourages the authors to make the discussions of the limitations pointed out by Reviewer pp4t explicit in the final version.
2 comments
Followup (additional BipedalWalker-v3) experiment (W2, W3)
Since our response above, we ran one more experiment, on BipedalWalker-v3, further addressing W2 and W3; full details and the results table are in our followup response to Reviewer Eje3. Instead of the posterior-sampling heuristic, we run the game of Section~3.3 exactly over a pool of candidates; it runs without difficulty at this scale and returns small validator sets () (W2). The same tradeoff appears as in the other environments (W3): over 8 independent runs, -- almost never stops on (source handoff ) yet detects the shift at step -- of , and switching there significantly beats never stopping in terms of soundness.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a new solution to a key problem in imitation learning that is how should the learner behave in shifted environments. Utilizing a set of validators, the method constructs a stoping rule that abstains before the learner's behavior diverges from a plausible expert demonstration. They provide a theoretical guarantees for deterministic policies and stochastic policy, and extend to misspecified policy classes. A small LunerLander example is used as a proof of concept to illustrate the idea.
Strengths and weaknesses
This is a well-formulated problem with an attractive theoretical solution. The horizon-free sample complexity guarantee in the deterministic section is the main technical contribution. The result is interesting and appears to be correct. The extensions to the stochastic and misspecified cases offer a more comprehensive view of the approach.
Empirical validation is the paper's main weakness. A single environment (LunarLander) with 20 trials, m=n=30, is reasonable for a proof of concept, but it provides limited evidence that the approach would work beyond a toy setting with hand-tuned heuristics. Additional examples showing how sensitive the results are to different parameter choices would be helpful.
Questions
Could the authors run SeqRejection on at least 2 additional environments with qualitatively different shifts (e.g., different physical parameter changes, or discrete/tabuiar domains where the exact algorithm from Sec. 3 -- not the heuristic -- can be run directly)? This would help answer where the completeness/soundness tradeoff in Fig. 1 is a general phenomenon or specific to LunnarLander's dynamics and cost structure.
Limitations
Yes
Final justification
My concerns have been addressed, and I will keep my score unchanged.
Formatting concerns
No concern
3 comments
Rebuttal
We thank the reviewer for their thoughtful evaluation of our work. We ran two additional experiments with different types of dynamics shift, as requested. For time constraints, these were on simulated environments. We chose a tabular environment with deterministic expert where the dynamics shift is due to a different distribution of starting states and slippage; and a synthetic 2D driving task where the dynamics shift is due to changing weather conditions and friction coefficient.
Tabular environment. We ran the original (no heuristics) deterministic SeqRejectron algorithm on a gridworld environment in which each step before reaching the goal tile incurs a fixed cost, and landing on a hazard tile incurs an additional penalty. The policy class is restricted to a size 1000 subset of all tabular policies, allowing the original deterministic SeqRejectron algorithm to be run. The table below shows handoff rates and switched-policy target regret versus different values of the parameter used in Algorithm 2 (SparseValidatorDist), averaged over 100 run seeds with the policy class fixed. At every positive , two -sparse validator sets are sampled from the distribution generated by Algorithm 2 and their union is deployed.
Increasing the number of validators, , drives the normalized regret down to 0.0009 while only mildly increasing the chance of a handoff on the source distribution to roughly 5%. The correspondingly high target handoff chance (56.43%) reflects correct detection of unreliable states; importantly, the target handoff rate increases much faster than the source handoff rate, indicating that we are abstaining on out of distribution states.
Table 1: Switched regret vs handoff rate as a function of the size of the validator set.
| Validator budget | Source handoff (%) | Target handoff (%) | Switched regret (target) |
|---|---|---|---|
| 0 | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.0484 ± 0.0031 |
| 1 | 2.28 ± 0.31 | 35.61 ± 1.23 | 0.0070 ± 0.0011 |
| 2 | 3.51 ± 0.35 | 44.23 ± 1.45 | 0.0044 ± 0.0008 |
| 3 | 4.21 ± 0.38 | 50.74 ± 1.54 | 0.0033 ± 0.0008 |
| 4 | 5.12 ± 0.45 | 53.94 ± 1.47 | 0.0019 ± 0.0007 |
| 5 | 5.91 ± 0.40 | 56.43 ± 1.39 | 0.0009 ± 0.0005 |
2D driving environment. We also ran SeqRejectron on a synthetic 2D driving task with continuous states and a stochastic expert, exercising the cumulative-Hellinger stopping rule from our stochastic analysis. A kinematic car tracks a winding S-curve over horizon ; the state is the (lateral, heading) error relative to the centerline, the expert is linear-Gaussian in some features, and the cost is a per-step penalty on the deviation from a pre-specified ideal path, with a large penalty for leaving the track boundaries. The dynamics shift models changing weather: from a random onset step, an ice patch scales the executed steering by a friction coefficient, drawn from in the training environment (mild traction loss) and from in the test environment (severe). The learner receives labeled expert rollouts from and unlabeled expert state trajectories from . As in our LunarLander experiment, validators (here, three) are obtained by the posterior sampling heuristic.
The table below sweeps over (1,000 trials per value) and traces the same completeness–soundness frontier as Figure 1: is the always-abstain extreme (its cost of 251 is the expert-only baseline in ), while increasing drives the train-side abstention rate to 1% (completeness) with the policy still abstaining on roughly half of the severely shifted test trajectories, at the price of higher switched-trajectory cost in as the learner acts longer on ice before the budget is exhausted. Together with the tabular experiment, this indicates the tradeoff in Figure 1 is a general phenomenon across qualitatively different shifts, not specific to LunarLander's dynamics and cost structure.
Table 2: Cost vs. abstention tradeoff in SeqRejectron as a function of the safety threshold . Abstention rates are reported for policies and ; trajectory cost is reported for only.
| Abstention () | Abstention () | Trajectory cost () | |
|---|---|---|---|
| 0.0 | 1.00 | 1.00 | 251 |
| 0.1 | 1.00 | 0.96 | 260 |
| 0.2 | 0.99 | 0.82 | 260 |
| 0.3 | 0.98 | 0.67 | 265 |
| 0.4 | 0.96 | 0.55 | 322 |
| 0.5 | 0.94 | 0.44 | 316 |
| 0.6 | 0.90 | 0.36 | 328 |
| 0.7 | 0.86 | 0.27 | 380 |
| 0.8 | 0.82 | 0.21 | 417 |
| 0.9 | 0.80 | 0.15 | 382 |
| 1.0 | 0.75 | 0.12 | 451 |
| 1.1 | 0.73 | 0.10 | 473 |
| 1.2 | 0.68 | 0.08 | 516 |
| 1.3 | 0.63 | 0.07 | 564 |
| 1.4 | 0.62 | 0.05 | 566 |
| 1.5 | 0.58 | 0.03 | 622 |
| 1.6 | 0.56 | 0.03 | 617 |
| 1.7 | 0.55 | 0.03 | 614 |
| 1.8 | 0.52 | 0.01 | 671 |
| 1.9 | 0.49 | 0.01 | 642 |
| 2.0 | 0.49 | 0.01 | 665 |
Followup to rebuttal (BipedalWalker-v3 experiment)
Beyond the gridworld and 2D driving experiments in our earlier response, we ran SeqRejectron on BipedalWalker-v3: a higher-dimensional continuous-control task with a qualitatively different shift. We also run the validator-selection game of Section 3.3 exactly over a subsampled version space.
Setup. BipedalWalker-v3 has a 24-dimensional state and a 4-dimensional continuous torque action; the expert is a stochastic PPO controller. The shift is persistent actuator weakening: the test environment scales every executed torque by (we use ); this alters the transition kernel while leaving states, actions, and cost unchanged. The learner receives labeled expert rollouts from the training environment and unlabeled expert state trajectories from ; horizon .
Exact construction. Unlike LunarLander, validator selection runs the game of Section 3.3 exactly: is fit by MLE on the labeled data, a pool of candidates is formed by fitting MLE clones on bootstrap resamples of the labeled data, and the finite full-information game (Algorithm 3) is played over the candidates' cumulative squared-Hellinger crossing times against on the unlabeled test trajectories. Only is chosen; the validator set is an output of the game (the deduplicated union of 7 committees of size 3, so by construction), and empirically we found that for every trial we ran. Thus, a handful of validators certifies a 100-policy stochastic class, as the theory predicts. The version space is approximated by the clone pool rather than the exact log-loss ball, but the validator selection is the no-regret game used in our theory.
The tradeoff generalizes. The table below sweeps (means ± standard error over 8 independent runs). Small is sound but incomplete ( abstains on every source trajectory); large is complete but late ( detects only at step of 500); around – the policy is essentially complete on (source handoff ) while the shift in is still detected at step –. This operating region is selectable without any test labels: the source handoff rate is measurable on held-out source rollouts alone, and taking the smallest that drives it near zero lands at –. Switching at the learned stopping time also helps in return terms: at the switched return is 47.6 ± 1.9, vs. 39.9 ± 1.9 for the never-stopping learner (expert: 57.4 ± 0.6), and the improvement holds in all 8 runs (paired ), whereas the late handoff at yields almost no gain (40.8 ± 1.6). With gridworld and 2D driving, three environments with qualitatively different shifts now exhibit the same completeness–soundness frontier, so it is not specific to LunarLander.
Table 3: SeqRejectron (exact game) on BipedalWalker-v3 (, ) versus the threshold . Only the pool is chosen; the validator set is an output of the game (see text). Completeness: source handoff rate; soundness: target handoff step (the target handoff rate is 1.00 up to and 0.50 at , where the step averages over the fired half). Switched return: test return of . Means ± SE over 8 independent runs (each with a fresh , candidate pool, and ; 30 episodes). Expert 57.4 ± 0.6, never-stopping learner 39.9 ± 1.9.
| Source handoff | Target handoff step | Switched return () | |
|---|---|---|---|
| 4 | 1.00 ± 0.00 | 22 ± 1 | 47.6 ± 1.8 |
| 8 | 0.72 ± 0.06 | 74 ± 5 | 47.3 ± 1.6 |
| 12 | 0.05 ± 0.02 | 134 ± 6 | 47.6 ± 1.9 |
| 16 | 0.01 ± 0.01 | 176 ± 6 | 44.4 ± 1.2 |
| 24 | 0.00 ± 0.00 | 247 ± 8 | 43.6 ± 0.9 |
| 48 | 0.00 ± 0.00 | 401 ± 8 | 40.8 ± 1.6 |
Thank you for the clear response. My concerns have been addressed, and I will keep my score unchanged.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies imitation learning under dynamics shift, where the learner has access to labeled expert demonstrations from a training environment, but only unlabeled expert state trajectories from a potentially different test environment. Authros highlight arbitrary dynamical shifts as a key issue when deploying an expert policy, which works well on a training environment, on a test environment. In particular, a standard behavior cloning policy or imitation learning policy may be deployed or implemented on states where expert’s doesn't have a reliable control input or action, leading to scenarios with arbitrary poor perfmances.
Addressing this issue, authors proposes a selective imitation learning framework in which the learner stops execution or implementation of a base policy when it is no longer confident that imitation is justified. The goal is to learn a selective policy that is complete, meaning that it does not stop unnecessarily in the training environment, and sound, meaning that when acting in the test environment before stopping, incur low regret.
In their selective imition learning framework, authors propose SeqRejectron which introduces a class of policies that are consistent with expert's learning in the training environment, not necessarily optimal however. Then, when deploying in the test environment, learner follows a base policy, and as soon as any of the policy from the validator policy class disagree with action from the base policy, learner stops implemnting the base policy. The intuition is that these validators represent alternative policies that are still consistent with the training demonstrations. If such a policy disagrees with the base policy on a test trajectory, then it is not justifies to consider the base policy’s action at that point.
Authors first develop the above methodology for deterministic policies and show that a sparse set of validator policies is enough to certify trajectory prefixes. This leads to finite-sample guarantees which does not scale with the horizon explicitily, and is dependent on the horizon implicitily through the objective scale and the complexity of the policy class. The paper then extends the framework to stochastic policies using a hellinger-distance stopping rule. Finally, they even consider the case with misspecified policy classes where the expert may not lie in the learner’s policy class.
In summary, I find the main contribution of the paper to be the formulation of selective imitation learning under arbitrary shifts with algorithms that considers all the relevant classes of policies. The idea is well motivated, that instead of following imitation everywhere, which is generally impossible under arbitrary shift, authors propose a method for decidingmechanism for when the learner should stop before making unsupported decisions. While the theory seems well developed and mathematically sound, I have converns over how practical it is when deploying in real world.
Strengths and weaknesses
Strengths
-
This paper studies an important limitation of standard imitation learning: behavior cloning can fail under dynamics shift because the learner may encounter test-time states where the source demonstrations provide no useful information. I find the selective imitation learning formulation to be a relevant and justified framework, with well defined notions of comepleteness and soundness. I like the idea of using validator policies from the version space to detect when the base policy is no longer justified. In particular, the stopping rule based on validator disagreement gives a clear interpretation of when the learner should abstain.
-
For deterministic policies, the analysis consider certifying trajectory prefixes, insetad of consider per time-step comparison. This leads to a horizon-free sample complexity bound, with implicit horizon dependence through the objective scale and policy class complexity. This trajectory-level analysis is a meaningful contribution, when compared to a straightforward application of selective classification at each time step, as it leads to a in general horizon free results.
-
Authos have done a good job considering a wide variety of scenarios as they extended their framework to stochastic policies using hellinger distance, and to misspecified policy classes where the expert may not lie in the learner’s policy class. These extensions make the framework more robust and show that the main idea is not limited to an overly idealized setting.
-
Although the empirical section is not the main contribution, the LunarLander experiment helps illustrate the intended behavior of the method. The observed tradeoff between source handoff rate, target handoff rate, and threshold choice is consistent with the theory and helps make the framework more concrete.
Weaknesses
-
While the the contibutions are theoretical in nature, I have concerns on how these results translate to real-world policies and scenarios. E.g., in the deterministic case, the validator construction relies on oracle-style procedures, and in the stochastic case, aurhors leave open the development of efficient computational oracles for the hellinger objective. I am not sure how well the proposed method can be extended to large neural net policy classes.
-
The LunarLander experiment uses a posterior-sampling and greedy validator-selection heuristic rather than the exact game-theoretic construction used in the theory. While this is understandable for tractability, it weakens the empirical validation of the proposed algorithm. The experiment supports the intuition behind the method, but it does not fully test the theoretical procedure.
-
Authors include only a proof-of-concept experiment in LunarLander. Given the motivation from robotics, autonomous driving, and healthcare, it would be useful to see additional environments and stronger baselines with well-motivated out of distribution case.
-
The proposed framework use the stopping mechansim to stop and then to hand it off. However, in many real control settings stopping is itself a nontrivial action. For example, a robot or autonomous vehicle may need a certified safe fallback controller after stopping, which is not convincingly discussed in my understanding.
-
The stochastic extension is technically interesting, but the resulting rates are less clean than in the deterministic case. The paper provides a lower bound matching part of the upper bound, but there remains a gap in the variance-dependent rate, prompting the question whether there's more analysis needed or is it very hard to provide further theory.
-
The method can decide when the learner should stop, but it does not solve the shifted task after stopping. While understabale, this draft should be careful not to oversell the method as a complete solution to imitation learning under dynamics shift. Its main strength is in certifying when imitation is still justified, not in adapting the policy to the new environment.
Questions
-
The paper’s main guarantee controls the stopping rate in the training environment and the stopped regret in the test environment. Could you clarify how one should interpret the test-time usefulness of the learned policy when the test-side stopping rate may be very high under arbitrary dynamics shift? In particular, are there natural conditions under which the proposed method can guarantee not only low regret before stopping, but also nontrivial coverage in the test environment?
-
The deterministic result is quite clean and avoids the horizon dependence of a stepwise selective-classification reduction. However, this relies on constructing validator sets from the version space. Could you comment more concretely on how practical this construction is for large policy classes, especially neural net class of policies? Is the intended implementation closer to the oracle construction, or closer to the heuristic used in the experiments?
-
In the stochastic setting, a hellinger-distance stopping rule is utilized. Could you provide more intuition for how the threshold should be selected in practice? Is there a principled validation procedure for choosing , or is it expected to be tuned empirically based on the desired handoff or stopping rate?
-
The poc uses posterior sampling and greedy validator selection rather than the exact game-theoretic validator construction. Could you clarify which parts of the theoretical guarantee, if any, should be expected to carry over to this practical heuristic? If no formal guarantee is intended, it would be helpful to state this more explicitly.
-
The method is motivated by safety-critical examples such as autonomous driving and healthcare, but the formal notion of stopping is somewhat abstract. In a real control setting, stopping or handing off may itself require a certified fallback mechanism. Could you discuss how this framework would interact with a safe backup controller or intervention policy?
-
The propose method compares the proposed trajectory-level construction to a stepwise PQ-learning reduction and shows that the stepwise approach incurs an avoidable horizon factor. Could you clarify whether this separation is purely an artifact of the analysis, or whether there is an example where the stepwise reduction is genuinely statistically worse than the proposed trajectory-level method?
-
In the misspecified setting, the guarantee degrades with the best-in-class misspecification parameter delta. Could you provide more intuition about when this delta is expected to be small? For example, are there natural examples where the expert is outside the policy class but this delta remains small enough for the bound to be meaningful?
-
The stochastic-policy rates appear weaker than the deterministic rates, and the paper notes that the variance-dependent exponent may not be tight. Could you elaborate on whether this gap is believed to be due to the algorithm, the analysis, or an inherent difficulty of selective imitation with stochastic policies?
-
Could you comment on how sensitive the method is to the quality of the test trajectories, e.g. when subjected to noisy observations? Another example, what happens if the unlabeled target trajectories are generated by a policy that is only approximately expert, or by a mixture of different demonstrators?
-
Given that the paper's poc is limited to LunarLander, do you expect the method to scale to more complex continuous-control environments, and what the main computational bottleneck would be in such settings?
Limitations
yes
Final justification
Authors have addressed my concerns well. However, a few of the limitations still remain in my view, therefore I maintain my score.
Formatting concerns
NA
4 comments
Rebuttal (1/2)
We thank the reviewer for their thoughtful evaluation of our work. We address each question below.
Q1. Please see our response to Q1-Q2 for Reviewer prCx.
Q2. For neural policy classes the intended implementation is the heuristic; the oracle construction is the object the theory analyzes, and for a neural class both the exact version space and the required MIL oracle (Appendix B.8) are unrealistic. What transfers from the theory is the validator set size can be independent of and , which is what justifies searching for a handful of validators rather than certifying the version space. The experiments implement exactly this with tractable surrogates (an approximate posterior in place of the version space, greedy Hellinger-disagreement selection in place of the best response, ), and Figure 1 (right, green curve) shows the handoff rates saturate quickly in , consistent with the predicted sparsity.
Q3. Theoretically, Corollary 3 gives a choice balancing completeness against soundness using only , , , . Practically, can be calibrated using only unlabeled test data: setting to the empirical quantile on held-out source trajectories controls the completeness guarantee at level , while the soundness guarantee holds as stated. This is effectively how was chosen in Section 6. Figure 1 shows the tuning is forgiving, as the source handoff rate collapses steeply while the target rate decays gradually, leaving a wide plateau of good choices.
Q4. No formal guarantee is intended for the heuristic (although, they are possible with additional assumptions; see our response to Q3 for Reviewer prCx). The paper indicates that such guarantees are an interesting direction for future work.
Q5. The selective imitation learning framework promises a stopping time with respect to the natural filtration of the MDP. In the SeqRejectron algorithm, this is defined as the first time that any two policies in the set take a different action. Equivalently, at test time, when we see any two policies in disagree, this is a signal to stop executing (or hand off control to an expert). What this means is often different per domain, but e.g. for driving it could mean pulling to the side of the road or returning control to the driver.
Q6. The separation is not an artifact of the analysis: there is an instance on which the stepwise reduction provably needs times more labeled trajectories, and we will add this as a proposition. We sketch the construction here. Suppose (same test and train environments). At each time step , the context is drawn i.i.d. from with probability each, else take the context to be . Consider the class , with and for . The cost is on the first deviation from the expert ().
Proof sketch. Seeing at any step reveals . SeqRejectron pools all pairs into its version space, so it stops or errs only at a coordinate unseen in draws: failure . The stepwise reduction trains each step on that step's examples alone; if is missing from shard (prob. ), the shard is identical under and its -th flip, so the step- rule must stop or err at under one of the two experts, and these losses add across the independent shards: failure . The exponents ( vs. ) give the gap.
Rebuttal (2/2)
Q7. The (deterministic) misspecification parameter is the probability that the best single policy in deviates from the expert at any point along an expert trajectory, in the worse of the two environments. Two features make this mild. First, it only involves states the expert itself visits: the expert can be arbitrarily complex elsewhere, so long as some matches its decisions on-distribution. Second, it is a trajectory-wise probability, so it is small when disagreements are rare events. What this looks like is different per domain, but e.g. for driving it could be an expert that lane-keeps in a way can represent and deviates only for rare obstacles it handles idiosyncratically. Another natural case is a finite -net of a continuous expert (recall is finite anyway): the two disagree only near the expert's decision boundaries, which its own trajectories rarely approach. We will add this discussion to Section 5.
Q8. First, the deterministic vs. stochastic is inherent: Theorem 4 gives an labeled lower bound already for , and the cost-driven part of our upper bounds matches it.
Second, we believe the cost-driven vs. variance-driven stopped regret control lies in the analysis: the loss occurs when converting the squared-Hellinger certificate of Theorem 2 into regret, because the variance-dependent change of measure that [1] uses to obtain "fast" stochastic rates would depend on the learned stopping time; the main challenge is that in general this is not controlled by the variance parameter used in [1].
However, our paper notes that we can get by changing from the stopped regret to either the switched regret (Section 4.1) or asymmetric stopped regret (Section 7); these are natural alternative metrics for soundness.
Q9. Both cases are close to what the misspecified analysis is built for. If the target trajectories come from an approximately-expert demonstrator , Appendix D.4 applies as is: the guarantees hold with replaced by , the disagreement of the best single policy in against the training demonstrator on and the test demonstrator on . For a mixture of demonstrators, the algorithm touches only through comparisons of candidate policies at the observed states, and the analysis only needs i.i.d. trajectories, so it extends with the mixture-weighted analogue of ; when demonstrators genuinely conflict on shared states this term is irreducible, and abstaining there is the sound outcome. For noisy observations, the method never sees true states, so if deployment uses the same observation channel as the collected test data, the noise folds into the (arbitrary) test environment; the extra cost is the probability that noise flips a comparison between candidate policies, which is zero when the noise is below the policies' decision margins. A channel mismatch between the unlabeled data and deployment is not covered and adds a TV term as in Appendix B.5.
Q10. We ran two additional experiments with different types of dynamics shift, including a more complex continuous-control 2D driving environment. These experiments showed that the favorable tradeoff between soundness and completeness is not just a property of LunarLander; please see our response to Reviewer Eje3 for details.
The main computational bottleneck was representing and sampling from the posterior. For linear-over-features classes this step is efficient, but for nonlinear networks the posterior must be approximated, and this approximation dominates the cost. All other steps, including the greedy selection and the deployment-time stopping checks, amount to a small number of forward passes.
[1] Foster, Dylan J., Adam Block, and Dipendra Misra. "Is behavior cloning all you need? understanding horizon in imitation learning." Advances in Neural Information Processing Systems 37 (2024): 120602-120666.
I thank the authors for the detailed rebuttal and the additional experiments. The response addresses most of my questions and clarifies the intended scope of the guarantees.
Regarding test-side usefulness, I appreciate the direct acknowledgment that a policy may perform well in while abstaining on most novel trajectories in , yet still satisfy completeness and soundness. The example explains why nontrivial test-side coverage cannot be guaranteed under completely arbitrary shift without additional information or assumptions. The proposed density-ratio and prefix-level transfer bounds provide a more refined picture than the original bounded-TV result. In particular, the prefix-level argument helps show that the learned stopping rule should not trigger before the shift becomes observable when the source and target dynamics initially agree.
Nevertheless, I think this limitation should be stated prominently in the paper. The formal completeness guarantee remains a training-environment guarantee, and the method does not ensure a useful amount of autonomous operation in under arbitrary shift. I do not view this as a flaw, since the rebuttal explains why such a guarantee is generally impossible, but the distinction between low stopped regret and nontrivial target coverage should be made explicit.
The response concerning the stochastic implementation is also useful. The authors clarify that, for neural policy classes, both the exact version space and the required multiple-instance-learning oracle are unrealistic, and that the intended practical implementation is the posterior-sampling and greedy-selection heuristic. I also appreciate the explicit acknowledgment that this heuristic does not inherit the theoretical guarantee without an additional posterior-coverage assumption. This answers my concern about the gap between the analyzed algorithm and the empirical implementation, although that gap remains significant.
The proposed calibration of using held-out unlabeled source trajectories is a reasonable practical procedure for controlling the source stopping rate. My understanding is that this primarily calibrates completeness, while target-side soundness is still justified by the theoretical analysis rather than by the calibration itself. The final paper should make this distinction clear and avoid ambiguity between source and target data when describing the procedure.
The response to the horizon-dependence question is strong. I agree with the clarified interpretation that “horizon-free” means no additional polynomial dependence on beyond and the complexity of the policy class. The proposed construction showing a genuine statistical separation between SeqRejectron and the stepwise reduction is an important addition. Assuming this result is formally stated and proved in the revision, it substantially strengthens the motivation for the trajectory-level construction.
The discussion of the misspecification parameter also provides useful intuition. The examples involving rare expert-specific decisions and finite approximating classes clarify how may remain small even when the expert is not exactly contained in the learner’s policy class. Similarly, the response appropriately distinguishes the matched cost-driven rate from the unresolved variance-dependent stopped-regret rate.
The additional experiments are a meaningful improvement. The tabular gridworld experiment is particularly useful because it evaluates the deterministic construction rather than only the posterior heuristic. The synthetic driving and BipedalWalker experiments also provide evidence that the completeness-soundness tradeoff is not specific to LunarLander. I would, however, describe the BipedalWalker experiment as running the exact validator-selection game over an approximate finite candidate pool, rather than as a fully exact implementation of the theoretical version space.
One concern that remains only partially addressed is the interpretation of stopping in safety-critical settings. The switched-regret formulation is useful when an expert can immediately take over, but it assumes that such a handoff is available and feasible. It does not certify that the system is left in a recoverable state, that a safe backup controller exists, or that the physical transition to the fallback policy is safe. The paper should therefore avoid equating abstention with a formal safety guarantee.
Overall, the rebuttal materially improves the submission. Transparency over what is and is not guaranteed, and the new theoretical clarifications and experiments strengthen the paper. My remaining concerns are on test-side coverage, the computational gap for stochastic neural policies, and the abstract treatment of what happens after stopping. These limitations affect the practical scope of the contribution but do not invalidate the main theoretical results.
I therefore maintain my score.
Response to Reviewer pp4t
Regarding the interpretation of stopping in safety-critical settings, we believe that the switched-regret formulation explicitly does certify that the system is left in a recoverable state: this is because when the switched regret is low, as SeqRejectron guarantees, this implies that, on average, the expert can complete the trajectory from the handoff state with low regret. This is also evidenced by the stochastic SeqRejectron guarantee, given by Theorem 2, that the statistical distance between the distributions of -stopped trajectories under the expert policy and the learned policy is small. In particular, this implies that the distributions of the corresponding handoff states are also close, so the learned policy hands control back in states that the expert itself could have encountered.
With this clarification, we believe that we have addressed the reviewer’s main concerns, and we respectfully ask that the reviewer consider increasing their score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper tackles offline imitation learning when the test environment's dynamics can differ arbitrarily from training. The learner has labeled (state, action) demonstrations from a training MDP but only unlabeled, state-only expert trajectories from a test MDP whose transitions may be completely different. Since acting everywhere is hopeless under arbitrary shift, the learner is allowed to abstain partway through a trajectory. The central object is a selective policy , a policy plus a stopping time on the observed history, and the paper asks for two things. The first is completeness, meaning it rarely stops in . The second is soundness, meaning low stopped regret in , measured against the expert run up to the same .
The algorithm, SeqRejectron, keeps a base policy running and checks it against a set of "validator" policies, which are alternative explanations of the expert that stay consistent with the training labels. It abstains the moment any validator disagrees with . The key technical claim is that a small validator set (size , independent of horizon, state/action space, and ) is always enough, which gives horizon-free sample complexity in the deterministic case, with the horizon entering only through the cost bound . The paper then extends this to stochastic policies, swapping the binary disagreement test for a cumulative-Hellinger budget and giving upper and lower bounds on the rates, and to misspecified policy classes via a regularized game. A small LunarLander experiment serves as a proof of concept.
Strengths and weaknesses
Strengths
- Novel, well-motivated framing. Treating abstention as a principled, distribution-free response to arbitrary dynamics shift is genuinely new for the sequential setting, and it addresses a real gap, since plain offline imitation learning is vacuous once dynamics move.
- An appealing core result. A validator set whose size is independent of horizon, state/action space, and policy-class size is a surprising and elegant idea, and the horizon-free flavor connects well to the recent behavior-cloning theory line.
- Impressive scope. Deterministic, stochastic, and misspecified settings, plus a lower bound, make for a broad and coherent package in one paper.
Weaknesses
- The guarantees can be met by a useless policy. Always-stop has zero stopped regret by construction (the paper concedes this), so the only guard against a degenerate solution is completeness, which is measured on the training environment. A policy that acts on training-like histories but abstains across the test environment satisfies both criteria while doing nothing useful where it's deployed. Under large shift this is exactly what the method does, and the paper would score it as a success.
- Right metric, wrong environment. The objective scores stopping rate in and pre-stop regret in , and in each case it penalizes the easy quantity and ignores the hard one. The practically relevant quantity, coverage in , meaning how often you can safely act, sits entirely outside the guarantee, except under an appendix assumption that quietly reintroduces the bounded shift the paper claims to avoid.
- The stochastic case is essentially unimplementable as analyzed. The deterministic case has a real oracle-efficient reduction, but the stochastic validator search has no known computational oracle. The experiment quietly substitutes the very ensemble/posterior heuristics the paper argues against, with no guarantee they inherit the needed property.
- Dense presentation. It's well-organized but notation-heavy, and the key conceptual point, what the guarantees actually buy and where they stop, is underplayed relative to the algorithm and rates. As one concrete fix, Definition 3 is far more intuitive than its statement, and a "small committee of plausible experts, certified almost as vigilant as the whole pool" gloss would help readers a lot.
Questions
- A policy that is near-optimal on and stops immediately on -like histories appears to satisfy both completeness and soundness while being useless on . Can SeqRejectron output such a thing when is sufficiently novel, and is there any control on the test-side stopping rate (or a lower bound on useful action in ) that does not go through the bounded-TV appendix assumption?
- Soundness only counts cost incurred before stopping, so stopping early makes it trivially easy, and a policy that stops immediately has zero regret. Why does the objective not also require the policy to act a reasonable fraction of the time in , and why is the cost of stopping (halting the system mid-task) never counted? Relatedly, since the absence of test-environment action labels is exactly what leaves coverage uncontrolled, would a small number of such labels suffice to guarantee a non-trivial stopping rate in and rule out the abstain-everywhere solution?
- On the stochastic implementation: does the cumulative-Hellinger validator search admit any computational oracle, or is the obstruction fundamental? And can the posterior-sampling/greedy-Hellinger surrogate used in the experiments be shown to inherit (even approximate) -validity? A positive answer to either would substantially close the gap between the analyzed algorithm and anything deployable.
- Under genuinely unstructured shift, doesn't a policy class rich enough for non-trivial coverage in require , so that in the sparse-cost regime (where horizon-freeness is the selling point) is relocated into rather than eliminated? Could you characterize the class complexity needed for non-trivial coverage as a function of , and clarify whether "horizon-free" should be read as "no excess beyond and the cost of a useful class"?
Limitations
The authors are very upfront about the computational gaps (no oracle-efficient stochastic implementation, the penalty in the naive stepwise reduction) and the vs rate gap. But the limitations I care about most aren't surfaced in the main text. The first is that the completeness/soundness pair can be met by a policy that abstains across the entire test environment, with completeness, the only guard, checked in the wrong environment (, not the deployment environment ) and test-side coverage reined in only by an appendix assumption that reintroduces the shift the paper claims to avoid. The second is that "horizon-free" really means "no excess beyond and the statistical cost of the class," which a useful class under unstructured shift may not enjoy. The third is that in the stochastic case the deployable surrogate carries none of the guarantees while the guaranteed object cannot be computed. I'd encourage the authors to state these plainly and to spell out the regime in which the guarantees are actually meaningful.
Formatting concerns
None
2 comments
Rebuttal (1/2)
We thank the reviewer for their thoughtful evaluation of our work. We address each question below.
Q1. First: yes, it is true that a policy which is near-expert on but abstains on -like trajectories will meet both guarantees. However, obtaining such a policy is nontrivial and is essentially the main objective of our algorithm: the learner is never told which states are -like, and must infer where its training data stops being informative from labeled trajectories and unlabeled trajectories alone. We also disagree that such a policy is "useless"; there is clear value in being able to detect environment shift and abstain/stop before a catastrophic failure.
Second: yes, when is sufficiently novel, then SeqRejectron can output a selective policy which is near-optimal on and stops immediately on . However, this is necessary. A simple construction is as follows: let the state space be partitioned into and , and suppose have initial state distributions supported on , respectively. Let denote policy classes defined on , respectively, and let be constructed from all pairs , in the natural way. Then, no matter how much many trajectories we collect from , we have learned nothing about . In this case, SeqRejectron can and should immediately stop when executed on .
Next, the TV transfer of Appendix B.5 is not the sharpest statement of this kind, and the same one-line argument gives a family of bounds. Writing for the density ratio between the expert's state-trajectory distributions in and , for any the abstention event transfers as , at the price of an extra factor in the sample complexity. Taking recovers the TV bound, taking recovers a standard bounded-density-ratio transfer with no excess term, and intermediate interpolates between the two: the excess can be much smaller than the TV distance when the shift is large only on a small region. We will state this generalization in Appendix B.5.
Finally, a sharper analysis can in fact show that we don't stop too early, even in the test environment (as opposed to just bounding the stopping rate). For any stopping time adapted to the state sequence, the event is measurable with respect to the trajectory stopped at , so the abstention rate on that prefix is governed by the stopped laws: . By the data processing inequality, this divergence is nondecreasing in , so the transfer price grows from zero to the full-horizon TV as the prefix lengthens. For example, suppose the dynamics agree up to step ; then the -stopped laws are identical and : the learned stopping time provably does not trigger before the dynamics diverge. This is perhaps a more natural way to transfer the abstention rate, which we will include in the main text after Theorem 1.
Q2. First, the abstain-everywhere policy is ruled out by completeness, and not soundness: it stops with probability one in , so . The two requirements must be read jointly (this division of labor is inherited from PQ learning).
Regarding the cost of stopping, charging a hard per-halt cost in instead is similar to bounding , and this is impossible as discussed in our response to Q1. The next best option is to charge a per-halt cost in , which we already control by our completeness guarantee on (we can drive the -stopping rate to zero by taking polynomially many trajectories).
Regarding whether a small number of test labels could guarantee low abstention: yes, but this is not surprising. If we had test labels, we could just run behavior cloning on the test distribution, which already has polynomial sample complexity. Our results are most useful in the regime where we do not have efficient access to test labels (such as the motivating autonomous driving example).
Rebuttal (2/2)
Q3. For the oracle question, the obstruction is not fundamental. The game-theoretic layer carries over as is: the proofs of Lemma 5, the no-regret construction, and the generalized-FTPL reduction of Appendix B.8 only use the fact that each policy induces a cutoff vector in , and never use determinism. What changes is the offline best-response oracle. In the deterministic case, "stop by step " means some disagreement occurs in the prefix, which is exactly a positive MIL bag; in the stochastic case, it means the prefix sum of per-step exceeds , i.e. a sum-threshold version of MIL.
Without further assumptions the surrogate is just a heuristic, though one highly motivated by SeqRejectron. With one assumption it can be certified. Suppose the sampling posterior covers the posterior of (given both datasets) up to density ratio . Then by the exchangeability argument of Lemma 5, the pool of posterior samples that the greedy step selects from is, in expectation, -valid against the expert. The greedy -subset stops no earlier than the full pool (removing validators can only delay stopping), so it can fail validity only when it stops later than the pool would have; its risk is therefore at most plus the rate of this event. That rate is computable from held-out unlabeled trajectories, and Figure 1 (right) suggests it is small at . Finally, the coverage assumption is milder than it may appear: validity depends on a candidate only through its stopping behavior on the observed test trajectories, so the posterior only needs to cover the expert's stopping profile there, not its parameters.
Q4. On the last part, we agree with the proposed reading, and it is the one [2] adopt as well: "horizon-free" means no excess beyond and the supervised cost of the class, and whether itself grows with is a property of the target rather than the algorithm. We will state this explicitly next to the weight-sharing discussion in Section 3.
We push back, however, on the premise that unstructured shift forces . The class must approximate the expert's state-feedback map on the states it visits in either environment (this is from Section 5), and since the expert applies the same map in and , this cost is set by the expert's structure, not the shift's. The needed complexity is the log-covering number of the family in , where are the expert's state visitation distributions in the two environments: for policies -Lipschitz in shared parameters uniformly over states, this gives for trajectory-level error , independent of the shift. [2, Appendix C.1] carry out essentially the same covering-number analysis in the single-environment case; the only ingredient the shift adds is that the metric must also dominate the test-side visitation, and since the metric depends only on states, the unlabeled test trajectories suffice to construct the cover. So enters only logarithmically; arises only when the expert itself is irreducibly nonstationary, which also happens in the standard behavior cloning setting.
[1] Goldwasser, Shafi, et al. "Beyond perturbations: Learning guarantees with arbitrary adversarial test examples." Advances in Neural Information Processing Systems 33 (2020): 15859-15870.
[2] Foster, Dylan J., Adam Block, and Dipendra Misra. "Is behavior cloning all you need? understanding horizon in imitation learning." Advances in Neural Information Processing Systems 37 (2024): 120602-120666.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary of rebuttals
We thank the AC and reviewers for the constructive process. We briefly summarize how the rebuttal addresses each weakness highlighted in the metareview, with pointers to the relevant responses and the concrete additions we have committed to.
1. Completeness beyond the training environment. Our response to Reviewer prCx (Q1) strengthens the test-side picture in three ways, none of which reintroduces a global bounded-shift assumption.
(a) We generalize the TV transfer of Appendix B.5 to a family of bounds via a truncated density ratio, αN≤B⋅(source terms)+∫(w−B)+dP+(sequential penalty), interpolating between the TV bound (B=1) and the bounded-density-ratio bound (B=∥w∥∞); the excess can be far smaller than TV when the shift is concentrated on a small region.
(b) We prove a prefix-level transfer requiring no assumption: for any state-adapted time τ′, PrN[τ≤τ′]≤PrM[τ≤τ′]+TV of the τ′-stopped trajectory laws, nondecreasing in τ′ by data processing; in particular, if the dynamics agree up to step h, the two probabilities are equal: the learned stopping time provably does not fire before the shift arrives.
(c) We clarify why unconditional test-side coverage is impossible (a simple product-class construction) and that with test-side action labels the problem reduces to behavior cloning, delineating the regime where our guarantees are the meaningful ones. We will state (a) in Appendix B.5 and (b) in the main text after Theorem 1.
2. Practicality of the stochastic algorithm. Our responses to prCx (Q3) and pp4t (Q2–Q4, Q10) show the gap between the analyzed algorithm and the implemented heuristic is smaller than it appears.
(a) The computational obstruction is localized: the entire game-theoretic layer (Lemma 5, the no-regret dynamics, and the generalized-FTPL reduction) carries over to the stochastic case unchanged; only the offline best-response oracle changes, from standard multiple-instance learning to a sum-threshold variant.
(b) The heuristic actually used in the experiments inherits approximate validity: under a posterior-coverage assumption, which concerns only the expert's stopping profile on the n observed test trajectories rather than its parameters, the sampled pool is α/(P+1)-valid by the same exchangeability argument as Lemma 5, and the greedy selection's additional risk is an observable quantity that our experiments indicate is small. We will add this as a proposition.
(c) We give a label-free calibration procedure for the threshold θ (an empirical quantile on held-out unlabeled source trajectories), which is effectively how θ was chosen in Section 6.
3. Experiments beyond LunarLander. As requested by Reviewers Eje3 and pp4t, we ran two additional experiments with qualitatively different shifts, deliberately bracketing both regimes of the paper: (a) a tabular gridworld where the exact deterministic algorithm of Section 3 (Algorithm 2, no heuristic) is run directly; sweeping the validator budget reduces switched regret by roughly 50× (0.0484→0.0009) while source handoff stays below 6%; and (b) a continuous-control 2D driving task with a stochastic expert and a weather/friction shift, exercising the cumulative-Hellinger rule and reproducing the completeness–soundness frontier of Figure 1. Both experiments, with full tables, are in our response to Reviewer Eje3 and will be added to the paper.
Other clarifications. Beyond the metareview's bullets, the rebuttal also resolves reviewer questions with new results we will include: a Θ(H) statistical separation between SeqRejectron and the stepwise reduction (pp4t Q6), the precise semantics of "horizon-free" together with a covering-number characterization of the class complexity needed for test-side coverage (prCx Q4), and discussions of the misspecification parameter and robustness to noisy observations and mixed demonstrators (pp4t Q7, Q9). We are happy to provide further details on any point.