arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.21171cs.CV
收藏

TokenCLIP: 基于令牌的提示学习用于零样本异常检测

TokenCLIP: Token-wise Prompt Learning for Zero-shot Anomaly Detection

Zhejiang University(浙江大学);Tencent YouTu Lab(腾讯YouTu实验室);Singapore Management University(新加坡管理学院);Qilu University of Technology (Shandong Academy of Sciences)(青岛科技大学(山东科学院))

Qihang Zhou, Binbin Gao, Guansong Pang, Xin Wang, Jiming Chen, Shibo He

AI总结:

TokenCLIP通过动态对齐视觉与文本子空间,实现细粒度异常检测,提升零样本异常检测性能。

摘要:

在未见过的对象上适应CLIP进行异常检测已在零样本方式下展现出强大潜力。然而,现有方法通常依赖于一个单一的文本空间来对齐不同对象和领域的视觉语义。这种无差别对齐阻碍了模型准确捕捉多样化异常语义的能力。我们提出TokenCLIP,一种基于令牌的适应框架,使视觉和可学习文本空间之间能够实现动态对齐,以实现细粒度的异常学习。与其将所有视觉令牌映射到一个单一的、不考虑令牌的文本空间,TokenCLIP将每个令牌与一个代表其视觉特征的定制文本子空间对齐。显式地为每个令牌分配一个独特的可学习文本空间在计算上不可行且容易导致优化不足。我们转而将不考虑令牌的文本空间扩展为一组正交子空间,然后根据语义亲和力动态地将每个令牌分配到子空间组合中,这共同支持了定制化和高效的令牌级适应。为此,我们将动态对齐表述为一个最优传输问题,其中图像中的所有视觉令牌根据语义相似性传输到文本子空间中。最优传输的约束条件确保了子空间之间的充分优化,并鼓励它们关注不同的语义。解决该问题将产生一个传输计划,使每个令牌能够适应性地分配到语义相关的子空间中。随后,应用一个top-k掩码来稀疏化该计划,并为不同的视觉区域专门化子空间。广泛的实验表明了TokenCLIP的优越性。

英文摘要:

Adapting CLIP for anomaly detection on unseen objects has shown strong potential in a zero-shot manner. However, existing methods typically rely on a single textual space to align with visual semantics across diverse objects and domains. The indiscriminate alignment hinders the model from accurately capturing varied anomaly semantics. We propose TokenCLIP, a token-wise adaptation framework that enables dynamic alignment between visual and learnable textual spaces for fine-grained anomaly learning. Rather than mapping all visual tokens to a single, token-agnostic textual space, TokenCLIP aligns each token with a customized textual subspace that represents its visual characteristics. Explicitly assigning a unique learnable textual space to each token is computationally intractable and prone to insufficient optimization. We instead expand the token-agnostic textual space into a set of orthogonal subspaces, and then dynamically assign each token to a subspace combination guided by semantic affinity, which jointly supports customized and efficient token-wise adaptation. To this end, we formulate dynamic alignment as an optimal transport problem, where all visual tokens in an image are transported to textual subspaces based on semantic similarity. The transport constraints of OT ensure sufficient optimization across subspaces and encourage them to focus on different semantics. Solving the problem yields a transport plan that adaptively assigns each token to semantically relevant subspaces. A top-k masking is then applied to sparsify the plan and specialize subspaces for distinct visual regions. Extensive experiments demonstrate the superiority of TokenCLIP.

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

↑