SEAL: Speech Embedding Alignment Learning for Speech Large Language Model with Retrieval-Augmented Generation

Chunyu Sun, Bingyu Liu, Zhichao Cui, Anbin Qi, Tian-hao Zhang, Dinghao Zhou, Lewei LuarXiv 2025 · DOI

Introduction

Retrieval-Augmented Generation (RAG) has revolutionized how Large Language Models (LLMs) access external knowledge. However, applying RAG to Speech LLMs (SLLMs) has traditionally relied on a "cascaded" process: first converting speech to text via Automatic Speech Recognition (ASR), then using that text to search a database. This approach is prone to high latency and "error propagation," where ASR inaccuracies lead to irrelevant retrieval results.

Comparison between traditional two-stage cascaded systems and the proposed SEAL end-to-end retrieval system.

To overcome these limitations, the authors propose SEAL (Speech Embedding Alignment Learning), a framework that enables direct speech retrieval by aligning speech and text in a unified embedding space, effectively removing the ASR bottleneck.

The SEAL Framework

SEAL eliminates the need for intermediate ASR by matching speech directly to documents. The system architecture includes several key components:

  • Dual Encoders: The system utilizes state-of-the-art encoders, specifically Whisper-large-v3 for speech and piccolo-large-zh-v2 for text.
  • Adaptation Module: Inspired by the LLaVA architecture, this module employs a 1D Convolutional layer for temporal downsampling and a Multi-Layer Perceptron (MLP) to project speech features into the text embedding space.
  • Semantic Anchor Strategy: By keeping the text encoder relatively stable, the model treats text as a "semantic anchor." This forces the speech encoder to align with meaningful linguistic concepts rather than drifting into purely acoustic representations.

Training Strategy

The model's success hinges on a specific two-stage training pipeline designed to bridge the modality gap effectively.

The two-stage training process of SEAL: Stage 1 focuses on alignment pre-training, while Stage 2 involves task-specific contrastive training.
  1. Alignment Pre-training: The model is trained to minimize the Mean Squared Error (MSE) between adapted speech features and their corresponding text embeddings. This ensures the speech features capture high-level semantic meaning.
  2. Task-specific Fine-tuning: The model undergoes contrastive training using a multi-task hybrid loss (including InfoNCE and Cosent loss). This stage refines the model for specific downstream tasks like retrieval, reranking, and semantic similarity.

Key Results and Insights

SEAL demonstrates significant performance gains over traditional methods across several metrics:

  • Efficiency: By removing the ASR step, SEAL reduces end-to-end pipeline latency by 50%.
  • Improved Accuracy: On a large-scale knowledge base, SEAL achieved an 86.36% Top-1 accuracy, outperforming the ASR pipeline (79.45%) and significantly beating other end-to-end baselines like CTC-based alignment (78.08%).
  • Robustness: Evaluation on the Chinese Massive Text Embedding Benchmark (CMTEB) confirms SEAL's versatility as a general-purpose embedding model, performing well in classification and reranking tasks.

One critical insight from the research is that standard ASR losses, such as Connectionist Temporal Classification (CTC), perform poorly for retrieval. While CTC focuses on rigid frame-level alignment, retrieval requires the more flexible, global semantic understanding provided by SEAL's alignment process.

Conclusion

By moving away from cascaded ASR pipelines, SEAL provides a more efficient and robust foundation for Speech RAG. Its ability to align speech directly with semantic text embeddings mitigates error propagation and significantly improves the speed and accuracy of Speech LLMs. Future work will explore scaling to even more powerful text encoders and integrating the framework with discrete speech token architectures.

Summary updated

BibTeX
@misc{sun2025seal,
  author = {Chunyu Sun and Bingyu Liu and Zhichao Cui and Anbin Qi and Tian-hao Zhang and Dinghao Zhou and Lewei Lu},
  title = {{SEAL: Speech Embedding Alignment Learning for Speech Large Language Model with Retrieval-Augmented Generation}},
  year = {2025},
  eprint = {2502.02603},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02603},
}
Figure