SCA: Streaming Cross-Attention Alignment For Echo Cancellation

Yang Liu, Yangyang Shi, Yun Li, Kaustubh Kalgaonkar, Sriram Srinivasan, Xin Lei

TL;DR

Researchers at Meta have developed SCA-CRN, an end-to-end deep learning model for acoustic echo cancellation that eliminates the need for traditional, separate delay-estimation modules. By using a novel Streaming Cross-Attention (SCA) mechanism, the network automatically aligns microphone and reference signals in real-time, significantly outperforming hybrid DSP-ML methods in challenging, time-variant environments.

What Problem Does This Paper Address?

Acoustic Echo Cancellation (AEC) is the process of removing the "far-end" speaker's voice from the "near-end" microphone signal so they don't hear their own voice echoing back.

Traditional AEC relies on a two-step process:

  1. Digital Signal Processing (DSP): A delay estimator and adaptive linear filter try to align and subtract the echo.
  2. Machine Learning (ML): A neural network cleans up the "residual" non-linear echo that the DSP missed.

This hybrid approach often fails when the "echo path" changes—for example, if a user moves their laptop or if software latency fluctuates. These changes create "unaligned" signals that traditional filters can't track quickly enough. The authors aim to replace this brittle pipeline with a single, robust, end-to-end neural network that handles alignment and cancellation simultaneously.

Methods

The authors propose the SCA-CRN, which builds upon the Deep Complex Convolution Recurrent Network (DC-CRN) architecture. Its core innovation is the Streaming Cross-Attention (SCA) module:

  • Cross-Attention Alignment: Instead of using self-attention (which looks for patterns within a single signal), SCA uses cross-attention to find dependencies between the near-end microphone signal and the far-end reference signal. This allows the model to "find" the echo in the mic signal regardless of the delay.
  • Weight-Shared Complex Processing: To handle complex-valued audio data efficiently on edge devices, the model treats real and imaginary components as independent tensors but forces them to share weights within the attention layers. This reduces computational overhead while maintaining phase information.
  • Streaming Mask: To ensure the model works for real-time communication, they implement a causal mask. This prevents the model from "looking ahead" at future audio frames during training, ensuring low-latency performance during live calls.
  • Encoder-Decoder Structure: The aligned features are passed through a gated convolutional encoder, a GRU (Gated Recurrent Unit) processor, and a decoder to reconstruct the clean speech.

Datasets

The model was trained and evaluated using a mix of public and proprietary data:

  • Microsoft AEC Challenges: Datasets from ICASSP 2022 and Interspeech 2021.
  • Augmented Data: The authors generated a massive dataset of 720,000 conversations (~2,000 hours). This included simulations of various room sizes (RT60), signal-to-noise ratios (SNR), and non-linear distortions (like speaker clipping).
  • Delay Simulation: They specifically introduced delays ranging from -20ms to 600ms to test the model's alignment capabilities.

Key Insights and Ideas

  • Attention as an Aligner: The most significant "aha" moment is that cross-attention can natively replace the cross-correlation modules used in traditional DSP. It treats the alignment problem as a feature-matching task.
  • Simplification of the Pipeline: By moving the alignment into the neural network, the system becomes much more resilient to "jitter" and time-varying delays that typically break adaptive filters.
  • Efficiency via Weight Sharing: The decision to share weights between real and imaginary tensors is a clever middle ground. It avoids the heavy math of true complex-valued neural networks while outperforming simple magnitude-only models.

Key Results

  • Superior Performance: In streaming scenarios, SCA-CRN improved ERLE (Echo Return Loss Enhancement) by 36% and PESQ (Perceptual Evaluation of Speech Quality) by 29% compared to standard streaming baselines.
  • Robustness to Delay: In tests with unaligned signals, the non-streaming version (NCA-CRN) provided a 5–20dB improvement in echo suppression over the baseline CRN.
  • Competitive Efficiency: Despite its high performance, the model uses only 7.8 million parameters. This is less than half the size of other state-of-the-art models like GT-CrossNet (17.4M), making it more suitable for deployment on mobile devices or laptops.

Limitations and Future Work

While the paper demonstrates excellent results for single-microphone setups, the authors note that:

  • Multi-Mic Scenarios: Future work will explore using SCA to address alignment in multi-microphone arrays, which could further improve speech enhancement in noisy environments.
  • Look-ahead Context: While the "streaming" version is low-latency, there is still a slight performance gap between the non-streaming (which sees the whole signal) and streaming versions. Narrowing this gap without increasing latency remains a challenge.

Summary updated

BibTeX
@inproceedings{liu2023sca,
  author = {Yang Liu and Yangyang Shi and Yun Li and Kaustubh Kalgaonkar and Sriram Srinivasan and Xin Lei},
  title = {{SCA: Streaming Cross-Attention Alignment For Echo Cancellation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096417},
}

Loading related content...

Figure