Learn to Categorize or Categorize to Learn? Self-Coding for Generalized Category Discovery

Sarah Rastegar, Hazel Doughty, Cees G. M. Snoek
2/12/2026

Official code: SarahRastegar/SelEx (31 stars, MIT, last commit 2025-08-04). 1 more implementation below.

Abstract

In the quest for unveiling novel categories at test time, we confront the inherent limitations of traditional supervised recognition models that are restricted by a predefined category set. While strides have been made in the realms of self-supervised and open-world learning towards test-time category discovery, a crucial yet often overlooked question persists: what exactly delineates a \textit{category}? In this paper, we conceptualize a \textit{category} through the lens of optimization, viewing it as an optimal solution to a well-defined problem. Harnessing this unique conceptualization, we propose a novel, efficient and self-supervised method capable of discovering previously unknown categories at test time. A salient feature of our approach is the assignment of minimum length category codes to individual data instances, which encapsulates the implicit category hierarchy prevalent in real-world datasets. This mechanism affords us enhanced control over category granularity, thereby equipping our model to handle fine-grained categories adeptly. Experimental evaluations, bolstered by state-of-the-art benchmark comparisons, testify to the efficacy of our solution in managing unknown categories at test time. Furthermore, we fortify our proposition with a theoretical foundation, providing proof of its optimality. Our code is available at: \url{https://github.com/SarahRastegar/InfoSieve}.

View on arXivView PDF

Code Implementations(2)

MIT

Official Repository of "Learn to Categorize or Categorize to Learn? Self-Coding for Generalized Category Discovery" (NeurIPS 2023)

232Shell, PythonOct 22, 20231 years agoMIT
MIT

Official Repository of "SelEx: Self-Expertise in Fine-Grained Generalized Category Discovery" (ECCV 2024)

315Shell, PythonJul 15, 20241 years agoMIT

Similar Papers

Cite this paper

@article{rastegar2026learn,
  title  = {Learn to Categorize or Categorize to Learn? Self-Coding for Generalized Category Discovery},
  author = {Sarah Rastegar and Hazel Doughty and Cees G. M. Snoek},
  year   = {2026},
  eprint = {2310.19776},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.19776},
  journal = {NEURIPS 2023 2023}
}

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/2310.19776.svg)](https://codeofpaper.com/paper/2310.19776)

Discussion