atlas

Research map / Vision-language and multimodal / Human and embodied modeling

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

ICML 2025 · Vision-language and multimodal › Human and embodied modeling · approach: Language-grounded scene text and structure · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Adapts visual in-context learning (MAE-style in-painting) to OCR, proposing task-chaining prompts (image-removal-segmentation), context-aware aggregation, and self-prompting to build the ConText generalist for text removal and segmentation.

Problem

Existing visual in-context learning generalists use single-step image-label compositing, which is single-task and context-free and suffers from visual heterogeneity in text, so they underperform on OCR pixel tasks like text removal and segmentation.

Approach

Chain text removal and segmentation into one prompt (image, erased image, mask) so masked reconstruction covers both task labels; add a cross-attention context-aware aggregation to enrich label features; and periodically use the query itself as its demonstration (self-prompting) to keep in-context learnability for heterogeneous text.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace a single-task prompt with a chained removal-and-segmentation prompt (ablation)Painter and SegGPT · TotalText segmentation; SCUT-Ens removalfgIoU / PSNR: +2.62 fgIoU; +0.87 PSNRHelped
Add linear context fusion (ablation)ConText · TotalText segmentation; SCUT-EnsText removalfgIoU / PSNR: +3.61% fgIoU; +1.33 PSNRHelped
Add context-aware aggregation (ablation)ConText · TotalText segmentation; SCUT-EnsText removalfgIoU / PSNR: +10.61% fgIoU; +4.17 PSNRHelped
Add self-prompting at probability 0.2 (ablation)ConText with CAA · TotalText segmentation; SCUT-EnsText removalfgIoU / PSNR: 79.14 / +0.65 to 78.02 / +3.98; 38.59 / +0.37 to 37.67 / +1.42Mixed
Increase self-prompting probability from 0.2 to 0.6 (ablation)ConText with CAA · TotalText segmentation; SCUT-EnsText removalfgIoU / PSNR: 78.02 to 77.14; 37.67 to 36.12Hurt
Vary the masking ratio across 25%, 35%, 55%, 75%, 85%, and 95% (ablation)ConText · TotalText segmentation; SCUT-EnsText removalfgIoU / PSNR: 75.80, 76.23, 77.45, 77.74, 78.02, 78.04; 36.15, 36.67, 36.89, 37.21, 37.67, 36.83Mixed
Increase inference demonstrations from 1 to 5 (ablation)ConText · TotalText, TextSeg val, and SCUT-EnsfgIoU / PSNR: +0.62; +0.54; +0.78Helped
Use first-pass outputs as demonstrations in a second inference (ablation)ConText · TotalText, TextSeg val, and SCUT-EnsfgIoU / PSNR: +0.25; +0.55; +0.44Helped
Add 2,000 SCUT-Syn training samples (ablation)ConTextV · SCUT-Syn removal; TotalText segmentation; SCUT-Ens removalPSNR / fgIoU / PSNR: 39.53; 85.02; 40.33Mixed
Train using only SCUT-Syn data rather than the natural-data mix (ablation)ConTextV · SCUT-Syn removal; TotalText segmentation; SCUT-Ens removalPSNR / fgIoU / PSNR: 43.14; 62.15; 36.78Mixed
Add visual task chainingConText · Text removal and segmentationPSNR / fgIoU: +4.50 PSNR; +3.34% fgIoUHelped
Use randomly selected rather than ground-truth demonstrationsConText · Text removal; text segmentationPSNR / fgIoU: +1.01 PSNR; +5.39 fgIoUHelped

Surprising findings

Limitations

Experimental setup

Datasets: HierText TextSeg TotalText SCUT-EnsText SCUT-Syn FST CLWD

Benchmarks: HierText TotalText FST TextSeg SCUT-EnsText SCUT-Syn PromptText CLWD

Metrics: PSNR MSSIM MSE AGE pEPs pCEPs FID fgIoU F-score

Baselines: MAE-VQGAN Painter SegGPT ViTEraser Hi-SAM SegFormer DeepLabV3+ HRNetV2-W48+OCR TFT EAFormer UPOCR Pix2Pix

Builds on: Painter SegGPT MAE ViTEraser Hi-SAM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy