cs.CVMar 7, 2026

PolypSteer: Counterfactual Endoscopic Synthesis via Training-Free Activation Steering

Authors: Trong-Thang Pham, Loc Nguyen, Anh Nguyen, Hien V. Nguyen, Ngan Le

Organizations: University of Arkansas, Fayetteville AR, USA · University of Liverpool, Liverpool, UK · University of Houston, Houston TX, USA

Abstract

Generative diffusion models are increasingly used for medical imaging data augmentation, but text prompting cannot produce causal training data. Re-prompting rerolls the entire generation trajectory, altering anatomy, texture, and background. Inversion-based editing methods introduce reconstruction error that causes structural drift. We propose PolypSteer, a training-free activation-steering framework for endoscopic synthesis. PolypSteer identifies a pathology vector for each contrastive prompt pair in the cross-attention layers of a diffusion transformer. At inference time, it steers image activations along this vector, generating counterfactual pairs from scratch where the only difference is the steered concept. All other structure is preserved by construction. We evaluate PolypSteer across three experiments on Kvasir v3 and HyperKvasir. On counterfactual generation across three clinical concept pairs, PolypSteer achieves flip rates of 0.800, 0.925, and 0.950, outperforming the best inversion-based baseline in both concept flip rate and structural preservation. On dye disentanglement, PolypSteer achieves 75% dye removal against 20% (PnP) and 10% (h-Edit). On downstream polyp detection, augmenting with PolypSteer counterfactual pairs achieves ViT AUC of 0.9755 versus 0.9083 for quantity-matched re-prompting, confirming that counterfactual structure drives the gain. Code is at link https://github.com/UARK-AICV/PolypSteer

Figures & tables

Explore similar work

CardsList
  1. To do(xx) or not to do(xx): Medical Image Counterfactuals for Dataset Augmentation

    Sep 12, 2026Yasin Ibrahim, Robin J. Evans, Konstantinos KamnitsasFairness in Medical Image ClassificationCounterfactual Data Augmentation

  2. MedDiME: Efficient Latent Diffusion with Adaptive Masking for Medical Counterfactual Generation

    Sep 14, 2026Yan Zeng, Changlu Guo, Anders Nymark Christensen +2Counterfactual ExplanationsLatent Diffusion Models

  3. Positional Segmentor-Guided Counterfactual Fine-Tuning for Spatially Localized Image Synthesis

    Mar 22, 2026Tian Xia, Matthew Sinclair, Andreas Schuh +8Counterfactual Image GenerationImage Generation