arXiv:2506.03799cs.CV2025-06ICML被引 3

用链式提示增强文本移除与分割的上下文学习能力

ConText: Driving In-context Learning for Text Removal and Segmentation

  • 设计图像-移除-分割链式提示,引导多步推理
  • 在跨域基准上达到新最好性能,优于现有方法
  • 适合需要强泛化能力的文本理解任务

本文首次将视觉上下文学习(V-ICL)范式应用于光学字符识别任务,聚焦文本移除与分割。现有V-ICL通用模型多采用推理即重构策略,通过图像-标签组合作为提示,掩码查询标签生成输出,但该直接提示限制了模型仅能进行单步推理。为此,我们提出图像-移除-分割链式提示,提供包含丰富中间步骤的增强提示,促进更优推理。同时引入上下文感知聚合,将链式提示模式融入潜在查询表示,强化模型上下文推理能力。针对文本识别中视觉异质性带来的示范选择难题,我们采用简单自提示策略,防止模型退化为无上下文的专用推断。综合上述改进,我们构建了ConText模型,在跨域和域内基准上均达到新最佳性能。代码已开源。

原文摘要 · Abstract (English)

This paper presents the first study on adapting the visual in-context learning (V-ICL) paradigm to optical character recognition tasks, specifically focusing on text removal and segmentation. Most existing V-ICL generalists employ a reasoning-as-reconstruction approach: they turn to using a straightforward image-label compositor as the prompt and query input, and then masking the query label to generate the desired output. This direct prompt confines the model to a challenging single-step reasoning process. To address this, we propose a task-chaining compositor in the form of image-removal-segmentation, providing an enhanced prompt that elicits reasoning with enriched intermediates. Additionally, we introduce context-aware aggregation, integrating the chained prompt pattern into the latent query representation, thereby strengthening the model's in-context reasoning. We also consider the issue of visual heterogeneity, which complicates the selection of homogeneous demonstrations in text recognition. Accordingly, this is effectively addressed through a simple self-prompting strategy, preventing the model's in-context learnability from devolving into specialist-like, context-free inference. Collectively, these insights culminate in our ConText model, which achieves new state-of-the-art across both in- and out-of-domain benchmarks. The code is available at https://github.com/Ferenas/ConText.

上下文学习文本移除图像分割

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。