arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.10699cs.CVcs.AIcs.LG
收藏

通过哈希记忆实现测试时发现

Test-Time Discovery via Hashing Memory

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Suzhou University of Science and Technology(苏州科技大学)

Fan Lyu, Tianle Liu, Zhang Zhang, Fuyuan Hu, Liang Wang

AI总结:

本文提出测试时发现任务TTD,并设计无需训练的LSH哈希记忆、协同分类与自校正机制,使模型在测试阶段发现新类且保持已知类性能。

摘要:

我们提出测试时发现(Test-Time Discovery,TTD)这一新任务,用于应对测试期间的类别变化,要求模型在保留先前已学类别的同时识别新出现的类别。TTD的一个关键挑战是区分新发现的类别与已经识别的类别。为此,我们提出一种无需训练、基于哈希的记忆机制,通过与过去测试样本进行细粒度比较来增强类别发现。利用未知类别的特性,我们的方法引入基于特征尺度和方向的哈希表示,并采用局部敏感哈希(Locality-Sensitive Hashing,LSH)高效分组相似样本。这使得测试样本能够轻松、快速地与相关的历史实例进行比较。此外,我们设计了协同分类策略,将用于已知类别的原型分类器与用于新类别的基于LSH的分类器相结合。为提高可靠性,我们加入自校正机制,通过基于哈希的邻居检索来细化记忆标签,从而确保类别分配更加稳定和准确。实验结果表明,我们的方法能够很好地发现新类别,同时保持在已知类别上的性能,建立了模型测试的新范式。代码位于https://github.com/fanlyu/ttd。

英文摘要:

We introduce Test-Time Discovery (TTD) as a novel task that addresses class shifts during testing, requiring models to simultaneously identify emerging categories while preserving previously learned ones. A key challenge in TTD is distinguishing newly discovered classes from those already identified. To address this, we propose a training-free, hash-based memory mechanism that enhances class discovery through fine-grained comparisons with past test samples. Leveraging the characteristics of unknown classes, our approach introduces hash representation based on feature scale and directions, utilizing Locality-Sensitive Hashing (LSH) for efficient grouping of similar samples. This enables test samples to be easily and quickly compared with relevant past instances. Furthermore, we design a collaborative classification strategy, combining a prototype classifier for known classes with an LSH-based classifier for novel ones. To enhance reliability, we incorporate a self-correction mechanism that refines memory labels through hash-based neighbor retrieval, ensuring more stable and accurate class assignments. Experimental results demonstrate that our method achieves good discovery of novel categories while maintaining performance on known classes, establishing a new paradigm in model testing. Our code is available at https://github.com/fanlyu/ttd.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑