TL;DR
Pantagruel is a new family of unified self-supervised encoder models designed specifically for French text and speech processing. By shifting away from traditional token-reconstruction targets toward predicting contextualized representations in a shared feature space, Pantagruel achieves competitive or superior performance across a wide range of French benchmarks. Additionally, the project introduces INA-100k, a massive new 100,000-hour corpus of diverse French broadcast audio to supercharge speech representation learning.
What Problem Does This Paper Address?
Most state-of-the-art self-supervised learning (SSL) models treat text and speech as fundamentally different animals. Text models (like BERT or CamemBERT) typically predict discrete tokens, while speech models (like wav2vec 2.0) often rely on contrastive learning over quantized audio units.
This modality-specific fragmentation creates two main issues:
- It prevents a unified architectural treatment of different inputs.
- Token-level reconstruction can under-utilize the rich, continuous structural regularities present in signals like audio.
While Joint Embedding Predictive Architecture (JEPA) frameworks—which train models to predict masked latent representations in a feature space rather than raw inputs—have excelled in vision and audio, they remain largely underexplored for text, especially for languages other than English. The authors introduce Pantagruel to bridge this gap for the French language.
Methods
Pantagruel unifies text and speech encoding under a single framework based on the data2vec 2.0 architecture, which is an instance of the JEPA framework.
The core training paradigm relies on a teacher-student setup:
- The Pre-net: A modality-specific layer (a small CNN for speech, a standard embedding layer for text) extracts initial feature vectors from the input sequence.
- Teacher & Student Encoders: Both share a standard Transformer architecture. The teacher encoder processes the full, unmasked input sequence. The student encoder only receives a masked version (where certain "visible tokens" are omitted).
- Feature Prediction: A lightweight convolutional decoder attempts to predict the teacher's latent representations (averaged across the top $K$ layers) from the student's outputs. The loss is calculated as the $L_2$ distance between these predictions.
- The Text Twist: Because text tokens are discrete and semantically dense, pure feature-space prediction can struggle to capture fine-grained syntactic structures. To solve this, the authors introduce a hybrid loss for text, augmenting the feature prediction objective with a standard Masked Language Modeling (MLM) target.
The models are released in two main configurations: base (12 layers, 768 hidden dimensions) and large (24 layers, 1024 hidden dimensions), though text models were restricted to the base size due to training instabilities with larger variants.
Datasets
The authors curated substantial, large-scale French corpora to train separate text and speech models:
Text Corpora
- Wikipedia: 2019 French dump (876M tokens)
- OSCAR: French portion (32.7B tokens)
- CroissantLLM: A massive web, legal, administrative, and encyclopedic mix (302.2B tokens)
Speech Corpora
- LeBenchmark: 14,000 hours of diverse French speech data (including MultilingualLibriSpeech).
- INA-100k: A newly introduced, proprietary 100,000-hour corpus derived from the archives of France's National Audiovisual Institute (INA). This dataset spans radio and television broadcasts from 1940 to 2022, capturing highly diverse, real-world acoustic environments.
Key Insights and Ideas
- A Shared Framework Works: The exact same underlying predictive framework (data2vec 2.0) can successfully scale to handle both continuous acoustic waveforms and discrete text tokens in French.
- Text Needs Local Supervision: Pure embedding-level prediction is insufficient for text processing. Combining feature-space targets with token-level MLM targets creates a vital regularizer that helps the model retain local semantic and syntactic awareness.
- Acoustic Diversity Trumps Cleanliness: Training on the massive, noisy, and spontaneous INA broadcast dataset significantly improves model robustness on challenging downstream tasks (like spontaneous child speech or noisy TV broadcasts), even if it slightly degrades performance on pristine, read-speech benchmarks.
Key Results
Pantagruel models were evaluated across standard French benchmarks, including FLUE (for text) and LeBenchmark (for speech).
Speech Performance
Pantagruel consistently outperformed established French speech baselines:
- Automatic Speech Recognition (ASR): On the challenging, spontaneous ETAPE dataset, the large model trained on the combined 114k-hour dataset (Pantagruel-L-114k) achieved a Word Error Rate (WER) of 19.09%, significantly outperforming the LeBenchmark-w2v-L-14k baseline (26.03%).
- Speech Translation (ST): On the multilingual TEDx benchmark (translating French speech to English, Spanish, or Portuguese), the base model outperformed its LeBenchmark counterpart by an impressive average margin of +5.8 BLEU.
Text Performance
- Semantic Tasks: Models trained with the hybrid loss (e.g., Pantagruel-B-Osc-MLM) performed comparably to or better than strong baselines like CamemBERT and FlauBERT on text classification and paraphrase identification tasks.
- Syntax Tasks: Pantagruel lagged slightly behind CamemBERT on highly syntax-sensitive tasks like dependency parsing and Verb Sense Disambiguation (VSD), indicating that token-level supervision remains highly critical for fine-grained linguistic structure.
Limitations and Future Work
The authors note a few key areas for improvement:
- Text Scaling Instability: The large variant of the text model suffered from training instability and could not be successfully completed, leaving text models limited to the base size for this release.
- Loss Balancing: The linear decay schedule for the hybrid text loss (balancing data2vec and MLM components) requires more granular optimization.
- True Multimodal Fusion: Currently, text and speech models are trained separately. The ultimate goal is to leverage this shared architecture for joint optimization on unaligned or weakly aligned speech-text pairs, paving the way for unified multimodal understanding (e.g., spoken question answering).
Summary updated