BSFA: Leveraging the Subspace Dichotomy to Accelerate Neural Network Training
Wenjie Zhou, Bohan Wang, Wei Chen, Xueqi Cheng
TL;DR
This work identifies a fundamental subspace dichotomy in neural network optimization, where updates in the dominant Hessian directions stabilize training while bulk-subspace updates primarily drive convergence. It introduces BSFA, a plug-in accelerator that differentially scales updates via a projector $\mathcal{P}_{\alpha,\gamma}(\theta)$, with estimators (PPE/LPE) to efficiently approximate dominant directions and a block-wise variant (BPPE) for scalability. The approach yields practical speedups (≈2× on large Transformers and ViT, up to 4× in controlled settings) and maintains or improves accuracy, aided by memory-conscious design and optional 4-bit quantization. These results suggest that explicit, subspace-aware update modulation can substantially reduce training time for modern, large-scale models, with clear directions for reducing memory overhead in future work.
Abstract
Recent studies \citep{gur2018gradient,song2024does, wen2024understanding} highlight a fundamental dichotomy in deep learning optimization: Although parameter updates along the top eigendirections of the loss Hessian (Dom-space) capture most of the update magnitude, they often contribute minimally to loss reduction. In contrast, updates in the orthogonal component (Bulk-space) have smaller magnitudes but drive most learning progress. In this work, we further advance the understanding of this phenomenon and introduce the \textbf{Bulk-Space-Filtration-Accelerator (BSFA)}, a novel plug-and-play framework. BSFA accelerates training by differentially scaling update components projected onto these distinct subspaces, simultaneously enhancing stability by moderating updates in the dominant subspace and boosting convergence speed by amplifying those in the bulk-space. To ensure BSFA is both practical and scalable for contemporary large models, we introduce two key innovations: an efficient estimator using Principal Component Analysis (PCA) on historical updates for fast subspace estimation, and a block-wise strategy that applies this estimation on a per-parameter-block basis. These designs make BSFA computationally tractable and highly effective. We demonstrate BSFA's acceleration across various tasks, notably achieving approximately 2$\times$ speedup when pre-training LLaMA-72M on WikiText-103 and LLaMA-134M on OpenWebText compared to vanilla AdamW.
