arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09612cs.CV
收藏

Inter2Former:面向高效高精度交互式分割的动态混合注意力

Inter2Former: Dynamic Hybrid Attention for Efficient High-Precision Interactive

Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(多媒体可信感知与高效计算重点实验室,教育部,厦门大学)

You Huang, Lichao Chen, Jiayi Ji, Liujuan Cao, Shengchuan Zhang, Rongrong Ji

AI总结:

针对交互式分割中密集令牌方法在CPU上处理慢的问题,提出Inter2Former,通过动态提示嵌入、动态混合注意力、混合专家和动态局部上采样优化计算分配,在CPU设备上实现高精度与高效率的SOTA性能。

摘要:

交互式分割(IS)通过根据用户提示分割目标区域来提高标注效率,在现实场景中有着广泛应用。当前方法面临一个关键权衡:密集令牌方法实现了卓越的准确性和细节保留,但在CPU设备上处理速度极慢;而Segment Anything Model(SAM)利用稀疏提示令牌进行快速推理,推动了该领域发展,却妥协了分割质量。在本文中,我们提出Inter2Former来解决这一挑战,通过优化密集令牌处理中的计算分配,引入了四项关键增强。首先,我们提出动态提示嵌入(DPE),自适应地仅处理感兴趣区域,同时避免背景令牌带来的额外开销。其次,我们引入动态混合注意力(DHA),利用先前的分割掩码将令牌路由通过边界区域的全注意力(O(N2))或非边界区域的BSQ注意力(O(N))。第三,我们开发了混合专家(HMoE),在FFN模块中应用类似的自适应计算策略,并进行CPU优化的并行处理。最后,我们提出动态局部上采样(DLU),作为DPE的逆操作,使用轻量级MLP定位对象,并仅在检测到的区域执行细粒度上采样。在高精度IS基准上的实验结果表明,Inter2Former在CPU设备上实现了SOTA性能和高效率。

英文摘要:

Interactive segmentation (IS) improves annotation efficiency by segmenting target regions from user prompts, with widespread applications in real-world scenarios. Current approaches face a critical trade-off: dense-token methods achieve superior accuracy and detail preservation but suffer from prohibitively slow processing on CPU devices, while the Segment Anything Model (SAM) advances the field with sparse prompt tokens for fast inference but compromises segmentation quality. In this paper, we propose Inter2Former to address this challenge by optimizing computation allocation in dense-token processing, which introduces four key enhancements. First, we propose Dynamic Prompt Embedding (DPE) that adaptively processes only regions of interest while avoiding additional overhead from background tokens. Second, we introduce Dynamic Hybrid Attention (DHA), which leverages previous segmentation masks to route tokens through either full attention (O(N2)) for boundary regions or our proposed efficient BSQ attention (O(N)) for non-boundary regions. Third, we develop Hybrid Mixture of Experts (HMoE), which applies similar adaptive computation strategies in FFN modules with CPU-optimized parallel processing. Finally, we present Dynamic Local Upsampling (DLU), a reverse operation of DPE, which localizes objects with a lightweight MLP and performs fine-grained upsampling only in detected regions. Experimental results on high-precision IS benchmarks demonstrate that Inter2Former achieves SOTA performance with high efficiency on CPU devices.

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

↑