[Paper Review] Vokenization: Improving Language Understanding with Contextualized, Visual-Grounded Supervision
This paper introduces vokenization, a method to generate contextualized visual embeddings (vokens) for language tokens using a vokenizer trained on image-caption datasets. By applying these vokens to large-scale language corpora, the authors improve BERT-based models on GLUE, SQuAD, and SWAG benchmarks, demonstrating that visual grounding enhances general language understanding even in text-only tasks.
Humans learn language by listening, speaking, writing, reading, and also, via interaction with the multimodal real world. Existing language pre-training frameworks show the effectiveness of text-only self-supervision while we explore the idea of a visually-supervised language model in this paper. We find that the main reason hindering this exploration is the large divergence in magnitude and distributions between the visually-grounded language datasets and pure-language corpora. Therefore, we develop a technique named "vokenization" that extrapolates multimodal alignments to language-only data by contextually mapping language tokens to their related images (which we call "vokens"). The "vokenizer" is trained on relatively small image captioning datasets and we then apply it to generate vokens for large language corpora. Trained with these contextually generated vokens, our visually-supervised language models show consistent improvements over self-supervised alternatives on multiple pure-language tasks such as GLUE, SQuAD, and SWAG. Code and pre-trained models publicly available at https://github.com/airsplay/vokenization
Motivation & Objective
- To address the lack of visual grounding in existing language pre-training frameworks, which rely solely on text-based self-supervision.
- To overcome the data distribution gap between small, visually-grounded datasets and large-scale language corpora.
- To enable visually-supervised language modeling for general NLP tasks by generating contextually relevant vokens for language-only data.
- To improve language representation learning by leveraging visual context even for non-visual words through contextual token-image matching.
Proposed method
- Train a vokenizer on small image-captioning datasets (e.g., MS COCO, Visual Genome) using a contextual token-image matching model.
- Use the trained vokenizer to retrieve contextually relevant images (vokens) for tokens in large-scale text corpora like English Wikipedia.
- Integrate voken predictions as an auxiliary objective in BERT-style models, jointly optimizing masked language modeling and voken classification.
- Leverage sentence-level context to disambiguate tokens and improve alignment, even for abstract or non-concrete words like 'by' or 'angry'.
- Apply the vokenization pipeline to generate vokens for diverse NLP datasets, including CNN/Daily Mail and Wiki103, to enable transfer learning.
- Use Jensen–Shannon divergence to quantify distributional discrepancies between visually-grounded and general language corpora, justifying the need for vokenization.
Experimental results
Research questions
- RQ1Can visual grounding from image-captioning data improve language understanding in purely text-based NLP tasks?
- RQ2How can we bridge the distributional and magnitude gap between small, visually-grounded datasets and large-scale language corpora?
- RQ3Can contextual token-image matching improve visual grounding for non-visual or abstract words in context?
- RQ4Does incorporating generated vokens as supervision lead to consistent gains across diverse NLP benchmarks?
- RQ5To what extent can vokens transfer across different language model architectures like RoBERTa?
Key findings
- The proposed vokenization method achieves consistent improvements over self-supervised BERT on the GLUE benchmark, with gains ranging from 0.8 to 2.1 points across individual tasks.
- On SQuAD, the visually-supervised model outperforms the self-supervised baseline by 1.2 points in F1 score, indicating better reading comprehension.
- On SWAG, the model achieves a 1.5-point improvement in accuracy, showing enhanced commonsense reasoning through visual grounding.
- The vokenizer successfully generates contextually relevant vokens even for abstract or function words, as shown in visualizations of token-image alignment.
- Transfer experiments show that vokens improve performance on RoBERTa as well, confirming the method’s generalizability beyond BERT.
- The grounding ratio in English Wikipedia is only 27.7%, yet vokenization still yields significant gains, indicating that contextualized vokens can effectively inject visual knowledge into non-grounded text.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.