Joint Generation of Captions and Subtitles with Dual Decoding

Jitao Xu, François Buet, Josep Crego, Elise Bertin-Lemée, François Yvon

TL;DR

This paper introduces a dual-decoding Transformer framework that simultaneously generates captions (same-language text) and subtitles (translated text) from raw automatic speech recognition (ASR) transcripts. By allowing two decoders to interact synchronously through cross-attention, the model achieves higher translation quality and better structural consistency between captions and subtitles with virtually no added parameter overhead.

What Problem Does This Paper Address?

When watching audio-visual content, we often rely on captions (intralingual text for accessibility) or subtitles (interlingual text for translation). Generating these automatically from speech transcripts involves complex text transformations: adding punctuation, correcting ASR errors, removing spoken fillers (like "uh" or "um"), and inserting segmentation tags for screen display.

Traditionally, systems handle this in one of two ways, as shown in Figure 1:

  1. Independent Generation (a): Running separate models for captioning and subtitling. This often leads to jarring inconsistencies in content and timing between the two text streams.
  2. Pipeline Generation (b): Generating captions first, then translating them into subtitles. While highly consistent, this approach suffers from cascading errors—if the captioning model makes a mistake, the subtitle model amplifies it.
Figure 1: A graphical view of various captioning and subtitling strategies. T refers to transcripts. C and S respectively denote captions and subtitles.

The authors tackle the challenge of generating both outputs simultaneously from a single ASR transcript, ensuring they remain highly accurate, synchronized, and consistent with each other.

Methods

The authors propose a Dual Decoding scheme (Figure 1, d). Instead of using independent models, they deploy two synchronous decoders within a single Transformer architecture—one dedicated to captions and the other to subtitles.

Key technical highlights include:

  • Decoder Cross-Attention: The authors add a cross-attention layer to each decoder block. This allows the hidden states of the caption decoder and the subtitle decoder to attend to each other at every step of the generation process.
  • Parameter Sharing: To prevent the model size from ballooning, they introduce a scheme where the two decoders share all of their parameter matrices. A simple language prefix tag (e.g., indicating captioning or subtitling) guides the shared decoder. This keeps the model size at a lean 1.1x of a standard translation model.
  • Mitigating Exposure Bias: Dual decoders can suffer from severe exposure bias because errors in one decoder can corrupt the generation of the other. The authors combat this using two strategies: training on synthetic tri-parallel data (generated via forward-translation) and employing an asynchronous 2-round decoding process during inference to refine the outputs.

Datasets

The models were trained and evaluated using the following resources:

  • MuST-Cinema: A multilingual Speech-to-Subtitles corpus compiled from TED talks, containing explicit line and screen break tags ([eol] and [eob]). The authors utilized the English-French pair (275k sentences for training).
  • WMT14 English-French: A large-scale parallel translation dataset (33.9M sentence pairs) used to pre-train the base model before fine-tuning it on the smaller tri-parallel subtitle data.

Key Insights and Ideas

  • Cross-Decoder Synergy: Simultaneously generating both targets improves the performance of both tasks. The decoders act as regularizers and context-providers for each other.
  • Cross-Lingual Transfer for Monolingual Tasks: Initializing the captioning decoder (English to English) with a model pre-trained on machine translation (English to French) significantly boosts captioning performance (+1.6 BLEU). The captioning task benefits from the structural and alignment properties learned during translation pre-training.
  • Parameter Tying Works: Sharing all parameters between the two decoders does not degrade performance; in fact, it slightly improved subtitling scores while slashing the decoder parameter count by roughly one-third.

Key Results

The dual-decoding models were evaluated on translation quality (BLEU) and consistency (structural and lexical alignment).

BLEU and consistency scores across different models.
  • Translation Quality: The dual +FT model achieved an average BLEU score of 41.3, outperforming the standard pipeline baseline (pipeline +FT) by 1.3 BLEU points and the independent baseline (base +FT) by 1.0 BLEU point.
  • Consistency: While the pipeline approach naturally scores highest in consistency (since subtitles are directly translated from the captions), the share +FT dual model achieved a massive jump in structural consistency (66.7%) and lexical consistency (80.0%) compared to the independent baseline (54.5% and 71.4%, respectively).
  • Exposure Bias Fix: As shown in Table 4, using 2-round decoding during inference successfully recovered performance losses caused by exposure bias, boosting the average BLEU of models trained on real data by up to 1.7 points.
Performance of various decoding methods under exposure bias.

Limitations and Future Work

The primary limitation acknowledged by the authors is that their experiments were restricted to a single, closely related language pair: English to French. Languages with vastly different word orders or syntactic structures might pose a greater challenge for fully synchronous dual decoding. The authors note that future work will focus on validating this approach on more distant language pairs.

Summary updated

BibTeX
@inproceedings{xu2022joint,
  author = {Jitao Xu and François Buet and Josep Crego and Elise Bertin-Lemée and François Yvon},
  title = {{Joint Generation of Captions and Subtitles with Dual Decoding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
}
Figure