NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Forgetting Bad Early Evidence When Configuring Multi-Agent LLM Teams

Multi-agent LLM systems split a hard task across roles, for example an analyst who plans, a coder who writes code, and a tester who checks it. Each role has several reasonable ways to run: different prompts, tools, or model sizes. Which choice is best for one role depends on what the other roles are doing. A careful test-writing tester is worthless next to a coder that ignores tests. It becomes valuable once the coder switches to a test-first style. Suppose the team learns its configuration online, from a stream of tasks. A learner that remembers every past failure will then score the tester option badly during the early period when its partners were weak, and it may never return to it. We call this co-adaptation lock-out.

Game theory has a well-studied fix for exactly this failure. Regret matching picks actions in proportion to how much better they would have done than the current play. Its "rectified" variant (RM+) clips accumulated regret at zero after every step, so an action is never punished for how it looked against partners who have since changed. This note proposes to treat a cooperative agent team as a common-payoff game among its roles. Each role runs RM+ over its own options, using counterfactual feedback obtained by replaying the downstream pipeline. We then test whether rectification measurably prevents lock-out and finds strong team configurations in fewer tasks than stationary bandits, joint search, and LLM self-reflection.

Core Claim

A team in which every role receives the same task reward is a potential game: every role's incentive lines up with a single shared objective. Convergence of Regret Matching in Potential Games and Constrained Optimization proves a sharp separation in exactly this class. Plain regret matching can need $m^{\Omega(m)}$ iterations to reach even a crude equilibrium because it carries its full history. RM+ reaches an $\epsilon$-KKT point in $O(1/\epsilon^4)$ iterations, and a discounted variant in $O(1/\epsilon^2)$. That analysis assumes full feedback in abstract matrix or continuous games. Our claim is that the same separation shows up in practice when the "players" are roles in a decomposed LLM pipeline and the "payoff" is task success. The claim also has a practical consequence: per-role RM+ with replay-based counterfactual feedback should reach near-best team configurations in fewer evaluated tasks than history-averaging learners.

For role $k$ with option set $A_k$ at task $t$, we compute two quantities. The first is $u_t(a)$, the task reward obtained by substituting option $a$ for role $k$ while holding the other roles' sampled outputs fixed. The second is $u_t(\sigma_t)$, the reward under role $k$'s current mixed choice $\sigma_t$. The rectified update is

$$R_t(a) = \max\big(0,\; R_{t-1}(a) + u_t(a) - u_t(\sigma_t)\big), \qquad \sigma_{t+1}(a) \propto R_t(a),$$

with uniform play whenever all $R_t$ are zero. The discounted variant multiplies past positive regrets by $t^{\alpha}/(t^{\alpha}+1)$, following Solving Imperfect-Information Games via Discounted Regret Minimization.

We make one design choice that ties to safety. Each role always includes a pass-through option that does nothing. The monolithic single-agent system is therefore one reachable configuration, and the learner's regret is measured against it among others. Prior reports show decomposition can fail on small models: MACM gains only 3–5% on LLaMA-3, and in Self-collaboration Code Generation via ChatGPT models under 13B fail to follow the protocol. The pass-through option gives the team an empirical route back to the single agent when the extra roles do not pay.

Relation to Prior Work

The game-theory side supplies the method. Solving Heads-Up Limit Texas Hold'em introduced the zero floor through CFR+ and reports reaching target exploitability 10x faster than standard CFR. Discounted CFR adds asymmetric forgetting, and AutoCFR rediscovered the combination of discounting and the zero floor as DCFR+ through evolutionary search. Multi-Agent Learning for Iterative Dominance Elimination shows that decaying historical rewards turns exponential elimination times into polynomial ones. All of these work in tabular games with exact payoffs. We bring the update unchanged into a setting where payoffs are noisy task outcomes and counterfactuals cost LLM calls.

The multi-agent LLM side motivates the problem. TDAG handles failures by re-prompting and dynamic replanning, cutting cascading task failure from 34.78% to 4.35% on ItineraryBench. Its recovery is narrative, within one task, with no numerical memory across tasks. We work across tasks and keep a numeric score per option, so the two approaches are complementary rather than competing. DyTopo routes messages by embedding similarity, with no feedback about whether an edge helped. Our learner is purely feedback-driven.

Two papers train agents with policy gradients: MoRSE with hierarchical GRPO over role–subtask experts, and Dr. MAS with per-agent reward normalization. Both change model weights. We keep weights frozen and learn only the discrete configuration, which costs orders of magnitude less compute. Their findings also constrain our design: heterogeneous roles have very different reward scales. Because RM+ is invariant to positive rescaling of a role's regrets, we normalize counterfactual rewards per role, in the spirit of Dr. MAS. Multi-Agent Planning with Baseline Regret Minimization is the closest prior use of regret in multi-agent planning. It bounds worst-case loss relative to a baseline policy with MILP solvers in tabular DEC-POMDPs. It uses no rectification and no learning over a task stream. Our pass-through option borrows its intuition of guaranteeing performance relative to a reference policy.

Research Program

We build three pipelines whose roles each expose four to six discrete options.

The first is an Analyst–Coder–Tester code team modeled on Self-collaboration. Analyst options are none, step plan, pseudocode, and test-first spec. Coder options are two prompting styles crossed with a 3B or 7B model. Tester options are none, generated unit tests, property checks, and execution-trace explanation. The second is a Thinker–Judge–Executor math team modeled on MACM. The third is a planner–subagent team for ItineraryBench and TextCraft modeled on TDAG.

The reward is hidden-test pass for code, exact answer for math, and the benchmark's fine-grained score for planning. An optional token-cost penalty lets us trace accuracy–cost frontiers. All roles use the same open models so every method sees identical option sets.

Counterfactual feedback is obtained by replay. For each task we sample a joint configuration. Then, for each role, we rerun only the part of the pipeline downstream of that role under each alternative option, keeping upstream outputs cached. This costs at most $\sum_k |A_k|$ partial runs per task, which grows linearly in the number of roles. Joint search, by contrast, grows exponentially. Because full replay is expensive, we also implement a bandit-feedback variant. It evaluates one sampled alternative per role and uses an importance-weighted regret estimate. The file identifies bandit feedback as an open theoretical problem for RM+, so this variant is an empirical contribution with no guarantee claimed.

To isolate the mechanism, we also build tabulated surrogate games. These are payoff tables measured once by exhaustively evaluating every joint configuration on a dev subset. On them we can run thousands of learner seeds cheaply and plant complementarities on purpose. We also test a "bad start" condition in which every role is initialized on its weakest option, which forces the early negative regret that the theory says traps plain regret matching.

Baselines

The naive reference points are the monolithic single agent and the hand-designed default configuration from the source paper. For HumanEval, Self-collaboration reports 90.2% Pass@1 with GPT-4. For MATH Level 5, MACM reports GPT-4 Turbo rising from 54.68% to 76.73%. On ItineraryBench, TDAG reports an average fine-grained score of 49.08 and a 4.35% cascading failure rate, and on TextCraft a 73.5% success rate. These figures come from much stronger closed models. We therefore rerun all defaults on our open models and use the cited numbers only to check that our reimplementations behave sensibly.

The most informative ablation is plain regret matching without the zero floor, given exactly the same counterfactual replay feedback. This isolates rectification as the key ingredient. RM+ should beat it on cumulative online reward and on tasks-to-near-optimum, and the gap should widen in the bad-start condition.

The strongest competitor is a discounted or sliding-window Thompson-sampling bandit run independently per role. It also forgets old evidence and is the standard tool for non-stationary rewards. We give it the same total budget of LLM calls. For bandits, that budget is spent on additional tasks or additional samples instead of replays, and we tune its window or discount on a separate dev stream using the same tuning budget as the discount parameters of DRM+.

We include stationary UCB per role as a history-averaging control. We include offline joint search: grid or successive halving over all joint configurations on a dev set, with the same call budget. On small option spaces we can evaluate every joint configuration exhaustively, and this gives the oracle best fixed configuration. TDAG-style reflection with dynamic replanning is the representative of language-only recovery.

We count the method as winning if three things hold. It must exceed the tuned discounted bandit by a margin outside seed confidence intervals on cumulative online accuracy, at matched calls, on at least two of the three pipelines. It must reach within 1–2 points of the oracle configuration in fewer tasks than joint search. Its final configuration must never fall below the single-agent reference.

Why not just…?

Why not just use a discounted bandit per role? This is the real threat, and we treat it as one. A discounted bandit forgets uniformly in time, whereas RM+ forgets only negative evidence and uses counterfactual comparisons. Prior work suggests this asymmetry matters: Discounted CFR found it best to drop negative regret quickly ($\beta=0$) while keeping positive regret ($\alpha=1.5$). Still, the cleanest evidence available is from poker, not LLM teams. We separate the effects with a 2×2 design crossing feedback type (replay versus bandit) with update rule (RM+ versus discounted Thompson sampling). If discounted Thompson sampling with replay matches RM+, we will report that the value lies in counterfactual replay plus recency, not in the floor, and drop the stronger claim.

Why not just search the joint configuration offline once? For three roles with four options there are only 64 configurations, and exhaustive dev-set search may simply win. The case for online decentralized learning rests on two things: configuration spaces that grow exponentially with the number of roles, and task streams that drift. We therefore vary the number of roles from three to six and include a distribution-shift stream, for example moving from MBPP to CoderEval. The comparison shows where joint search stops being affordable. If it never stops in realistic sizes, the method's use is limited to drifting streams, and we will say so.

Why not just let the agents reflect on failures, as TDAG and Reflexion-style loops do? Reflection operates inside a single task. TDAG itself notes that incorrect self-summaries can introduce persistent errors, and MoRSE reports that prompt-differentiated agents echo one another. Reflection also keeps no comparable record of how each option did across tasks. We run TDAG-style replanning both as a baseline and in combination with our learner. The expected outcome is that the two compose rather than substitute. If reflection alone matches the learner on cumulative accuracy, the numerical machinery is not earning its place.

Why not just train the team with GRPO as in Dr. MAS? Weight training is a different compute regime, and it can be layered on top of any configuration. We report the call budget at which our learner converges for context. We claim no win over trained teams, only that configuration learning is a cheap first step their training can start from.

Decisive Checks

The first decisive check is the lock-out measurement on surrogate games with planted complementarity. We track how much probability the eventually-optimal option of each role receives over time. Theory predicts that under plain regret matching and stationary UCB this probability stays near zero long after partners have shifted, while under RM+ it recovers within a few tasks. If no such difference appears in tables measured from real pipelines, co-adaptation lock-out is not a real phenomenon in LLM teams, and the proposal fails at its premise.

The second check is the 2×2 feedback-by-update-rule comparison on live HumanEval/MBPP and MATH Level 5 streams at matched LLM calls.

The third check covers safety and cost. We verify that the learned configuration never falls below the single-agent system on held-out tasks, including at the 3B model scale where decomposition previously hurt. We also report accuracy against tokens, with DyTopo's HumanEval efficiency figure of 9,453 versus 19,520 tokens relative to AgentScope as the context for what counts as a meaningful token saving.