Woojin Chung, Jiwoo Hong, Na Min An, James Thorne, Se-Young Yun
{"title":"通过减少嵌入变异性实现稳定的语言模型预训练","authors":"Woojin Chung, Jiwoo Hong, Na Min An, James Thorne, Se-Young Yun","doi":"arxiv-2409.07787","DOIUrl":null,"url":null,"abstract":"Stable pre-training is essential for achieving better-performing language\nmodels. However, tracking pre-training stability by calculating gradient\nvariance at every step is impractical due to the significant computational\ncosts. We explore Token Embedding Variability (TEV) as a simple and efficient\nproxy for assessing pre-training stability in language models with pre-layer\nnormalization, given that shallower layers are more prone to gradient explosion\n(section 2.2). Moreover, we propose Multi-head Low-Rank Attention (MLRA) as an\narchitecture to alleviate such instability by limiting the exponential growth\nof output embedding variance, thereby preventing the gradient explosion\n(section 3.2). Empirical results on GPT-2 with MLRA demonstrate increased\nstability and lower perplexity, particularly in deeper models.","PeriodicalId":501030,"journal":{"name":"arXiv - CS - Computation and Language","volume":"49 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Stable Language Model Pre-training by Reducing Embedding Variability\",\"authors\":\"Woojin Chung, Jiwoo Hong, Na Min An, James Thorne, Se-Young Yun\",\"doi\":\"arxiv-2409.07787\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Stable pre-training is essential for achieving better-performing language\\nmodels. However, tracking pre-training stability by calculating gradient\\nvariance at every step is impractical due to the significant computational\\ncosts. We explore Token Embedding Variability (TEV) as a simple and efficient\\nproxy for assessing pre-training stability in language models with pre-layer\\nnormalization, given that shallower layers are more prone to gradient explosion\\n(section 2.2). Moreover, we propose Multi-head Low-Rank Attention (MLRA) as an\\narchitecture to alleviate such instability by limiting the exponential growth\\nof output embedding variance, thereby preventing the gradient explosion\\n(section 3.2). Empirical results on GPT-2 with MLRA demonstrate increased\\nstability and lower perplexity, particularly in deeper models.\",\"PeriodicalId\":501030,\"journal\":{\"name\":\"arXiv - CS - Computation and Language\",\"volume\":\"49 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-12\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Computation and Language\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.07787\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Computation and Language","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.07787","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Stable Language Model Pre-training by Reducing Embedding Variability
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.