Structured Multi-Modal Prompting for Vision-Language Reasoning in Complex Retail Scenes: Out-of-Stock Prediction as a Case Study

Jiuhong Xiao, Abhay Doke, Vinod KulathumaniarXiv 2026

TL;DR

Spotting an empty space on a grocery store shelf is easy; figuring out which specific product is missing from a cluttered, nearly identical lineup of sour cream tubs is surprisingly hard. This paper introduces ShelfOOSVLM, a zero-shot framework that feeds a Vision-Language Model (VLM) a carefully structured prompt combining shelf photos, store layout maps (planograms), and highlighted empty-space masks. By prompting the VLM to reason step-by-step, it achieves 96.8% precision and recall at identifying missing products—crushing traditional zero-shot computer vision pipelines without requiring constant retraining.

What Problem Does This Paper Address?

Retailers lose sales when items go Out-of-Stock (OOS). Automated OOS prediction requires looking at a shelf image, comparing it against a planogram (a store's digital diagram of where every product should go), and naming the missing item.

Historically, two approaches have dominated, and both hit walls in the real world:

  1. Fine-tuned detection–recognition pipelines: These require massive labeled datasets and frequent retraining every time a brand updates its packaging or a store rotates its inventory.
  2. Zero-shot foundation model pipelines (e.g., CLIP or DINOv3): While they don't need retraining, they struggle with fine-grained distinctions (like telling Cacique Crema Mexicana apart from Cacique Cilantro Lime Sour Cream when tilted or partially hidden) and have no natural way to integrate messy, tabular planogram metadata.

Methods

The authors' solution, ShelfOOSVLM, replaces multi-stage detection–recognition–rule pipelines with a single, zero-shot call to a Large Vision-Language Model (specifically, Claude 3.7 Sonnet). The secret sauce isn't fine-tuning—it's structured multi-modal prompting.

Figure 1. ShelfOOSVLM framework. A structured multi-modal prompting framework that composes shelf imagery, planogram metadata, and expert OOS-detector outputs into a unified vision-language prompt. The VLM produces product- and bin-level OOS predictions through explicit chain-of-thought reasoning.

Instead of dumping raw data into the model, the framework composes three inputs into a unified prompt:

  • Image Prompt: A single composited image containing the shelf photo, a scaled planogram grid with numbered bin indices placed directly above the shelf, and filled blue boxes overlaid on the empty spaces (provided by an expert OOS detector).
  • Text Prompt: Task instructions, the ordered list of expected products from the planogram, and the count of OOS boxes.
  • Chain-of-Thought (CoT) Reasoning: The prompt explicitly instructs the VLM to break its answer into two parts: Visual Understanding (identifying nearby visible products, colors, and brands) and Language Reasoning (mapping the blue boxes to the planogram bins).

Datasets

Because existing public retail datasets (like SKU-110k, Locount, and Unitail-Det) lack planograms and OOS labels, the authors collected their own benchmark: ShelfOOS.

Figure 3. ShelfOOS dataset. Self-collected dataset of 65 rack im- ages and 383 shelf images with 637 labeled OOS instances across 3,164 unique products, along with planogram metadata and indi- vidual product crops used by detection–recognition baselines.
  • Scale: 65 rack images broken down into 383 individual shelf images (242 of which contain OOS instances) from a US grocery store.
  • Annotations: 3,897 product instances (3,164 unique products) and 637 labeled OOS instances, paired with the store's actual operational planograms.

Key Insights and Ideas

Through extensive ablation and robustness experiments, the authors uncovered several practical design principles for VLM-based spatial reasoning:

  • Filled masks beat hollow bounding boxes: Overlaying solid blue rectangles over empty spaces outperformed standard bounding-box outlines. With hollow boxes, the VLM could still see neighboring products peeking into the frame and occasionally ignored the OOS mark.
  • Order matters; exact widths don't: Shuffling the planogram's text list caused a noticeable drop in accuracy. However, replacing exact product widths in the visual grid with uniform widths barely hurt performance—meaning the VLM relies on relative sequence rather than pixel-perfect measurements.
  • Stale catalog images can hurt: Adding reference catalog photos into the planogram grid didn't help. Resizing distortions and outdated packaging in the catalog actually confused the VLM.
  • VLMs struggle with multi-row "rack" reasoning: When given an entire multi-shelf rack instead of a single shelf row, performance plummeted. Current VLMs frequently confuse adjacent shelves and struggle when downscaled rack images blur price tags and product text.

Key Results

  • Product-level OOS Prediction: Using annotated OOS boxes as the expert detector output, ShelfOOSVLM achieved 96.8% precision, 96.8% recall, and 0.968 F1 (and 0.962 F1 at the bin level).
  • Beating Baselines: Traditional zero-shot baselines (SAM-CLIP, SAM-DINOv3, YOLOv11-CLIP) saw their recall collapse below 0.203 whenever precision was thresholded at 0.75 or higher. Even when ShelfOOSVLM was stripped of OOS boxes entirely (ShelfOOSVLM-GPI), it still achieved 0.827 precision and 0.816 recall.
  • Robustness: The framework remained resilient to simulated OOS box localization errors (down to IoU = 0.25) and heavy image blur/downsampling—provided the planogram grid was kept intact to anchor the layout.

Limitations and Future Work

The authors note a few key caveats:

  • Scope: The ShelfOOS dataset comes from a single store with mostly near-frontal camera views, and the framework was only tested with one proprietary VLM (Claude 3.7 Sonnet).
  • Idealized Detector: The main experiments used ground-truth annotated OOS boxes. They did not test how the system handles false-positive boxes from a real upstream detector, which filled masks might be particularly sensitive to.
  • Future Directions: The stark performance gap between single-shelf (0.968 F1) and full-rack (0.592–0.750 F1) reasoning highlights a clear need for better dense, multi-row spatial reasoning in VLMs and tighter co-design between upstream detectors and VLMs.

Summary updated

BibTeX
@misc{xiao2026structured,
  author = {Jiuhong Xiao and Abhay Doke and Vinod Kulathumani},
  title = {{Structured Multi-Modal Prompting for Vision-Language Reasoning in Complex Retail Scenes: Out-of-Stock Prediction as a Case Study}},
  year = {2026},
  eprint = {2612.00863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.00863},
}
Figure