The user wants a design for an ML-assisted image alt text generation system that includes human Quality Assurance (QA).
Key components requested:
- ML Assist: Automated generation of alt text.
- Human QA: Involvement of humans to verify or correct the ML output.
- Coverage Thresholds: Metrics defining how much of the inventory needs alt text and at what quality level.
- Audit: A mechanism to review the system's performance over time.
1. System Architecture Overview:
- Input: Image inventory (crawling, uploads).
- ML Engine: Generates raw alt text.
- Confidence Scoring: Crucial for determining whether human intervention is needed. High confidence = auto-approve (maybe), Low confidence = route to human.
- Human Review Interface: Where humans edit/approve.
- Final Output: Storing the alt text.
- Monitoring/Auditing: Dashboard and sampling.
2. The "ML Assist" Aspect:
- Model choice: Multimodal models (like CLIP, BLIP, GPT-4 Vision, etc.). Let's keep it generic but modern.
- Prompt engineering: Essential for quality. "Describe this image for a screen reader" vs "What is in this picture?"
3. The "Human QA" Workflow (The Loop):
- Three paths:
- Auto-approve: High confidence + High accuracy models (risky for strict accessibility, better for "draft" mode). Actually, for accessibility, human verification is usually best practice, but to scale, we need a threshold system.
- Human Review (Correction): ML generates text, human edits.
- Human Generation: ML fails/confidence low, human writes from scratch.
4. Coverage Thresholds (The Logic):
- How do we decide what gets reviewed?
- Confidence Score: The probability the model assigns to its prediction.
- Image Complexity: Simple logo vs. complex chart.
- Page Importance: Home page image vs. archive footer icon.
- Threshold Tuning: If we set the threshold at 90%, only 10% goes to humans (high automation, potential quality risk). If set at 50%, 50% goes to humans (low automation, high quality).
5. The Audit Strategy (Quality Control):
- Pre-deployment: Testing on a golden set (ground truth).
- Post-deployment: Random sampling of auto-approved images.
- User feedback: "Report incorrect alt text" button.
6. Structuring the Proposal:
I should structure this as a technical product design document or an engineering architecture proposal.
- Phase 1: The Workflow (The "How it works")
- Ingestion.
- ML Generation + Scoring.
- Routing Logic (The "Traffic Control").
- Phase 2: Human QA Interface
- Needs to be efficient. Side-by-side view. Keyboard shortcuts.
- Phase 3: Coverage Thresholds & Metrics
- Defining KPIs (Coverage, Accuracy, Latency).
- Phase 4: The Audit System
- Golden Datasets.
- Spot checks.
- Adversarial testing.
Refining the "Coverage Thresholds" part:
The user specifically asked about "Coverage Thresholds." This implies a trade-off curve.
- X-axis: % of images processed automatically (Automation Rate).
- Y-axis: Quality/Accuracy.
- We need to define specific buckets:
- Tier 1 (Critical): 100% Human Review required.
- Tier 2 (Standard): ML + High Threshold Auto-approve + Random Audit.
- Tier 3 (Low Priority): ML + Low Threshold Auto-approve.
Refining the "Audit" part:
- Audit isn't just checking the ML; it's checking the system.
- Are humans making mistakes? Inter-rater reliability.
- Is the model drifting?
Drafting the Content - Section by Section:
- Objective: Generate alt text at scale while maintaining WCAG compliance.
- Architecture: Diagram description.
- The ML Engine: Describe inputs/outputs.
- Routing Logic (The Core): The confidence threshold calculator.
- Human QA: The UI and the workflow.
- Audit Framework: Sampling and Golden Sets.
Self-Correction/Nuance Check:
- Context: Alt text depends on context. An image of a dog might be decorative on a blog post about coding, but critical on a vet site. The ML needs context (page title, surrounding text). I must include "Context Injection."
- Decorative Images: The system must handle the "empty alt" (role="presentation") decision. ML should classify "Is this informative or decorative?" first.
Final Polish:
Use professional terminology (False Positives, Human-in-the-loop, Precision/Recall). Organize with clear headings.
Let's build out the detailed design based on these thoughts.
Structure:
- System Architecture Overview
- The "Traffic Control" (Threshold Logic)
- Human QA Workflow
- Audit & Quality Governance
- Metrics Dashboard
(Self-Correction during drafting the Threshold section): Make sure to distinguish between Coverage (we have text for everything) and Quality (the text is right). The threshold controls the risk of low quality to gain high coverage speed.
Let's write it.
Designing an ML-assisted Alt Text generation system requires balancing scalability (using ML to cover thousands of images) with liability/accessibility (ensuring the text is actually useful).
Here is a comprehensive design for an ML Assist system with Human QA, focusing on coverage thresholds, routing logic, and audit mechanisms.
1. High-Level Workflow Architecture
Instead of a binary "Human vs. ML" approach, we use a Confidence-Based Routing System.
- Ingestion: Image enters the pipeline (via CMS upload or crawler).
- Classification (Pre-processing):
- Is it decorative? (e.g., spacer gifs, seamless backgrounds). If yes → Flag as
alt="" (empty).
- Is it complex? (e.g., charts, graphs, handwriting). If yes → Route to High-Priority Human Queue.
- ML Generation: A multimodal model (e.g., GPT-4o, Claude 3.5 Sonnet, or fine-tuned BLIP) generates a proposed alt text and a Confidence Score (0.0 - 1.0).
- Routing (The Threshold Logic): Based on the score, the image is routed to Auto-Publish, Human Review, or Rejection.
- Human QA: Reviewers approve, edit, or reject.
- Audit: Continuous monitoring of quality and model drift.
2. Coverage Thresholds & Routing Logic
The core of this design is determining when the machine is "allowed" to publish without a human seeing it. This is managed via Dynamic Thresholding.
The Confidence Score
The ML model outputs not just text, but a probability score indicating how certain it is that the description is accurate and contextual.
Routing Buckets
| Bucket | Confidence Range | Action | Workflow |
|---|
| Tier 1: High Certainty | 0.90 – 1.00 | Auto-Publish | ML text goes live immediately. Subject to post-publish spot-check auditing. |
| Tier 2: "Good Enough" | 0.70 – 0.89 | QA Fast-Track | Pre-publish review. Human reviewer sees the ML suggestion and clicks "Approve" or makes minor edits. |
| Tier 3: Uncertain | 0.40 – 0.69 | QA Standard | Human reviewer writes description from scratch. ML suggestion is hidden or shown as a "draft" only if requested. |
| Tier 4: Fail / Complex | < 0.40 | Specialist Queue | Routed to senior accessibility experts (e.g., for infographics, complex charts, or blurry images). |
Threshold Management
- Conservative Setting (High Risk): Set Auto-Publish to > 0.98. Use this for medical, legal, or government sites where error is unacceptable.
- Aggressive Setting (High Volume): Set Auto-Publish to > 0.75. Use this for news sites or e-commerce with high daily uploads.
3. The Human QA Interface
The efficiency of human QA depends on the UI. Do not use a generic form; build a specialized "Alt Text Triage Dashboard."
Features required:
- Context Preview: Show the image in-situ (surrounding text/headline), not just the raw image file.
- One-Click Actions:
- Approve (Enter key)
- Edit (Tab key)
- Mark Decorative (D key)
- Screen Reader Emulator: A button to hear the text read aloud (to check for awkward phrasing like "Image of...").
4. The Audit Framework
You cannot rely on the initial confidence score forever. You need an audit loop to catch "hallucinations" (when the ML is confident but wrong).
A. The Golden Set (Pre-Deployment Audit)
- Create a dataset of 1,000 images with "Perfect" human-written alt text.
- Every time you update your ML model, run it against this Golden Set.
- Metric: Use BERTScore or METEOR (semantic similarity) rather than exact string matching to compare ML output vs. Human truth.
B. Live Sampling (Post-Publish Audit)
- Daily Sample: Pull 1% of all Auto-Published images (Tier 1) daily.
- Human Grading: Annotators grade these on a scale of 1-5.
- 5: Perfect.
- 3: Usable but unpolished.
- 1: Hallucination or Dangerous (e.g., "A child playing" when the image is a weapon).
- Trigger Logic: If the daily sample average drops below 4.5, the system automatically raises the Auto-Publish threshold (e.g., from 0.90 to 0.95) until quality stabilizes.
C. User Feedback Audit
- Add a simple feedback mechanism on the frontend (e.g., "Is this image description helpful? Yes/No").
- Feed low-rated descriptions back into the training data as negative examples.
5. Metrics & KPIs
To manage this system, track these specific metrics:
- Automation Rate: % of images processed without human intervention.
- Target: 60-70% (depending on threshold).
- Edit Distance (Levenshtein): For Tier 2 reviews, how many characters does the human change?
- Goal: Low edit distance implies the ML is doing a good job.
- Hallucination Rate: % of Auto-Published images flagged as incorrect in the audit.
- Backlog Velocity: How fast the Human QA queue is clearing.
6. Summary of Operations
- Step 1: ML generates text + Confidence Score.
- Step 2: Logic Router determines if it needs human eyes.
- Step 3: Humans review "low confidence" or "complex" images.
- Step 4: "Golden Set" audits ensure the Confidence Scores remain calibrated to reality.
This design ensures you get the speed of AI for the bulk of simple images (stock photos, headshots) while reserving expensive human cognitive load for the complex images where accuracy is critical.