paper-with-me

홈 › Papers

BASIS: Balanced Activation Sketching with Invariant Scalars for "Ghost Backpropagation"

2026-03-05 · Vladimer Khasia arxiv

The activation memory required for exact backpropagation scales linearly with network depth, context length, and feature dimensionality, forming an O(L * BN ) spatial bottleneck (where B is the sequence-batch cardinality and N is the feature dimension). This constraint historically throttles the scaling of deep neural networks. While randomized automatic differentiation attempts to mitigate this, it historically suffers from catastrophic variance. In this paper, we introduce BASIS (Balanced Activation Sketching with Invariant Scalars), an efficient backpropagation algorithm that fully decouples activation memory from the batch and sequence dimensions. BASIS propagates the exact error signal (dX) to preserve flawless gradient flow, but computes the weight updates (dW) using massively compressed rank-R tensors. To solve the foundational instability of sketched gradients, we propose two novel mechanisms: Balanced Hashing, which strictly eliminates off-diagonal collision variance, and Invariant Scalars, a principled bias-variance tradeoff that deterministically preserves the exact continuous energy norm of the spatial geometry. Theoretically, BASIS reduces activation memory to O(L * RN ) and heavily decreases the backward pass matrix-multiplication footprint. Empirically, training a GPT architecture for 50,000 steps validates our theoretical guarantees: at R = 32, BASIS achieves parity with (and marginally outperforms) exact backpropagation validation loss (6.575 vs. 6.616), acting as an implicit regularizer. Remarkably, the stabilized magnitude trajectory allows the model to converge smoothly even under extreme spatial compression (R = 1), proving the extreme robustness of the estimator. The code is available at https://github.com/VladimerKhasia/basis

📄 PDF Abstract BibTeX arXiv:2604.16324

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Sketching with Spherical Designs for Noisy Data Fitting on Spheres

2023-03-08 · Shao-Bo Lin, Di Wang, Ding-Xuan Zhou

This paper proposes a sketching strategy based on spherical designs, which is applied to the classical spherical basis function approach for massive spherical data fitting. We conduct theoretical analysis and numerical v…

A simple equivariant machine learning method for dynamics based on scalars

2021-10-07 · Weichi Yao, Kate Storey-Fisher, David W. Hogg, Soledad Villar

Physical systems obey strict symmetry principles. We expect that machine learning methods that intrinsically respect these symmetries should have higher prediction accuracy and better generalization in prediction of phys…

BIG-bench Machine LearningPrediction

Matrix sketching for supervised classification with imbalanced classes

2019-12-02 · Roberta Falcone, Angela Montanari, Laura Anderlucci

Matrix sketching is a recently developed data compression technique. An input matrix A is efficiently approximated with a smaller matrix B, so that B preserves most of the properties of A up to some guaranteed approximat…

ClassificationData CompressionGeneral Classification

Randomized Matrix Sketching for Neural Network Training and Gradient Monitoring

2025-10-01 · Harbir Antil, Deepanshu Verma arxiv

Neural network training relies on gradient computation through backpropagation, yet memory requirements for storing layer activations present significant scalability challenges. We present the first adaptation of control…

Path Space for Recurrent Neural Networks with ReLU Activations

2019-09-25 · Yue Wang, Qi Meng, Wei Chen, YuTing Liu 외

It is well known that neural networks with rectified linear units (ReLU) activation functions are positively scale-invariant (i.e., the neural network is invariant to positive rescaling of weights). Optimization algorith…