Experiments›Adaptive Swarm
Oct 12, 2026

Adaptive Swarm

Counted by submissions, no swarm here beats one agent, the adaptive swarm included.

按提交次数计,这里没有一种蜂群好过单个智能体,自适应蜂群也不例外。

By Wenhao Chai作者 Wenhao Chai

Setup设置

The task is to make gigatoken, Marcel Rød's Rust tokenizer library, encode faster on one CPU core with the DeepSeek-V3 tokenizer while every token id stays the same. The baseline is one Gemini 4 Argon agent; in a standard swarm@n of the same model, a coordinator that is not counted among them hands work to up to n agents on one shared copy of the code, and a recursive swarm@n puts managers between the coordinator and the workers. pass@k splits the agents into k groups on isolated copies, and the adaptive swarm changes its groups during the run: a standard swarm of eight splits into two in one repository and joins again. Each run gets three hours, one 32-core machine and one idea per submission; the speedup is the original's best time over the candidate's on 500 MB of OpenWebText, with identical token ids on held-out, edge-case and random inputs. Running an idea is the expensive step, as a training run or a lab assay is in research, so we compare the best speedup so far against the number of submissions.

任务是在单个 CPU 核上,让 Marcel Rød 的 Rust 分词库 gigatoken 用 DeepSeek-V3 分词器编码得更快,同时每个 token id 都不变。基线是单个 Gemini 4 Argon 智能体;标准蜂群@n 用同一个模型,由一个不计入智能体数的协调者把工作分给至多 n 个智能体,大家改同一份代码;递归蜂群@n 在协调者和工作者之间加了管理者。pass@k 把智能体分成 k 组,每组一份相互隔离的代码;自适应蜂群在运行中改变分组:8 个智能体的标准蜂群在同一个仓库里拆成两组,最后再合回一组。每次运行三小时,共用一台 32 核机器,每次提交一个想法;加速比是原始版本在 500 MB OpenWebText 上的最好用时除以候选版本的最好用时,留出数据、边界用例和随机输入上的 token id 必须与原始版本完全一致。跑一个想法是昂贵的一步,就像研究中的一次训练或一次实验室测定,所以我们比较目前最优加速比随提交次数的变化。

Details详细说明

Every agent here is Gemini 4 Argon. The task is to make gigatoken, Marcel Rød's Rust tokenizer library, encode faster on one CPU core with the DeepSeek-V3 tokenizer, while every token id stays the same.

这里的智能体全部是 Gemini 4 Argon。任务是在单个 CPU 核上,让 Marcel Rød 的 Rust 分词库 gigatoken 用 DeepSeek-V3 分词器编码得更快,同时输出的每个 token id 都不变。

  • Speedup. The original's best time over the candidate's, three alternating runs each on 500 MB of OpenWebText.
  • Correctness. Identical token ids on held-out, edge-case and random inputs.
  • Budget. Three hours per run, one idea per submission, one 32-core machine shared by the run's agents. A coordinator agent assigns the work and does not count toward the number of agents.
  • 加速比。在 500 MB 的 OpenWebText 上,原始版本和候选版本交替各跑三次,用原始版本的最好用时除以候选版本的最好用时。
  • 正确性。在留出数据、边界用例和随机输入上,token id 都与原始版本完全一致。
  • 预算。每次运行三小时,每次提交一个想法,同一次运行的智能体共用一台 32 核机器。另有一个协调者智能体负责分配工作,不计入智能体数。

Reasoning is cheap; execution is expensive. In research and science more broadly, the costly step is running an experiment, such as a training run or a lab assay, rather than thinking of it. This task is a cheap stand-in for that setting, yet we keep its accounting: the main cost is the number of executions, not model tokens, and every curve below runs over submissions.

推理便宜,执行昂贵。在更广泛的研究和科学工作中,昂贵的一步是把实验跑出来,例如一次训练或一次实验室测定,而不是想出这个实验。这里的任务是这种情形的一个便宜替代,但成本按同样的方式计算:主要成本是执行次数,而不是模型 token,下面所有曲线的横轴都是提交次数。

In a standard swarm@n, the coordinator hands work to up to n agents, and all of them edit one shared copy of the code. A recursive swarm@n puts managers between the coordinator and the workers, much as Recursive Language Models (Zhang et al., 2025) call themselves on parts of a problem and Prime Agent (Prime Intellect, 2026) has agents spawn sub-agents for subtasks.

标准蜂群@n 中,协调者把工作分给至多 n 个智能体,所有智能体改同一份代码。递归蜂群@n 在协调者和工作者之间加了管理者,类似 Recursive Language Models(Zhang 等,2025)让模型对问题的一部分递归调用自己,以及 Prime Agent(Prime Intellect,2026)让智能体为子任务派生子智能体。

pass@k splits the agents into k groups, each on its own isolated copy of the code; pass@4 × recursive swarm@2 is four isolated recursive swarms of two agents. An adaptive swarm changes its groups during the run. We built five schedules for eight agents, A to E, and arrived at E. From here on, the adaptive swarm means schedule E: one standard swarm that splits into two standard swarms in one repository and joins again.

pass@k 把智能体分成 k 组,每组一份相互隔离的代码;pass@4 × 递归蜂群@2 是 4 个相互隔离、各有 2 个智能体的递归蜂群。自适应蜂群在运行中改变分组。我们为 8 个智能体先后设计了五种排程,A 到 E,最后定在 E。下文的自适应蜂群就指排程 E:一个标准蜂群在同一个仓库里拆成两个标准蜂群,最后再合回一个。

Experiments实验

Answered已有结论How do standard and recursive swarms change with the number of agents?标准蜂群和递归蜂群随智能体数怎样变化?

In the same three hours both beat one agent at every size; at the same number of submissions one agent leads. Their final speedups are highest at 4 to 8 agents and no higher at 16 and 32.

同样 3 小时内,两种蜂群在每个规模上都好于单个智能体;在同样多的提交次数下,单个智能体领先。最终加速比在 4 到 8 个智能体时最高,16 和 32 个时不再更高。

Details详细说明

In the same three hours, both beat one agent at every size. At the same number of submissions they do not: one agent leads, as the last question shows. Their final speedups are highest at 4 to 8 agents; at 16 and 32 they are no higher.

在同样的 3 小时里,每个规模都好于单个智能体。在同样多的提交次数下则不然:单个智能体领先,见最后一个问题。最终加速比在 4 到 8 个智能体时最高,16 和 32 个时不再更高。

Answered已有结论Do eight agents in isolated groups beat one swarm on one shared copy of the code?8 个智能体分成相互隔离的组,会好过共用一份代码的蜂群吗?

No: every split of eight agents into isolated groups ends below a swarm of eight on one shared copy.

不会:8 个智能体的每一种隔离拆法,最终都低于共用一份代码的 8 智能体蜂群。

Details详细说明

No. Every split of eight agents into isolated groups ends below a swarm of eight on one shared copy.

不会。8 个智能体的每一种隔离拆法,最终都低于共用一份代码的 8 智能体蜂群。

Answered已有结论Does changing the groups during a run beat a fixed swarm?在运行中改变分组,能好过固定的蜂群吗?

Not clearly: the adaptive swarm ends only a little above the mean of standard swarm@8.

看不出明显的好处:自适应蜂群最终只比标准蜂群@8 的均值高一点。

We built five schedules for eight agents, A to E in that order, and the adaptive swarm is schedule E.

我们为 8 个智能体先后设计了五种排程,A 到 E,自适应蜂群就是排程 E。

Details详细说明

Not significantly. The adaptive swarm, schedule E, ends above the mean of standard swarm@8 by less than the spread between repeated runs.

没有显著好过。自适应蜂群即排程 E,最终高于标准蜂群@8 的均值,但高出的幅度小于重复运行之间的波动。

None of them beats the adaptive swarm: CORAL ends close to it, and Stateless Language Agents and Fork-and-Flush end lower. Fork-and-Flush also makes far fewer submissions in the same time.

三种方法都没有好过自适应蜂群:CORAL 最终和它接近,Stateless Language Agents 和 Fork-and-Flush 更低。Fork-and-Flush 在同样时间内的提交也少得多。

CORAL runs from its released code, adapted to this task: eight agents, each in its own copy of the code, share notes and attempts in one store. We rebuilt the other two from their papers: Fork-and-Flush forks one agent at 60 and 120 minutes, and Stateless Language Agents run five waves of eight new workers whose context comes from the record of earlier submissions.

CORAL 用它公开的代码,按本任务做了改动:8 个智能体各用一份代码,在一个公共区里共享笔记和尝试记录。另外两种按论文重新实现:Fork-and-Flush 在第 60 和第 120 分钟让单个智能体分叉,Stateless Language Agents 分 5 轮,每轮启动 8 个新 worker,上下文按此前提交的记录重建。

Details详细说明

None of them beats the adaptive swarm. CORAL ends close to it; Stateless Language Agents and Fork-and-Flush end lower, and Fork-and-Flush makes far fewer submissions in the same time.

三种方法都没有好过自适应蜂群。CORAL 最终和它接近;Stateless Language Agents 和 Fork-and-Flush 最终更低,Fork-and-Flush 在同样时间内的提交也少得多。

CORAL ran from its released code, adapted to this task: eight agents, each in its own copy of the code, share notes and attempts in one common store. We rebuilt the other two from their papers. Fork-and-Flush runs one agent and forks it at 60 and 120 minutes, with at most four agents at once. Stateless Language Agents run five waves of 36 minutes; each wave starts eight new workers whose context is rebuilt from the record of earlier submissions.

CORAL 用的是它公开的代码,按本任务做了改动:8 个智能体各用一份代码,在一个公共区里共享笔记和尝试记录。另外两种方法按论文重新实现。Fork-and-Flush 平时只有 1 个智能体,在第 60 分钟和第 120 分钟分叉,同时最多 4 个智能体。Stateless Language Agents 分 5 轮,每轮 36 分钟;每轮启动 8 个新的 worker,它们的上下文按此前全部提交的记录重建。

Answered已有结论How far does one agent get in 64 submissions?单个智能体做到 64 次提交能走多远?

As far as the swarms, in fewer submissions: its best speedup so far is above the means of standard swarm@8 and the adaptive swarm at every number of submissions, and it ends level with them.

和蜂群走得一样远,用的提交次数更少:在每一个提交次数上,它的目前最优加速比都高于标准蜂群@8 和自适应蜂群的均值,最终和它们持平。

Details详细说明

In this one run, as far as the swarms, in fewer submissions. At every number of submissions its best speedup so far is above the means of standard swarm@8 and the adaptive swarm, and it ends level with them.

在这一次运行里,和蜂群走得一样远,而且用的提交次数更少。在每一个提交次数上,它的目前最优加速比都高于标准蜂群@8 和自适应蜂群的均值,最终和它们持平。

Takeaways核心结论

Counted by submissions, no swarm here beats one agent, the adaptive swarm included.

按提交次数计,这里没有一种蜂群好过单个智能体,自适应蜂群也不例外。

Experiment record实验记录

Citation

@misc{chai2026adaptiveswarm,
  title        = {Adaptive Swarm},
  author       = {Chai, Wenhao},
  year         = {2026},
  howpublished = {Blog post},
  url          = {https://wenhaochai.com/exps/adaptive-swarm.html}
}
Experiments Back to top回到顶部