Abstract
Vision-language (VL) pretraining typically struggles to balance understanding and generation tasks within a single architecture. We introduce the Two-stream Decoupled Encoder-decoder Network (TDEN), which separates cross-modal modules for these distinct objectives. Furthermore, we propose a two-pass scheduled sampling strategy to mitigate exposure bias caused by the discrepancy between pretraining mask tokens and real-world inference. TDEN achieves state-of-the-art results across multiple benchmarks, including VQA and image captioning.
Introduction
Modern Vision-Language (VL) models are generally categorized into two types: those optimized for understanding (e.g., visual question answering) and those for generation (e.g., image captioning). Understanding tasks benefit from bidirectional, unrestricted message passing, while generation tasks require autoregressive modeling.
Existing "universal" models often attempt to unify these behaviors in a single-stream architecture, leading to a "one-size-fits-none" problem where the inherent differences between understanding and generation aren't fully exploited. Additionally, the reliance on [MASK] tokens during pretraining creates a "mask discrepancy" or exposure bias, as these tokens are absent during downstream inference.
The TDEN Architecture
The core innovation of TDEN is its decoupled structure, which allows the model to specialize in different interaction modes. Instead of a single transformer stack, TDEN utilizes independent encoders for each modality followed by task-specific cross-modal components.
As shown in the figure above, TDEN consists of:
- Independent Modality Encoders: Separate transformers process image regions and text tokens to extract intra-modal features.
- Cross-modal Encoder: Dedicated to understanding tasks like Masked Language Modeling (MLM), Masked Object Classification (MOC), and Image-Sentence Matching (ISM). It facilitates full bidirectional interaction between modalities.
- Cross-modal Decoder: Specifically designed for Masked Sentence Generation (MSG), mimicking the step-by-step prediction required for autoregressive tasks.
Two-Pass Scheduled Sampling
To address the exposure bias, TDEN employs a novel "two-pass" pretraining scheme. This is a clever adaptation of scheduled sampling for the BERT-style pretraining era.
- Pass 1: Standard pretraining where some tokens are replaced by
[MASK]. - Pass 2: The model replaces those
[MASK]tokens with its own "plausible" predictions from Pass 1.
This teaches the model to handle real words (even if slightly incorrect) rather than relying on the artificial mask token, effectively "warming up" the model to see real-world data distributions before it leaves the pretraining phase.
Experimental Results
TDEN was pretrained on the Conceptual Captions dataset (3.3M pairs) and evaluated on several downstream tasks, achieving new state-of-the-art results compared to other universal methods like Unified VLP:
- Image Captioning (MS-COCO): Achieved a CIDEr score of 133.4, a significant jump over Unified VLP (129.3).
- Visual Question Answering (VQA 2.0): Reached an overall accuracy of 72.5% on test-dev.
- Efficiency: To manage the computational cost of two-pass training, the authors introduced Two-Pass-C, a variant that randomly selects between the standard and scheduled paths, reducing training overhead by nearly 50% while maintaining high performance.
Conclusion
TDEN demonstrates that decoupling understanding and generation modules, combined with a robust scheduled sampling strategy, significantly enhances universal vision-language pretraining. By addressing both architectural limitations and the mask discrepancy problem, TDEN sets a new standard for multi-modal AI systems.
Summary updated