Budgeted Probing: Safe Online Identification of Unfamiliar Teammates

An agent dropped into a team with a partner it has never met faces a hard choice. It can act on its best guess about what the partner is doing and risk getting it badly wrong. Or it can take deliberate "probing" actions that reveal the partner's intentions, and those probes may themselves cause collisions, blocked counters, or wasted ingredients. We propose to treat this choice as a budgeted experiment-design problem. The agent keeps a probability distribution over what kind of partner it is facing. At each step it picks the action that best trades task reward against how much that action is expected to shrink its uncertainty, and it is only allowed to probe when a running safety budget, counting harm caused so far plus harm still expected, has room left. The statistical machinery for choosing which observations to combine comes from an unexpected place: the way cosmologists decide which combinations of galaxy-survey statistics will best pin down the neutrino mass. That field also documents a result that anyone doing this kind of inference should heed, which is that adding a new statistic can make the estimate worse.

In two sentences: current teammate-adaptation methods either certify safety offline over a fixed menu of policies or adapt online with no safety guarantee and, in practice, no real adaptation. We build an agent that adapts online, chooses its information-gathering actions by forecasting which behavioral statistics will separate candidate partner types, and never exceeds a per-episode miscoordination budget while doing so.

Where the gap is

Ad hoc teamwork, meaning coordination with unfamiliar partners without prior joint training, has two failure modes relevant here. The first is that learned agents do not adapt. On the OvercookedV2 partner suite, a cooperative cooking game with limited fields of view and asymmetric information, sequence models trained to adapt from interaction history show flat learning curves. Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamwork reports Algorithm Distillation at −18.0 and Decision-Pretrained Transformer at −23.4 against a Recipe-Aware teammate on the Test Wide layout, where a random agent scores 0.0. The authors attribute this to a "partial observability wall": the models cannot infer latent partner goals from partial action sequences. OvercookedV2: Rethinking Overcooked for Zero-Shot Coordination shows the same fragility at the population level, with self-play scores of about 145 falling to −81 in cross-play on Test Time Simple. These papers motivate the proposal. They show that passive, implicit inference fails in exactly the environment we target.

The second failure mode is that the only safe method is offline and closed-world. Seldonian Reinforcement Learning for Ad Hoc Teamwork certifies, before deployment, that a chosen ego policy satisfies a safety constraint with high confidence. It does this with doubly-robust importance sampling and concentration bounds, and it reaches 0% violations on Chain World, Blackjack and Level-Based Foraging, where unconstrained selection picks unsafe policies up to 25% of the time. It works over a predefined finite set of candidate policies and teammate types, and it does not adapt within an episode. That makes it the closest existing work. We differ in three ways. We act online. We gather information on purpose rather than passively. And we enforce the budget during the episode instead of certifying beforehand.

For the online budget we reuse the method of Constrained Markov Decision Processes via Backward Value Functions. That paper turns a whole-trajectory cost limit into a local check: cost accumulated so far plus expected future cost must stay below the budget. It keeps training runs feasible throughout, at some cost in reward. The general constrained formulation, with rewards and costs kept separate instead of folded into a single penalty, is supported by MetaDrive and First Order Constrained Optimization in Policy Space. Both report that hand-tuned penalties produce either reckless agents or agents that freeze. Existing safe multi-agent benchmarks such as Safety Gymnasium use co-trained teammates and purely physical costs. Neither covers our setting, where the cost is social miscoordination caused by an unseen partner.

What cosmology contributes, stated honestly

We do not claim that neutrino free-streaming is a mechanism for multi-agent learning. The analogy in which "unclustered components wash out idiosyncratic conventions" is, in practice, the same as mixing in diverse or random partners. Population training (Maximum Entropy Population-Based Training) and randomly paired encoder–decoder communities (Community size effect in artificial learning systems.) already do this, so a physics-inspired version would add nothing a reviewer couldn't get more simply.

What cosmology does offer is a mature inference methodology for a problem with the same structure. Neutrino mass is inferred from how massive neutrinos suppress the growth of cosmic structure (Cosmological Neutrino Bounds for Non-Cosmologists). That suppression is nearly indistinguishable, in any one statistic, from changes in other parameters such as the fluctuation amplitude $\sigma_8$. The field breaks these near-ties by combining statistics that respond differently to each parameter. Cosmic Complementarity does this by pairing microwave-background and galaxy-survey data, forecasting joint precision before any data are taken. Detecting Neutrino Mass by Combining Matter Clustering, Halos, and Voids combines clustering with counts of dense halos and empty voids, and reports a 43-fold tightening on neutrino mass in simulations.

Our partner-inference problem has this structure. A partner heading to the onion station is consistent with several recipes, just as a suppressed power spectrum is consistent with several parameter combinations. Where the partner never goes, the behavioral analogue of a void, may separate hypotheses that the partner's visits cannot. We borrow two tools. The first is Fisher forecasting of which combination of behavioral summary statistics best separates partner types. The second is implicit-likelihood inference: a neural posterior trained on simulations, as in Neutrino Mass Constraint from an Implicit Likelihood Analysis of BOSS Voids.

That same paper also supplies a design constraint. At the finer scale cutoff it studied ($k_{\max}=0.2\,h\,\text{Mpc}^{-1}$), adding void statistics loosened the 95% bound from 0.28 to 0.32 eV. The likely explanation is that the simulations used to train the posterior did not describe the added statistic well enough. Our probe selector will therefore decide whether to include each statistic based on its measured value on held-out partners, not on its forecast value alone.

Core Claim

We claim that an agent which chooses actions for their forecast power to separate partner types, and only when a backward-value safety budget permits, will do three things on unseen OvercookedV2 partners. It will adapt within an episode, which current in-context learners do not. It will stay within a miscoordination budget, which unconstrained adaptation does not. And it will lose less reward than a purely cautious safe policy.

Research Program

The agent maintains a posterior $b_t(z)$ over a latent partner descriptor $z$, a continuous embedding learned from the partner population rather than a fixed discrete type list. This removes the closed-world assumption of the Seldonian approach. The posterior is a neural density estimator fit on simulated interaction snippets from the training partners. Its inputs are summary statistics of the partner's behavior over the recent window: which cells the partner occupied, the timing of its interactions with stations, and cells or stations it conspicuously avoided given what it could see. Before training, we compute a Fisher-style forecast over candidate statistic combinations on the training partners and select the subset that best separates held-out partner types.

At each step the agent selects

$$a_t = \arg\max_{a} \; Q_r(s_t, a \mid b_t) + \lambda \, \mathbb{E}\big[H(b_t) - H(b_{t+1}) \mid a\big] \quad \text{s.t.} \quad C_{\le t} + Q_c(s_t, a \mid b_t) \le \epsilon .$$

Here $Q_r$ is the expected team reward under the current belief. $H$ is posterior entropy, so the second term is the expected information the action reveals about the partner, weighted by $\lambda$. $C_{\le t}$ is miscoordination cost accumulated so far this episode. $Q_c$ is the expected future cost after taking $a$. $\epsilon$ is the per-episode budget.

The constraint is the backward-value-function check applied at action time. If no action satisfies it, the agent falls back to a conservative recovery policy trained to minimize $Q_c$. That fallback addresses the initial-feasibility assumption the BVF paper flags.

Miscoordination cost counts four kinds of event: blocking the partner's path, duplicating the partner's current subtask, delivering a wrong dish, and collisions. We will release this cost specification as a small extension to the OvercookedV2 partner suite. The reward and cost critics are trained with first-order constrained optimization, following the FOCOPS approach.

Baselines

The naive reference points are a random agent, which scores 0.0 on Test Wide against the Recipe-Aware teammate, and a self-play agent evaluated in cross-play, which scores −81 on Test Time Simple (OvercookedV2). Algorithm Distillation (−18.0) and Decision-Pretrained Transformer (−23.4) on Test Wide (Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamwork) represent the strongest reported online adapters. We will rerun them on the same partner split and seeds. Beating them means positive return with a rising within-episode return curve.

The strongest competitor on the actual question is passive Bayesian adaptation under the same budget. It uses the same posterior, the same critics and the same backward-value constraint, but sets $\lambda=0$, so the agent best-responds to its current belief and never probes. No reported result exists on Lacuna for this baseline in OvercookedV2, so we will build it ourselves with an identical tuning budget. Our method beats it only if it achieves higher return at equal or lower cost and budget-violation rate, and does so specifically on partner pairs whose behaviors look alike early in the episode.

The next baseline is an offline Seldonian selector (Seldonian Reinforcement Learning for Ad Hoc Teamwork) choosing among ego policies best-responding to each training partner cluster. We will run it on Level-Based Foraging, where its 0% violation rate is reported, and on OvercookedV2 with the same logged data. Our method must match its violation rate while exceeding its return.

A PPO-Lagrangian population agent is included as the standard constrained learner. Safety Gymnasium reports a 98% violation reduction at a 45% reward drop for this method on velocity tasks. We have no reported number for it on this benchmark, so we will run it.

Three ablations isolate the key ingredients. The first removes the avoidance statistics, which tests the degeneracy-breaking claim. The second replaces forecast-selected statistics with all statistics, which tests the misspecification caution. The third removes the budget while keeping $\lambda>0$, which tests whether probing without the constraint is what causes harm.

Why not just…?

Why not just infer the partner passively and best-respond? This is the real threat. If partners reveal their type through ordinary behavior, deliberate probing only adds cost. The ICRL benchmark suggests passive implicit inference fails under partial observability. But that evidence concerns sequence models, not an explicit posterior, so it does not settle the question. The passive baseline above is built to settle it. We will report the return gap as a function of how separable partner pairs are early in the episode. If the gap is near zero everywhere, we will conclude that the probing term is unnecessary and report that.

Why not just add a miscoordination penalty to the reward? MetaDrive and FOCOPS both document that single penalties produce either reckless or frozen agents. The budget formulation also lets us state and check a per-episode guarantee, which a penalty weight cannot provide. We will include a penalty-swept version of the passive agent so this comparison is measured on this benchmark, not only cited.

Why not just train a more diverse partner population, or a bigger in-context model? Population diversity improves zero-shot coordination on the original Overcooked layouts (MEP). But population-based methods collapse on OvercookedV2, and larger in-context models gave only modest gains in the ICRL benchmark. Neither approach offers any safety control during adaptation. We will nonetheless train our posterior on the most diverse population available, so the comparison isolates probing and budgeting rather than data diversity.

Why not just use information-gain exploration and add a safety shield afterward? A shield that masks unsafe actions (as in Adaptive Probabilistic Shielding) enforces a step-wise constraint, not a trajectory budget. It cannot trade a cheap early probe against a later saving. The no-budget ablation, run with a shield added, tests this directly.

Proposed Experiments

The main testbed is the OvercookedV2 / ICRL4AHT partner suite, with its 80 RL partners and 4 heuristic families. We use the standard held-out partner split and layouts, including Test Wide and Test Time Simple, with Level-Based Foraging as a second environment for the head-to-head Seldonian comparison. Metrics are team return, per-episode miscoordination cost, the fraction of episodes exceeding $\epsilon$, the within-episode slope of return, and the number of steps until posterior entropy falls below a threshold. We sweep $\epsilon$ to trace a reward-versus-cost frontier for every method.

Three checks decide the outcome. The first is whether our method's frontier dominates the passive Bayesian agent's frontier on hard-to-separate partner pairs. The second is whether the budget-violation rate stays near zero while return is positive, which would be the first safe and actually adapting result on this suite. The third is whether forecast-selected statistics outperform the all-statistics variant on held-out partners. That would reproduce, in behavioral inference, the lesson from the BOSS void analysis that combining statistics helps only when the simulation-trained posterior represents each statistic well.