Abstract
Video dubbing aims to translate original speech in visual media programs from the source language to the target language, relying on neural machine translation and text-to-speech technologies. Due to varying information densities across languages, target speech often mismatches the source speech duration, causing audio-video synchronization issues that significantly impact viewer experience. In this study, we approach duration alignment in LLM-based video dubbing machine translation as a preference optimization problem. We propose the Segment Supervised Preference Optimization (SSPO) method, which employs a segment-wise sampling strategy and fine-grained loss to mitigate duration mismatches between source and target lines. Experimental results demonstrate that SSPO achieves superior performance in duration alignment tasks.
Introduction
A common frustration in dubbed media is the "lip-sync" mismatch, where characters' mouth movements continue after the audio has ceased. This phenomenon stems from varying "information densities" between languages; for instance, a concise Chinese sentence often expands significantly when translated into English or Thai. Achieving high-quality dubbing requires Duration Alignment (DA)—the precise matching of translated speech duration to the original source audio.
While Large Language Models (LLMs) excel at translation, they lack an inherent understanding of temporal duration. Standard prompting techniques often fail to achieve the sub-second precision required for professional dubbing. Furthermore, traditional preference optimization methods like Direct Preference Optimization (DPO) typically evaluate entire responses holistically, making them unsuitable for the line-by-line (segment-level) timing constraints inherent in dialogue.
Methodology: Segment Supervised Preference Optimization (SSPO)
To address these challenges, we introduce Segment Supervised Preference Optimization (SSPO). This method frames duration alignment as a localized, multi-segment preference optimization task.
The SSPO process involves several key stages:
- Segment-Wise Sampling: For each line of dialogue, the model generates multiple translation candidates.
- TTS Duration Scoring: Each candidate is processed through a Text-to-Speech (TTS) engine to determine its exact spoken duration. A penalty function is applied, specifically penalizing translations that exceed the source duration more heavily than those that are shorter, as "overrun" is more disruptive to synchronization.
- Fine-Grained Preference Alignment: Unlike standard DPO, which optimizes for the entire output, SSPO applies a modified loss function segment-by-segment. This ensures the model learns to adjust individual lines while maintaining the broader conversational context.
- Format and Quality Control: To prevent the model from losing its ability to follow complex formatting (e.g., bilingual output), we employ Low-Rank Adaptation (LoRA) and token-level KL divergence constraints.
Experimental Setup
We evaluated SSPO using the PolySC (Polylingual Subtitle Corpus), a new dataset derived from 42 live-action TV series and films. It contains approximately 684,000 lines of dialogue (over 470 hours) across Chinese, English, Thai, and Spanish. This selection represents a diverse range of information densities, providing a rigorous test for duration alignment.
Results and Analysis
SSPO was tested across several open-source LLMs, including Llama-3.1, GLM-4, and Qwen-2.5. The results indicate significant improvements in duration consistency without compromising translation quality.
Key findings include:
- Enhanced Consistency: For Chinese-to-Thai translation using Qwen2.5-14B, the "Consistency Rate" (lines within 0.1s of the target) improved from 26.4% to 36.1%.
- Competitive Performance: SSPO-trained models outperformed significantly larger proprietary models like GPT-4o and Claude 3.5 Sonnet in fine-grained duration tasks.
- Implicit Learning: The models implicitly learned linguistic strategies for compression, such as selecting more concise synonyms or adjusting verb tenses, rather than relying on explicit length tokens.
Conclusion and Future Work
SSPO demonstrates that segment-level preference optimization is a highly effective strategy for the "deaf" LLM duration alignment problem. While the current approach relies on standard TTS engines, future work will explore emotion-aware TTS to capture the natural variance in human speech speed. Additionally, moving toward multimodal models that can "see" visual cues will likely further enhance the vividness and accuracy of generated dubbing.
Summary updated