Diversity of Transformer Layers: One Aspect of Parameter Scaling Laws
Nara Institute of Science and Technology(奈良科学技術大學);RIKEN Center for Advanced Intelligence Project(RIKEN先進 Intelligenceプロジェクト);Chungnam National University(Chungnam國立大學);The University of Tokyo(東京大學);Institute of Science Tokyo(東京科學研究院)
Transformers deliver outstanding performance across a wide range of tasks and are now a dominant backbone architecture for large language models (LLMs). Their task-solving performance is improved by increasing parameter size, as shown in the recent studies on parameter scaling laws. Although recent mechanistic-interpretability studies have deepened our understanding of the internal behavior of Transformers by analyzing their residual stream, the relationship between these internal mechanisms and the parameter scaling laws remains unclear. To bridge this gap, we focus on layers and their size, which mainly decide the parameter size of Transformers. For this purpose, we first theoretically investigate the layers within the residual stream through a bias-diversity decomposition. The decomposition separates (i) bias, the error of each layer's output from the ground truth, and (ii) diversity, which indicates how much the outputs of each layer differ from each other. Analyzing Transformers under this theory reveals that performance improves when individual layers make predictions close to the correct answer and remain mutually diverse. We show that diversity becomes especially critical when individual layers' outputs are far from the ground truth. Finally, we introduce an information-theoretic diversity and show our main findings that adding layers enhances performance only when those layers behave differently, i.e., are diverse. We also reveal the performance gains from increasing the number of layers exhibit submodularity: marginal improvements diminish as additional layers increase, mirroring the logarithmic convergence predicted by the parameter scaling laws. Experiments on multiple semantic-understanding tasks with various LLMs empirically confirm the theoretical properties derived in this study.
Johns Hopkins University(约翰斯·霍普金斯大学);University of Cambridge(剑桥大学);University of Amsterdam(阿姆斯特丹大学);Stockholm University(斯德哥尔摩大学);Calda AI(卡尔达人工智能公司);Capital One(第一资本金融公司);Institut d’Astrophysique de Paris(巴黎天体物理研究所);Flatiron Institute(弗拉蒂伦研究所)
LLMs on the Line: Data Determines Loss-to-Loss Scaling Laws
Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);ELLIS Institute Tübingen(图宾根ELLIS研究所);Tübingen AI Center(图宾根人工智能中心);University of Tübingen(图宾根大学)
Sub-Scaling Laws: On the Role of Data Density and Training Strategies in LLMs
Meituan Inc.(美团公司);The University of Hong Kong(香港大学);Pennsylvania State University(宾夕法尼亚州立大学);Peking University(北京大学);The Hong Kong University of Science and Technology(香港科学与技术大学)
Partially Randomizing Transformer Weights for Dialogue Response Diversity
School of Electrical and Electronic Engineering, Nanyang Technological University(南洋理工大学电气与电子工程学院);Institute for Infocomm Research, A*STAR(新加坡科技研究局信息通信研究所)
Recurrence Boosts Diversity! Revisiting Recurrent Latent Variable in Transformer-Based Variational AutoEncoder for Diverse Text Generation
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京国家信息科学与技术研究中心);Institute for Artificial Intelligence, Tsinghua University(清华大学人工智能研究院);Microsoft Research Asia(微软亚洲研究院);Jiangsu Normal University(江苏师范大学);Jiangsu Collaborative Innovation Center for Language Ability(江苏省语言能力协同创新中心)
Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attention
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Institute for Artificial Intelligence, Tsinghua University(清华大学人工智能研究院);Microsoft Research Asia(微软亚洲研究院);Jiangsu Normal University(江苏师范大学);Jiangsu Collaborative Innovation Center for Language Ability(江苏语言能力协同创新中心)
Department of Computational Biology(计算生物学系);Infosys Center for Artificial Intelligence(Infosys人工智能中心);Center of Excellence in Healthcare(医疗卓越中心);Department of Mathematics(数学系);Department of Computer Science(计算机科学系);Indraprastha Institute of Information Technology Delhi (IIIT-Delhi)(德里印度教徒普拉斯塔信息技术学院(IIIT-Delhi));Foodoscope Technologies Private Limited(Foodoscope技术私人有限公司)
Departamento de Física, Universidade Federal de Pernambuco(物理系,佩纳伯库联邦大学);Instituto Federal de Educação, Ciência e Tecnologia de Pernambuco(巴雷里奥斯佩纳伯库教育科技研究所)
Exploring Sampling Techniques for Generating Melodies with a Transformer Language Model
Institute of Computational Perception, Johannes Kepler University Linz(约翰开普勒林茨大学计算感知研究所);Sony Computer Science Laboratories (CSL)(索尼计算机科学实验室);LIT AI Lab, Linz Institute of Technology(林茨理工学院LIT人工智能实验室)