LLM-Powered In-Tool Quality Validation for Data Labeling

uber · Tech · year n/a · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: In-tool validation for data labeling

Uber AI Solutions needed to reduce labeling rework by validating each annotation against client requirements while work was happening, not after audits found mistakes.

Constraints:

Architecture

Requirement Adherence decomposes SOPs into atomic rules, then performs per-rule validation inside the labeling tool. Rule extraction uses LLM reflection and optional manual additions; runtime validation uses parallel per-rule calls, prefix caching, and model routing so deterministic checks can use lightweight paths while subjective checks use more capable reasoning models.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  SOP_converter["SOP markdown converter"] --> Rule_extractor["Reflective rule extractor"]
  Rule_extractor --> Manual_gap_fill["Manual rule gap fill"]
  Manual_gap_fill --> Overlap_checker["Rule overlap checker"]
  Rule_extractor --> Overlap_checker
  Overlap_checker --> Validation_engine["Per-rule validation engine"]
  Validation_engine --> Model_router["Complexity-based model router"]
  Validation_engine --> ULabel_tool["uLabel tool"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
SOP markdown converter Prepares client SOP documents for LLM processing. Reflective rule extractor
Reflective rule extractor LLM workflow that extracts atomic labeling requirements and checks its own structured output. SOP markdown converter, Manual rule gap fill, Rule overlap checker
Manual rule gap fill Human addition path for requirements absent from or missed in the SOP extraction. Reflective rule extractor, Rule overlap checker
Rule overlap checker LLM call that ensures manual rules follow format and do not duplicate extracted rules. Manual rule gap fill, Per-rule validation engine
Per-rule validation engine Runtime validator that checks labeler output rule by rule inside the annotation workflow. Rule overlap checker, Complexity-based model router, uLabel tool
Complexity-based model router Selects code, non-reasoning LLMs, reasoning LLMs, or reflection/self-consistency according to rule type. Per-rule validation engine
uLabel tool Annotation environment where labelers receive validation feedback and suggestions before audit. Per-rule validation engine

Data flow

The SOP becomes markdown, an LLM extracts atomic rules and reflects on its JSON output, humans add missing manual rules, another LLM checks manual-rule format/overlap, and uLabel runs one validation call per rule while the labeler is still annotating. Feedback and suggestions return in-tool.

3 supporting quotes
“We use LLMs to extract the exact requirements from this document and enforce them during the time of labeling.”article, stated
“This allows the LLM to analyze the SOP text, generate a structured JSON output, check its work, and make changes if necessary.”article, stated
“These calls can run in parallel, significantly speeding up the feedback loop for labelers.”article, stated

Why this architecture

Uber's architecture moves quality control into the labeling loop while decomposing complex SOP enforcement into smaller checks. The design avoids monolithic prompt failures, reduces latency through parallelization and caching, and keeps privacy protections explicit.

3 supporting quotes
“This takes additional time, increases costs, and creates a bad experience for our enterprise clients.”article, stated
“To simplify the task, we extract each requirement as an individual rule.”article, stated
“The LLM calls are stateless and privacy-preserving, ensuring data integrity and confidentiality.”article, stated

Models used: LLMs with reflection · non-reasoning LLM · reasoning LLM

Scale

Alternatives considered (roads not taken)

Post-labeling audits

Rejected because: They catch issues after completion, forcing expert rework and delaying delivery.

“mislabeled and incomplete data must be sent back to experts for rework. This takes additional time, increases costs”article, stated

Single LLM call across all requirements

Rejected because: The source says this caused hallucinations and missed enforcements.

“a single LLM call to enforce all the requirements at once leads to hallucinations and missed enforcements.”article, stated

Reasoning model for every check

Rejected because: Formatting and deterministic checks can use code or non-reasoning models more efficiently.

“Formatting checks are done using code, so an LLM isn’t involved. Deterministic checks use a non-reasoning LLM for speed and efficiency.”article, stated

Patterns

structured-output-contract (guardrails)

The rule extractor emits structured JSON and another LLM checks manual rules for required format and overlap.

“generate a structured JSON output, check its work, and make changes if necessary.”article, stated
“we use another LLM call to ensure that the manual rules follow the required format and there’s no overlap”article, stated

model-routing (cost-performance)

Different rule types route to code, non-reasoning LLMs, reasoning LLMs, and optional reflection/self-consistency.

“Subjective and complex subjective checks use powerful reasoning LLMs, potentially with reflection or self-consistency built in”article, stated

human-in-the-loop-gate (safety)

Manual rules are explicitly allowed to cover gaps in LLM extraction before runtime validation.

“We found that this human-in-the-loop step is useful to ensure high-quality rules.”article, stated

privacy-preserving-processing (safety)

The system makes stateless LLM calls and states that client SOP data is not retained or used for training.

“we ensure that no data from client SOPs is retained or used to train the models.”article, stated

Tradeoffs

Move QA into the labeling tool

Chose real-time validation with suggestions over audit-only correction after labeling.

Rationale: In-tool validation reduces rework and gives labelers corrective feedback while they can still act on it.

“In addition to catching errors, we also provide suggestions on how to improve ‌data labeling to adhere to the requirements.”article, stated

Use stateless privacy-preserving LLM calls

Chose privacy-preserving processing over stateful retention or model training on SOP data.

Rationale: The system serves enterprise clients and must protect SOP confidentiality while using LLM validation.

“All LLM interactions are designed to be stateless and to process data in a privacy-preserving manner, without compromising the integrity or confidentiality”article, stated

Gotchas (what bit them)

Monolithic rule enforcement produced hallucinations and missed checks.

Root cause: The LLM had to handle too many SOP requirements at once.

Resolution: Extract each requirement as an atomic, self-contained rule and validate per rule.

“To simplify the task, we extract each requirement as an individual rule. The rules are designed to be atomic, unambiguous, and self-contained.”article, stated

Validation latency could hurt labeler experience.

Root cause: LLM checks run during labeling rather than offline after submission.

Resolution: Run checks in parallel and use prefix caching.

“These calls can run in parallel, significantly speeding up the feedback loop for labelers. We rely on prefix caching to reduce the latency”article, stated

Evaluation

Uber reports quality improvement through reduced audits, workflow standardization, and future prompt optimization from validation feedback.

Metrics: 80% reduction in audits required · standard step across annotation pipeline · feedback collection for prompt optimization

“To make sure our system continuously improves, we’re building mechanisms to collect feedback on validations.”article, stated
“which resulted in an 80% reduction in audits required, helping meet timelines and reduce costs.”article, stated

Outcomes

The system is described as used across the entire enterprise client base for Uber AI Solutions' annotation pipeline.

“By integrating in-tool validation, we’ve reduced rework and ensured a consistently high standard of labeled datasets for our enterprise clients.”article, stated