Design Image Search Ranking Using Visual and Page Text Signals
Last updated: November 29, 2026
Quick Overview
Design the ranking system for Google Images, where an image's relevance depends on its visual content, the text around it on the host page and the page's own quality.
0
0
0 solved
Design the ranking system for Google Images, where an image's relevance depends on its visual content, the text around it on the host page and the page's own quality.
Image search is a classic multimodal ranking problem at Google. The interviewer checks that you combine image embeddings with page context, use clicks carefully given thumbnail bias, and keep duplicates and unsafe content out.
What the Interviewer Expects
- Use joint image-text embeddings for retrieval
- Combine visual relevance with surrounding text and page quality
- Account for thumbnail attractiveness bias in clicks
- Deduplicate near-identical images across hosts
- Apply SafeSearch filtering
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you pick which host page to credit for an image found on 500 sites?
- How would you support search by image upload in the same system?
- How do you detect when an image is relevant visually but the page is spam?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Corpus: tens of billions of images with host pages. Query: text, sometimes with filters (size, color, usage rights). Output: grid of 100 images, ranked in about 200 ms. Success: users click and stay o...
High-Level Design
- Indexing: for each image, compute a joint embedding from a contrastive image-text model, extract alt text, caption, nearby text, page title, and visual entities.
- Dedup: perceptual hash p...