Eliciting In-Context Learning in Vision-Language Models for Videos Through Curated Data Distributional Properties

Keunwoo Peter Yu, Zheyuan Zhang, Fengyuan Hu, Shane Storks, Joyce Chai

Introduction

Large Language Models (LLMs) have demonstrated a remarkable capacity for in-context learning (ICL), allowing them to adapt to new tasks through a few examples provided in a prompt. However, Vision-Language Models (VLMs) for video have historically lacked this emergent capability, often remaining "frozen" in the knowledge acquired during pre-training. This limitation is particularly problematic in dynamic environments like robotics or assistive AI, where models must recognize rare or novel human actions not present in massive, static datasets.

Researchers have recently addressed this gap by demonstrating that ICL in video models is not merely a function of model scale, but a result of specific statistical properties in the training data. By curating these properties, the new training paradigm EILeV (Emergent In-context Learning on Videos) successfully induces ICL in relatively small models, enabling them to narrate novel actions after seeing only a few examples.

Methodology: The EILeV Paradigm

EILeV structures training data to mimic three distributional properties known to foster ICL in transformers: bursty distributions, skewed marginals, and dynamic meanings.

The three distributional properties used in EILeV training: (a) Bursty distributions, (b) Skewed marginals, and (c) Dynamic meaning.
  1. Bursty Distributions: In natural language, words often appear in "bursts" related to a specific topic. EILeV replicates this by ensuring that context examples in a training sequence are semantically related to the query. For instance, if the target is "cutting an onion," the preceding examples might include "cutting a carrot" or "peeling an onion."
  2. Skewed Marginal Distributions: To prevent the model from simply memorizing common patterns (in-weights learning), the training set maintains a "long tail" of infrequent actions. This forces the model to rely on the provided context to resolve the query.
  3. Dynamic Meaning: By using natural language narrations where the same visual action is described with various synonyms or levels of detail, the model learns to map diverse linguistic descriptions to visual concepts dynamically.

Technically, the authors adapted the BLIP-2 architecture, modifying it to encode video frames into a sequence of tokens that a frozen LLM (such as OPT-2.7B or Flan-T5-xl) can process alongside interleaved text.

Key Insights

Data Structure vs. Model Size

A primary finding is that data structure is more critical than raw parameter count for eliciting ICL. Despite having only ~3B parameters, EILeV models significantly outperformed much larger general-purpose models like Otter and Kosmos-2 in few-shot narration tasks. This suggests that current large-scale pre-training may actually suppress ICL by favoring "in-weights" memorization over "in-context" reasoning.

The Necessity of Burstiness

Ablation studies revealed that burstiness is the most critical factor. When the relationship between context examples and the query was randomized, the model's ability to benefit from few-shot examples collapsed, highlighting that the model specifically learns to leverage semantic relationships within the prompt.

Experimental Results

The EILeV models were evaluated on the Ego4D dataset and the out-of-distribution (OOD) EPIC-KITCHENS-100 benchmark.

Performance comparison (STS-BE and ROUGE-L) of EILeV models against baselines as the number of in-context shots increases.

As shown in the performance curves, EILeV-trained models exhibit a steady increase in accuracy (measured by STS-BE and ROUGE-L) as the number of "shots" (examples) increases up to 16. In contrast, off-the-shelf models like Kosmos-2 and Otter often show flat or even declining performance when provided with more context, indicating a failure to perform true in-context learning. The ability of EILeV models to generalize to EPIC-KITCHENS-100 further proves that this ICL capability is a general reasoning skill rather than a dataset-specific artifact.

Conclusion and Future Work

EILeV demonstrates that ICL can be elicited in video-language models through intentional data curation. While currently focused on egocentric video narration, this approach opens doors for more complex video reasoning tasks. Future research may explore fine-tuning the vision encoders and LLMs end-to-end using these principles to further enhance emergent behaviors in multi-modal systems.

Summary updated

BibTeX
@inproceedings{yu2024eliciting,
  author = {Keunwoo Peter Yu and Zheyuan Zhang and Fengyuan Hu and Shane Storks and Joyce Chai},
  title = {{Eliciting In-Context Learning in Vision-Language Models for Videos Through Curated Data Distributional Properties}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=UhrS65Apq8},
}
Figure