mlsanityData to 14 Oct 2026

Retrieval-Augmented Visual Prompting: Guiding Foundation Models in Two-Photon Imaging

arXiv 2608.21970 ↗First posted 22 Aug 2026cs.CVcited by 0

On the map: Retrieval-augmented generation → Multimodal RAG

Abstract (arXiv)

Two-photon calcium imaging presents a challenging setting for foundation models: image appearance varies substantially across recordings and experimental conditions, annotations are scarce, and rapid adaptation is often needed. Rather than adapting model weights through fine-tuning, we ask whether a foundation model can be guided at inference time by injecting external visual memory directly into its input. We implement this idea with SAM 3 and introduce Retrieval-Augmented Visual Prompting (RAVP), a framework in which each target tile is augmented with a retrieved annotated exemplar whose bounding box is used as a concept prompt. RAVP turns retrieval into a form of visual prompting and enables adaptation through input design alone. We study multiple exemplar selection strategies, including fluorescence-guided heuristics and a lightweight recall predictor trained to estimate which exemplar is most informative for a target tile. Experiments on the Allen Brain Observatory show that exemplar-augmented inference consistently strengthens zero-shot neuron detection and instance segmentation. Ablation studies further show that a single carefully selected exemplar is more effective than prompting with multiple retrieved examples. These results position inference-time visual memory injection as a simple and effective alternative to parameter adaptation for foundation models in specialized biomedical imaging.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Multimodal RAG, one of 15 directions in Retrieval-augmented generation. Builds on 13 of its 24 references that are in the map. First posted on arXiv 22 Aug 2026.

Builds on

13 of 24 references.

References · 13

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2023Segment Anythingcited by 8,234
  3. 2017Prototypical Networks for Few-shot Learningcited by 3,015
  4. 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
  5. 2025SAM 3: Segment Anything with Conceptscited by 906
  6. 2019PANet: Few-Shot Image Semantic Segmentation with Prototype Alignmentcited by 449
  7. 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 318
  8. 2023SegGPT: Segmenting Everything In Contextcited by 194
  9. 2021Hypercorrelation Squeeze for Few-Shot Segmentationcited by 193
  10. 2026Medical SAM3: A Foundation Model for Universal Prompt-Driven Medical Image Segmentationcited by 25
  11. 2016Fast Online Deconvolution of Calcium Imaging Datacited by 9
  12. 2022A General Deep Learning framework for Neuron Instance Segmentation based on Efficient UNet and Morphological Post-processingcited by 3
1 more
  1. 2024realSEUDO for real-time calcium imaging analysiscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024When Does Visual Prompting Outperform Linear Probing for Vision-Language Models? A Likelihood Perspective
  2. 2022Exploring Visual Prompts for Adapting Large-Scale Models
  3. 2026Visual Prompt Discovery via Semantic Exploration
  4. 2026Glance-or-Gaze: Incentivizing LMMs to Adaptively Focus Search via Reinforcement Learning
  5. 2026UnAC: Adaptive Visual Prompting with Abstraction and Stepwise Checking for Complex Multimodal Reasoning
  6. 2026Attend to Evidence: Evidence-Anchored Spatial Attention Supervision for Multimodal RLVR
  7. 2026ReMAP: Restoring the Perceptual Cycle with Reasoning-Time Latent Visual Memory
  8. 2026MemoGen: Can Past Experience Improve Future Text-to-Image Generation?