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

通过降低嵌入可变性实现稳定的语言模型预训练

Stable Language Model Pre-training by Reducing Embedding Variability

KAIST AI(韩国科学技术院人工智能学院)

Woojin Chung, Jiwoo Hong, Na Min An, James Thorne, Se-Young Yun

AI总结:

针对语言模型预训练稳定性追踪成本高的问题,提出用TEV作为高效代理评估指标,并设计MLRA架构限制嵌入方差增长以防止梯度爆炸,在GPT-2上验证了其能提升稳定性、降低困惑度,深层模型效果更优。

摘要:

稳定的预训练对于获得性能更优的语言模型至关重要。然而,由于计算成本极高,通过计算每一步的梯度方差来追踪预训练稳定性并不现实。鉴于浅层更易出现梯度爆炸(2.2节),我们探索将Token Embedding Variability(词元嵌入可变性,TEV)作为一种简单高效的代理指标,用于评估带层前置归一化的语言模型的预训练稳定性。此外,我们提出Multi-head Low-Rank Attention(多头低秩注意力,MLRA)架构,通过限制输出嵌入方差的指数增长来缓解这类不稳定性,从而防止梯度爆炸(3.2节)。在搭载MLRA的GPT-2上的实验结果表明,该方法提升了稳定性并降低了困惑度,在更深层模型中效果尤为显著。

英文摘要:

Stable pre-training is essential for achieving better-performing language models. However, tracking pre-training stability by calculating gradient variance at every step is impractical due to the significant computational costs. We explore Token Embedding Variability (TEV) as a simple and efficient proxy for assessing pre-training stability in language models with pre-layer normalization, given that shallower layers are more prone to gradient explosion (section 2.2). Moreover, we propose Multi-head Low-Rank Attention (MLRA) as an architecture to alleviate such instability by limiting the exponential growth of output embedding variance, thereby preventing the gradient explosion (section 3.2). Empirical results on GPT-2 with MLRA demonstrate increased stability and lower perplexity, particularly in deeper models.

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

↑