Eye-based emotion recognition is a critical component for the next generation of wearable technology, such as VR/AR headsets and smart eyewear. However, these devices operate under strict battery and computational constraints. While Spiking Neural Networks (SNNs)—particularly those using Time-to-First-Spike (TTFS) coding—offer extreme energy efficiency by mimicking the brain's discrete electrical pulses, they are notoriously difficult to design manually. Small architectural changes in TTFS SNNs can lead to temporal misalignment, causing training instability.
This paper introduces TNAS-ER, the first Neural Architecture Search (NAS) framework specifically designed for TTFS SNNs. By automating the design process, TNAS-ER achieves state-of-the-art accuracy while significantly reducing the computational footprint compared to existing models.
Methodology: Bridging the Gap with Identity Mapping
The core challenge in designing TTFS SNNs is their sensitivity to architecture. To address this, the authors developed a three-stage framework that leverages a mathematical "identity mapping" between spiking networks and traditional artificial neural networks (ANNs).
- ANN-Assisted Search Strategy: Instead of searching directly in the unstable spiking domain, the framework utilizes a ReLU-based ANN counterpart. Because a specific type of ANN behaves identically to a TTFS SNN, researchers can use stable, standard gradient-based training to evaluate potential architectures.
- Supernet Training and Evolution: The framework employs an evolutionary algorithm to explore a hierarchical search space. It evolves a population of candidate architectures (subnets), selecting the best performers based on a fitness score that balances Weighted Average Recall (WAR) and Unweighted Average Recall (UAR).
- Hardware-Aware Constraints: The search space is restricted to avoid residual (skip) connections, which would disrupt the strict layer-wise temporal scheduling required by TTFS neurons.
Experimental Results
The models were evaluated on two specialized event-based datasets: SEE (Single-eye Event-based Emotion) and DSEE (a larger, simulated benchmark). TNAS-ER demonstrated superior performance across all key metrics.
- Accuracy: On the SEE dataset, TNAS-ER achieved 79.6% WAR, surpassing the previous state-of-the-art (Wan et al., 79.2%).
- Efficiency: The searched architecture reduced parameters from 51.94M to just 1.04M (a 50x reduction) and operations from 8.44 Giga-ops to 0.03 Giga-SynOps (a 280x reduction).
- Real-world Deployment: When deployed on YOSO neuromorphic hardware, the system processed emotions in just 48ms with a power consumption of only 0.05J per inference.
Key Insights and Future Directions
The success of TNAS-ER highlights that architecture often matters more than complex training algorithms for SNNs. By exploiting the inherent sparsity of TTFS neurons—where each neuron fires at most once—NAS can find "sweet spots" that maximize accuracy while minimizing synaptic operations.
Despite these gains, challenges remain. Initial 8-bit quantization led to performance drops that required specific fine-tuning to recover. Future work will focus on integrating quantization-aware training directly into the NAS process and exploring ways to re-introduce complex connectivity, like skip connections, without breaking the delicate temporal alignment of TTFS neurons. Expanding the framework to binocular or multi-modal inputs also represents a promising path for improving robustness in real-world scenarios.
Summary updated