Policy-Ratio Conformal Action Sets for Teammates That Keep Learning

When several agents learn together, each one is trying to predict partners who change from one training update to the next. A recent idea is to give an agent a guaranteed set of likely teammate actions rather than a single guess. Conformal prediction provides this: it is a recipe that calibrates any predictor on held-out examples so its sets contain the truth at a chosen rate, say 95%. Feeding these sets to the agent's policy speeds up cooperative learning. The guarantee, however, assumes the calibration examples come from the same distribution as the test case. During training they never do, because the calibration data were generated by older versions of the teammates. The sets are therefore least trustworthy exactly while coordination is still forming.

This proposal exploits something specific to multi-agent training. When training is centralized, every past teammate policy is known, and each logged action comes with its probability under the policy that produced it. Because of this, the correction needed to reuse stale calibration data can be computed exactly rather than estimated. That correction is the ratio of how likely an episode is under the current teammates to how likely it was under the old ones. It is exact because the unknown environment physics cancels out of the ratio. We propose a weighted conformal action predictor that keeps a single calibration pool spanning many policy snapshots. It reweights that pool after every update, before any new data arrive, and adds a lightweight online corrector for the shift the ratio cannot see, such as drift in the environment itself.

Core Claim

Weighted conformal prediction with a mixture denominator should do better than three alternatives: unweighted calibration, recalibration on only the freshest data, and purely reactive online adjustment. Under the mixture denominator, each calibration point is weighted by its probability under the current joint policy divided by its average probability across all snapshots in the pool. We claim this restores near-nominal coverage within each window right after a policy update, with smaller and more stable sets than the alternatives, and that the improvement carries over to downstream learning when the ego policy is conditioned on the sets.

For a calibration episode prefix $\tau$ (the states and all agents' actions up to the scored step), let $p_k(\tau)$ be its probability under snapshot $k$, $n_k$ the number of pool points from snapshot $k$, and $n=\sum_k n_k$. The weight we use is

$$w(\tau) = \frac{p_{\text{cur}}(\tau)}{\sum_k (n_k/n)\, p_k(\tau)}, \qquad \frac{p_{\text{cur}}(\tau)}{p_k(\tau)} = \prod_{t}\prod_{j}\frac{\pi_{j,\text{cur}}(a_{j,t}\mid s_t)}{\pi_{j,k}(a_{j,t}\mid s_t)}.$$

The transition probabilities cancel because they appear identically in every $p_k$. This is the lifting argument of MA-COPP, here applied to a pool drawn from many snapshots. The mixture denominator is the main new ingredient. A ratio taken against any single old snapshot explodes once policies have drifted far apart. The mixture ratio is bounded above by $n/n_{\text{cur}}$ whenever the pool contains current-policy data, and it degrades gracefully otherwise.

Relation to Prior Work

The method comes from two papers. Conformal Prediction Under Covariate Shift. showed that reweighting calibration scores by a likelihood ratio restores coverage under weighted exchangeability. On UCI Airfoil, unweighted conformal prediction fell to 82.2% coverage against a 90% target, and weighting brought it back to 90.8% with oracle weights and about 91.0% with estimated weights. The same paper names the cost: weighting shrinks the effective sample size and inflates set width. Conformal Off-Policy Prediction for Multi-Agent Systems (MA-COPP) supplies the cancellation trick that makes the trajectory ratio exact. On PettingZoo MPE and F1TENTH it reports holding 95% coverage where standard conformal prediction fell to as low as 75%.

MA-COPP differs from this proposal in four ways. It is offline, it maps one fixed behavior policy to one target policy, it forecasts trajectories, and it explicitly reports unbounded regions when the target policy leaves the behavior data's support. We instead calibrate teammate action sets inside a training loop. Our pool comes from a sequence of policies, and the mixture denominator is how we address the explosion MA-COPP leaves open.

The motivation comes from CAMMARL. CAMMARL conditions a PPO ego agent on conformal teammate-action sets, and its binary multi-hot encoding (CAM-BINARY) works best. It calibrates without weights even though teammates are updating, so its stated 95% guarantee does not formally hold during training. CAMMARL reports only convergence curves, with no numerical returns or measured coverage over time, so whether its sets actually undercover is an open empirical question we answer first. The broader moving-target problem identified by Claus and Boutilier explains why this matters. Their result is that independent learners confuse a teammate's policy change with environment noise, and a stale calibration pool is a direct instance of that confusion.

The online conformal literature constrains the design. Adaptive Conformal Inference (ACI) adjusts the working error level after each observed miss and guarantees long-run average coverage under arbitrary drift. Distribution-informed Online Conformal Prediction tightens this with an optimistic hint. Both are reactive: they correct only after errors accumulate. Teammate actions in this setting are revealed every step, so ACI does get immediate feedback here and is a serious competitor rather than a strawman. We therefore use ACI as a residual corrector on top of the weighted quantile. The weights anticipate known policy changes, and ACI absorbs what the weights cannot model.

Multi-Agent Reachability Calibration uses a related rolling quantile update (RollingRC) on nuScenes and Waymo without explicit shift modeling. We borrow its per-agent risk split, $\alpha = 1-(1-\gamma)^{1/N}$, to combine per-teammate sets into a joint guarantee without enumerating joint actions.

Research Program

We would build three pieces. The first is a weighted conformal action predictor. A teammate-action classifier, trained as in CAMMARL, is scored on a calibration pool that contains one randomly chosen timestep per held-out episode. Using one timestep per episode keeps calibration points independent across episodes. The weighted quantile follows Tibshirani et al. Because the test point's weight depends on the unknown teammate action, we compute it separately for each candidate action and include that action if its score clears the quantile it induces. This is exact full enumeration, and it is cheap for the small discrete action spaces CAMMARL uses. For several teammates we form per-teammate sets at the corrected level above.

The second piece is pool management driven by effective sample size, defined as $(\sum w)^2/\sum w^2$. This number drops sharply when the current policy has moved away from everything in the pool. It is therefore a label-free drift signal of the kind the concept-drift literature seeks with two-sample tests, but here it is computed in closed form. When it falls below a threshold we evict the oldest snapshots. We then compare this rule against fixed windows and against triggering on the sequential classifier two-sample test.

The third piece is the ACI residual layer. Its job is to handle shift the ratio misses, chiefly changes in environment dynamics, under which the cancellation in the display equation fails.

On the theory side, we would prove that coverage holds at each snapshot for the mixture-weighted pool, given independent episode draws per snapshot. We would also bound the excess coverage error under dynamics drift in terms of the total-variation change in transitions, in the spirit of the variation budget of Jiang et al.. The ACI layer then retains its long-run guarantee regardless of whether that bound holds.

Baselines

The naive reference is CAMMARL's unweighted conformal action sets, calibrated on the same stale pool. We run it with CAMMARL's architecture, CAM-BINARY encoding, PPO hyperparameters, and a 95% target, so that only the calibration rule differs. No reported result was found on Lacuna for CAMMARL's coverage or numerical returns. We therefore reproduce it, and success means a measured coverage gap that our method closes.

The second baseline is fresh-only recalibration. It calibrates unweighted on the most recent batch, which has a one-update lag. We run it with an equal total environment-step budget. Beating it means equal or better post-update coverage with smaller sets at small batch sizes.

The third baseline is single-snapshot weighting, which is MA-COPP's ratio against each point's own generating policy with no mixture denominator. It is the strongest existing weighted method. MA-COPP reports 95% coverage against 75% for standard conformal prediction on MPE trajectory prediction, a different task from teammate-action sets, so the number shows that the weighting works but is not directly comparable. Beating it means matching its coverage with a larger effective sample size and fewer degenerate sets that include every action.

The fourth baseline is ACI and RollingRC applied to unweighted scores. We tune the step size over the same grid used for our residual layer. Beating them means higher worst-window coverage after updates and lower variance in set size.

Ablations isolate the key ingredients. We compare the mixture denominator against the single-snapshot denominator, full prefix ratios against ratios over the current step only (lower variance, formally biased), and the method with and without the ACI layer.

Why not just…?

Why not just run ACI on teammate actions, since they are observed every step? This is the real threat. ACI guarantees average coverage over the long run, not coverage just after each abrupt PPO update, and Distribution-informed Online Conformal Prediction reports ACI producing infinitely wide intervals during volatility shocks. We measure coverage in the first K steps after each update, which is the window in which the ego agent's policy consumes the sets. If ACI matches us there at similar set size, the weighting is not worth its complexity, and we would report that.

Why not just recalibrate on the latest batch? With large on-policy batches and PPO's clipped updates, consecutive policies are close, and this may be nearly sufficient. We expect the advantage of reusing older data to appear with small batches and with replay-buffer learners, where the pool spans many snapshots. The batch-size sweep below locates the crossover point honestly.

Why not just let a centralized critic absorb non-stationarity? CTDE critics such as MADDPG stabilize value targets but give the actor no calibrated picture of what teammates will do. CAMMARL already reports converging faster than baselines that use true actions or true observations. We keep the training algorithm fixed and change only the calibration, so this alternative does not compete with the question we are asking.

Why not just detect drift and reset the pool? Resetting causes cold starts. Jang et al. need at least 201 samples per window at α=0.01, which a fresh pool cannot supply right after an update. The effective-sample-size eviction rule is our softer version of resetting, and the detector-triggered reset is run as a comparison.

Proposed Experiments

We use the CAMMARL environments: PettingZoo MPE Cooperative Navigation via PettingZoo, Level-Based Foraging, and Pressure Plate. We run both PPO with batch sizes swept over an order of magnitude and an independent-Q-learning variant with replay, all at a 95% target and over five or more seeds.

The metrics are of three kinds. Calibration metrics are coverage pooled over training, worst coverage over windows following an update, and mean and variance of set size. Pool health is measured by effective sample size over time. Downstream performance is the return curve and the steps needed to reach CAMMARL's converged return.

The first decisive check is whether unweighted CAMMARL sets measurably undercover right after updates. If they do not, the motivation weakens and we say so. The second is whether the mixture denominator beats single-snapshot weighting on effective sample size without losing coverage. The third is a dynamics-drift stress test, in which we change agent speed or friction in MPE mid-training. Here the policy ratio alone should undercover, and the ACI layer should recover coverage; this tests the claim that the two components handle different kinds of drift. The last is whether better-calibrated sets translate into faster or more stable learning when fed through CAM-BINARY.