Large neural networks spend most computation on floating point tensor multiplications. In this work, we find that a floating point multiplier can be approximated by one integer adder with high precision. We propose the linear-complexity multiplication L-Mul algorithm that approximates floating point number multiplication with integer addition operations. The new algorithm costs significantly less computation resource than 8-bit floating point multiplication but achieves higher precision. Compared to 8-bit floating point multiplications, the proposed method achieves higher precision but consumes significantly less bit-level computation. Since multiplying floating point numbers requires substantially higher energy compared to integer addition operations, applying the L-Mul operation in tensor processing hardware can potentially reduce 95% energy cost by element-wise floating point tensor multiplications and 80% energy cost of dot products. We calculated the theoretical error expectation of L-Mul, and evaluated the algorithm on a wide range of textual, visual, and symbolic tasks, including natural language understanding, structural reasoning, mathematics, and commonsense question answering. Our numerical analysis experiments agree with the theoretical error estimation, which indicates that L-Mul with 4-bit mantissa achieves comparable precision as float8_e4m3 multiplications, and L-Mul with 3-bit mantissa outperforms float8_e5m2. Evaluation results on popular benchmarks show that directly applying L-Mul to the attention mechanism is almost lossless. We further show that replacing all floating point multiplications with 3-bit mantissa L-Mul in a transformer model achieves equivalent precision as using float8_e4m3 as accumulation precision in both fine-tuning and inference.
Signal Analysis and Interpretation Laboratory(信号分析与解释实验室);Department of Electrical and Computer Engineering(电气与计算机工程系);University of Southern California(南加州大学)
Natural Language Syntax Complies with the Free-Energy Principle
McGovern Medical School, University of Texas Health Science Center(德克萨斯大学健康科学中心麦戈文医学院);Texas Institute for Restorative Neurotechnologies, University of Texas Health Science Center(德克萨斯大学健康科学中心德克萨斯恢复性神经技术研究所);University College London(伦敦大学学院);UCL Queen Square Institute of Neurology(伦敦大学学院皇后广场神经病学研究所)
Steering Speech-Language Models: Training-Free Task Specialization via Contrastive Activation Addition
Univ Toulon, Aix Marseille Univ, LIS, CNRS(土伦大学,艾克斯-马赛大学,LIS,法国国家科学研究中心);Mila – Quebec AI Institute(Mila – 魁北克人工智能研究所);Idiap Research Institute(Idiap 研究所);Sapienza University of Rome(罗马大学);Brno University of Technology(布尔诺理工大学);pyannoteAI(pyannoteAI 公司);Concordia University(康考迪亚大学);CNRS, ILLS(法国国家科学研究中心,ILLS)
Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis--Hastings
Carnegie Mellon University(卡内基梅隆大学);Deepmind(深度思维);UC San Diego(加州大学圣地亚哥分校)
虽然最近的工作表明,由无处不在的掩蔽语言建模(MLM)目标训练的模型的分数有效地区分了可能的序列和不可能的序列,但这些MLM是否指定了可能序列空间上的原则概率分布仍然是一个悬而未决的问题。在本文中,我们解释MLMs的能量为基础的序列模型,并提出了两个能源参数化可从训练MLMs。为了正确地从这些模型中抽取样本,我们开发了一个基于Metropolis-Hastings Monte Carlo算法的易处理的抽样方案。在我们的方法中,从用于训练掩蔽语言模型的相同掩蔽条件中提出样本,并且根据目标分布基于它们的能量值来接受或拒绝它们。我们通过探索从这些基于能量的模型中提取的样本的质量来验证所提出的参数化的有效性,这些样本用于开放式无条件生成和机器翻译的条件生成任务。我们从理论上和经验上证明了我们的采样算法,表明掩蔽条件本身不会产生其平稳分布是我们的目标分布的马尔可夫链,并且我们的方法比最近提出的其他无向生成方法生成更高质量的样本(Wang et al.,2019年,Ghazvininejad等人,2019年)。
Mix and Match: Learning-free Controllable Text Generation using Energy Language Models
University of California San Diego(加州大学圣迭戈分校);Toyota Technological Institute at Chicago (TTIC)(芝加哥丰田技术研究院(TTIC))
控制文本生成的最新工作要么需要基于属性的微调的基础语言模型(LM),或限制了参数化的属性映射,以兼容的基础自回归LM。在这项工作中,我们提出了Mix and Match LM,这是一种基于全局分数的可控文本生成方法,它结合了任意预训练的黑盒模型,用于在生成的文本中实现所需的属性,而不涉及任何关于黑盒模型的微调或结构假设。我们将可控生成的任务解释为从基于能量的模型中抽取样本,该模型的能量值是来自黑盒模型的分数的线性组合,黑盒模型分别负责流畅性、控制属性和对任何条件上下文的忠诚度。我们使用Metropolis-Hastings抽样方案从这个基于能量的模型中使用双向上下文和全局属性特征进行抽样。我们验证了我们的方法在各种控制生成和基于风格的文本修订任务的有效性,优于最近提出的方法,涉及额外的训练,微调,或限制性的假设模型的形式。
Energy-Efficient Split Learning for Fine-Tuning Large Language Models in Edge Networks
School of Electronics and Information Engineering, Harbin Institute of Technology(哈尔滨工业大学电子与信息工程学院);Pengcheng Laboratory(鹏城实验室);School of Electronic and Computer Engineering, Peking University(北京大学电子与计算机工程学院)
Efficient Speech Language Modeling via Energy Distance in Continuous Latent Space
Key Laboratory of Intelligent Information Processing Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所智能信息处理重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Pattern Recognition Center, WeChat AI, Tencent Inc(腾讯人工智能研究院模式识别中心);School of Future Science and Engineering, Soochow University(苏州大学未来科学与工程学院)
Interpretable Steering of Large Language Models with Feature Guided Activation Additions
Raffles Science Institute(莱佛士科学学院);Raffles Institution(莱佛士书院);Nous Research(努斯研究机构);Centre for Frontier AI Research (CFAR)(前沿人工智能研究中心);Agency for Science Technology and Research (A*STAR)(新加坡科技研究局)
FeynTune: Large Language Models for High-Energy Theory
Centre for Theoretical Physics, Department of Physics and Astronomy, Queen Mary University of London(伦敦大学玛丽女王学院理论物理中心,物理与天文学系);ITCP & CCTP, Department of Physics, University of Crete(希腊克里特大学物理系ITCP与CCTP);Meta;Amazon(亚马逊公司)