Ai4
Instacart overcame brittle legacy classifiers and unsustainable frontier-model costs by deploying fine-tuned vision-language models with self-reflection loops across its 22-million-item catalog and real-time in-store fulfillment.
AI-assisted summary of Generative AI for Grocery E-Commerce With Instacart — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by Ai4 on August 19, 2026, this talk features Pradeep Karuturi, a Machine Learning Engineer at Instacart. The presentation covers how Instacart uses multimodal Vision-Language Models (VLMs) to solve catalog intelligence and fulfillment challenges across its massive grocery catalog, detailing production strategies like self-reflection and distillation to optimize cost, latency, and accuracy.
## TL;DR At Instacart's scale of over 22 million catalog items and nearly 100,000 retail locations, legacy machine learning architectures—including single-task text classifiers, brittle OCR pipelines, and visual metric learning—struggled with incomplete retailer metadata and blurry in-store shopper photos. To bridge these gaps, engineering teams deployed multimodal Vision-Language Models (VLMs) that reason jointly across package imagery and text for both catalog attribute extraction and real-time fulfillment verification. However, productionizing VLMs brought severe hurdles with hallucinations, inference costs, model non-determinism, and pick-latency constraints. Instacart tackled these production bottlenecks through self-reflection verification loops, fine-tuning smaller specialized models to bake domain guidelines directly into weights, and investing heavily in robust golden datasets that enable autonomous agentic prompt tuning.
## Atmosphere & style The presentation carries a pragmatic, focused, and unvarnished engineering tone that avoids generic generative AI hype in favor of operational reality. Karuturi speaks with calm authority, methodically walking through concrete system designs grounded in messy edge cases like damaged barcodes, unlisted UPCs, and subtle packaging differences. It feels deeply practical and candid, tracing an engaging arc from massive commercial scale to the unglamorous, essential grind of curation loops, prompt shortening, and inference cost economics.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=Quz16KujtZI&t=4s) Instacart operates at massive scale, reaching over 98% of US households with more than $40 billion in annualized Gross Transaction Value across 2,200 retail partners and 100,000 store locations. - [01:20](https://www.youtube.com/watch?v=Quz16KujtZI&t=80s) Generative AI touches the entire grocery customer journey, from enriching over 22 million catalog items and powering conversational shopping assistants to real-time visual fulfillment verification. - [03:03](https://www.youtube.com/watch?v=Quz16KujtZI&t=183s) Catalog intelligence is inherently multimodal because vital dietary, health, and nutritional attributes are printed directly on physical product packaging rather than supplied in retailer text metadata. - [04:40](https://www.youtube.com/watch?v=Quz16KujtZI&t=280s) In-store fulfillment relies on real-time visual verification from shopper mobile photos when barcode scanning fails due to damaged labels, loose produce, or catalog discrepancies. - [06:08](https://www.youtube.com/watch?v=Quz16KujtZI&t=368s) Pre-GenAI architectures—including single-task text classifiers, brittle OCR pipelines, and metric learning image embeddings—failed due to high maintenance overhead, noise sensitivity, and a lack of support for fuzzy business matching rules. - [08:33](https://www.youtube.com/watch?v=Quz16KujtZI&t=513s) Multimodal Visual Language Models (VLMs) unify visual and textual reasoning into a single framework capable of generalizing across long-tail grocery taxonomy using prompt-based business logic. - [09:35](https://www.youtube.com/watch?v=Quz16KujtZI&t=575s) Deploying VLMs in production introduces severe operational hurdles, including overconfident hallucinations, token costs across multi-million item catalogs, picking latency constraints, and a 6% to 7% non-deterministic decision flip rate. - [11:38](https://www.youtube.com/watch?v=Quz16KujtZI&t=698s) Instacart uses a self-reflection 'double-thinking' prompt loop that forces the VLM to verify its initial extraction against guidelines, significantly boosting precision before promoting data downstream. - [11:38](https://www.youtube.com/watch?v=Quz16KujtZI&t=698s) Fine-tuning smaller, specialized VLMs embeds complex grocery semantics directly into model weights, shrinking prompt payloads and delivering substantial cost and latency reductions compared to frontier models. - [13:03](https://www.youtube.com/watch?v=Quz16KujtZI&t=783s) Investing in high-quality golden datasets establishes dependable evaluation benchmarks and enables autonomous agentic loops to optimize prompts without human engineering intervention. - [14:33](https://www.youtube.com/watch?v=Quz16KujtZI&t=873s) Real-time out-of-stock predictions combine historical cyclical demand models with live, crowd-sourced availability reports streamed directly from in-store shoppers. - [14:33](https://www.youtube.com/watch?v=Quz16KujtZI&t=873s) Instacart applies a task-dependent model routing strategy: smaller fine-tuned models handle high-volume batch extraction and latency-sensitive picking, while frontier models are reserved for low-traffic edge cases.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=Quz16KujtZI&t=4s) Instacart's Scale and Ecosystem Overview
Instacart operates as the leading grocery e-commerce platform in the United States, reaching more than 98% of American households. The sheer operational scale powering the business is reflected in its financial and transactional footprint: reaching over $40 billion in annualized Gross Transaction Value (GTV), serving more than 26 million active customers who placed over 350 million orders over the past year across 2,200 retail partners. The platform provides consumers the flexibility to shop from nearly 100,000 brick-and-mortar store locations while offering earning opportunities for in-store personal shoppers who pick and deliver those orders.
- **Household Reach:** Over 98% of US households - **Annualized GTV:** More than $40 billion - **Order Volume:** Over 350 million orders placed in a single year - **Customer Base:** Over 26 million active customers - **Retail Footprint:** 2,200 retail partners representing nearly 100,000 store locations
---
[01:20](https://www.youtube.com/watch?v=Quz16KujtZI&t=80s) Broad Generative AI Applications Across the Grocery Journey
Generative AI touches virtually every critical stage of the grocery shopping workflow at Instacart. At the foundational level, GenAI models enrich the underlying product catalog by extracting, discovering, and healing structured attributes across a massive repository of more than 22 million unique items. Beyond catalog enrichment, large language models power search and discovery experiences through advanced query understanding, query rewriting, and personalized storefront merchandising—innovations documented in recent research publications presented at SIGIR and KDD.
```mermaid flowchart TD accTitle: Instacart GenAI Touchpoints subgraph PrePurchase["Discovery & Basket Building"] A["Catalog Intelligence\n(22M+ items enriched)"] --> B["Search & Query Rewriting"] B --> C["Personalized Merchandising\n(KDD/SIGIR Research)"] C --> D["Conversational Shopping Assistant\n(Recipe parsing & basket building)"] end subgraph PostPurchase["In-Store Fulfillment"] D --> E["In-Store Shopper Picking"] E --> F["Multimodal Fulfillment Intelligence\n(Visual verification of picks)"] end ```
The consumer experience also features a conversational shopping assistant designed to help customers parse complex cooking recipes, navigate dietary preferences, and automatically assemble shopping baskets. However, the most challenging technical frontiers sit at the two outer extremes of the funnel: catalog intelligence on the ingestion side, and fulfillment intelligence on the in-store shopper side. To address these, Instacart has turned heavily toward multimodal Large Language Models, commonly termed Visual Language Models (VLMs), to process rich text and noisy imagery jointly.
---
[03:03](https://www.youtube.com/watch?v=Quz16KujtZI&t=183s) Catalog Intelligence: Multimodal Attribute Extraction
When customers shop for groceries online, they rely heavily on structured product attributes to make critical health and dietary decisions. Shoppers regularly search for specific dietary constraints—asking whether a product is certified organic, gluten-free, low-fat, or what its exact sugar content and package sizing are. If these attributes are inaccurate or entirely missing from the catalog, customers either cannot find the items they want or risk purchasing goods that violate their dietary needs. Structured catalog data serves as "the substrate for every shopping decision online."
```mermaid flowchart LR accTitle: Catalog Multimodal Attribute Pipeline subgraph Input["Input Data"] T["Retailer Text Metadata\n(Often incomplete/noisy)"] I["Product Packaging Image\n(Contains nutrition, claims, badges)"] end subgraph VLM["Multimodal Processing"] P["VLM Pipeline"] end subgraph Output["Downstream Features"] B["Dietary Badges\n(e.g., 'Gluten-Free')"] V["Variant Grouping\n(Flavor/Size clusters)"] F["Search & Health Filters"] end T --> P I --> P P --> B P --> V P --> F ```
The fundamental obstacle in catalog intelligence is that retailer-provided text metadata is notoriously sparse and incomplete. Vital attributes—such as whether a snack is a "good source of fiber", "gluten-free", or "low in fat"—are almost never articulated in the text feed sent by the retailer; instead, they are printed solely on the physical product packaging. Consequently, attribute extraction is inherently multimodal. Instacart uses high-precision pipelines to extract these visual attributes, which in turn feed customer-facing features like dietary badges, variant clustering (such as organizing multiple chip flavors under a single parent item page), and precision health filters.
---
[04:40](https://www.youtube.com/watch?v=Quz16KujtZI&t=280s) Fulfillment Intelligence: Real-Time In-Store Product Verification
At the post-purchase end of the fulfillment funnel, shoppers navigate retail aisles to locate, pick, and scan items into customer orders. While barcode scanning is the standard validation mechanism, barcodes frequently fail in real-world retail environments due to damaged labels, unlisted UPCs, loose produce, or regional inventory differences. When barcodes fail, the platform must rely on photos taken directly by shoppers using their mobile devices to verify that the picked item matches what the customer requested.
```mermaid flowchart LR accTitle: Fulfillment Verification Flow subgraph Input["Shopper Verification Input"] CP["Customer Ordered Item\n(Catalog image + metadata)"] SP["Shopper In-Store Photo\n(Noisy, angled, shelf glare)"] end subgraph Inference["Real-Time Inference"] M["Product Matching Engine"] end subgraph Decision["Outcome"] OK["Approve Pick"] Nudge["Nudge Shopper\n(e.g., AA vs. AAA battery mismatch)"] end CP --> M SP --> M M --> OK M --> Nudge ```
This verification process represents a "classic product matching problem, but on steroids." Shopper photos captured in grocery store aisles are plagued by heavy background clutter, harsh store lighting, extreme angles, and motion blur. A common real-world scenario involves a customer ordering a package of AA batteries, while the shopper inadvertently grabs a AAA battery pack—a subtle visual difference easily missed by human oversight. Unlike catalog enrichment pipelines that run asynchronously offline, fulfillment verification operates synchronously in real time, making model inference latency a stringent operational constraint.
---
[06:08](https://www.youtube.com/watch?v=Quz16KujtZI&t=368s) The Limitations of Pre-GenAI Approaches
Prior to adopting generative AI, standard machine learning paradigms struggled severely across both catalog extraction and product matching. In catalog attribute extraction, engineering teams historically deployed single-task, text-based classification models—essentially training "one model per attribute." This architecture became an operational nightmare to maintain when scaling across hundreds of distinct attributes. Furthermore, attempts to bridge the visual gap using Optical Character Recognition (OCR) to extract raw packaging text before feeding it into NLP classifiers proved exceedingly brittle, as OCR errors cascaded downstream.
| Legacy Approach | Targeted Problem | Primary Failure Mode in Production | |:--- |:--- |:--- | | **Text-Based Classifiers** | Attribute Extraction | Required hundreds of bespoke models; failed completely when text feeds omitted visual packaging data. | | **OCR + Text Cleaning** | Image Attribute Extraction | Highly brittle extraction pipeline; OCR errors cascaded into attribute classification failures. | | **Image Embeddings (Metric Learning)** | In-Store Product Matching | Dual-encoder embedding cosine similarity collapsed when handling blurry, cluttered, angled in-store shopper photos. |
For product matching, teams previously leaned on deep metric learning by mapping catalog images and in-store shopper photos into a shared embedding space to compute cosine similarities. This approach collapsed under the noise of real-world shopper photos. Moreover, metric embeddings lacked the semantic nuance required for "fuzzy matching." Business logic often dictates controlled flexibility—such as allowing a 19-oz shampoo bottle as an acceptable fulfillment substitute for a requested 20-oz bottle rather than canceling the item outright.
Four shared technical challenges define both catalog and fulfillment applications: - **Inherently Multimodal:** Decisions require joint reasoning over both visual packaging cues and textual metadata. - **Extreme Precision Requirements:** False positives in fulfillment trigger millions of dollars in customer refunds, while incorrect catalog attributes destroy customer trust. - **High Data Noise:** Pipelines must ingest thousands of inconsistent retailer catalog schemas alongside low-quality, blurry in-store photos. - **Long-Tail Grocery Semantics:** Models must understand subtle domain-specific concepts, such as identifying A2 milk, lean cuts of meat, and retailer-specific private label brands.
---
[08:33](https://www.youtube.com/watch?v=Quz16KujtZI&t=513s) Multimodal Large Language Models as the Solution
Visual Language Models (VLMs) addressed these multifaceted constraints by unifying text and image reasoning within a single generalized framework. Rather than running disconnected OCR and classification steps, a single VLM ingests product imagery and metadata simultaneously, reasoning over visual features while directly adhering to complex prompt-based business rules. This allows the system to generalize effortlessly across long-tail grocery taxonomy without requiring custom-trained models for every niche subcategory.
```mermaid flowchart TD accTitle: Unified VLM Architecture for Both Use Cases subgraph VLM_Engine["Unified Multimodal VLM"] direction TB Prompt["System Prompt + Business Logic Rules\n(Enables exact & fuzzy matching rules)"] Vision["Visual Encoder"] LLM["Language Reasoning Backbone"] Prompt --- LLM Vision --- LLM end subgraph AttributeMode["Catalog Attribute Extraction"] A_Img["Product Package Image"] A_Txt["Catalog Title & Description"] A_Out["Structured JSON Attribute\n(e.g., gluten_free: true)"] A_Img --> Vision A_Txt --> LLM LLM --> A_Out end subgraph MatchMode["Fulfillment Verification"] M_Cat["Catalog Reference Image + Specs"] M_Shop["In-Store Shopper Photo"] M_Out["Match / No-Match / Substitute Decision"] M_Cat --> Vision M_Shop --> Vision LLM --> M_Out end ```
In catalog extraction workflows, the VLM receives the packaging image alongside item metadata and directly returns clean, typed attributes (such as validating gluten-free status). In fulfillment validation, the VLM evaluates the customer's ordered catalog reference alongside the noisy in-store shopper photograph, applying business rules directly in-prompt to execute precise or fuzzy match decisions.
---
[09:35](https://www.youtube.com/watch?v=Quz16KujtZI&t=575s) Production VLM Challenges and the Self-Reflection Pattern
Despite their superior reasoning capabilities, deploying VLMs into production environments introduced four major operational bottlenecks:
- **Hallucinations:** Models can exhibit overconfident hallucinations, such as incorrectly classifying a meat product as vegetarian, leading to severe health or dietary violations for consumers. - **Inference Cost:** Processing multiple high-resolution images across millions of catalog items consumes massive token volumes, making naive routing to top-tier frontier models financially unsustainable. - **Model Randomness / Non-Determinism:** Even with temperature set to zero and identical input parameters, ambiguous inputs cause model decisions to flip 6% to 7% of the time between retries, creating jarring user experiences where an identical item is rejected once and accepted seconds later. - **Real-Time Latency:** Multi-image reasoning calls can take multiple seconds, conflicting directly with the sub-second latency requirements of in-store mobile picking workflows.
```mermaid flowchart TD accTitle: VLM Self-Reflection Pattern subgraph Pass1["Initial Extraction"] In["Product Image + Metadata"] --> P1["VLM Pass 1:\nExtract Attribute"] P1 --> InitAns["Initial Attribute Output"] end subgraph Pass2["Reflection Step"] InitAns --> P2["VLM Pass 2:\nSelf-Reflection Prompt\n('Double check your answer')"] In -.-> P2 P2 --> RefinedAns["High-Precision Verified Output"] end ```
To counteract hallucinations and elevate precision without abandoning the architecture, Instacart implemented a self-reflection technique. Mirroring human critical thinking when prompted to double-check their reasoning, the system asks the VLM to review its initial extraction against the source inputs, forcing a structured verification step that measurably boosts output precision across ambiguous catalog items.
[11:38](https://www.youtube.com/watch?v=Quz16KujtZI&t=698s) Verification Loops and Fine-Tuning for Cost and Latency
To ensure high data quality in catalog intelligence, Instacart implements a self-reflection verification pattern before committing extracted information. Once the vision-language model (VLM) extracts an attribute value from product data and imagery, the system re-prompts the model: "Hey, given the attribute guideline, is the extracted value correct?" This "double-thinking" verification loop acts as a safeguard; only when the model confirms the extraction a second time is the attribute promoted downstream to production catalogs.
```mermaid flowchart LR accTitle: "VLM Attribute Extraction and Self-Reflection Loop" subgraph Extraction["Attribute Extraction"] A["Product Image & Text"] --> B["Frontier / Fine-Tuned VLM"] B --> C["Candidate Attribute Value"] end subgraph Verification["Double-Thinking Loop"] C --> D{"VLM Self-Reflection<br/>Checks Guidelines"} D -- "Confirmed Correct" --> E["Downstream Systems"] D -- "Mismatch / Flagged" --> F["Discard or Re-evaluate"] end ```
Deploying massive frontier VLMs across an entire catalog introduces significant cost and latency hurdles, particularly for real-time user experiences. To address this, Instacart creates high-quality datasets using a hybrid combination of human annotators and LLM-assisted labelers, then fine-tunes smaller, specialized VLMs. This strategy yields a dual benefit:
1. **Smaller Model Footprint:** The distilled, smaller model runs significantly faster and at a fraction of the inference cost compared to frontier models. 2. **Simplified Prompts:** For ambiguous domains where instruction prompts initially spanned tens of pages, the fine-tuning process bakes esoteric grocery concepts directly into the model's weights. Because complex retail definitions no longer need to be injected into every single API call, prompt payloads shrink dramatically, creating an additional layer of latency and cost savings.
[13:03](https://www.youtube.com/watch?v=Quz16KujtZI&t=783s) The Unglamorous Lesson: Golden Datasets and Autonomous Agentic Loops
A critical engineering takeaway is the need to heavily invest in golden datasets and rigorous data labeling workflows. Grocery catalog intelligence frequently encounters severe edge cases in product matching: noisy product imagery, multi-attribute comparisons across brand, size, flavor, and dietary restrictions, and instances where the on-package text directly contradicts the packaging imagery. In these scenarios, even experienced human annotators disagree or introduce labeling errors.
Without a reliable ground-truth golden dataset, engineering teams end up wasting time debugging conflicting labeling guidelines and data discrepancies rather than tuning prompts. Once a robust golden dataset is established, downstream stakeholders can trust evaluation metrics. Furthermore, high-quality golden benchmarks enable autonomous agentic optimization loops: automated systems can iteratively evaluate and tune prompt performance against the benchmark without human intervention, drastically lowering engineering overhead.
- Product matching requires reconciling conflicting signals across image visuals and text descriptions across dimensions like brand, package size, flavor profiles, and dietary certifications. - Clean ground-truth datasets allow evaluation metrics to serve as authoritative quality gates for downstream consumers. - Reliable benchmarks enable fully autonomous agentic prompt-tuning loops that continuously optimize model accuracy without human engineering in the loop.
[14:33](https://www.youtube.com/watch?v=Quz16KujtZI&t=873s) Q&A: Predicting Inventory Out-of-Stocks and Model Selection Strategies
During the audience question-and-answer session, an attendee operating a 1,500-SKU retail business asked how Instacart manages stock thresholds and substitutions given the uncertainty of retailer inventory feeds. Rather than relying purely on static retailer inventory figures, Instacart deploys predictive machine learning algorithms that factor in cyclical historical sales patterns alongside real-time data streaming from shoppers inside the stores. If multiple shoppers report back that a specific SKU is missing from shelves, the platform aggregates that signal, recalculates availability probability, and proactively marks the item as out of stock on the consumer app to prevent fulfillment failures and customer dissatisfaction.
```mermaid flowchart TD accTitle: "Real-Time Inventory Prediction and Availability Pipeline" subgraph Signals["Inventory Input Signals"] A["Retailer Feed Data"] B["Historical Cyclical Demand ML"] C["In-Store Shopper Real-Time Reports"] end subgraph Intelligence["Aggregation Engine"] A --> D["Real-Time ML Inventory Aggregator"] B --> D C --> D end subgraph Actions["Consumer Experience"] D --> E{"Item Available?"} E -- "High Confidence" --> F["Visible in App for Purchase"] E -- "Low Confidence / Out of Stock" --> G["Mark Out of Stock / Trigger Substitution"] end ```
When asked about model selection trade-offs—such as open-source versus closed proprietary models, inference serving harnesses, and post-deployment economics—the selection process is strictly task-dependent:
- **Latency-Sensitive Paths:** Real-time customer-facing workflows tolerate slight accuracy trade-offs in exchange for low-latency responses, favoring smaller fine-tuned models. - **Low-Traffic Edge Cases:** Niche workflows with minimal request volume can afford to route traffic to the most capable, frontier models regardless of per-token costs. - **High-Volume Catalog Ingestion:** For catalog-wide tasks like bulk attribute extraction, routing all requests to top-tier frontier models is financially non-viable because "the cost is going to be outrageous." These batch pipelines rely on smaller, fine-tuned models optimized specifically for throughput and cost efficiency.
## Notable quotes > [03:03](https://www.youtube.com/watch?v=Quz16KujtZI&t=183s) the substrate for every shopping decision online — Pradeep Karuturi
> [04:40](https://www.youtube.com/watch?v=Quz16KujtZI&t=280s) classic product matching problem, but on steroids — Pradeep Karuturi
> [06:08](https://www.youtube.com/watch?v=Quz16KujtZI&t=368s) one model per attribute — Pradeep Karuturi
> [11:38](https://www.youtube.com/watch?v=Quz16KujtZI&t=698s) Hey, given the attribute guideline, is the extracted value correct? — Pradeep Karuturi
> [14:33](https://www.youtube.com/watch?v=Quz16KujtZI&t=873s) the cost is going to be outrageous — Pradeep Karuturi
## Mentioned Pradeep Karuturi, Instacart, Ai4, SIGIR, KDD
## Video description Pradeep Karuturi - Machine Learning Engineer, Instacart
In this talk, I will illustrate how Instacart leverages multimodal Large Language Models (VLMs) to transform grocery e-commerce by solving complex challenges in catalog intelligence and fulfillment. Traditional text-based or embedding-based models struggle with the noisy, real-world data inherent in grocery retail. I will explain how we successfully deployed VLMs to handle multimodal inputs, drastically improving product matching and attribute extraction across our massive catalog. You will also learn about our practical strategies for productionizing these models, including self-reflection techniques to mitigate hallucinations and knowledge distillation to optimize for cost and latency.
[Source](https://www.youtube.com/watch?v=Quz16KujtZI)