Manuscript Offprint

arXiv:2609.02002

InsightSeg: Reusing Correction Insights for Guideline-Consistent Segmentation

Vanshika Vats, Ashwani Rathee, James Davis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Guideline-consistent semantic segmentation requires more than category recognition, as real-world labeling policies demand fine-grained, task-specific decisions. Recent multi-agent refinement systems improve compliance with such textual guidelines by detecting and correcting errors. However, they are stateless: feedback from the critiquing agent is discarded, causing the same guideline-specific mistakes to be repeatedly rediscovered and corrected across the dataset at the cost of additional refinement. We introduce InsightSeg, an episodic memory mechanism that converts successful correction episodes into reusable, visually grounded insights. A meta-analyzer distills each qualifying episode into directive natural-language insights and anchors them to the local image regions that caused the error using patch-level visual concept vectors. On subsequent images, these concepts are matched against dense patch embeddings to retrieve relevant insights, which condition the segmenting agent before making its first prediction. This shifts the system from correcting recurring errors to preventing them, improving segmentation quality before any refinement occurs. Across Waymo and Cityscapes, InsightSeg improves both first-pass and final guideline-consistent segmentation performance while requiring fewer refinement steps, demonstrating that multi-agent refinement can become more accurate and efficient by drawing on past correction experience.

Introduction

Semantic segmentation systems are typically evaluated by whether they assign the correct semantic class to each pixel, whether through task-specific training (Ronneberger, Fischer, and Brox 2015; Chen et al. 2018) or, more recently, vision-language models (VLMs) prompted with text (Liang et al. 2023; Ren et al. 2024). In many real-world settings, however, correct segmentation depends on complex, task-specific labeling guidelines rather than visual category recognition alone. For example, a person pushing a bicycle may be labeled as a pedestrian, whereas one riding it may need to be excluded (Sun et al. 2020); an umbrella carried by a pedestrian may also need to be included in the same mask (Cordts et al. 2016). Text-prompted segmentation systems excel on short prompts (Lai et al. 2024; Sun et al. 2025; Ren et al. 2024) but deteriorate under such long, intricate rules. Even capable models can therefore produce systematic guideline-specific errors in a single forward pass. Because the same vi-

sual patterns recur across images, the resulting errors could too. Crucially, a single-pass system has no mechanism to detect, let alone correct, its own mistakes.

Recent reasoning-driven segmentation methods increasingly move beyond single-pass prediction by decomposing inference into multiple stages, such as candidate generation and selection, interleaved reasoning and tool use, and explicit evaluation followed by prompt or mask refinement (Zhu et al. 2025; Vats, Rathee, and Davis 2026; Gao, Hao, and Yue 2026; He et al. 2025). These inference-time mechanisms can improve visual grounding and output reliability by allowing intermediate predictions to be inspected, compared, or revised. They often require multiple VLM or Multimodal LLM evaluations and tool invocations for each input sample. However, any corrective feedback they produce is generally confined to the current inference episode: once an image has been processed, its critiques and successful correction strategies are not retained for subsequent inputs.

As a result, similar mistakes may recur across images, forcing the system to repeatedly rediscover the same guideline-specific correction and incur additional refinement calls. This is especially wasteful in guideline-consistent segmentation, where the long and detailed labeling policy remains fixed across the dataset while the visual inputs change, making a correction discovered on one image potentially useful for later images with the same visual trigger. A lesson like 'reflections in glass storefronts are not physical pedestrians' is episodic: it links a specific visual pattern to a corrective action and should be applied only when that pattern reappears. Parametric fine-tuning is therefore a poor fit here because it requires curated data, risks interference with existing capabilities, and cannot readily incorporate corrections online. What this correction system needs is not better weights, but a memory.

To address this, we introduce a patch-indexed episodic memory framework that converts successful correction episodes into reusable, visually grounded insights. Our stateful system, InsightSeg, links each correction insight to the local visual evidence that produced it. When a segmenter-critiquer refinement episode successfully finds and corrects an error, a meta-analyzer distills the episode into directive natural-language insights and anchors it to the relevant image regions using patch-level visual concept vectors. On subsequent new images, the patch-indexed episodic memory com-

Figure

Figure 1: Overview of InsightSeg's stateful correction pipeline. The upper and lower panels illustrate two operations within the same online system: successful corrections from earlier images are distilled and written to episodic memory, while later images retrieve relevant insights via patch-level visual anchors before the initial prediction. This reuse prevents recurring guideline violations and reduces repeated refinement.

pares these stored concepts against dense patch embeddings and retrieves relevant insights, and gives them to the segmenting agent before its first prediction.

This shifts the system from repeatedly correcting mistakes to actively avoiding them in the first place, improving segmentation quality before any refinement occurs. Cleaner initial predictions also leave less work for the critiquer agent, reducing refinement iterations by 62% and 45% while improving final performance on Waymo and Cityscapes datasets, respectively. The entire process is online and training-free, requiring no gradient updates.

Thus, the main contribution of our work is a stateful memory mechanism that lets inference-time correction accumulate and reuse experience across images, which we instantiate for training-free guideline-consistent segmentation. By retrieving these visually grounded insights before the initial prediction, InsightSeg enables cross-image knowledge transfer, prevents recurring errors, and reduces repeated refinement.

References (36)