NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neighborhood Attention Transformer with Progressive Channel Fusion for Speaker Verification

Nian Li, Jianguo Wei · DOI

Abstract

This paper introduces PCF-NAT, a novel Transformer-based backbone designed for high-performance speaker verification. By integrating the local inductive bias of Neighborhood Attention (NA) with global self-attention and a progressive channel fusion (PCF) strategy, the proposed model achieves state-of-the-art results on the VoxCeleb1 benchmark (EER < 0.5%). Notably, PCF-NAT is significantly more memory-efficient and scalable than traditional architectures like ECAPA-TDNN, making it a robust candidate for large-scale speaker recognition tasks.

Introduction

Automatic Speaker Verification (ASV) involves determining whether two speech segments originate from the same individual. Historically, Time-Delay Neural Networks (TDNNs), such as the ECAPA-TDNN, have dominated the field. However, these architectures often face diminishing returns when scaled in depth or width.

Transformers offer an alternative by modeling long-range dependencies, but they typically lack the "locality" bias inherent in convolutions—an essential feature for processing spectrograms where adjacent frames are highly correlated. Consequently, Transformer-based ASV systems often require massive datasets or complex pre-training. The authors address these challenges by proposing the Neighborhood Attention Transformer (NAT), which balances local and global context while maintaining computational efficiency.

Methodology

The PCF-NAT architecture introduces two primary innovations: Neighborhood Attention and Progressive Channel Fusion.

Neighborhood Attention (NA) and Global Attention (GA)

Instead of applying global self-attention across all frames, the model utilizes Neighborhood Attention (NA). NA restricts the attention window to a local neighborhood around each frame, effectively mimicking the local receptive field of a convolution while retaining the dynamic weighting of attention.

The Neighborhood Attention (NA) mechanism.

The architecture alternates between local NA layers and standard Global Attention (GA) layers. This hybrid approach allows the model to capture fine-grained local acoustic patterns in early stages and broader speaker characteristics in later stages. The authors found that global context is most effective when applied to well-refined local features.

Progressive Channel Fusion (PCF)

To further enhance feature extraction, the model incorporates Progressive Channel Fusion (PCF). This technique uses 1D group convolutions where the number of groups is systematically reduced (e.g., from 8 down to 1) as the network deepens. This reduction progressively expands the receptive field in the channel (frequency) dimension, allowing for more complex feature integration.

Architecture of MFA-NAT and PCF-NAT with Progressive Channel Fusion.

Efficient Implementation via GEMM

To mitigate the overhead of sliding-window operations, the authors developed a custom CUDA-based implementation that maps Neighborhood Attention to General Matrix Multiply (GEMM). This optimization allows the model to leverage high-speed Tensor Cores on modern GPUs, ensuring that the theoretical efficiency of NA translates to practical performance.

Experimental Setup and Results

The model was trained on the VoxCeleb2-dev dataset, augmented with speed/pitch shifting and noise (MUSAN, RIRS-NOISES) to a total of ~3.2 million utterances. Evaluation was conducted on standard VoxCeleb1 benchmarks (O, E, and H sets) and various VoxSRC validation sets.

Performance and Scalability

PCF-NAT demonstrated superior accuracy compared to established baselines. A "shallow" version of the model outperformed a similarly sized ECAPA-TDNN by approximately 20% in terms of Equal Error Rate (EER). The "Deep" PCF-NAT (6x4 configuration) achieved an EER of 0.436% on VoxCeleb1-O, a state-of-the-art result for models trained solely on VoxCeleb2. Unlike ECAPA-TDNN, which tends to plateau, PCF-NAT showed consistent performance improvements as depth increased.

Memory Efficiency

A significant advantage of PCF-NAT is its memory footprint. During inference, it consumes 25% to 45% less peak memory than MFA-Conformer or ECAPA-TDNN. This efficiency makes it highly suitable for deployment in memory-constrained environments.

Conclusion and Future Work

PCF-NAT successfully combines the strengths of convolutional locality and Transformer-based global modeling. While the current implementation of 1D group convolutions in PyTorch presents a slight bottleneck for inference speed, the model's scalability and accuracy are promising. Future research will focus on optimizing these operations and exploring more sophisticated down-sampling strategies to further enhance performance on even larger datasets.

Summary updated

BibTeX
@inproceedings{li2025neighborhood,
  author = {Nian Li and Jianguo Wei},
  title = {{Neighborhood Attention Transformer with Progressive Channel Fusion for Speaker Verification}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10887572},
}
Figure