Design an Automatic Alt Text Pipeline for Photos Posted on Instagram
Last updated: November 29, 2026
Quick Overview
Design the system that generates accessibility descriptions for photos when they are posted, serves them to screen reader users, and lets creators override the generated text.
Meta
November 29, 20260
0
0 solved
Design the system that generates accessibility descriptions for photos when they are posted, serves them to screen reader users, and lets creators override the generated text.
Meta has long invested in automatic alt text so blind and low-vision users can use photo-heavy apps. The interviewer looks for a practical serving design: when inference runs, how outputs are stored and versioned, how quality and safety are controlled, and how the feature interacts with editing and translation.
What the Interviewer Expects
- Decide between on-upload batch inference and on-demand generation
- Run image understanding models with cost controls
- Store versioned descriptions with model and source metadata
- Prefer creator-written alt text and handle edits
- Guard against harmful or overconfident descriptions
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle photos with text in them, like screenshots or memes?
- How would you localize the descriptions?
- How do you measure quality?
- What do you do when the model is unsure?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: every new photo gets a short description such as "Two people smiling on a beach at sunset"; screen readers read it; creators can write their own alt text, which takes precedence; descr...
High-Level Design
- Photo upload completes and emits
photo_uploaded. - Alt text service enqueues an inference job (lower priority than critical upload processing).
- Vision model workers (GPU) generate a c...