Video-aided Unsupervised Grammar Induction

Songyang Zhang, Linfeng Song, Lifeng Jin, Kun Xu, Dong Yu, Jiebo Luo

Introduction

Grammar induction—the task of learning the syntactic structure of a sentence without labeled data—remains a "holy grail" in natural language processing. Traditionally, this task has relied on extensive human-annotated treebanks, which are costly and difficult to scale to the world's thousands of languages. Recent efforts have explored "visually grounded" models that use images to provide context. However, static images are limited; they can identify objects (nouns) but struggle to distinguish between dynamic actions, such as "sitting" versus "standing." This limitation makes it difficult for image-based models to induce Verb Phrases (VPs) and Prepositional Phrases (PPs).

Figure 1: Video provides dynamic temporal cues and synchronized audio (e.g., a squirrel jumping) that help the model align text spans with visual actions, facilitating the induction of complex verb phrases.

Methodology

The proposed Multi-Modal Compound PCFG (MMC-PCFG) addresses these limitations by leveraging the rich, temporal information found in video. The framework builds upon the Compound Probabilistic Context-Free Grammar (C-PCFG), a generative model that treats a sentence as a sequence of hidden grammar rules. MMC-PCFG integrates video through several key innovations:

  1. Multi-modal Experts: Instead of relying on raw pixels, the model extracts features from eight specialized pre-trained "expert" models. These experts cover diverse categories including Objects (ResNeXt), Actions (I3D, R2P1D, S3DG), Scenes, Audio, Faces, OCR, and Speech.
  2. Multi-Modal Transformer: To avoid the noise inherent in simply averaging or concatenating these features, the authors employ a transformer architecture. This allows the model to learn complex correlations across different modalities and timestamps, such as matching the sound of a guitar with the visual action of fingers moving.
  3. Video-Text Alignment: The model uses a "hinge loss" to align specific spans of text with corresponding video representations. If a span (e.g., "jumps on stump") matches the visual action in the video, the model rewards that specific syntactic structure.
  4. End-to-End Training: The system is trained to maximize both the likelihood of the text and the alignment between text spans and video features.

Experiments and Results

The model was evaluated on three major video-language benchmarks: DiDeMo (Flickr videos), YouCook2 (cooking procedures), and MSRVTT (YouTube captions). Since ground-truth syntactic trees do not exist for these datasets, performance was measured against "gold" trees generated by Benepar, a state-of-the-art supervised parser.

MMC-PCFG achieved a new state-of-the-art for unsupervised grammar induction across all three datasets. On the DiDeMo dataset, the model reached a Corpus-F1 score of 55.0%, a substantial improvement over the 38.2% achieved by text-only baselines and the ~48% of the best image-aided models.

Figure 2: Recall performance across different constituent lengths for various modalities. MMC-PCFG (bottom right) demonstrates superior performance and stability compared to individual modality experts and simple concatenation.

Key Insights

  • Action vs. Objects: Quantitative analysis confirms that action-based features (e.g., I3D) are significantly more effective than object-based features (e.g., ResNeXt) for inducing verb phrases. Action features led to a dramatic jump in VP recall, which rose from 16.5% in text-only models to 52.3% in MMC-PCFG.
  • Audio as a Signal: Interestingly, audio features (e.g., "bird sound") provided meaningful signals for parsing, suggesting that sound often correlates with the "head" of a verb phrase.
  • The Transformer Advantage: Simply concatenating all video features (the "Concat" baseline) performed worse than some single-modality models. The Multi-Modal Transformer was essential for filtering out irrelevant information and focusing on features that explain the text.

Discussion and Limitations

While MMC-PCFG marks a significant breakthrough, it faces certain challenges. The computational complexity is high due to the use of eight expert models and a multi-modal transformer. Additionally, the study limited sentences to 20 words or fewer to manage the cubic complexity of PCFG parsing. Future work could involve more sophisticated handling of missing modalities (e.g., videos without audio) and applying the framework to low-resource languages where unlabelled video is plentiful but annotated linguistic data is non-existent.

Conclusion

MMC-PCFG demonstrates that the rich temporal and auditory information in video provides a more stable and reliable signal for learning grammar than static images. By successfully inducing complex verb phrases, this work opens new possibilities for unsupervised language learning in diverse, real-world environments.

Summary updated

BibTeX
@inproceedings{zhang2021video,
  author = {Songyang Zhang and Linfeng Song and Lifeng Jin and Kun Xu and Dong Yu and Jiebo Luo},
  title = {{Video-aided Unsupervised Grammar Induction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.119},
}
Figure