Open Ad-hoc Categorization with Contextualized Feature Learning

Zilin Wang, Sangwoo Mo, Stella X. Yu, Sima Behpour, Liu Ren
2/10/2026

No official code found. Best implementation: Wayne2Wang/OAK (4 stars, MIT, last commit 2025-10-30).

Abstract

Adaptive categorization of visual scenes is essential for AI agents to handle changing tasks. Unlike fixed common categories for plants or animals, ad-hoc categories, such as things to sell at a garage sale, are created dynamically to achieve specific tasks. We study open ad-hoc categorization, where the goal is to infer novel concepts and categorize images based on a given context, a small set of labeled exemplars, and some unlabeled data.We have two key insights: 1) recognizing ad-hoc categories relies on the same perceptual processes as common categories; 2) novel concepts can be discovered semantically by expanding contextual cues or visually by clustering similar patterns. We propose OAK, a simple model that introduces a single learnable context token into CLIP, trained with CLIP’s objective of aligning visual and textual features and GCD’s objective of clustering similar images.On Stanford and Clevr-4 datasets, OAK consistently achieves the state-of-art in accuracy and concept discovery across multiple categorizations, including 87.4% novel accuracy on Stanford Mood, surpassing CLIP and GCD by over 50%. Moreover, OAK generates interpretable saliency maps, focusing on hands for Action, faces for Mood, and backgrounds for Location, promoting transparency and trust while enabling accurate and flexible categorization.

View on arXivView PDF

Code Implementations(1)

Wayne2Wang/OAKCommunity66%
MIT

[CVPR 2025] Implementation for Open Ad-hoc Categorization with Contextualized Feature Learning

40PythonOct 14, 202511 months agoMIT
ad-hoc-categorizationcategory-discoverycontextualizationopen-world-recognitionvision-language-model

Similar Papers

Cite this paper

@article{wang2026open,
  title  = {Open Ad-hoc Categorization with Contextualized Feature Learning},
  author = {Zilin Wang and Sangwoo Mo and Stella X. Yu and Sima Behpour and Liu Ren},
  year   = {2026},
  eprint = {2512.16202},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2512.16202},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.16202.svg)](https://codeofpaper.com/paper/2512.16202)

Discussion