Papez: Resource-Efficient Speech Separation with Auditory Working Memory

Hyunseok Oh, Juheon Yi, Youngki Lee

TL;DR

Papez is a resource-efficient speech separation model that replaces heavy Transformer architectures with a bio-inspired "Auditory Working Memory" and adaptive token pruning. It achieves a massive 17.7× reduction in model size compared to state-of-the-art baselines while maintaining high accuracy, finally making high-quality speech separation feasible on mobile and IoT devices.

What Problem Does This Paper Address?

Single-channel speech separation—the "cocktail party problem" of isolating individual voices from a single recording—has seen a massive performance boost thanks to Transformers. However, these models (like SepFormer) come with a "computational tax" that is too high for mobile devices.

The authors identify two main inefficiencies in current designs:

  1. Redundant Dual-Path Processing: Standard models process data in "chunks" and then use a second, heavy Transformer to model the relationships between those chunks. The authors found that most of this "inter-chunk" processing is actually unnecessary.
  2. Fixed Computation: Current models spend the same amount of "brainpower" on every millisecond of audio, regardless of whether it contains complex overlapping speech, a single speaker, or total silence.

Methods

The researchers at Seoul National University introduced Papez, a model built on three core pillars:

  • Auditory Working Memory (AWM) Transformer: Inspired by how the human brain temporarily stores audio features (like pitch and timbre), Papez replaces the heavy inter-chunk Transformer with a small set of "memory tokens." These tokens aggregate global context and share it across local chunks, reducing computational complexity from super-linear to linear.
  • Adaptive Token Pruning: Not all parts of a sound wave are equally hard to separate. Papez allows individual "tokens" (small segments of the audio) to decide when they are "done." If a segment is easy to separate (e.g., silence), the model stops processing it early, saving cycles. Crucially, they "piggyback" this decision-making logic onto existing layers to avoid adding new overhead.
  • Recurrent Weight Sharing: To keep the model tiny, they use a recurrent architecture where a single Transformer layer is applied multiple times, rather than stacking dozens of unique layers.

Datasets

The model was evaluated on two gold-standard benchmarks in the speech separation community:

  • WSJ0-2Mix: A standard dataset derived from the Wall Street Journal corpus, featuring two-speaker mixtures.
  • LibriMix: A more recent and diverse dataset based on LibriSpeech, designed to test models in more realistic, noisy environments.

Key Insights and Ideas

  • The "Aha" Moment on Redundancy: By visualizing the "halting probability" of tokens in standard models, the authors proved that most inter-chunk tokens become redundant after just a few layers. This justified replacing the entire inter-chunk module with a lightweight memory buffer.
  • Bio-Inspiration Works: By mimicking the human auditory cortex's relationship with the hippocampus (working memory), they achieved a "global view" of the audio without the quadratic cost of standard self-attention.
  • Efficiency is Cumulative: The combination of weight sharing (reducing parameters), AWM (reducing complexity), and pruning (reducing active tokens) creates a multiplicative effect on efficiency.

Key Results

Papez significantly outperforms existing "efficient" models like Tiny-Sepformer and A-FRCNN across the board:

  • Size: It is 17.7× smaller than the original SepFormer and roughly 4× smaller than other "tiny" variants, sitting at just 1.47 million parameters.
  • Speed: On a standard CPU, Papez is 2.44× faster than Tiny-Sepformer. On a GPU, it achieves a latency of ~70ms for a 5-second input.
  • Accuracy: Despite its small size, it achieved an SI-SNRi (a measure of separation quality) of 19.4 dB on WSJ0-2Mix, which is 4.2 dB higher than Tiny-Sepformer and nearly matches the performance of models 20 times its size.

Limitations and Future Work

While Papez represents a leap forward for on-device AI, some challenges remain:

  • Training Complexity: The paper notes that training takes approximately 220 hours on a high-end Titan RTX GPU, suggesting that while the inference is efficient, the optimization process is still intensive.
  • Hyperparameter Sensitivity: The performance is sensitive to the number of memory slots ($M$) and chunk size ($K$). While the authors provide a sweet spot, different hardware or audio types might require manual tuning.
  • Future Directions: The authors suggest that these techniques (AWM and "piggybacked" pruning) are general-purpose and could be applied to other Transformer-based tasks beyond speech, such as video processing or long-form text analysis.

Summary updated

BibTeX
@inproceedings{oh2023papez,
  author = {Hyunseok Oh and Juheon Yi and Youngki Lee},
  title = {{Papez: Resource-Efficient Speech Separation with Auditory Working Memory}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095136},
}
Figure