arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22786cs.LG
收藏

AutoCompress:用于高效Transformer压缩的临界层隔离

AutoCompress: Critical Layer Isolation for Efficient Transformer Compression

Independent Researcher(独立研究者)

Archit Thorat

AI总结:

本文提出AutoCompress,通过保护第0层并压缩中间层,实现Transformer压缩,实验表明在WikiText-103上取得优异性能。

摘要:

本文提出AutoCompress,一种受实证发现启发的Transformer压缩方法:在小型Transformer中,第0层承载了不成比例高的任务关键信息,基于NTK的重要性评分达到3.6,而其他所有层的最大评分仅为0.054——差距超过60倍。基于此发现,我们提出临界层隔离(CLI),一种保护第0层全维度,通过学习瓶颈压缩所有中间层,并在最终层恢复全维度的架构。应用于GPT-2 Medium(354.8M参数),CLI-GPT2在WikiText-103上仅用143.8M参数达到204.5 perplexity——压缩比为2.47倍,参数减少59.5%。关键的是,消融研究显示,相同规模的统一瓶颈基线仅能达到571.8 perplexity,在相同训练条件下,确认保护第0层的架构决策——而非单纯减少模型大小——是性能的主要驱动力。代码和检查点已公开可用。

英文摘要:

We present AutoCompress, a transformer compression method motivated by an empirical finding: in small transformers, Layer 0 carries disproportionately high task-critical information, with an NTK-based importance score of 3.6 compared to a maximum of 0.054 for all other layers -- a gap of over 60x. Based on this finding, we propose Critical Layer Isolation (CLI), an architecture that protects Layer 0 at full dimensionality, compresses all intermediate layers through a learned bottleneck, and restores the full dimension at the final layer. Applied to GPT-2 Medium (354.8M parameters), CLI-GPT2 achieves 204.5 perplexity on WikiText-103 with only 143.8M parameters -- a 2.47x compression ratio and 59.5% parameter reduction. Crucially, an ablation study demonstrates that a uniform bottleneck baseline of comparable size achieves only 571.8 perplexity under identical training conditions, confirming that the architectural decision to protect Layer 0 -- rather than simply reducing model size -- is the primary driver of performance. Code and checkpoints are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑