循环语言模型中的halting head真能节省算力吗?
Do Halting Heads Really Save Compute in Looped Language Models?
从头预训练最多1.3B参数的循环语言模型发现,halting head存在两个问题:在全部迭代混合训练下,head预测token所需迭代不到一半,但按标准停止规则token几乎每次迭代都运行,因为训练从未对token停止的那一次迭代打分。逐迭代打分可修复该问题,但仅在强烈偏向早停的惩罚下有效;且批量生成时按最慢token停止,无head模型成本几乎相当,报告的平均迭代数会高估节省。
arXiv:2610.32246v1 Announce Type: new Abstract: Looped language models run each token through the same layers several times, and each run is one iteration. To save compute, an extra layer, the halting head, gives after each iteration the probability that the token stops there, so that easy tokens can stop early. Pretraining models from scratch, up to 1.3B parameters, we find two problems. First, heads trained on a mix of all iterations predict that tokens need under half the iterations, yet under the standard stopping rule tokens run almost every iteration, because this training never scores the single iteration where a token stops. Scoring every iteration instead fixes this, but in our runs it works only with a strong penalty favoring early stops. Second, savings are commonly reported as an average number of iterations per token, but when sequences are generated in batches that run until their slowest token stops, a model without a head is almost as good at that cost. The reported average can therefore overstate the saving. We recommend reporting the iterations tokens actually run, with the stopping threshold and batch size, and give a test, run before training a head, that bounds its gain.
来源:arXiv (AI + Vision + Imaging) · arxiv.org