S3 Framework: How Multi-Agent Reinforcement Learning Achieves Swarm-Scale Scaling

The S3 framework trains multi-agents with flat asynchronous communication, validating the feasibility and limits of swarm scaling.
This article interprets the design and experiments of the multi-agent RL framework S3. S3 uses a flat asynchronous communication architecture, where each agent collaborates through only send and receive tools, unlike the orchestrator-led hierarchy. Training runs in two toy environments: information aggregation and decentralized exploration. The reward combines a binary success signal with a token-consumption discount, and successful teams get rewards from 0.75 to 1. Experiments show that information aggregation collapses as agent count increases, while decentralized exploration remains stable, rooted in whether task difficulty grows with scale. Trained agents learn to skip initial message reading and increase broadcast ratio. The largest model is only 1.7B parameters, yet it validates learning communication behavior from scratch.
Multi-agent reinforcement learning is evolving from the hierarchical "orchestrator-worker" model toward flat communication. A recent paper on the S3 (Swarm Scaling Setup) framework has sparked discussion: it enables agents to collaborate through asynchronous message passing and validates the feasibility of swarm-scale scaling on small models. This article, based on an in-depth technical podcast interpretation, outlines its design trade-offs and experimental findings.
From Orchestrator to Peer Communication: Architectural Divide in Multi-Agent RL
There are currently two main approaches to training multi-agent systems with reinforcement learning. One is "orchestrator-led": an orchestrator model assigns tasks to multiple worker agents, with no communication among the workers. The other allows communication among agents in addition to an orchestrator—this is the pattern OpenAI adopted when describing its agent swarm.
S3 belongs to the latter. Each agent can communicate asynchronously with other agents and has only two core tools: the first is send message, with parameters including the recipient (which can be a single agent or multiple agents) and the message payload; the second is receive message. This design turns communication itself into a learnable policy behavior rather than a hard-coded process.
Two Toy Environments: Information Aggregation and Decentralized Exploration
S3's training signal comes from two dedicated environments. The first is information aggregation: each agent receives some of the numbers in a list and must share information through communication, ultimately collaborating to sort and return the result. The second is decentralized exploration: each agent faces a maze and multiple doors and must find an escape path through communication.
The two tasks have very different communication requirements. The difficulty of information aggregation naturally rises as the number of agents increases—because there are more numbers to sort; while the decentralized exploration task itself remains unchanged, with only more explorers added. This difference directly leads to their opposite behaviors under scaling.

Reward Function Design: Trade-off Between Correctness and Token Efficiency
The S3 reward function is the focus of discussion. Formally, it is a binary success signal multiplied by a discount term based on token consumption. Specifically, the reward equals the success flag S multiplied by (1 minus λ times the ratio of used tokens to the total quota), where λ is 0.25. The total quota NL is the product of team size N and the maximum number of tokens per agent L.
The elegance of this design is that it simultaneously incentivizes two things: correctness and token efficiency. If the team succeeds but consumes very few tokens, the reward is close to 1; if token consumption reaches the quota limit, the reward drops to 0.75. Since this term only takes effect when the team succeeds, a failed team receives 0. In other words, the reward range for a successful team is 0.75 to 1, while failure yields 0. A λ of 0.25 means success is always better than failure while preserving room for efficiency optimization.
Advantage computation follows the standard GRPO normalization approach, but at the team level. Each team is treated as an independent rollout, and its advantage is computed relative to the average performance of other teams running in parallel. This explains why the speed of an individual agent does not affect training: as long as any agent in the team submits a successful answer, that team's episode ends, with no need to wait for slow members.

GRPO (Group Relative Policy Optimization) is a policy gradient method that does not require a value network. Its core idea is to sample a group of outputs under the same prompt (i.e., a group) and then compute each output's advantage using the group's average reward as a baseline. Specifically, the advantage equals the output's reward minus the group's average reward, divided by the group's standard deviation. This normalization eliminates dependence on a critic model, reduces memory overhead, and provides a stable learning signal through intra-group comparison. S3 extends this mechanism from a single trajectory to the entire team: each team is treated as an independent rollout, and its advantage is computed relative to the average performance of other teams running in parallel. This means individual agents within a team do not compute advantages separately but instead share a team-level advantage signal, thereby encouraging agents to collaborate for the overall success of the team.
Communication Blocking and Chunked Generation
As the swarm size grows, all agents share the same inference server, and the KV cache and scheduling slots become bottlenecks. The paper mentions a practical problem: if a few agents monopolize resources (for example, by generating extremely long token trajectories), their teammates can only queue and wait.
S3 addresses this by splitting the generation process into request chunks of no more than 1024 tokens. A request terminates early at a tool call or when the response ends; otherwise it continues from the generated prefix. This allows agents from different teams to interleave their progress and avoids being blocked by a single long request.
Some podcast opinions suggest this may simply be a reimplementation of the preemption mechanism at the inference engine level, but they also acknowledge that application-level chunking is reasonable in scenarios where KV cache routing is uncertain. A more important finding comes from behavioral changes after training: compared with the SFT baseline, agents trained with S3 barely read messages at the start of an episode and instead start working directly—because there are no messages to read at the initial stage anyway. This "act first, communicate later" pattern significantly improves message efficiency.
KV cache (Key-Value Cache) is a key optimization technique in large language model inference. During autoregressive generation, the model needs to cache the key and value vectors of all previous tokens to avoid redundant computation when generating new tokens. However, the size of the KV cache is proportional to the sequence length and the number of model layers. When multiple requests share the same inference server, KV cache and scheduling slots become scarce resources. If a request generates an extremely long sequence, it will occupy a large amount of KV cache for a long time, causing other requests to queue and wait for sufficient resources. This is the root of the communication blocking problem in S3: when a few agents generate extremely long token trajectories, their teammates can only wait. The preemption mechanism is a scheduling strategy used in inference engines (such as vLLM) to handle resource contention. It allows high-priority requests to preempt resources from low-priority requests, but it is complex to implement and may introduce additional overhead. S3 mitigates this problem at the application level through chunked generation, allowing agents from different teams to interleave their progress.
Two Fates of Scaling: Collapse and Plateau
The experimental results show a striking contrast. On the information aggregation task, as the number of agents increases from 1 to 16, the success rate collapses; the authors attribute this to "the growing difficulty of collecting and tracking everyone's information as scale increases." On the decentralized exploration task, however, the success rate does not collapse with scale, and the performance of 4, 6, and 8 agents is very close.
The root of this difference lies in the nature of the tasks. The communication cost of information aggregation grows quadratically with the number of agents, but the token quota in the reward scales only linearly with N, causing communication overhead to crowd out the thinking budget. Some discussants pointed out that if the reward scaled with N squared, the performance of information aggregation might be different.
Another noteworthy phenomenon comes from the communication pattern itself. During training, the proportion of direct messages (point-to-point) decreases, while the proportion of broadcast increases. Agents spontaneously learn to replace point-to-point communication with broadcast, which reduces dependence on the number of recipients.

best-of-N (best single agent) is a common parallel sampling strategy: run N agents independently on the same task (or sample N times) and then select the best result as the final output. This strategy does not involve communication among agents, so the communication cost is zero, but each agent works independently and cannot exploit the information-sharing advantages of team collaboration. The S3 authors claim that their swarm training method can surpass best-of-N under scaling, i.e., as the number of agents increases, the collective performance of the collaborative team is better than running N independent agents and taking the best result. However, the podcast guests question whether the figure clearly demonstrates this advantage, because the experimental scale is limited and the tasks are relatively simple. The significance of this comparison is that if the flat communication architecture outperforms best-of-N only on tasks where communication costs are controllable, then its applicability needs to be defined more carefully.
Limitations and Implications
S3's experimental scale is limited: the largest model has only 1.7B parameters, the team size is at most 16, and the tasks are toy-level. The authors claim this is the first work to show that swarm training can surpass "best single agent" (best-of-N parallel agents), but the podcast guests question whether the figure clearly demonstrates this advantage.
The small model scale also brings a positive signal: even on a 1.7B model, communication behavior can be learned. This leaves room for future validation of scaling on larger models and more complex tasks (such as decentralized file sorting and information aggregation across papers or code repositories).
S3's engineering implementation is also noteworthy. According to the implementer sharing on the podcast, when reproducing it in TRL, almost no changes to the framework were needed—the environment and reward function are custom, but the training loop remains as is. This means multi-agent communication training can be integrated into existing RL infrastructure at low cost.
A broader implication lies in architecture choice. Current productized multi-agent systems (such as coding agents) mostly adopt a hierarchical structure in which an orchestrator aggregates information, but S3 shows that flat asynchronous communication may have advantages under scaling. Whether model capability limits the architecture or architectural inertia limits the model remains an open question.
One-line Summary
The S3 framework trains multi-agent systems with flat asynchronous communication, validating the feasibility and limitations of swarm-scale scaling.
Paragraph Summary
This article interprets the design and experiments of the multi-agent reinforcement learning framework S3. S3 adopts a flat asynchronous communication architecture, where each agent collaborates through only two tools: send message and receive message, distinguishing it from the orchestrator-led hierarchical model. Training is conducted in two toy environments, information aggregation and decentralized exploration. The reward function combines a binary success signal with a token-consumption discount, and the reward range for a successful team is 0.75 to 1. Experiments find that the success rate of information aggregation collapses as the number of agents increases, while decentralized exploration remains stable; the root cause is whether task difficulty grows with scale. After training, agents learn to skip initial message reading and increase the proportion of broadcasts. The largest model has only 1.7B parameters, but it validates the feasibility of learning communication behavior from scratch.
Related articles

Nothing CMF Buds 2A Drops to $17.89 on Black Friday: A New Low for ANC Earbuds
Nothing CMF Buds 2A wireless earbuds Black Friday deal: just $17.89 on Amazon, about $11 off retail and a record low. ANC earbuds at an entry-level price.

When AI Creation Gets Accused of "Spitting": Hacker News Heats Up Over the Glaude Controversy
A Hacker News post, "Spitting in the Face of Glaude," sparks debate on AI creation transparency and attribution ethics. This analysis examines the blurred creator identity behind the controversy and offers practical advice for AI content production.

Akai Embraces Custom Firmware: MPC Sample 1.4 Lets Users AI-Program Their Sampler
Akai embraces the modding community with MPC Sample 1.4 firmware, supporting vibe-coded custom firmware and effects. We analyze the impact of this open strategy on music hardware and AI-assisted programming.