k2SSL: A Faster and Better Framework for Self-Supervised Speech Representation Learning

Yifan Yang, Jianheng Zhuo, Zengrui Jin, Ziyang Ma, Xiaoyu Yang, Zengwei Yao, Liyong Guo, Wei Kang, Fangjun Kuang, Long Lin, Daniel Povey, Xie Chen · DOI

TL;DR

This paper introduces k2SSL, a new open-source framework for self-supervised speech representation learning that significantly speeds up training and reduces memory usage compared to existing methods. By integrating the efficient Zipformer architecture and optimizing the training process, k2SSL achieves state-of-the-art performance on speech recognition tasks while being more accessible to researchers.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has revolutionized speech processing by enabling models to learn powerful representations from vast amounts of unlabeled audio data. However, current SSL frameworks, like those based on Transformer or Conformer architectures, are notoriously resource-intensive. Training these models requires massive computational power (many GPUs for extended periods) and significant memory, making them inaccessible to many researchers and hindering rapid experimentation. Furthermore, existing frameworks struggle to efficiently handle the ever-growing scale of modern speech datasets. This paper aims to bridge this gap by developing a faster, more memory-efficient, and equally or more effective SSL framework.

Methods

The core of k2SSL lies in two main innovations:

  • Zipformer Architecture: The authors replace the traditional Transformer encoder with Zipformer, a more efficient architecture designed to handle long sequences with less memory and computation. Zipformer uses a U-Net-like structure and various optimizations to learn temporal representations effectively across different resolutions.
  • Optimized Training Pipeline:
    • Memory Reduction: They streamline the HuBERT architecture by removing memory-intensive components that offer little performance gain.
  • Efficient Loss Function: k2SSL adopts a cross-entropy loss for pre-training, which significantly reduces memory usage by eliminating the need for codeword embeddings and cosine similarity calculations.
  • ScaledAdam Optimizer: The integration of ScaledAdam, a parameter-scale-invariant optimizer, further enhances training efficiency and stability.
  • Lhotse Integration: For data management, k2SSL leverages Lhotse, an open-source library that optimizes I/O bandwidth and storage capacity, enabling seamless scaling for large datasets. It uses techniques like dynamic bucketing to ensure consistent data loading times.

Datasets

  • LibriSpeech: Used for pre-training (960 hours of unlabeled audio) and fine-tuning (100 hours of labeled audio).
  • Libri-Light: A larger dataset (60,000 hours of unlabeled audio) used for pre-training Zipformer Large models.

Key Insights and Ideas

  • Zipformer's Efficiency: The Zipformer architecture is a key enabler for efficient SSL, proving that architectural choices can drastically reduce computational demands without sacrificing performance.
  • Optimization Beyond Architecture: Simply using a better backbone isn't enough. Optimizing the training pipeline (loss function, optimizer, data loading) is crucial for achieving significant speedups and memory savings.
  • Accessibility Matters: By reducing the hardware requirements, k2SSL democratizes access to state-of-the-art SSL research, allowing more researchers to contribute to the field.
  • Trade-offs in SSL: The paper highlights the inherent conflict between the need for long sequences in SSL and the quadratic complexity of traditional encoders like Transformers, which Zipformer effectively addresses.

Key Results

  • Speedup: Zipformer Base pre-training achieved a 3.5x speedup in total GPU hours compared to HuBERT Base.
  • WER Reduction: Zipformer Base achieved significant relative Word Error Rate (WER) reductions of up to 34.8% on dev-other and 32.4% on test-other compared to HuBERT Base after fine-tuning on LibriSpeech.
  • Memory Efficiency: Zipformer Base requires only 8 V100 32GB GPUs for pre-training without gradient accumulation, a substantial reduction from the 32 GPUs needed for HuBERT Base. Zipformer Large requires 32 GPUs.
  • Large-Scale Performance: Zipformer Large, when scaled to 60,000 hours of Libri-Light data, matched HuBERT Large's performance while requiring only 5/8 of the pre-training steps.
  • Fine-tuning: k2SSL models fine-tuned with pruned RNN-T loss showed strong performance, outperforming baseline models even without external language models.

Limitations and Future Work

  • Limited Exploration of Other Architectures: While Zipformer is highlighted, the paper focuses on its integration. Future work could explore other efficient architectures.
  • Further Optimization: The authors suggest that continued exploration of pre-training strategies and architectures could yield even better results, especially for the Zipformer Large model.
  • Broader Applications: While focused on ASR, the framework's efficiency could benefit other speech-related downstream tasks.
  • Dataset Scale: The paper demonstrates scalability with Libri-Light, but further testing on even larger and more diverse datasets could reveal additional benefits.

Summary updated

BibTeX
@inproceedings{yang2025k,
  author = {Yifan Yang and Jianheng Zhuo and Zengrui Jin and Ziyang Ma and Xiaoyu Yang and Zengwei Yao and Liyong Guo and Wei Kang and Fangjun Kuang and Long Lin and Daniel Povey and Xie Chen},
  title = {{k2SSL: A Faster and Better Framework for Self-Supervised Speech Representation Learning}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11209883},
}
Figure