Science & Analytics

The Scientist

The Signal

Amazon published the full COSMO architecture: 30

The playbook is immediately replicable: generate relational triples from behavioral data using any open-weight LLM, accept that 65–91% will be garbage, train a quality classifier on ~30K labels, and apply it to millions of candidates.

In Play

  1. Generate → Filter → Distill: Amazon's 967x Annotation Leverage

    Amazon's COSMO converts 30K human labels into 29M production knowledge graph edges (967x leverage). OPT-175B generates candidate triples, but 65–91% fail quality filters. DeBERTa classifiers scale the human-quality signal. Frozen-encoder injection yields +60% Macro F1 without retraining. A/B test on 10% US traffic: +0.7% sales, +8% nav engagement.

    Ask Clarity
  2. GRPO + RULER: RL Training Without Verifiable Rewards

    The RL training stack collapsed from 4 models (~28B params for 7B) to near-single-model GRPO in 18 months. OpenPipe's RULER now solves reward for non-verifiable tasks (RAG, summarization) via LLM-as-judge relative trajectory scoring. DeepSeek R1-Zero went 15.6% → 77.9% AIME with pure GRPO + binary rewards, emergently developing chain-of-thought.

    Ask Clarity
  3. Fewer Metrics = Better Experiments: Discord's Proof

    Discord cut default experiment metrics from ~50 to 15 using PCA and correlation analysis, improving real effect detection by 45%. The mechanism: redundant correlated metrics inflate multiple-testing corrections (Bonferroni at α/50 vs α/15). Most teams are over-instrumented and under-powered — if your A/B platform tracks >20 metrics, you're paying a hidden statistical power tax.

    Ask Clarity
  4. Subliminal Learning Breaks Distillation Governance

    A Nature paper proves distilled models inherit behavioral traits that survive aggressive data filtering and cannot be detected by inspecting training data post-hoc. Effect is strongest when teacher and student share the same base model — exactly how frontier labs operate. This breaks the EU AI Act's auditability assumption and means model lineage tracking is no longer optional.

    Ask Clarity
  5. Long-Context Reliability Crisis

    DELEGATE-52 shows frontier models corrupt 25% of long documents. MATHNET reveals 78.4% generation accuracy but only ~5% Recall@1 on technical retrieval. The hallucination-abstention tradeoff is now empirically confirmed: models that refuse to answer (Gemini 3.1 Pro, Claude Opus 4.7) outperform on factual reliability. Retrieval quality — not generator quality — is your bottleneck.

    Ask Clarity

Deep Dives

Amazon's COSMO: The Cheapest High-Leverage Experiment You Can Run This Week

Why This Matters Now

Amazon disclosed the full production architecture of COSMO — a system that converts 30,000 human annotations into 29 million knowledge graph edges serving live search, recommendation, and navigation for 10% of US traffic. The A/B test result: +0.7% relative sales (hundreds of millions annually) and +8% navigation engagement. But the architectural pattern matters more than the Amazon-specific result.

The Pipeline Pattern

COSMO follows a four-stage pipeline that's immediately replicable:

  1. Generate speculatively — Feed 3.14M co-purchase pairs and 1.87M query-purchase pairs into OPT-175B to produce commonsense explanation triples (15 relation types including usedFor, capableOf, isA, cause)
  2. Filter aggressively — Rule-based perplexity filtering → similarity deduplication → DeBERTa-large classifier trained on 30K annotated samples. Only 9% of co-purchase and 35% of search-buy explanations survive
  3. Distill for serving — Collapse OPT-175B (16 A100 GPUs) into LLaMA 7B/13B handling 5 tasks simultaneously: generation, plausibility, typicality, relevance, and co-purchase prediction
  4. Cache, don't infer — Two-tier caching (head queries pre-computed yearly, tail queries batch-processed daily) eliminates real-time LLM inference entirely

The Frozen-Encoder Test: Your Day-One Experiment

The most actionable finding: injecting COSMO knowledge triples into a frozen cross-encoder (zero retraining) improved Macro F1 by 60% on the ESCI search relevance benchmark. This means you can validate the knowledge-augmentation hypothesis for your domain in days — take your existing model, freeze weights, add structured knowledge features as input, and measure offline lift.

If you see meaningful offline lift without retraining, you've validated a multi-month engineering investment in hours.

When This Pattern Delivers Outsized Returns

The electronics vs. clothing comparison reveals the answer: high query complexity (2.47 vs 1.36 unique queries/session) and large semantic gaps between user intent and catalog language. India showed the strongest cross-market gains — where query language diverges most from product descriptions. If your users express intent in language that doesn't match your items, this is your highest-ROI architecture.

Cross-Source Tension

The Turing Post's subliminal learning paper creates a direct tension with COSMO's approach. COSMO distills OPT-175B into LLaMA 7B/13B — exactly the same-family distillation pattern that Cloud et al. showed propagates undetectable behavioral traits. Amazon's privacy constraint (OPT over GPT-4 due to behavioral data) also means their knowledge graph potentially encodes customer behavioral patterns that resist post-hoc auditing. This doesn't invalidate the approach, but it means lineage documentation is mandatory if you adopt it.


Implementation Economics

Amazon's annotation protocol used professional vendors with two annotators per item plus a third resolver, processing 30K samples with >90% accuracy on internal audit. A pilot of 2,000 examples validated the five-binary-question decomposition that reduced inter-annotator disagreement. At current annotation marketplace rates ($0.10–$0.50 per label), your 30K budget is $3K–$15K — trivial compared to the potential downstream value.

What to do

  1. Prototype a generate-then-filter pipeline this sprint: use any open-weight LLM to produce relational triples from your behavioral data, then measure raw quality pass rate before investing in classifiers

  2. Run the frozen-encoder knowledge injection test within 2 weeks: add structured knowledge features to your existing search/recommendation model without retraining

  3. Annotate 5K-10K LLM-generated candidates in your domain to train a DeBERTa-large quality classifier this quarter

GRPO + RULER: The RL On-Ramp for Your Production Agents

The Stack Collapse

The RL training stack for LLM agents has completed a remarkable compression in 18 months:

DimensionPPO (2022)GRPO (2025+)
Models in memory4 (policy, reference, reward, critic)~2 (approaching ~1)
Params for 7B LLM~28B~14B (approaching ~7B)
Reward sourceLearned from human rankingsVerifiable or LLM-as-judge
Human annotationRequiredEliminated

GRPO's insight: generate 16 responses per prompt, normalize rewards within each group, replacing the critic with a simple statistical baseline. The group provides its own context for what "good" looks like at that prompt difficulty.

RULER Solves the Reward Bottleneck

DeepSeek proved GRPO works for math and code (binary correct/incorrect). But production agent tasks — RAG, customer support, summarization — lack compilers. OpenPipe's RULER (open-source, 9K+ GitHub stars) proposes the answer: generate 4-8 trajectories per scenario, send all to a judge LLM for relative scoring from 0.0 to 1.0.

Key design choices that matter for your adoption:

  • Relative, not absolute scoring — exploits the documented finding that LLMs compare better than rate absolutely
  • System prompt as implicit rubric — tightening "Use context to answer accurately" to "Do not add information not in context" dropped hallucination scores from 0.45 to 0.20 with zero code changes
  • Cost optimizations — prefix deduplication when trajectories share context; disk caching of judge responses
The reward signal — not the optimization algorithm — is the actual bottleneck for RL-training agents on non-verifiable tasks. GRPO is general-purpose and ready; RULER fills the gap.

The Convergence Signal

Three organizations are independently solving the same problem: Anthropic (Constitutional AI — principles-based self-evaluation), OpenAI (Universal Verifiers — unreleased), and OpenPipe (RULER — shipping today, open-source). This consensus tells you general-purpose reward signal generation is the critical 2026 capability for agent development.

Critical Caveat: Judge Reliability

LLM judges have known biases: verbosity preference, positional bias, self-preference. When you iterate over thousands of RL steps with a biased judge, those biases compound into reward hacking. Your mitigation: maintain a held-out human evaluation set that never touches the RL loop, and track divergence between RULER scores and human judgment over training. If they decorrelate, your policy is gaming the judge.

Judge economics also matter: o3 on 4-8 trajectories per prompt adds up. Benchmark Qwen3 32B via Ollama — if rank correlation (Kendall's tau ≥ 0.85) is high against o3, you run the judge locally at zero API cost.

What to do

  1. Clone OpenPipe's ART repo and run RULER against your existing RAG agent to establish baseline trajectory scores this sprint

  2. Benchmark judge reliability: run identical trajectory sets through o3, Qwen3 32B, and Claude as judges — measure Kendall's tau rank correlation to quantify judge trustworthiness

  3. Design hybrid reward for any agent with verifiable + subjective components: deterministic verifier for checkable parts, RULER for subjective parts

  4. Keep your reward interface pluggable — OpenAI's Universal Verifiers may ship and shift the build-vs-buy calculus

Discord Proved Your A/B Platform Is Over-Correcting — Here's the Fix

The Problem You Probably Have

Discord's experimentation team reduced default metrics from ~50 to 15 (a 70% reduction) and reported a 45% improvement in detecting real effects. The mechanism is statistical, not magical: with Bonferroni correction at 50 metrics, your per-metric alpha drops to 0.001. If 35 of those metrics are highly correlated (DAU/WAU, clicks/CTR, messages/sessions), you're correcting for phantom independence — inflating required sample sizes and extending experiment runtime for zero informational gain.

The underlying math is clean: if 50 metrics collapse to 12 principal components explaining 95% of variance, you only need ~12-15 well-chosen metrics. Discord used PCA and correlation analysis to identify the true dimensionality, then eliminated the redundant metrics.

ApproachMetricsCorrectionDetection PowerRisk
Measure everything~50α/50Low — many true effects missedFalse negatives, paralysis
PCA-pruned (Discord)~15α/15+45% vs baselineMay miss niche effects
Single primary1-3MinimalMaximum for chosen metricsTunnel vision

Complementary Infrastructure: 100x Cold Storage

Airtable achieved 100x archive storage cost reduction by migrating cold MySQL data to partitioned Parquet on S3 — 10x compression × 10x cheaper per-byte. The architectural choices transfer directly to ML infrastructure: historical training data, feature snapshots, and prediction audit logs sitting in RDS are almost certainly overpaying.

The key enabler: Apache DataFusion as an embedded query engine. It's Rust-based, runs in your application process (no Spark cluster), and supports Parquet bloom filters for predicate pushdown. For querying archived feature stores or experiment history, this is dramatically simpler than analytical infrastructure.

Fewer orthogonal metrics = tighter corrections = faster decisions. If your A/B platform tracks more than 15 default metrics per test, you're paying a hidden tax on every experiment you run.

Methodological Caveats

Discord didn't specify whether the 45% figure comes from retrospective reanalysis, a prospective test of the experimentation system itself, or theoretical power calculation. There's also no ablation separating PCA's contribution from simple domain-expert curation. Still, the directional insight is unimpeachable: most teams are over-instrumented and under-powered.

Adjacent Signal: Airflow 2 Is Dead

Apache Airflow 2 reached end of life the week of April 20, 2026. Security patches and provider updates have stopped. If your model retraining DAGs, feature pipelines, or batch prediction jobs run on Airflow 2, you have an unpatched orchestrator controlling your model lifecycle. This is not a Q3 planning item — file the migration ticket this week.

What to do

  1. Pull your experiment platform's metric registry this week: compute pairwise correlations across your last 20 experiments and identify redundant metric pairs (|r| > 0.8)

  2. Define explicit metric tiers: 3-5 primary decision metrics, guardrail metrics (safety), and exploratory metrics (excluded from significance corrections)

  3. Evaluate S3 + Parquet + DataFusion for cold ML data this quarter: historical training sets, feature snapshots, prediction logs older than 90 days

  4. File Airflow 2 → 3 migration ticket immediately — security patches ceased April 20, 2026

The bottom line

Amazon proved you can scale 30,000 human annotations to 29 million production knowledge graph edges by accepting that 65–91% of LLM output is garbage and training a classifier to find the gold — the frozen-encoder test (+60% Macro F1 with zero retraining) is the highest-leverage experiment any search or recommendation team can run this week, while Discord independently proved that cutting 70% of your A/B metrics improves detection power by 45%. Both findings share the same principle: more isn't better when noise compounds faster than signal.