跳到正文
DAIR.AI· @dair_ai · X·· 8 天前AI 评分45
AI 导读

哈佛与 NYU 提出 Model Carving,为每个注意力和 MLP 子层加可学习标量门,训练损失自动关闭无用门并移除对应子层。在同等训练算力下,雕刻模型验证损失低于用最多 1.7 倍算力训练的稠密模型,测试覆盖 140M 到 2.7B 参数的标准 Transformer 及最高 1.3B 的循环 Transformer,并优于同尺寸剪枝或蒸馏模型。

正文

// Model Carving //

This work from Harvard and NYU proposes Model Carving, which puts a learnable scalar gate on every attention and MLP sublayer. The training loss closes gates it does not need, and those sublayers are removed.

At equal training compute, carved models reached lower validation loss than dense models trained with up to 1.7x more compute. They tested standard Transformers from 140M to 2.7B parameters and looped Transformers up to 1.3B.

Carved models also beat size-matched models made by pruning or distillation. The advantage grew with scale and held on few-shot evaluation and generation.

Removed sublayers do not run, so carved models used up to 34% fewer FLOPs per token and decoded up to 1.6x faster with no quality loss.

If you need a small model for edge or latency-bound use, compare carving during pretraining against your current prune-then-distill pipeline.

https://arxiv.org/abs/2611.27962

Chat with Paper: https://academy.dair.ai/papers/model-carving-training-transformers-that-optimize-their-own-topology-2611.27962

来源:DAIR.AI · x.com