TALON: Test-time Adaptive Learning for On-the-Fly Category Discovery

Yanan Wu, Yuhan Yan, Tailai Chen, Zhixiang Chi, ZiZhang Wu, Yi Jin, Yang Wang, Zhenbo Li

TL;DR

TALON introduces a hash-free, test-time adaptive framework for On-the-Fly Category Discovery (OCD), allowing machine learning models to continuously learn and discover new classes from streaming unlabeled data. By jointly updating both the feature encoder and class prototypes in a continuous embedding space, it effectively eliminates the "category explosion" problem that plagues previous static, hash-based methods.

What Problem Does This Paper Address?

Conventional visual recognition models operate under a "closed-world" assumption, meaning they fail when encountering categories not seen during training. While newer paradigms like Generalized Category Discovery (GCD) attempt to solve this, they rely on offline batch processing of unlabeled data.

On-the-Fly Category Discovery (OCD) is a much more realistic and challenging setup: a model is trained offline on a set of labeled data and then deployed into a dynamic environment where it encounters a continuous, streaming sequence of unlabeled data. The model must provide instant feedback—correctly identifying known classes while simultaneously discovering and naming entirely novel ones.

Prior OCD methods freeze the feature extractor after offline training and use heuristic hash-based quantization to create binary class prototypes. This introduces massive information loss and leads to "category explosion"—a phenomenon where a single true class fragments into dozens of pseudo-classes due to natural intra-class variance. Furthermore, because these models are frozen at test time, they completely ignore the learning potential of the incoming data stream.

Methods

TALON (Test-time Adaptive Learning for On-the-Fly Category Discovery) discards discrete hashing entirely, operating directly in the continuous feature space to preserve representational expressiveness. The framework consists of two main phases:

  1. Offline Stage (Margin-aware Logit Calibration - MLC): Instead of standard cross-entropy, TALON introduces an angular margin to the cosine similarity between features and class weights during initial training. This forces known classes to be tightly clustered, proactively reserving open "territory" in the embedding space for future novel classes.
  2. Online Stage (Test-Time Adaptation - TTA): As new data streams in, TALON performs two joint, lightweight updates:
  3. Semantic-aware Prototype Update: Class prototypes are dynamically refined using a confidence-controlled exponential moving average (EMA). High-confidence samples drive larger updates, while outliers or scarce data are down-weighted to prevent noisy drift.
  4. Stable Test-time Encoder Update: The image encoder parameters are periodically updated using an entropy-minimization objective combined with prototype-level regularization (alignment and separation losses). This ensures the encoder adapts to semantic shifts without collapsing or overfitting.
Figure 2. Overview of the proposed TALON framework. (a) During the offline stage, we introduce margin-aware logit calibration to enlarge inter-class margins and enhance intra-class compactness, reserving embedding space for future category discovery. (b) At test-time, we jointly update the encoder and class prototypes, enabling the model to learn through discovery rather than static inference.

Datasets

The authors evaluated TALON across seven standard image classification benchmarks, spanning both coarse-grained and fine-grained challenges:

  • Coarse-grained: CIFAR-10, CIFAR-100, and ImageNet-100.
  • Fine-grained: CUB-200-2011 (birds), Stanford Cars, Oxford-IIIT Pet, and Food-101.

For evaluation, half of the categories in each dataset were treated as known (labeled training set), and the remaining half appeared dynamically in the unlabeled test stream.

Key Insights and Ideas

  • Learning Through Discovery: Fixing the feature extractor at test time is a major bottleneck. Allowing the encoder and prototypes to co-evolve enables the model to adapt to the natural semantic shifts of an online stream.
  • Ditching Hashing for Continuous Space: Hashing was originally used to stabilize online clustering, but continuous representations combined with proper regularization (alignment/separation losses) provide far superior expressiveness and stability.
  • Proactive Embedding Space Management: Enforcing strict angular margins during offline training makes the model naturally "forward-compatible" by leaving room for unseen categories.
Figure 3. Angular analysis of the margin-aware logit calibra- tion on the Pets dataset. Left: angles between samples and their class prototypes; Right: angles between different class prototypes.

Key Results

TALON consistently outperformed existing state-of-the-art approaches (such as SMILE and PHE) across all seven benchmarks under both Greedy-Hungarian and Strict-Hungarian evaluation metrics.

  • Accuracy Boost: On CIFAR-100, TALON achieved an overall accuracy of 72.5% (using a DINO backbone) compared to SMILE's 61.3%. On fine-grained datasets like Stanford Cars, TALON paired with a CLIP backbone reached 60.4% overall accuracy, vastly outperforming previous methods.
  • Mitigating Category Explosion: Previous hash-based methods severely overestimated class counts. For instance, on the CUB dataset (which has a true class count of $C=200$), SMILE-64bit predicted an astronomical 2,910 categories. TALON dramatically suppressed this explosion, estimating a highly realistic 153 categories while maintaining superior accuracy.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Hyperparameter Sensitivity: The framework relies on a predefined similarity threshold ($\tau$) to decide if a sample belongs to a novel class. If $\tau$ is poorly calibrated, it can impact the model's conservative nature during discovery.
  • Computational Overhead: Unlike static inference methods, TALON requires periodic gradient updates at test time. While lightweight, this introduces a non-zero computational cost during deployment.

Future work will focus on developing self-adaptive thresholding mechanisms and exploring more computationally efficient parameter-efficient fine-tuning (PEFT) strategies for the test-time adaptation phase.

Summary updated

BibTeX
@inproceedings{wu2026talon,
  author = {Yanan Wu and Yuhan Yan and Tailai Chen and Zhixiang Chi and ZiZhang Wu and Yi Jin and Yang Wang and Zhenbo Li},
  title = {{TALON: Test-time Adaptive Learning for On-the-Fly Category Discovery}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=y1bXcge6u5},
}
Figure