TL;DR
Imagine an assembly line of AI agents—say, a planner, a coder, a reviewer, and a finalizer—working one after another, only receiving a single pass/fail score at the very end. Figuring out who deserves praise or blame is notoriously messy, and existing approaches either drown individual agents in teammate noise, suffer from exploding mathematical variance, or burn compute on expensive environment replays. COSAC solves this with a lightweight linear regression trick and "what-if" policy simulations, giving each agent crystal-clear, individualized feedback without training heavy neural "critics" or paying for extra reward evaluations.
What Problem Does This Paper Address?
Modern AI increasingly relies on sequential pipelines—like multi-LLM coding workflows or multi-robot tasks—where agents act in a fixed order and share a single team-level reward. Training these teams introduces two headaches:
- Credit Assignment: If the final code fails a unit test, was it the planner's bad outline or the coder's typo?
- Stale Data: If we update Agent 1's policy, the data we just collected to update Agent 2 is suddenly outdated ("off-policy"), because Agent 1 wouldn't act the same way anymore.
Existing fixes force an ugly pick-your-poison trade-off. Training neural "critic" networks to judge every combination of actions blows up exponentially as teams grow. Giving everyone the exact same team reward (like MA-GRPO) drowns out individual signal in teammate randomness. Reweighting stale data via importance sampling (like HA-GRPO) causes variance to compound exponentially down the chain. Finally, re-running the actual environment for every "what-if" scenario (like C3) is prohibitively expensive when rewards require running unit tests, LLM judges, or physical robots.
Methods
The authors first define the theoretical gold standard for a sequential agent's learning signal: Sequential Aristocrat Utility (SeqAU). Extending a classic multi-agent framework from simultaneous to sequential teams, SeqAU asks: Given everything that happened before me, how much did my specific action improve the expected final outcome compared to what I usually do—accounting for how downstream teammates react to me?
To estimate SeqAU cheaply from a single batch of rollouts, COSAC uses a clever three-step recipe:
- Additive Reward Fitting: Instead of training a massive neural critic, COSAC approximates the team reward as a sum of individual agent contributions (plus optional pairwise interaction terms). Using one-hot action encodings—or clustered MiniLM text embeddings for free-form LLM outputs—it solves a single closed-form ridge regression on the rollout batch.
- Upstream Cancellation & Natural Order Updates: Agents are updated strictly from first to last ($1 \dots K$). When updating Agent $k$, downstream agents ($>k$) haven't changed yet! Better yet, when contrasting what Agent $k$ did with what it could have done, the additive contributions of all upstream agents ($<k$) are identical in both terms and mathematically cancel out.
- Fictitious Continuations: What remains is Agent $k$'s direct effect (its own reward slot) and its indirect effect (how its choice sways downstream agents). COSAC estimates the indirect effect by running fast, policy-only forward passes ("fictitious continuations") for downstream agents and scoring them with the cheap linear model—zero extra environment interactions or reward calls required.
Datasets
COSAC is tested across synthetic benchmarks and real-world LLM pipelines:
- Newly Introduced Controlled Testbeds: A Sequential Cooperative Bandit (up to $K=16$ agents, tuning reward interactions and downstream policy dependence) where exact ground-truth SeqAU credits can be computed, plus a two-agent Sequential XOR Game testing non-additive parity rewards. (Simulated PyBullet robotic assembly is also noted in the appendix).
- Existing LLM Benchmarks: ARC (AI2 Reasoning Challenge) for 4-agent consensus science reasoning using Qwen3-0.6B models, and MBPP (Mostly Basic Python Problems) for a 4-stage coding pipeline (Planner $\to$ Implementer $\to$ Reviewer $\to$ Finalizer) using Qwen3-1.7B models.
Key Insights and Ideas
- Order eliminates importance sampling: By updating agents in the exact order they execute, downstream policies remain completely on-policy during an upstream agent's update. Coupled with upstream cancellation, staleness corrections simply vanish.
- Action ripples matter as much as actions: In sequential teams, a good upstream move might not score points directly, but instead set up a downstream teammate for an easy win. Ablations show that when downstream policies strongly depend on upstream choices, COSAC's indirect-effect term ($I_k$) is decisive.
- Linear models aren't stuck being purely additive: When team success hinges on strict coordination (like an XOR game where actions only pay off if their parities match), simply appending pairwise interaction features to the ridge regression restores accurate credit assignment—still with zero extra reward calls.
Key Results
- Pinpoint Credit Estimation: In sequential bandits at $K=16$, COSAC's advantage estimation MSE is roughly $2\times$, $30\times$, and $46\times$ lower than C3, MA-GRPO, and HA-GRPO, respectively.
- Superior Team Scaling: Under matched reward-call budgets on bandits at $K=10$, COSAC achieves 18% lower normalized regret ($0.102$) than MA-GRPO ($0.125$), while HA-GRPO ($0.253$) and C3 ($0.273$) degrade sharply.
- Capturing Interactions: Adding pairwise features in the XOR game boosts held-out reward $R^2$ from $0.184$ to $0.643$ and cuts normalized-regret AUC from $0.144$ down to $0.084$ (beating MA-GRPO's $0.104$).
- Faster LLM Fine-Tuning: On 4-agent ARC consensus reasoning, COSAC reduces training regret by 17% relative to the best critic-free baseline (achieving $0.721$ AUC vs. $0.663$ for MA-GRPO). On MBPP Python coding, COSAC slashes training regret by 61% relative to MA-GRPO ($0.052$ vs. $0.133$), adding only ~1.4 MB of memory overhead per task instead of a full neural critic.
Limitations and Future Work
- Contextual Bandit Abstraction: The framework analyzes single-pass sequential decisions with no inter-step environment state transitions; extending COSAC to full multi-step sequential MDPs remains open.
- Discretizing Free-Form Outputs: Applying ridge regression to LLMs requires mapping free-form text into task-specific discrete action bins (via frozen text embeddings).
- Combinatorial Feature Growth: While pairwise or higher-order features capture complex agent interactions, the feature space grows combinatorially as teams and action spaces expand, requiring careful regularization.
- Model & Control Scope: LLM experiments were limited to the Qwen3 model family, and the appendix robotics tasks relied on fixed placement primitives rather than learned low-level continuous control.
Summary updated