Abstract
Text Image Machine Translation (TIMT) aims to translate text embedded within images directly into a target language. While traditional pipeline approaches—combining Optical Character Recognition (OCR) with Machine Translation (MT)—are effective, they suffer from high computational costs and error propagation. End-to-end (E2E) models offer a streamlined alternative but are often limited by the scarcity of high-quality image-to-translation training data. This paper introduces Multi-Teacher Knowledge Distillation (MTKD), a framework that transfers expertise from specialized pipeline components to an E2E student model. By aligning specific sub-modules with dedicated teachers, the proposed method achieves state-of-the-art translation quality while significantly reducing model size and latency.
Introduction
Text Image Machine Translation (TIMT) involves translating text found in visual contexts, such as street signs, documents, or video subtitles. Traditionally, this is handled by a pipeline approach: a Text Image Recognition (TIR) model identifies the text, which is then passed to a separate MT model for translation.
However, pipeline systems face two major drawbacks:
- Error Propagation: Recognition errors in the first stage often lead to catastrophic failures in the translation stage.
- Efficiency: Maintaining two separate large-scale models is computationally intensive and slow.
End-to-end (E2E) models address these issues by using a single neural network. Despite their potential, E2E models are difficult to train due to the lack of massive image-translation datasets. The MTKD framework bridges this gap by distilling the "wisdom" of mature pipeline models into a lean, efficient E2E architecture.
Methodology: Multi-Teacher Knowledge Distillation (MTKD)
The core innovation of this work is the decomposition of the E2E model into functional sub-modules, each guided by a specialized "teacher" model. This approach moves beyond treating the model as a monolithic block, instead providing targeted supervision for vision, semantics, and generation.
The MTKD framework employs three distinct teachers:
- Image Encoder Teacher: A pre-trained TIR model guides the student's image encoder to improve visual feature extraction from raw pixels.
- Sequential Encoder Teacher: A pre-trained MT sequential encoder teaches the student to map visual features into high-level semantic representations.
- Decoder Teacher: A pre-trained MT decoder guides the student in generating the final target language sentence word-by-word.
For each teacher-student pair, the framework utilizes two levels of distillation: Token-Level, which aligns specific outputs for individual words, and Sentence-Level, which aligns the global representation of the entire sequence.
Experimental Setup
The authors evaluated the MTKD framework on a large-scale TIMT dataset spanning three domains:
- Synthetic: 1,000,000 generated text image samples for robust training.
- Subtitle: 1,040 real-world video subtitle test samples.
- Street-view: 1,198 images of signs and storefronts, representing a challenging real-world scenario.
The experiments covered three translation directions: English-to-Chinese (EnCh), English-to-German (EnDe), and Chinese-to-English (ChEn).
Results and Discussion
The MTKD framework demonstrated significant improvements across all metrics:
- Superior Accuracy: MTKD outperformed previous E2E models. For example, on the EnCh synthetic set, it achieved a BLEU score of 22.26, surpassing the previous best (MHCMM) at 22.08.
- Faster and Leaner: Compared to the traditional pipeline (TIR+MT), the student model reduced parameters by ~37% (from 195.1M to 121.9M) and nearly doubled decoding speed (from 0.33s to 0.19s per sentence).
- Robustness: The model showed particular strength in the "Street-view" domain, which is typically difficult for E2E models due to complex backgrounds and varied fonts.
Key Insights
The success of MTKD highlights the importance of functional alignment. By assigning specialized teachers to specific tasks (vision vs. semantics vs. generation), the student model learns more effectively than it would from a single generalist teacher. Furthermore, token-level and sentence-level distillation were found to be complementary, providing both granular and holistic guidance.
Conclusion
Multi-Teacher Knowledge Distillation provides a powerful method for training high-performance, efficient E2E models for Text Image Machine Translation. By leveraging the expertise of existing pipeline components, the framework overcomes data scarcity and error propagation issues. Future research may explore incorporating broader external knowledge sources and reducing the reliance on triple-aligned (image-text-translation) data, which remains a bottleneck for scaling to more language pairs.
Summary updated