Meta 与 MIT 论文发现,循环复用 Transformer 层可让模型在不增加参数的情况下获得更深深度,并在固定规模下质量最优。研究训练了最高 1B 参数、最多 155B token 的稠密模型,测试循环位置与次数;每循环适配器仅增加 1.1%–4.3% 参数,而深度翻倍需增加 51.4%。训练算力紧张时,循环中间层收益最佳,且他们还修复了一种并行循环方法,使解码时多个循环可同时运行。
New Meta and MIT paper finds reusing a transformer's layers in loops can beat a plain model.
Looping runs the same layers several times, giving a model more depth without more parameters. But each loop costs compute and normally runs in sequence for every token.
They trained dense models up to 1B parameters on up to 155B tokens, testing where to loop and how many times. They also added tiny per-loop adapters and repaired a parallel looping method so loops can run at once during decoding.
Looping the whole stack gave the best quality at a fixed size, while looping middle layers paid off best when training compute was tight. Per-loop adapters added only 1.1 to 4.3% more parameters, versus 51.4% for doubling depth, and helped more as loops increased.
来源:Rohan Paul · x.com