[Paper Review] DCT-SNN: Using DCT to Distribute Spatial Information over Time for Learning Low-Latency Spiking Neural Networks
This paper proposes DCT-SNN, a novel spiking neural network that uses the Discrete Cosine Transform (DCT) to distribute pixel intensities over time in a structured, energy-efficient manner. By encoding image blocks into DCT coefficients and sequentially feeding basis components to leaky-integrate-and-fire neurons, DCT-SNN reduces inference latency to just 48 timesteps on CIFAR-10, achieving 89.94% top-1 accuracy while enabling a principled trade-off between latency and accuracy via frequency component pruning.
Spiking Neural Networks (SNNs) offer a promising alternative to traditional deep learning frameworks, since they provide higher computational efficiency due to event-driven information processing. SNNs distribute the analog values of pixel intensities into binary spikes over time. However, the most widely used input coding schemes, such as Poisson based rate-coding, do not leverage the additional temporal learning capability of SNNs effectively. Moreover, these SNNs suffer from high inference latency which is a major bottleneck to their deployment. To overcome this, we propose a scalable time-based encoding scheme that utilizes the Discrete Cosine Transform (DCT) to reduce the number of timesteps required for inference. DCT decomposes an image into a weighted sum of sinusoidal basis images. At each time step, the Hadamard product of the DCT coefficients and a single frequency base, taken in order, is given to an accumulator that generates spikes upon crossing a threshold. We use the proposed scheme to learn DCT-SNN, a low-latency deep SNN with leaky-integrate-and-fire neurons, trained using surrogate gradient descent based backpropagation. We achieve top-1 accuracy of 89.94%, 68.3% and 52.43% on CIFAR-10, CIFAR-100 and TinyImageNet, respectively using VGG architectures. Notably, DCT-SNN performs inference with 2-14X reduced latency compared to other state-of-the-art SNNs, while achieving comparable accuracy to their standard deep learning counterparts. The dimension of the transform allows us to control the number of timesteps required for inference. Additionally, we can trade-off accuracy with latency in a principled manner by dropping the highest frequency components during inference.
Motivation & Objective
- To address the high inference latency in Spiking Neural Networks (SNNs), which limits real-time deployment despite their energy efficiency.
- To overcome the limitations of conventional Poisson-based rate coding, which treats all timesteps uniformly and fails to leverage temporal learning capabilities.
- To develop a time-based encoding scheme that meaningfully distributes spatial information across timesteps using a mathematically optimal transform.
- To enable a controllable trade-off between inference latency and accuracy through selective pruning of high-frequency DCT components.
- To train deep SNNs with surrogate gradient backpropagation that match the accuracy of standard ANNs while maintaining low-latency inference.
Proposed method
- The input image is divided into 4×4 spatial blocks, and each block undergoes a 2D Discrete Cosine Transform (DCT) to produce frequency-domain coefficients.
- The DCT coefficients are used to generate basis images via inverse DCT, with each basis representing a sinusoidal frequency component ordered by energy contribution.
- At each timestep, the Hadamard product of the current DCT basis and the corresponding coefficient is fed into an accumulator neuron, which integrates the signal over time.
- The spike-generating neuron integrates the cumulative input from all basis components across timesteps, with the full pixel intensity reconstructed after all 16 components are processed.
- The number of timesteps is controlled by the DCT block size; 4×4 blocks yield 16 timesteps, enabling fine-grained latency control.
- The network is trained using surrogate gradient descent on VGG-style architectures, with the DCT-based encoding enabling efficient, low-latency inference.
Experimental results
Research questions
- RQ1Can a DCT-based encoding scheme reduce inference latency in SNNs without sacrificing classification accuracy?
- RQ2Does distributing spatial information via ordered DCT basis components improve temporal utilization compared to uniform Poisson coding?
- RQ3Can the DCT transform enable a principled trade-off between inference latency and accuracy through frequency component pruning?
- RQ4How does DCT-SNN perform in comparison to state-of-the-art SNNs in terms of accuracy and latency on CIFAR-10, CIFAR-100, and TinyImageNet?
- RQ5Can the DCT-based encoding be scaled to deeper architectures like VGG and maintain competitive performance?
Key findings
- DCT-SNN achieves 89.94% top-1 accuracy on CIFAR-10 using a VGG9 architecture, matching state-of-the-art SNNs while reducing inference latency to 48 timesteps.
- On CIFAR-100, DCT-SNN attains 68.3% top-1 accuracy with only 48 timesteps, a 14× reduction compared to prior SOTA methods.
- For TinyImageNet, DCT-SNN reaches 52.43% top-1 accuracy in 125 timesteps, a 2× reduction compared to previous SOTA SNNs.
- The method enables a controlled trade-off between accuracy and latency: dropping high-frequency components reduces timesteps without drastic accuracy loss.
- Energy efficiency analysis shows DCT-SNN achieves 1.52–1.74× better energy efficiency than its ANN counterpart, depending on the architecture.
- The DCT-based encoding outperforms Poisson, phase, burst, and TTFS coding schemes in both latency and accuracy on deep architectures.
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.