GUIDE: Guided Unbiased Image Diffusion for Endoscopy

Siddhartha Kapuria, Naruhiko Ikoma, Joga Ivatury, Sandeep Chinchali, Farshid AlambeigiarXiv 2026

TL;DR

Training AI to spot gastrointestinal cancers is notoriously difficult because medical datasets are small, imbalanced, and rarely come with fancy pixel-level annotations. Enter GUIDE: a framework that finds the exact training images a classifier is most confused about and uses a diffusion model to dream up fresh, realistic variations of those "hard" cases. By turning a single mathematical knob to balance anatomical accuracy against creative diversity—using only basic class labels—GUIDE significantly boosts diagnostic accuracy across wildly different imaging sensors.

What Problem Does This Paper Address?

Endoscopies save lives by catching colorectal and gastric cancers early, yet clinicians still miss up to 26%–34% of certain polyps due to tricky lighting, awkward angles, and subtle lesion shapes. Deep learning acts as a great "second pair of eyes," but medical datasets are small and heavily skewed toward common lesion types, causing models to overfit and fail on rare cases.

Recently, researchers have used generative AI (like diffusion models) to synthesize extra training images. There’s a catch, though: to keep synthetic tumors anatomically realistic, state-of-the-art generators usually demand dense pixel-by-pixel segmentation masks or rich text descriptions. In the real clinical world, getting doctors to draw thousands of masks is prohibitively expensive; most datasets just have simple, sparse tags like "adenomatous" or "hyperplastic." We need a way to generate targeted, clinically useful synthetic data using only those basic labels.

Methods

Instead of inventing a brand-new neural network from scratch, the authors cleverly synthesize established active learning and generative AI techniques into a practical two-part pipeline:

  1. Uncertainty-Guided Selection: First, a baseline classifier is trained on the real dataset. The system then scans the training set to find the top 10% "hardest" images where the classifier is most confused—measured via Low Confidence (how unsure it is of its top guess) or High Entropy (how spread out its guesses are across all classes).
  2. Controlled Latent Diffusion: Rather than generating new images from pure random noise, GUIDE takes those confusing reference images, compresses them into a lower-dimensional latent space (via a pre-trained Stable Diffusion VAE), and adds noise only partway through the forward diffusion process.
Overview of the GUIDE diffusion architecture

A single tunable parameter called the denoising extent ($d_{\text{ext}} \in [0, 1]$) controls where this injection happens. If $d_{\text{ext}}$ is near 0, the model barely adds noise, preserving the exact structure and lighting of the original image. If $d_{\text{ext}} = 1$, it starts from pure noise, relying entirely on the class label (injected via cross-attention) for maximum diversity. By picking a middle ground, GUIDE populates the sparse, tricky regions of a classifier's decision boundary with plausible variations of hard cases.

Datasets

To prove this isn't a one-trick pony, the authors tested GUIDE on two completely different modalities (subsampled to simulate realistic low-data regimes for classification):

  • Public RGB Colonoscopy Dataset: An aggregated collection of 37,899 video frames from real colonoscopies showing pre-cancerous (adenomatous) and non-cancerous (hyperplastic) polyps.
  • Vision-Based Surface Tactile (VTS) GC Phantom Dataset: An in-house dataset of 2,200 images of 3D-printed silicone gastric cancer phantoms (spanning four Borrmann tumor classifications), artificially imbalanced for training. Instead of a normal camera, these were captured by HySenSe—a robotic sensor that presses a deformable gel membrane illuminated by internal RGB LEDs against tissue, turning physical stiffness and 3D surface texture into vivid, colorful images.

Key Insights and Ideas

  • Image priors rescue small datasets: When the diffusion model was trained on just 40% of the data, its unguided, pure-noise generations degraded noticeably. However, at lower $d_{\text{ext}}$ values, anchoring the generation to a real reference image preserved realistic clinical textures—meaning you don't need massive datasets to build a useful generator.
  • Generation beats repetition: Simply duplicating hard examples (standard oversampling) often caused classifiers to overfit and perform worse than doing nothing at all. Generating slight variations around those hard examples genuinely smoothed out the decision boundary.
  • Different architectures crave different data: There is no universal "best" setting for synthetic data. Swin Transformers peaked with conservative, high-fidelity variations ($d_{\text{ext}} = 0.3$) selected via Low Confidence. Meanwhile, ConvNeXt thrived on bolder, more diverse generations ($d_{\text{ext}} = 0.5\text{–}0.7$) selected via High Entropy.

Key Results

Across three distinct classifier backbones (Dilated ResNet, ConvNeXt, and Swin Transformer), GUIDE consistently beat real-data baselines, standard oversampling, and pure label-conditioned generation:

  • Colonoscopy (RGB): Boosted ConvNeXt accuracy by 9.8% (from 67.4% to 77.2%) and F1-score by 0.086 (to 0.811). Swin Transformer jumped from 67.9% to 75.4% accuracy.
  • Gastric Phantoms (Tactile): Pushed Dilated ResNet accuracy up by 9.1% (from 76.5% to 85.6%) and ConvNeXt from 84.7% to 88.1%.
  • Ablation studies confirmed that combining uncertainty selection with image-guided diffusion achieved the highest F1-scores in 5 out of 6 tested model/dataset combinations.

Limitations and Future Work

  • Performance ceilings: When a baseline model is already performing near its limit—like the Swin Transformer on the tactile dataset (87.3% baseline accuracy)—GUIDE offers only marginal gains, barely matching simple oversampling.
  • Pre-trained metric quirks: Generative quality was evaluated using FID and KID (which rely on Inception-V3 trained on natural everyday photos), meaning they may not perfectly capture subtle medical or tactile textures.
  • Future directions: Because GUIDE currently ignores extra annotations to remain broadly applicable, the authors plan to make it flexible enough to optionally ingest bounding boxes or masks when available. They also suggest exploring smarter sample-selection strategies beyond basic uncertainty, such as gradient-based scoring (TracIn) or Shapley data valuation.

Summary updated

BibTeX
@misc{kapuria2026guide,
  author = {Siddhartha Kapuria and Naruhiko Ikoma and Joga Ivatury and Sandeep Chinchali and Farshid Alambeigi},
  title = {{GUIDE: Guided Unbiased Image Diffusion for Endoscopy}},
  year = {2026},
  eprint = {2611.35317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35317},
}
Figure