arXiv:2610.23145cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23145

Local proxies for memory-efficient training

Wu S. Zihan, Brian A. Yuan, Guillaume Bellec

Wu S. Zihan ∗^{*}

School of Computer and

Communication Sciences

EPFL

Lausanne, Switzerland

zihan.wu@epfl.ch

Brian A. Yuan ∗^{*}

Machine Learning Research

TU Wien

Vienna, Austria

brian.yuan@tuwien.ac.at

Guillaume Bellec

Machine Learning Research

TU Wien

Vienna, Austria

guillaume.bellec

@tuwien.ac.at

ABSTRACT

Local learning algorithms can reshape resource requirements of artificial intelligence. The memory bottleneck of standard end-to-end backpropagation lies in the need to store all network activations until the loss gradient has been propagated back through. Local learning avoids this, but typically at a cost in accuracy. We study how to achieve accurate and memory efficient local learning in transformers. For each transformer block, we train a local proxy network to predict the global network output via distillation. Gradients can be independently propagated through this local proxy while estimating well the backpropagation gradients. In theory, this approach is exact for deep linear networks; in non-linear residual models, the gradient error can be bounded when using the appropriate residual proxy. We verify this numerically and demonstrate that optimizing the distillation loss improves gradient estimation. Evaluating the performance of proxy propagation on CIFAR-100 in vision transformers, we find that it achieves a better accuracy/memory trade-off compared to other local algorithms. Finally, we show that the method is further relevant for fine-tuning large language models on a small memory budget. Our method trains faster and achieves higher performance than memory-efficient zeroth-order learning algorithms with comparable memory cost.

1 INTRODUCTION

Conventionally, intelligence emerges in neural network models from end-to-end training with backpropagation (Rumelhart et al., 1986). By design, backpropagation induces a backward locking problem (Jaderberg et al., 2017). A forward pass first computes the network activations from inputs to outputs and then the backward pass propagates gradients in reverse order. In the meantime, network activations need to be stored, increasing memory requirements with network depth. The large memory consumption is a major manufacturing cost and increases the energy consumption of training datacenters (Gholami et al., 2024). When training large language models (LLMs) under a limited memory budget, the network depth and sequence length that fit in memory therefore constrain the range of tasks and the reasoning capability of the model.

Historically inspired by neuroscience research (Hebb, 1949; Markram et al., 2011; Gerstner et al., 2018), local learning is one way of avoiding the backward locking problem. Since the brain appears to be a distributed network without a precise backward gradient communication pathway, it is natural to suppose that biological sub-networks mainly learn from their immediate inputs and internal representations (Lillicrap et al., 2020). Yet few local learning algorithms have been scaled to transformers, and attempts so far have had limited success (Filipovich et al., 2022). Most of these algorithms were not designed to approximate the backpropagated gradient, so they struggle in deep architectures; on top of this, those designed for biological plausibility often come with an increase in training time. Within the scope of local learning, we seek an alternative to backpropagation that is mathematically grounded and memory efficient without compromising training time.

Towards this goal, we define locality by partitioning a large transformer into blocks, with the gradient computation in each block decoupled in the sense of Jaderberg et al. (2017): block parameters are

∗^{*}Equal contribution from WS Zihan and BA Yuan.

A Algorithm schematic

Figure

B VRAM vs. accuracy trade-off

Figure

Figure 1: ProxyProp and its accuracy/memory trade-off. 1A: In ProxyProp, when updating block fℓf^{\ell}, only activations of that block need to be stored. The loss gradients are propagated through a proxy function instead of the other blocks. 1B: Memory and accuracy tradeoff for ProxyProp and other local methods; the 12-layer vision transformer (ViT) is either partitioned into 3, 6 or 12 blocks.

updated immediately after the forward pass of the block. Hence, we say that learning is “local” if it needs to store activations from only one block at a time in memory. Additionally, when the block updates are fully independent, we say that the training algorithm is “unlocked”, making possible an efficient form of model parallelism (Belilovsky et al., 2020). Here, we follow a principled approach to estimate global gradients locally. To each block we equip a local proxy network with the objective of predicting the global network output via distillation. Gradients of each block are then computed with local backpropagation through the proxy instead of the downstream blocks. This way, proxy propagation (ProxyProp) offers theoretical insights that translate into a practical algorithm:

• Theory: ProxyProp is an approximation of the global backpropagation. Despite the locality and the simplicity of the prediction objective, a linear proxy implicitly estimates the expected network Jacobian, and is therefore exact in deep linear networks.

• Theory: For non-linear residual networks, when the proxy follows a residual parameterization, the local gradients are exact at initialization and can achieve a bounded gradient estimation error when the skip connections of the network are dominating.

• Simulation: For supervised classification in vision transformers (ViT), across various network partitionings, ProxyProp offers a better trade-off between memory and accuracy over other local algorithms.

• Simulation: ProxyProp enables memory-efficient fine-tuning of LLMs, achieving higher performance than zeroth-order optimization techniques (MeZO) at comparable memory cost (even when MeZO uses 8x more compute time).

References (62)