Manuscript Offprint

arXiv:2609.01550

A Mathematical Theory of Reusable Neural Bases for Network Compression

Binshuai Wang

ABSTRACT

As large AI models become increasingly prevalent across a wide range of applications, memory cost has become a critical bottleneck in both training and inference. To mitigate this issue, we introduce the Linear Reusable Neural Bases Architecture (LRNBA), a novel framework aimed at improving parameter efficiency and reducing memory cost. Inspired by recurrent neural network (RNN) designs, the core idea of our approach is to represent each network block as a linear combination of a shared set of neural bases, thereby enjoying highly network compression rate while maintaining stable training. The proposed architecture allows for the construction of significantly wider and deeper networks under the same parameter budget. Extensive experiments demonstrate that our model achieves comparable or even faster convergence and lower loss than classical architectures, while maintaining stable training dynamics.

1 INTRODUCTION

Large AI models have attracted increasing attention in the machine learning community, since they outperform smaller models across a broad range of domains (Brown et al., 2020; Hoffmann et al., 2022). As indicated by empirical scaling laws (Kaplan et al., 2020; Hoffmann et al., 2022), increasing the number of model parameters can substantially improve the approximation ability of neural networks. In alignment with these observations, modern AI models are often designed at increasingly large scales, containing billions or even trillions of parameters and requiring hundreds or thousands of GPUs or TPUs for training and deployment (Brown et al., 2020; Fedus et al., 2022).

Although large AI models have demonstrated remarkable performance, training and deploying them remain challenging, especially for researchers and business owners who face substantial limitations in computational resources. One of the major bottlenecks is the memory requirement. Training or deploying a large-scale model often requires hundreds or even thousands of GPUs operating simultaneously, while the high price of GPUs and TPUs further increases the overall financial burden (Narayanan et al., 2021). Overall, these resource and hardware requirements limit the ability of many researchers and organizations to further develop and deploy large AI models.

A promising approach to addressing this challenge is to reuse the same neural network modules multiple times, thereby reducing the number of distinct parameters and the associated memory cost. This idea is closely related to recurrent neural networks (RNNs), which repeatedly apply a shared transformation across different time steps or positions (Elman, 1990; Jordan, 1997). Moreover, following the philosophy that “compression is intelligence”, networks that share parameters across blocks should attain higher compression than those with independent parameters, and thereby typically exhibit better generalization ability. However, classical RNNs often suffer from optimization difficulties, as repeated transformations can result in unstable gradient propagation, including vanishing or exploding gradients. Consequently, many large-scale AI models are commonly designed with independent layers and intergrated only limited reuse mechanisms for internal components.

In light of these observations, a natural question arises:

Can we design a architecture that integrates the reuse mechanism of RNNs to improve parameter efficiency and reduce memory costs, while maintaining training stability and comparable performance?

Inspired by the theory of linear bases in linear algebra and sinusoidal bases in Fourier analysis, we propose a novel model architecture, the Linear Reusable Neural Bases Architecture (LRNBA), which implements an internal reuse mechanism to improve parameter efficiency and reduce memory cost. By dynamically representing each network block as a linear combination of reusable neural bases, our model allows the same neurons to be reused multiple times, thereby dramatically reducing the parameter count while maintaining training stability and achieving comparable or even better performance. Moreover, to further enhance parameter efficiency, we extend the neural bases concept to other types of network components, including attention and projection blocks, and introduce a technique for sub-neural reuse. Experimental results indicate that our architecture achieves comparable or even faster convergence and a lower final loss than the classical architectures, while maintaining stable training and a substantially reduced parameter count.

Contributions. The main contributions of this work are summarized as follows:

(a) Grounded in the principles of linearity and reuse, we introduce a simple yet effective architecture, the Linear Reusable Neural Bases Architecture (LRNBA), designed to improve parameter and neuron efficiency while reducing memory costs. Compared to classical neural networks with fully independent parameters, our model requires less memory while maintaining stable training and achieving comparable or even better training performance and generalization.

(b) We introduce a novel elementary concept in neural network design—the neural basis—along with a geometric interpretation from the perspective of vector fields. This concept is core to our theoretical framework, and we extend it to other network components, including attention neural bases and projection neural bases. Furthermore, we also present the notion of sub-neural reuse along with its associated implementation techniques.

(c) Unlike classical models, whose parameter count depends on both depth and width, the parameter count of our proposed model is almost decoupled from the depth dimension and depends primarily on the width dimension. This enables the design of substantially wider and deeper networks under a limited memory budget, while providing more flexibility to accommodate practical requirements. Furthermore, our experiments show that depth expansion is more critical than width expansion for achieving high precision, and our architecture naturally supports the construction of deeper models.

Organization. The remainder of this paper is organized as follows. Section 2 provides a basic review of related work. Section 3 revisits several key concepts and formulations in deep learning theory. Section 4 details our proposed architecture, the associated training strategy, and further improvements to the reuse mechanism and parameter efficiency. Section 5 discusses the advantages and limitations of our model. Section 6 presents several computational experiments to validate our model.

Notations. The function σ(⋅)\sigma(\cdot) represents an element-wise nonlinear activation, ϕ(⋅)\phi(\cdot) denotes a neural basis function, and R(⋅)R(\cdot) denotes a residual block. The notation ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle represents the inner product, and α\alpha denotes a scalar coefficient. Let dd denote the embedding dimension, mm the width (i.e., hidden dimension or number of neurons), LL the network depth, HH the number of attention heads, and TT the sequence length of tokens. For a residual feedforward block, (S,b)(S,b) denotes the sensor parameters, while PP denotes the response parameters. For a single neural basis, or the jj-th neuron, (sj,bj)(s_j,b_j) denotes the sensor parameters, while pjp_j denotes the response parameters.

References (36)