SINC: Self-Supervised In-Context Learning for Vision-Language Tasks

Yi-Syuan Chen, Yun-Zhu Song, Cheng Yu Yeo, Bei Liu, Jianlong Fu, Hong-Han Shuai

Abstract

In-context learning (ICL) has traditionally been viewed as an emergent property of massive large language models (LLMs). SINC (Self-supervised IN-Context learning) challenges this paradigm by demonstrating that ICL can be explicitly learned as a skill by compact models. By training a lightweight meta-model on self-generated, structured prompts, SINC achieves superior few-shot performance on vision-language tasks while requiring significantly fewer parameters than traditional LLM-based approaches.

Introduction

The ability of AI models to learn from a few demonstrations without permanent weight updates—In-Context Learning—is a powerful capability. However, current Vision-Language (VL) models typically achieve this by integrating visual features into gargantuan, frozen LLMs. This reliance leads to high computational costs, sensitivity to prompt engineering, and a tendency to ignore context in favor of pre-existing biases. SINC addresses these issues by decoupling ICL from model scale and treating it as a primary training objective.

The SINC Framework

SINC utilizes a modular architecture designed for efficiency and generalization. At its core is a compact "meta-model" (82M-124M parameters) that processes sequences of demonstrations to predict query labels.

The SINC architecture features a Multi-Source Feature Fuser and compositional label representations to enable zero-shot generalization.

Key components include:

  • Multi-Source Feature Fuser (MFF): Integrates features from frozen experts in vision (ViT), language (RoBERTa), and multimodal alignment (METER).
  • Compositional Label Representations: Labels are represented as averaged embeddings of their descriptive words, allowing the model to handle unseen categories by understanding their semantic components.

Self-Supervised Prompt Construction

To teach the meta-model how to utilize context effectively, SINC employs a self-supervised training regime using unannotated image-text pairs. Three prompt types are constructed to simulate different contextual relationships:

Self-supervised prompt construction strategies: LID (semantic similarity), DID (visual/semantic similarity), and OD (random noise).
  • Label-In-Demo (LID): Demonstrations share the same semantic label as the query, teaching the model to recognize shared concepts.
  • Data-In-Demo (DID): Demonstrations are visually or semantically related to the query, helping the model extract relevant features.
  • Out-Demo (OD): Random demonstrations that ensure the model doesn't over-rely on context when it is not helpful.

Results and Efficiency

Evaluated on tasks like Fast Concept Binding (FCB), VQAv2, and NLVR2, SINC demonstrates remarkable performance. In 10-shot FCB, SINC (124M) achieved 89.24% accuracy, significantly outperforming the 7B+ parameter "Frozen" model (58.90%).

Beyond accuracy, SINC is highly efficient. It requires roughly 13x fewer frozen parameters and 3.5x fewer learnable parameters than previous ICL methods. Because the heavy feature extractors are frozen, their outputs can be pre-computed, making the training of the meta-model fast and lightweight.

Conclusion

SINC proves that ICL is a trainable skill that does not require extreme model scale. By explicitly training on the correlation between demonstrations and queries, SINC provides a lightweight, robust, and high-performing alternative to LLM-dependent vision-language systems. Future work will focus on improving length generalization to handle more examples and applying this meta-learning approach to complex, multi-step reasoning tasks.

Summary updated

BibTeX
@inproceedings{chen2023sinc,
  author = {Yi-Syuan Chen and Yun-Zhu Song and Cheng Yu Yeo and Bei Liu and Jianlong Fu and Hong-Han Shuai},
  title = {{SINC: Self-Supervised In-Context Learning for Vision-Language Tasks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure