Leveraging Whisper Embeddings for Audio-based Lyrics Matching

TL;DR

Leveraging Whisper decoder embeddings for audio lyrics matching, achieving performance comparable to state-of-the-art methods.

cs.SD 🔴 Advanced 2025-10-09 40 views
Eleonora Mancini Joan Serrà Paolo Torroni Yuki Mitsufuji
Music Retrieval Deep Learning Audio Processing Multimodal Reproducibility

Key Findings

Methodology

The proposed WEALY framework utilizes Whisper's decoder embeddings to directly extract semantic features from raw audio, bypassing transcription errors. It employs a two-stage approach: first, extracting latent representations from audio segments; second, using a Transformer encoder trained with contrastive learning (NT-Xent loss) to map these representations into a shared semantic space. Extensive experiments compare different loss functions, pooling strategies, and multilingual settings, demonstrating the effectiveness of NT-Xent and GeM pooling. Multimodal fusion combines audio content models with lyric embeddings, further boosting performance.

Key Results

  • On SHS, DVI, and LYCR datasets, WEALY achieves MAP scores of 0.640, 0.328, and 0.692 respectively, outperforming text-based and raw embedding baselines. Ablation studies confirm NT-Xent's superiority, with GeM pooling and multilingual features providing additional gains. Fusion with audio content models raises MAP to 0.912, showing complementary benefits.
  • The results validate the robustness and scalability of the approach, with consistent improvements across datasets and settings, highlighting the potential for large-scale, multilingual lyrics retrieval.
  • The multimodal approach demonstrates that combining lyric-aware and audio-content models yields the best performance, paving the way for more comprehensive music retrieval systems.

Significance

This work addresses core limitations of traditional lyrics matching reliant on transcriptions, offering an end-to-end audio-based solution that is robust, scalable, and language-agnostic. It advances music copyright enforcement, content discovery, and creative tools by providing a transparent, reproducible benchmark. The approach reduces dependency on manual annotations and improves cross-lingual retrieval, aligning with the growing need for scalable, multimodal music information retrieval systems.

Technical Contribution

Introducing a novel use of Whisper decoder embeddings for end-to-end semantic representation, combined with contrastive learning to optimize the embedding space. The framework emphasizes transparency and reproducibility, setting a new standard for evaluation. The integration of multimodal fusion strategies further enhances the model's versatility, enabling it to leverage complementary cues from audio and lyrics.

Novelty

First to utilize Whisper decoder embeddings directly for lyrics matching, avoiding transcription errors. The combination of contrastive learning with multilingual Whisper features and multimodal fusion represents a significant innovation, enabling scalable, accurate cross-lingual music retrieval.

Limitations

  • The approach's performance can degrade with extremely noisy or distorted audio, as the embeddings rely on audio quality. Handling very long audio tracks remains challenging due to segmentation strategies. Multimodal fusion increases computational complexity, limiting real-time deployment. Further robustness and efficiency improvements are needed for large-scale industrial applications.

Future Work

Future research will explore more sophisticated multimodal fusion techniques, incorporating visual cues and lyric structure. Enhancing robustness against noise and real-time processing capabilities are also priorities. Extending the framework to other music-related tasks, such as cover detection and genre classification, is envisioned.

AI Executive Summary

Music information retrieval has long relied on text-based lyrics matching, which faces significant limitations due to transcription errors, copyright restrictions, and multilingual challenges. Traditional pipelines often depend on manual annotations or complex multi-step processes, limiting scalability and reproducibility. To address these issues, this paper introduces WEALY, a novel end-to-end framework leveraging Whisper's decoder embeddings to directly extract semantic features from raw audio signals. This approach bypasses the need for intermediate transcriptions, reducing errors and enabling scalable, language-agnostic matching.

The core of WEALY involves a two-stage process: first, extracting latent representations from audio chunks using Whisper, and second, employing a Transformer encoder trained with contrastive NT-Xent loss to map these representations into a shared semantic space. Extensive experiments on three public datasets—SHS, DVI, and LYCR—demonstrate that WEALY achieves MAP scores of 0.640, 0.328, and 0.692 respectively, outperforming traditional text-based baselines and raw embedding methods.

Further ablation studies reveal that the choice of NT-Xent loss and GeM pooling significantly improves performance. Additionally, incorporating multilingual features of Whisper enhances cross-lingual matching. A notable contribution is the multimodal fusion, which combines WEALY's lyric-aware embeddings with audio content models, boosting MAP to 0.912. These results confirm the effectiveness of the proposed approach, making it a robust, scalable, and transparent benchmark for future research.

This work has broad implications for copyright enforcement, music discovery, and creative tools, offering a practical solution that overcomes many limitations of existing methods. While challenges remain in noise robustness and real-time deployment, the framework sets a new standard for scalable, multimodal music retrieval, inspiring future innovations in the field.

Deep Analysis

Background

The evolution of music information retrieval has transitioned from simple feature matching to sophisticated deep learning models. Early methods relied on handcrafted features and metadata, which limited accuracy. The advent of automatic speech recognition (ASR) systems like Whisper has enabled direct extraction of lyrics from audio, but transcription errors hinder performance. Recent trends focus on contrastive learning and multimodal fusion to improve robustness across languages and content types. Despite progress, existing solutions often lack transparency and scalability, especially in multilingual settings. This paper builds on these developments, proposing a fully reproducible, end-to-end audio-based lyrics matching framework that leverages Whisper embeddings, addressing the limitations of prior approaches.

Core Problem

Traditional lyrics matching heavily depends on accurate transcriptions, which are prone to errors, especially in musical contexts with background noise, singing variations, and multiple languages. This reliance limits scalability and cross-lingual applicability. Moreover, existing methods often involve complex pipelines with multiple stages, reducing transparency and reproducibility. The core challenge is to develop a direct audio-based semantic matching system that is robust, scalable, and capable of handling diverse content without intermediate transcription, thus overcoming the bottlenecks of current approaches.

Innovation

The key innovations include: 1) exploiting Whisper decoder embeddings directly from raw audio to capture lyrics semantics, bypassing transcription errors; 2) employing contrastive learning (NT-Xent loss) to optimize the embedding space for song similarity; 3) integrating GeM pooling to enhance temporal feature aggregation; 4) analyzing multilingual capabilities of Whisper, demonstrating cross-lingual robustness; 5) implementing a multimodal fusion strategy that combines lyric-aware and audio-content models, significantly boosting retrieval accuracy. These innovations collectively set a new standard for scalable, transparent lyrics matching.

Methodology

  • �� Input raw audio, preprocess to mono, resample to 16kHz, truncate to 5 minutes. • Segment audio into overlapping 30-second chunks, extract log-mel spectrograms. • Use Whisper encoder-decoder to generate decoder hidden states, capturing semantic content without transcription. • Concatenate hidden states from all chunks into a sequence H. • Sample subsequences Hs of fixed length, project into a transformer encoder for contextual modeling. • Apply GeM pooling over temporal dimension to produce a fixed-size vector. • Map pooled features into a 512-dimensional semantic embedding via a linear layer. • Train with NT-Xent contrastive loss, pulling similar song pairs closer and pushing dissimilar ones apart. • During inference, compute maximum cosine similarity over overlapping chunks for song matching. • Extend with multimodal fusion by combining lyric and audio embeddings at the distance level.

Experiments

The evaluation uses three datasets—SHS, DVI, LYCR—covering diverse languages and content. Baselines include TF-IDF, SBERT, and raw Whisper embeddings. Hyperparameters like subsequence length (k=1500), learning rate (1e-4), batch size (64), and training epochs (1000) are optimized with early stopping. Performance is measured by MAP, with ablation studies testing loss functions, pooling strategies, and multilingual effects. The experiments also compare unimodal and multimodal setups, validating the effectiveness of the proposed contrastive learning framework and fusion strategies in improving retrieval accuracy.

Results

WEALY surpasses all baselines, achieving MAP scores of 0.640 (SHS), 0.328 (DVI), and 0.692 (LYCR). NT-Xent loss consistently outperforms triplet and CLEWS losses. GeM pooling and multilingual features further enhance performance. Multimodal fusion yields the highest MAP of 0.912, confirming the complementary nature of lyric and audio cues. Ablation results highlight the importance of temporal modeling and loss choice, demonstrating the robustness and scalability of the approach across datasets and languages.

Applications

This technology can be directly applied to copyright enforcement by identifying similar lyrical content across large music libraries. It also benefits music discovery platforms, enabling theme-based search without relying on transcriptions. Additionally, it supports creative workflows by finding thematically related songs, regardless of language or transcription quality, thus broadening access to diverse musical content in industry and academia.

Limitations & Outlook

Despite strong results, the approach's robustness decreases with noisy or distorted audio, and handling very long tracks remains challenging due to segmentation. The multimodal fusion increases computational load, limiting real-time deployment. Further work is needed to improve efficiency, noise robustness, and extend applicability to other music tasks like cover detection or genre classification.

Plain Language Accessible to non-experts

想象你在一家工厂,工人们需要找到相似的产品。传统方法就像用手工比对每个标签,但标签可能不完整或错误。现在,有一种新工具——它像一台智能机器,能直接从产品的外观和声音中理解它们的特征,不需要标签或说明。这个工具通过学习大量产品的图片和声音,变得非常聪明,能快速找到相似的产品。它不仅节省时间,还能跨越不同的语言和标签限制,帮你更准确地找到想要的东西。这个技术就像给工厂装上了“智能眼睛”和“智能耳朵”,让工厂变得更高效、更智能。

ELI14 Explained like you're 14

想象你在学校里,有很多不同的歌曲,你想知道哪些歌的歌词差不多。以前,你需要听每首歌,然后写下歌词,比较它们是不是一样,但这很麻烦,也容易出错。现在,有一种超级厉害的机器人,它可以直接听歌,从声音中理解歌词的意思,就像你用耳朵听歌一样聪明。这个机器人用一种叫Whisper的技术,能从音频中提取出歌词的“含义”。然后,它还用一种叫对比学习的方法,把相似的歌曲放在一起,不相似的放远远的。这样一来,它就能很快找到歌词相似的歌曲,无论它们用什么语言,也不怕噪音干扰。这个技术让我们更容易找到喜欢的歌曲,也能帮助保护版权,防止盗版。是不是很酷?

Glossary

Whisper (语音模型)

一种基于Transformer的自动语音识别模型,能从音频中提取文本或潜在语义特征。

本文利用Whisper的解码器嵌入作为歌词语义表示。

对比学习 (Contrastive Learning)

一种训练策略,通过最大化相似样本间的距离,最小化不同样本间的距离,提升表示的区分能力。

用于将不同歌曲的潜在表示映射到统一语义空间。

NT-Xent 损失

一种归一化温度缩放的交叉熵损失,用于对比学习中优化样本间的相似性。

本文采用该损失提升歌词潜在表示的区分能力。

GeM 池化

一种可学习的池化策略,结合平均和最大池化的优点,增强特征表达能力。

用于将序列特征压缩为单一向量。

多模态融合

结合多种数据模态(如音频和文本)的方法,以提升整体性能。

本文将音频内容模型与歌词表示结合,增强匹配效果。

Open Questions Unanswered questions from this research

  • 1 如何进一步提升模型对极端噪声和非标准发音的鲁棒性仍未解决,未来需探索更强的噪声适应机制。
  • 2 多模态融合的效率和复杂度仍是挑战,特别是在大规模实时应用中。

Abstract

Audio-based lyrics matching can be an appealing alternative to other content-based retrieval approaches, but existing methods often suffer from limited reproducibility and inconsistent baselines. In this work, we introduce WEALY, a fully reproducible pipeline that leverages Whisper decoder embeddings for lyrics matching tasks. WEALY establishes robust and transparent baselines, while also exploring multimodal extensions that integrate textual and acoustic features. Through extensive experiments on standard datasets, we demonstrate that WEALY achieves a performance comparable to state-of-the-art methods that lack reproducibility. In addition, we provide ablation studies and analyses on language robustness, loss functions, and embedding strategies. This work contributes a reliable benchmark for future research, and underscores the potential of speech technologies for music information retrieval tasks.

cs.SD cs.AI cs.LG eess.AS