Arithmetic with Language Models: from Memorization to Computation
University of Bologna(博洛尼亚大学)
Davide Maltoni, Matteo Ferrara
备注:
The article has been accepted for publication in Elsevier Neural Networks journal. The final version is available on the Elsevier ScienceDirect platform
A better understanding of the emergent computation and problem-solving capabilities of recent large language models is of paramount importance to further improve them and broaden their applicability. This work investigates how a language model, trained to predict the next token, can perform arithmetic computations generalizing beyond training data. Binary addition and multiplication constitute a good testbed for this purpose, since they require a very small vocabulary and exhibit relevant input/output discontinuities making smooth input interpolation ineffective for novel data. We successfully trained a light language model to learn these tasks and ran a number of experiments to investigate the extrapolation capabilities and internal information processing. Our findings support the hypothesis that the language model works as an Encoding-Regression-Decoding machine where the computation takes place in the value space once the input token representation is mapped to an appropriate internal representation.
Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMs
University of Maryland(马里兰大学);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分支);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(蒂宾根人工智能中心)
The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate It
DISI, University of Trento(特伦托大学DISI中心);MaiNLP, Center for Information and Language Processing, LMU Munich(慕尼黑大学信息与语言处理中心);Munich Center for Machine Learning (MCML), Munich, Germany(慕尼黑机器学习中心);Free University of Bozen-Bolzano, Italy(博兹纳自由大学)
Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noise
Taylor Lab, Huawei Technologies Co., Ltd.(华为技术有限公司泰勒实验室);Key Laboratory of Interdisciplinary Research of Computation and Economics, Shanghai University of Finance and Economics(上海财经大学计算与经济交叉研究重点实验室)
University of Chicago(芝加哥大学);Argonne National Laboratory(阿贡国家实验室);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Dartmouth College(达特茅斯学院);International Computer Science Institute(国际计算机科学研究所);University of California, Berkeley(加州大学伯克利分校)
MAnchors: Memorization-Based Acceleration of Anchors via Rule Reuse and Transformation
School of Computer Science, Peking University, Beijing, China(北京大学计算机科学学院);Key Lab of High Confidence Software Technologies(Peking University), Ministry of Education, Beijing, China(高可信软件技术重点实验室(北京大学))
Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning
Huazhong University of Science and Technology(华中科技大学);Zhejiang University(浙江大学);King Abdullah University of Science and Technology(国王阿卜杜勒阿齐兹大学);University of Alberta(阿尔伯塔大学);Chongqing University(重庆大学);Singapore Management University(新加坡管理学院)