One Learned Distance for Both Rewards and Messages in Cooperative Agents

Teams of learning agents doing long, multi-step jobs need two things people usually hand-build. The first is a reward signal that tells each agent whether it is getting closer to finishing, since a single reward at the end of a 200-step recipe teaches almost nothing. The second is a rule for when to talk to teammates, since sending every observation drowns the listener. Both are normally tuned by hand for a specific map. Both then fail when the map is mirrored, rotated, or enlarged. We propose to replace both with one learned quantity: an estimate of how many steps remain until the team completes the task. It is learned without reward labels from the agents' own experience, and it is computed from observations centered on the agent rather than from absolute grid coordinates.

That estimate serves as a dense training reward. It also sets a price on communication: an agent sends a message only when the message would noticeably shorten its teammate's estimated steps-to-completion. The bet is that one layout-independent measure of progress can produce both a shaping reward that transfers to new layouts and a talk-or-stay-silent rule that transfers with it. Today these are separate hand-tuned parts, and each breaks under spatial shift in its own way.

Core Claim

We claim that a message gate scored in units of "steps saved for my teammate" will stay sparse and useful on unseen layouts. The distance model behind it is trained self-supervised and reads egocentric, relational inputs. Gates scored in expected reward, which is how current pruning methods work, will instead drift, because they inherit whatever coordinate shortcuts the value function memorized. We make a second, weaker claim: the same distance model, used as a potential-based shaping reward, can replace Overcooked's hand-written sub-milestone rewards without loss on training layouts and with a gain on transformed ones.

Let $D_\theta(o, g)$ be a learned estimate of the number of steps from observation $o$ to a task-completion event $g$ (a soup delivery). It is trained on temporal distances between states along the agents' own trajectories. The only signal it needs is the sparse completion event itself, which is not engineered. Agent $i$ has candidate message $m$ for teammate $j$, and $\hat o_j$ is $i$'s prediction of what $j$ currently sees. The value of the message is

$$v_{i\to j}(m) = D_\theta(\hat o_j, g) - D_\theta(\hat o_j \oplus m, g),$$

where $\oplus$ means conditioning $j$'s estimate on the message. Agent $i$ sends $m$ only if $v_{i\to j}(m) > c$, where $c$ is a per-message cost measured in steps. The same model supplies the training reward $r_t = r^{\text{sparse}}_t + \gamma\Phi(o_{t+1}) - \Phi(o_t)$, with $\Phi = -D_\theta$ and discount $\gamma$. The potential-based form is chosen because it leaves the optimal policy unchanged, so shaping cannot create new optima for the agent to exploit.

Where This Sits in Prior Work

Two results motivate the proposal.

The Overcooked Generalisation Challenge evaluates cooperative agents on 32 mirrored, rotated, and scaled kitchens. It finds that they learn coordinate shortcuts such as "always move right to the pot." Its best curriculum-plus-mixture-of-experts agent reaches only a 14.6% mean solve rate on novel layouts. The benchmark has no communication channel and uses hand-engineered milestone rewards, and we change both.

Learning Goal-Conditioned Policies Offline with Self-Supervised Reward Shaping supplies our method. It learns a directed reachability network from unlabelled transitions and turns graph distances into dense rewards. It reports that the directed version improves success by 11% over undirected distances on RoboYoga, because some state changes cannot be undone. That work is single-agent, and its graph lives in a fixed state space. We carry the directed temporal distance into a two-agent, partially observed setting, feed it egocentric relational inputs, and, most importantly, reuse it as a communication price.

The communication-pruning literature constrains the design and gives us baselines.

  • Reward-value gating. Gated-ACML gates messages on predicted gain in team action-value. It prunes 70–80% of messages in traffic control and gains 13.59% reward in packet routing after pruning 24%.
  • Shapley-value gating. Shapley Message Value trains a local predictor of which peers carry positive game-theoretic value, with a centralized critic providing the training targets.
  • Consensus gating. COCOM broadcasts only when local observations deviate from a learned consensus.

All three are scored against the environment's hand-crafted return, and none is tested under layout shift. Our gate borrows SMS's structure (a supervised local predictor of a centrally computed counterfactual) but swaps the target: steps-to-completion instead of reward value. That swap is the whole point.

Among embodied language-model systems, CoELA makes talk cost a time step. CaPo reopens discussion only on hand-defined progress events. CoTS re-plans only when a language-model-scored plan reward drops below a threshold. These show that "communicate when progress changes" is the right intuition. But their progress signals are simulator flags or model judgments, never a learned, transferable quantity.

Tact is the strongest counter-position: it removes online talk entirely using offline-mined rules. We treat it as a hypothesis to test. On unseen layouts, zero talk should fail exactly where our gate chooses to talk.

SARM learns stage-aware progress for single-robot manipulation. It lifts crumpled-shirt folding from 0% to 67% success over vanilla behavior cloning, which shows that learned progress beats frame-index heuristics. It needs human stage labels; our estimator does not.

Research Program

Environment. Standard Overcooked is fully observable, which leaves nothing worth saying. We therefore build a partially observed variant of the OGC environment. Each agent sees a local egocentric window, rotated to its heading. Agents also have a small discrete message vocabulary: the contents of cells they have seen, plus their own current sub-intent. Each message costs one environment step, following CoELA's convention, so talk competes with action. We keep OGC's training layouts, its 32 held-out transformed layouts, and its held-out partner populations. Because we change observability, we re-run every baseline in the modified environment. The published 14.6% serves only as context, not a directly comparable target.

The distance model. $D_\theta$ is an asymmetric network over egocentric observations, augmented with a small relational encoding of relative offsets to the nearest instance of each object type. It is trained on replay-buffer pairs with the temporal-distance objective from the self-supervised shaping work. Completion events are the only anchors.

Training the gate. Training is centralized and execution is decentralized. During training, the simulator gives the true $o_j$, so the counterfactual $v_{i\to j}(m)$ is computed exactly for every candidate message. A local head then learns to predict it from $i$'s observation and its model of the partner. At execution time only the local head runs.

Policies. Policies are trained with independent PPO under the shaped reward, with the curriculum and architecture held fixed across all conditions.

What gets analyzed. Beyond solve rates, we look at two things. First, the fraction of messages sent on held-out layouts compared with training layouts. Second, whether the gate's decisions survive a mirror transform: does the gate fire on the mirrored version of the same situation? We call the second measure gate consistency. It checks the invariance claim directly, independent of task success.

Language-model setting. As a secondary test of whether the pricing idea leaves gridworlds, we train $D_\theta$ on logged TDW-MAT trajectories. We then use its message value in place of CoELA's "talk when novel information appears" trigger, leaving CoELA's planner and prompts unchanged.

Baselines

Naive reference points. Two references anchor the scale. The first is a no-communication agent trained with OGC's original hand-engineered milestone reward. This is the benchmark's native setup and shows how much the added channel alone buys. The second is an always-communicate agent under the same step cost, which bounds the benefit of unfiltered sharing and tests whether distraction appears in this domain as Gated-ACML found in routing.

Strongest existing gate. The strongest competitor on the communication question is a Gated-ACML-style gate, trained on predicted team action-value gain and thresholded to match our message budget. We also run an SMS-style Shapley-value gate. Both use the same policy network, the same curriculum, the same training steps, and the same hyperparameter-search budget as ours, and both are given our shaped reward so that only the gating criterion differs. Beating them means a higher held-out-layout solve rate at an equal or lower message rate, with non-overlapping confidence intervals over at least five seeds and both partner populations. A tie on training layouts is expected and acceptable.

Strongest method on the spatial question. On spatial transfer the strongest competitor is the OGC recipe itself, PAIRED with a soft mixture of experts. We re-run it in our partially observed variant with our channel and with an event-triggered gate that talks when new object information is seen.

Language-model setting. On TDW-MAT the comparison is CoELA's trigger versus our priced trigger within CoELA's stack. The file reports CoELA at a transport rate of 0.71–0.85, CoTS reaching a 93% average transport rate with GPT-4, and CoBel-World reporting a 64–79% cut in communication tokens. Success there means matching CoELA's transport rate with fewer tokens. We do not claim to beat CoTS's search.

Ablations. Three ablations isolate the key ingredient. The first uses our gate with $D_\theta$ trained on absolute-coordinate, allocentric observations; this separates the representation from the pricing. The second uses our gate with a reward-value target in place of steps-to-completion; this separates the currency. The third uses the shaped reward without the gate and the gate without the shaped reward.

Why not just…?

Why not just augment training layouts with mirrors and rotations? This is the most serious threat. OGC's held-out set is built largely from exactly these transforms, so augmentation could close most of the rotation and mirror gap for any gate, including a reward-value one. We will not argue around it. Every condition, ours and the baselines, is run with and without augmentation. Results are reported separately for the mirror/rotate layouts and for the scaled and structurally altered layouts, which augmentation cannot cover. If augmented reward-value gates match ours on all splits, the spatial claim is wrong. What would remain is a narrower result about reward-free shaping and gating.

Why not just shape with breadth-first-search distance to the next subgoal? In a grid, shortest-path distance is cheap to compute and already layout-aware. But it requires someone to name the subgoal sequence (onion, pot, wait, dish, serve). That is the manual milestone design that State-Dependent Maximum Entropy RL and MineDojo describe as not scaling. It also ignores waiting states that cannot be reversed, such as a cooking pot, which is where directed distances outperformed symmetric ones in the self-supervised shaping paper. We include hand-specified breadth-first-search subgoal shaping as a baseline. If it matches our shaping on held-out layouts, the reward half of the proposal reduces to a convenience claim, and we will report it that way.

Why not just drop communication, as Tact does? Tact shows zero-talk execution can compete on familiar tasks. OGC, however, reports near-zero returns for silent agents on novel layouts with novel partners. Our partially observed variant makes this sharper: a silent agent cannot know the state of a pot outside its view. The silent baseline above settles this in our setting. If silent agents match ours on held-out layouts, the environment does not reward communication and the experiment is uninformative.

Why not just use event-triggered talk, as CoELA and CaPo do? "Speak when you see something new" is simple and budget-light. But on a novel layout almost everything is new, so we predict the trigger rate rises sharply exactly when bandwidth matters. The held-out message-rate comparison directly tests this prediction.

Decisive Checks

The proposal lives or dies on three measurements, all on held-out OGC layouts with held-out partners.

The first is the gap between training and held-out message rates. Ours should stay roughly flat, and the reward-value gate should drift.

The second is gate consistency under mirroring. Ours should fire on mirrored situations far more consistently than an allocentric-trained version of itself.

The third is solve rate at a matched message budget against the Gated-ACML-style and SMS-style gates, reported separately for transforms that augmentation covers and transforms it does not.

If the allocentric ablation performs as well as the egocentric one, representation is not doing the work. If the reward-value-target ablation performs as well as the steps-to-completion target, the pricing currency is not doing the work. Either outcome falsifies the core claim.