Back to Blog
Engineering

Zero-Shot vs Fine-Tuned Models for Shelf Analysis

FMCG Cloud Team · Engineering10 min read

When building a product recognition system for retail shelves, the first architectural decision is whether to use a zero-shot approach or a fine-tuned model. Both have legitimate use cases, but they differ significantly in accuracy characteristics, deployment timelines, operational overhead, and total cost of ownership. Understanding these trade-offs is essential for making the right choice.

Fine-tuned models follow the traditional supervised learning pipeline. You collect thousands of labeled images of each product in various shelf conditions, split them into training and validation sets, train a convolutional neural network or transformer-based classifier, evaluate performance, and deploy the model. When a new product is added to the catalog, you repeat the process: collect new training data, retrain the model, validate, and redeploy. This cycle typically takes two to four weeks per product update.

Zero-shot models take a fundamentally different approach. Instead of learning to classify specific products, they learn to match visual features against reference embeddings. You upload a few reference images of each product, the model generates embedding vectors, and at inference time it compares the shelf image against all reference embeddings to identify products. Adding a new product means uploading reference images and generating embeddings, a process that takes minutes rather than weeks.

Zero-shotOff-the-shelf model78%SetupminutesDatanoneFine-tunedTrained on your shelves94%SetupweeksDatalabelled

Accuracy is where the comparison gets nuanced. Fine-tuned models generally achieve higher top-1 accuracy on products they were trained on, often reaching 96-99% in controlled conditions. However, their accuracy drops significantly on products added after training, products in unfamiliar shelf configurations, or products with packaging redesigns. A fine-tuned model is only as good as its training data, and retail shelf conditions are inherently variable.

Zero-shot models typically achieve 90-95% accuracy across the board, with more consistent performance across varied conditions. They handle new products, packaging changes, and unfamiliar store environments without degradation because they rely on visual similarity rather than memorized classifications. For FMCG companies that frequently launch new products, run limited-edition packaging, or operate across diverse retail formats, this consistency is more valuable than peak accuracy on a static product set.

Deployment speed is often the deciding factor. A fine-tuned pipeline requires data collection infrastructure, labeling workflows (often involving manual annotators), GPU training clusters, model versioning, A/B testing frameworks, and staged rollout procedures. The initial deployment might take three to six months. Each subsequent product catalog update takes two to four weeks. For a company managing hundreds of SKUs with monthly product launches, this creates a permanent operational bottleneck.

A zero-shot system deploys in days. Upload your product catalog images, generate embeddings, and start analyzing shelf photos. When you launch a new product, add reference images and the system recognizes it immediately. There is no training queue, no labeling team, and no model versioning complexity. The operational overhead is an order of magnitude lower.

Inference cost and latency also differ. Fine-tuned classifiers are typically smaller and faster at inference time because they only need to run a forward pass through the classifier. Zero-shot models need to compute similarity against all reference embeddings, which scales with catalog size. However, modern embedding indices and approximate nearest neighbor search make this practical even for catalogs of 50,000 SKUs, with inference times under five seconds on standard cloud infrastructure.

Hybrid approaches offer the best of both worlds for organizations willing to invest in the infrastructure. You can start with zero-shot recognition for immediate deployment and broad coverage, then fine-tune specialized models for high-value product categories where the accuracy difference matters. The zero-shot model handles the long tail of products and new launches, while fine-tuned models provide premium accuracy for core SKUs.

The edge deployment question adds another dimension. If recognition needs to happen on-device for offline scenarios, model size matters. Fine-tuned models can be distilled and quantized to run efficiently on mobile hardware. Zero-shot models with large embedding databases are more challenging to deploy on-device, though techniques like embedding compression and hierarchical matching are closing this gap rapidly.

From an engineering perspective, the maintenance burden differs significantly. Fine-tuned models require continuous monitoring for accuracy drift as products and shelf conditions change. You need automated pipelines for data collection, labeling quality assurance, retraining triggers, and canary deployments. Zero-shot models require maintaining a clean, up-to-date reference image catalog, which is operationally simpler but still requires discipline.

Our recommendation for most FMCG deployments is to start with zero-shot recognition. The deployment speed, operational simplicity, and consistent accuracy across the product catalog make it the pragmatic choice. Fine-tuning should be reserved for specific use cases where the 3-5% accuracy premium justifies the engineering investment, such as high-value compliance auditing for top-tier retail partners where every misidentification has significant financial consequences.

The decision should ultimately be driven by your operational context: how frequently your product catalog changes, how diverse your retail environments are, what engineering resources you can dedicate to model operations, and whether the accuracy premium of fine-tuning justifies the deployment complexity. For the vast majority of FMCG shelf recognition use cases, zero-shot delivers the right balance of accuracy, speed, and operational simplicity.