Towards Memory-Efficient Neural Networks via Multi-Level in situ Generation

Jiaqi Gu, Hanqing Zhu, Chenghao Feng, Mingjie Liu, Zixuan Jiang, Ray T. Chen, David Z. Pan · DOI

The Memory Wall in Modern AI

As Deep Neural Networks (DNNs) scale, they increasingly encounter the "memory wall"—a performance bottleneck where the energy and time required for data movement between memory and processing units far exceed the costs of computation itself. While emerging hardware like silicon photonics and ReRAM-based analog accelerators offer "speed-of-light" computational potential, their overall system efficiency remains tethered to slow, power-hungry memory interfaces.

This paper proposes a paradigm shift: instead of storing and loading massive weight matrices, why not store a fraction of the data and generate the rest in situ (on-the-fly)? By leveraging the ultra-fast nature of analog computing, the authors introduce a framework that trades off redundant memory transactions for high-speed on-chip computations.

Multi-Level In Situ Generation

The core of the proposed framework is a multi-level weight generation mechanism that exploits structural redundancies within DNNs. Rather than treating weights as independent values, the authors decompose them based on two types of correlation:

  1. Intra-kernel Correlation: Within a single convolutional kernel, different channels often exhibit high similarity. These can be represented as combinations of a low-dimensional channel basis ($U_i$) and coefficients ($W_i^b$).
  2. Cross-kernel Correlation: Redundancy also exists across different kernels. By sharing bases ($V$) across kernels, the required storage is further compressed.
Decomposition of weight matrices into intra-kernel and cross-kernel components.

By loading only these small, low-bitwidth "basis" and "coefficient" matrices, the system reconstructs the full weight matrix $W$ using cascaded analog operations. This approach effectively bypasses the need to move large, high-precision weight tensors from off-chip memory.

Hardware-Software Co-Design

The true power of this method is realized in the context of Optical Neural Networks (ONNs). In the photonic domain, computation (matrix-vector multiplication) occurs with picosecond-level delays. Loading a weight from SRAM, by contrast, takes nanoseconds.

Proposed memory-efficient Optical Neural Network (ONN) architecture.

The authors propose a Multi-Level in-situ Weight Generator that sits between the local buffer and the Photonic MVM unit. This generator uses ultra-fast photonic weight banks to perform the reconstruction. Because analog units can be cascaded, high-resolution weights are recovered from low-resolution components without the power overhead of multiple digital-to-analog conversions.

To maintain accuracy under such heavy compression, a two-stage training flow is employed. A pre-trained teacher model is projected into the low-rank student space, followed by quantization-aware knowledge distillation. A unique orthogonality penalty is applied during training to ensure the generated weight space remains diverse and high-quality.

Experimental Results

The framework was rigorously tested across various benchmarks, from CIFAR-10 to ImageNet, and tasks including classification and object detection.

  • Efficiency Gains: The method achieved a 10–20× boost in memory efficiency compared to standard DNN designs. In a photonic case study, it eliminated approximately 97% of weight load latency.
  • System Performance: On ResNet-18/ImageNet, simulation results showed a 27.2% reduction in overall latency and an 85.7% reduction in total energy consumption.
  • Accuracy Preservation: Despite extreme compression, accuracy remained competitive. For instance, on CIFAR-10, the model achieved 93.7% accuracy while using only ~1.3% of the original parameters.

Conclusion and Future Outlook

This work demonstrates that in the era of ultra-fast accelerators, computation is "cheaper" than communication. By rethinking weight storage as a generation problem rather than a retrieval problem, the authors provide a viable path to breaking the memory wall.

Future research directions include automating the selection of layer-specific basis sizes through Neural Architecture Search (NAS) and integrating this framework with aggressive activation quantization to further optimize the data path.

Summary updated

BibTeX
@inproceedings{gu2021towards,
  author = {Jiaqi Gu and Hanqing Zhu and Chenghao Feng and Mingjie Liu and Zixuan Jiang and Ray T. Chen and David Z. Pan},
  title = {{Towards Memory-Efficient Neural Networks via Multi-Level in situ Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00518},
}
Figure