$\text{M}^3\text{PDB}$: A Multimodal, Multi-Label, Multilingual Prompt Database for Speech Generation

Boyu Zhu, Cheng Gong, Muyang Wu, Ruihao Jing, Fan Liu, Xiaolei Zhang, Chi Zhang, Xuelong LiarXiv 2025

TL;DR

The paper introduces $\text{M}^3\text{PDB}$, a massive multimodal, multi-label, and multilingual database containing over 400,000 hours of speech designed to solve the problem of poor-quality or missing audio prompts in zero-shot speech generation. Alongside the dataset, the authors propose a multi-agent annotation framework and a latency-controllable selection strategy that retrieves high-quality substitute prompts in real time based on text, audio, or visual inputs.

What Problem Does This Paper Address?

Zero-shot speech generation models have made incredible strides, allowing systems to clone a speaker's voice and style from just a few seconds of reference audio. However, there is a massive catch: these models are typically trained on pristine, studio-quality data. In the real world, user-provided prompts are often plagued by background noise, are cut short, or might be entirely missing (e.g., a user only provides a facial image or a text description of the voice they want).

When there is a severe quality mismatch between the training data and the inference prompt, the synthesized speech degrades drastically. To bridge this gap, we need a way to quickly search a database and select a high-quality, acoustically appropriate substitute prompt that matches the user's target characteristics—even when the input is cross-modal (like an image) or in a language the model hasn't seen before.

Methods

The authors tackle this challenge with a two-pronged approach: a novel annotation framework to build the database, and an efficient retrieval strategy for inference.

  1. Multi-Modal Multi-Agent Annotation Framework: To label a dataset of this scale across text, audio, and video, the authors designed an automated pipeline. A large language model (LLM) acts as a central controller. Using Retrieval-Augmented Generation (RAG), the LLM analyzes the state of a data instance (e.g., whether it has visual data or what language it uses) and dynamically assigns weights to a collection of specialized expert models (agents) for tasks like age estimation, emotion detection, and speech rate calculation.
  2. Latency-Aware Prompt Selection Strategy: Searching through millions of audio files during real-time speech generation is computationally prohibitive. The authors introduce a two-stage selection process:
  3. Offline Registration: Narrows down the massive database to a small candidate subset ($\text{M}^3\text{PDB}_{\text{small}}$) using time-invariant attributes like gender, age, or facial similarity.
  4. Online Selection: Runs during inference, evaluating time-varying characteristics (like pitch, speaking rate, and emotion) in a serial pipeline. Crucially, this online process can be interrupted at any point to return the best match found so far, making it highly adaptable to strict latency constraints.
Figure 3: The overall architecture of latency-aware prompt selection.

Datasets

The primary contribution of this paper is the introduction of $\text{M}^3\text{PDB}$ (Multimodal, Multi-Label, Multilingual Prompt Database). It is the first large-scale database explicitly built for prompt selection.

  • Scale: 403,308 total hours, covering over 15,000 speakers.
  • Modalities: Text, Audio, and Visual (T+A+V), with 25% of the data containing all three modalities.
  • Languages: 18 languages (including English, Chinese, Spanish, French, etc.).
  • Labels: 10 distinct label types, including both discrete tags and natural language descriptions generated by an LLM.

The dataset was constructed using a mix of real-world data (sourced from datasets like Emilia, VoxCeleb, and VoxPopuli) and synthetic data augmented via the CosyVoice model to enrich emotional diversity.

Table 1: A comparison of M3PDB with existing datasets for speech generation. T, A, and V represent the three modalities: Text, Audio, and Visual.

Key Insights and Ideas

  • Retrieval Beats Pure Generation for Cross-Modal Prompts: When a user only provides a facial image, state-of-the-art "face-to-speech" generative models often synthesize low-quality audio. The authors found it is far more effective to use the face image to retrieve a real, high-quality audio sample from a database that matches the facial characteristics.
  • The Proxy Language Strategy for Unseen Languages: To support languages not natively present in the database, the system uses a "proxy language" based on linguistic distance in the language family tree, combined with cross-lingual synthesis and Language Identification (LID) filtering to find viable prompt candidates.
  • Cascaded Filtering for Latency Control: By ordering the online similarity modules from computationally cheap to expensive (e.g., speech rate $\rightarrow$ pitch $\rightarrow$ speaker ID $\rightarrow$ emotion), the system ensures that even an early interruption yields a reasonably accurate prompt.

Key Results

  • Annotation Accuracy: The proposed multi-agent framework achieved an Age Mean Absolute Error (Age-MAE) of 6.22 years and a Gender Accuracy of 91.22%, significantly outperforming the baseline SpeechCraft dataset.
  • Visual Prompt Performance: When selecting a prompt based on a facial image, $\text{M}^3\text{PDB}$ achieved an audio quality score (UTMOSv2) of 2.69, compared to just 2.10 from Imaginary Voice, a SOTA face-to-speech generative baseline.
Table 4: Comparison between Imaginary Voice and the proposed method.
  • Robustness to Noise: In streaming speech-to-speech translation experiments with noisy inputs, using the $\text{M}^3\text{PDB}$ online selection strategy improved speaker similarity from 39.53% (using the original noisy input directly) to 44.88%, while boosting audio quality (UTMOSv2) from 2.49 to 2.69.

Limitations and Future Work

While powerful, the authors note that building and annotating the database remains highly time-consuming, prompting future work into accelerating data preprocessing pipelines. Additionally, the current database is limited to 18 languages and has only been validated on text-to-speech and speech translation tasks. The authors plan to expand the language coverage and test the framework on more interactive, conversational speech systems in the future.

Summary updated

Abstract

Recent advancements in zero-shot speech generation have enabled models to synthesize speech that mimics speaker identity and speaking style from speech prompts. However, these models' effectiveness is significantly limited in real-world scenarios where high-quality speech prompts are absent, incomplete, or out of domain. This issue arises primarily from a significant quality mismatch between the speech data utilized for model training and the input prompt speech during inference. To address this, we introduce $\text{M}^3\text{PDB}$, the first large-scale, multi-modal, multi-label, and multilingual prompt database designed for robust prompt selection in speech generation. Our dataset construction leverages a novel multi-modal, multi-agent annotation framework, enabling precise and hierarchical labeling across diverse modalities. Furthermore, we propose a lightweight yet effective prompt selection strategy tailored for real-time, resource-constrained inference settings. Experimental results demonstrate that our proposed database and selection strategy effectively support various challenging speech generation scenarios. We hope our work can inspire the community to shift focus from improving performance on standard benchmarks to addressing more realistic and diverse application scenarios in speech generation. Code and dataset are available at: https://github.com/hizening/M3PDB.
BibTeX
@misc{zhu2025text,
  author = {Boyu Zhu and Cheng Gong and Muyang Wu and Ruihao Jing and Fan Liu and Xiaolei Zhang and Chi Zhang and Xuelong Li},
  title = {{$\textbackslash\{\}text\{M\}^3\textbackslash\{\}text\{PDB\}$: A Multimodal, Multi-Label, Multilingual Prompt Database for Speech Generation}},
  year = {2025},
  eprint = {2508.09702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.09702},
}
Figure