Abstract
Vision-Language Pretraining (VLP) is a cornerstone of modern multimodal AI, yet it remains computationally expensive. Standard objectives like Masked Language Modeling (MLM) are inefficient because they only predict a small subset of tokens per iteration to maintain task difficulty. We introduce Free Language Modeling (FLM), a novel framework that decouples the corruption rate from the prediction rate. By shifting corruption to a post-encoding stage, FLM enables the model to predict 100% of tokens in every training pass. Our approach achieves a 2.5× training speedup over standard MLM while delivering competitive or superior performance across a range of vision-language benchmarks.
The Efficiency Bottleneck in VLP
Modern vision-language models for tasks such as visual question answering (VQA) or image captioning are typically pretrained on massive datasets of image-text pairs. The dominant training objective, Masked Language Modeling (MLM), involves masking a portion of the text (usually 15%) and requiring the model to reconstruct it.
However, MLM suffers from a fundamental "entanglement" problem: the number of tokens the model learns from (the prediction rate) is tied to the number of tokens hidden (the corruption rate). Increasing the prediction rate requires increasing the corruption rate, which quickly makes the task too difficult for effective learning. This results in low data utilization per training step, leading to prolonged and costly training cycles.
Methods: Decoupling Corruption and Prediction
The proposed Free Language Modeling (FLM) breaks this entanglement using an Encode-Corrupt-Predict framework. Unlike MLM, which masks tokens before encoding, FLM processes the entire sequence first and applies corruption later.
The FLM architecture consists of three main components:
- Decomposed Bidirectional Encoding: To prevent the model from simply copying the input, FLM uses a dual-stream approach. It runs forward and reverse passes with causal masks to generate bidirectional representations where no token has access to its own identity.
- Post-Encoding Corruption: After the initial encoding, "span corruption" is applied. For each target token, a random span of the surrounding bidirectional context is hidden from the subsequent reconstruction stage.
- The Reconstructor: A lightweight Transformer decoder uses a learnable query and the partially corrupted features to predict the original token.
Because corruption is token-specific and occurs after encoding, the model can compute a loss for every single token in the sequence simultaneously. This maximizes the supervision signal per GPU hour.
Experimental Results
We evaluated FLM against standard benchmarks using both a "4M" dataset (COCO, VG, SBU, CC3M) and a larger "13M" dataset.
Training Efficiency and Performance
FLM significantly accelerates the pretraining process. As shown in the performance curves, FLM reaches the peak performance of an MLM baseline in a fraction of the time. Specifically, FLM achieved a 2.5× reduction in total GPU days required to reach convergence on the NLVR² benchmark.
Downstream Task Performance
Beyond speed, FLM maintains high accuracy across various tasks:
- NLVR²: FLM reached 78.63% accuracy, slightly surpassing the MLM baseline (78.60%).
- Image Captioning: FLM demonstrated superior language generation capabilities, scoring 123.0 CIDEr compared to MLM's 120.3. This suggests that the denser training signal helps the model internalize complex linguistic structures more effectively.
- VQA: Performance remained competitive with state-of-the-art MLM-based models.
Discussion and Conclusion
While FLM excels in understanding and generation, initial experiments showed a slight performance gap in image-text retrieval compared to MLM. The authors attribute this to "span corruption" focusing the model on local semantics rather than global image-text alignment. This was successfully mitigated by combining FLM with standard Image-Text Matching (ITM) losses, which restored retrieval performance to state-of-the-art levels.
In conclusion, Free Language Modeling offers a highly efficient alternative to standard MLM for vision-language pretraining. By "freeing" the prediction rate from the corruption rate, FLM enables faster training and better data utilization, paving the way for more accessible large-scale multimodal model development.
Summary updated