Neural Arithmetic Units
Andreas Madsen, Alexander Rosenberg Johansen
摘要
Neural networks can approximate complex functions, but they struggle to perform exact arithmetic operations over real numbers. The lack of inductive bias for arithmetic operations leaves neural networks without the underlying logic necessary to extrapolate on tasks such as addition, subtraction, and multiplication. We present two new neural network components: the Neural Addition Unit (NAU), which can learn exact addition and subtraction; and the Neural Multiplication Unit (NMU) that can multiply subsets of a vector. The NMU is, to our knowledge, the first arithmetic neural network component that can learn to multiply elements from a vector, when the hidden size is large. The two new components draw inspiration from a theoretical analysis of recently proposed arithmetic components. We find that careful initialization, restricting parameter space, and regularizing for sparsity is important when optimizing the NAU and NMU. Our proposed units NAU and NMU, compared with previous neural units, converge more consistently, have fewer parameters, learn faster, can converge for larger hidden sizes, obtain sparse and meaningful weights, and can extrapolate to negative and small values.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper7
- How Neural Networks Extrapolate: From Feedforward to Graph Neural NetworksKeyulu Xu, Mozhi Zhang, Jingling Li, Simon Shaolei Du 等ICLR 2021 · 被引用 364 次
- MC-LSTM: Mass-Conserving LSTMPieter-Jan Hoedt, Frederik Kratzert, Daniel Klotz, Christina Halmich 等ICML 2021 · 被引用 75 次
- StateFormer: fine-grained type recovery from binaries using generative state modelingKexin Pei, Jonas Guan, Matthew Broughton, Zhongtian Chen 等FSE 2021 · 被引用 53 次
- An Empirical Investigation of Contextualized Number PredictionTaylor Berg-Kirkpatrick, Daniel SpokoynyEMNLP 2020 · 被引用 34 次
- Neural Status RegistersLukas Faber, Roger WattenhoferICML 2023 · 被引用 9 次
相关 Paper
- Neural Power UnitsNiklas Heim, Tomás Pevný, Václav SmídlNeurIPS 2020 · 被引用 14 次
- Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural NetworksArtur Back de Luca, George Giapitzakis, Kimon FountoulakisNeurIPS 2025 · 被引用 4 次
- NACU: A Non-Linear Arithmetic Unit for Neural NetworksGuido Baccelli, Dimitrios Stathis, Ahmed Hemani, Maurizio MartinaDAC 2020 · 被引用 11 次
- Memorization Capacity of Neural Networks with Conditional ComputationErdem KoyuncuICLR 2023
- Floating-Point Neural Networks are Provably Robust Universal ApproximatorsGeonho Hwang, Wonyeol Lee, Yeachan Park, Sejun Park 等CAV 2025
