Backpropagation's main limitation is its need to store intermediate activations (residuals) during the forward pass, which restricts the depth of trainable networks. This raises a fundamental question: can we avoid storing these activations? We address this by revisiting the structure of gradient computation. Backpropagation computes gradients through a sequence of vector-Jacobian products, an operation that is generally irreversible. The lost information lies in the cokernel of each layer's Jacobian. We define submersive networks -- networks whose layer Jacobians have trivial cokernels -- in which gradients can be reconstructed exactly in a forward sweep without storing activations. For non-submersive layers, we introduce fragmental gradient checkpointing, which records only the minimal subset of residuals necessary to restore the cotangents erased by the Jacobian. Central to our approach is a novel operator, the vector-inverse-Jacobian product (vijp), which inverts gradient flow outside the cokernel. Our mixed-mode algorithm first computes input gradients with a memory-efficient reverse pass, then reconstructs parameter gradients in a forward sweep using the vijp, eliminating the need to store activations. We implement this method in Moonwalk and show that it matches backpropagation's runtime while training networks more than twice as deep under the same memory budget.
Nesting Forward Automatic Differentiation for Memory-Efficient Deep Neural Network Training
Shanghai Jiao Tong University(上海交通大学);Shanghai Qi Zhi Institute(上海期智研究院);Alibaba Group(阿里巴巴集团);Microsoft Research(微软研究院);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR))
Randomized Forward Mode of Automatic Differentiation For Optimization Algorithms
Division of Applied Mathematics, Brown University(布朗大学应用数学系);Department of Mathematics, North Carolina State University(北卡罗来纳州立大学数学系);Mathematical Institute for Data Science, Pohang University of Science and Technology (POSTECH)(浦项科技大学数据科学数学研究所)
Scaling up and Stabilizing Differentiable Planning with Implicit Differentiation
Khoury College of Computer Sciences, Northeastern University(东北大学Khoury计算机科学学院);Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Shanghai Qi Zhi Institute(上海期智研究院)
On the complexity of nonsmooth automatic differentiation
Toulouse School of Economics(图卢兹经济学院);Université de Toulouse(图卢兹大学);Thales LAS France(法国泰勒斯激光系统公司);IRIT, CNRS(法国国家科学研究中心信息与电信研究所);Institut Universitaire de France (IUF)(法国大学研究院)
Training Feedback Spiking Neural Networks by Implicit Differentiation on the Equilibrium State
Peking University(北京大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院);Center for Data Science, Academy for Advanced Interdisciplinary Studies, Peking University(北京大学前沿交叉学科研究院数据科学研究中心);Pazhou Lab(琶洲实验室)
Local learning for stable backpropagation-free neural network training towards physical learning
Department of Materials Science and Engineering, Delft University of Technology(材料科学与工程系,代尔夫特理工大学);Department of Precision and Microsystems Engineering, Delft University of Technology(精密与微系统工程系,代尔夫特理工大学);Department of Intelligent Systems, Delft University of Technology(智能系统系,代尔夫特理工大学)
Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation
Stanford University(斯坦福大学);University of California, Los Angeles(加州大学洛杉矶分校);LightSpeed Studios, Tencent America(腾讯美国光速工作室);The University of Utah(犹他大学)
VertAX: a differentiable vertex model for learning epithelial tissue mechanics
Center for Interdisciplinary Research in Biology (CIRB), Collège de France, Université PSL, CNRS, INSERM(跨学科生物学研究中心(CIRB),法兰西公学院,巴黎文理研究大学,法国国家科学研究中心,法国国家健康与医学研究院);Center for Integrative Biology (CBI), University of Toulouse, CNRS(整合生物学中心(CBI),图卢兹大学,法国国家科学研究中心);Center for Life Nano & Neuro Science, IIT(生命纳米与神经科学中心,意大利技术研究院);Institute of Heritage Science, CNR(遗产科学研究所,意大利国家研究委员会);Department of Physics, Università Sapienza(物理系,罗马大学);Google DeepMind(谷歌DeepMind)
An automatic-differentiation framework for time-lapse electrical resistivity tomography inversion of hydrologic dynamics
School of Geosciences and Info-physics, Central South University(中南大学地球科学与信息物理学院);School of Earth, Environment, and Sustainability, University of Iowa(爱荷华大学地球、环境与可持续发展学院);School of Management Science and Engineering, Hunan University of Technology and Business(湖南工商大学管理科学与工程学院)
BIFOLD – Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所);LVMT, ENPC, Institut Polytechnique de Paris, Univ Gustave Eiffel(法国国立路桥学校,巴黎理工学院,古斯塔夫·埃菲尔大学);Machine Learning Group, Technical University of Berlin(柏林工业大学机器学习组)
Automatic Differentiation of Programs with Discrete Randomness
Massachusetts Institute of Technology(麻省理工学院);Chalmers University of Technology(查尔姆斯理工大学);University of Gothenburg(哥德堡大学);University of Basel(巴塞尔大学);Julia Computing Inc.(朱莉娅计算公司);Pumas-AI Inc.(Pumas-AI公司)
Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院);Peking University(北京大学);Peng Cheng Laboratory(鹏城实验室)
DOF: Accelerating High-order Differential Operators with Forward Propagation
National Key Laboratory of General Artificial Intelligence, Peking University(北京大学通用人工智能国家重点实验室);California Institute of Technology(加州理工学院);Stanford University(斯坦福大学);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心)
SPIDE: A Purely Spike-based Method for Training Feedback Spiking Neural Networks
Peking University(北京大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院);Peng Cheng Laboratory(鹏城实验室)