[Paper Review] ACDC: A Structured Efficient Linear Layer
ACDC proposes a structured efficient linear layer (SLL) that replaces standard dense linear layers with a parameter-efficient architecture based on diagonal matrices and the discrete cosine transform (DCT), reducing parameters from O(N²) to O(N) and operations from O(N²) to O(N log N). The method enables deep, differentiable cascades of these layers that approximate full linear transformations while maintaining high accuracy in image classification tasks, demonstrating strong performance in mobile and parameter-constrained settings.
The linear layer is one of the most pervasive modules in deep learning representations. However, it requires $O(N^2)$ parameters and $O(N^2)$ operations. These costs can be prohibitive in mobile applications or prevent scaling in many domains. Here, we introduce a deep, differentiable, fully-connected neural network module composed of diagonal matrices of parameters, $\mathbf{A}$ and $\mathbf{D}$, and the discrete cosine transform $\mathbf{C}$. The core module, structured as $\mathbf{ACDC^{-1}}$, has $O(N)$ parameters and incurs $O(N log N )$ operations. We present theoretical results showing how deep cascades of ACDC layers approximate linear layers. ACDC is, however, a stand-alone module and can be used in combination with any other types of module. In our experiments, we show that it can indeed be successfully interleaved with ReLU modules in convolutional neural networks for image recognition. Our experiments also study critical factors in the training of these structured modules, including initialization and depth. Finally, this paper also provides a connection between structured linear transforms used in deep learning and the field of Fourier optics, illustrating how ACDC could in principle be implemented with lenses and diffractive elements.
Motivation & Objective
- To address the high parameter and computational cost of standard dense linear layers in deep neural networks, especially in mobile and resource-constrained applications.
- To design a differentiable, structured linear layer that maintains expressive power while drastically reducing model size and inference cost.
- To enable deep cascades of structured linear layers that can be trained end-to-end with stochastic gradient descent.
- To explore the feasibility of implementing such layers in novel hardware, including photonic devices, via complex-valued extensions.
Proposed method
- The core ACDC module is structured as A·C·D·C⁻¹, where A and D are learnable diagonal matrices and C is the discrete cosine transform (DCT) matrix.
- The DCT and its inverse are computed in O(N log N) time using fast algorithms, enabling efficient forward and backward passes.
- The method leverages the fact that DCT diagonalizes circulant matrices, allowing efficient parameterization of structured linear transformations.
- The architecture supports deep stacking of ACDC layers, enabling hierarchical feature transformations similar to deep feedforward networks.
- The approach is compatible with standard deep learning components like ReLU and convolutional layers, allowing seamless integration into CNNs.
- A simple but critical initialization scheme is proposed to stabilize training of deep cascades of ACDC layers.
Experimental results
Research questions
- RQ1Can a structured linear layer with O(N) parameters and O(N log N) operations approximate the representational capacity of a standard O(N²) linear layer?
- RQ2Can deep cascades of such structured layers be successfully trained using stochastic gradient descent with proper initialization?
- RQ3How does the performance of ACDC compare to standard fully connected layers and other SELLs in image classification benchmarks?
- RQ4What are the key hyperparameters and initialization strategies that enable stable training of deep ACDC architectures?
- RQ5Can ACDC be extended to photonic hardware via complex-valued implementations for ultra-low-power inference?
Key findings
- ACDC achieves a 250x reduction in parameters (from 41M to ~166K) in the fully connected layers of CaffeNet while maintaining comparable top-1 accuracy.
- Deep cascades of ACDC layers can be trained effectively with SGD when using the proposed initialization scheme, enabling stable optimization beyond a few layers.
- The method outperforms shallow SELLs like Fastfood and Adaptive Fastfood in terms of parameter efficiency and final model accuracy on ImageNet.
- The ACDC module maintains high performance when interleaved with ReLU and convolutional layers in a CNN, demonstrating compatibility with standard deep learning pipelines.
- Theoretical and empirical results confirm that ACDC layers can approximate full linear transformations with high fidelity, especially when stacked deeply.
- The paper identifies a path toward photonic implementation of complex-valued ACDC variants, suggesting potential for ultra-low-energy inference hardware.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.