Science & Analytics

The Scientist

The Signal

Google's Gemma 4 31B matches trillion-parameter models at 1/30th the size under Apache

Simultaneously, Apple's Simple Self-Distillation showed a free 12.9pp accuracy gain on LiveCodeBench by sampling a model's own outputs and fine-tuning with zero RL or filtering.

In Play

  1. Gemma 4 Apache 2.0: The Open Model Cost-Performance Frontier Moved

    Gemma 4's 31B dense matches Kimi K2.5 (744B) and GLM-5 (1T) on Arena rankings. The 26B MoE activates only 3.8B params, hitting 162 tok/s on a single RTX 4090 at ELO 1441. Apache 2.0 licensing removes the last legal friction for commercial fine-tuning and deployment.

    Ask Clarity
  2. Reasoning Model Anti-Patterns: CoT Costs 30-70× With Negative Accuracy

    Chain-of-thought prompting actively degrades reasoning model accuracy (−3.3% on Gemini Flash 2.5) while adding 20-80% latency. Output length correlates negatively with accuracy (r=−0.544). A $42 distilled 1.5B model beat o1-preview on AIME 2024. Apple found a complete accuracy collapse on hard problems.

    Ask Clarity
  3. Self-Distillation + Training Recipe: The Free Performance Lever

    Apple's Simple Self-Distillation improved Qwen3-30B from 42.4% to 55.3% on LiveCodeBench — no RL, no verifier, just sampling the model's own outputs and fine-tuning. Raschka's Gemma 4 analysis confirms training recipe dominates architecture. Axolotl v0.16.x claims 15× faster MoE+LoRA training with 40× less memory.

    Ask Clarity
  4. Infrastructure Fragility: GitHub at 90%, Provider Throttling

    GitHub availability cratered to ~90% (2.5 hours daily degradation) from 6× AI agent traffic growth in 3 months. Google, Amazon, and Anthropic all throttled usage limits simultaneously. Kent Beck argues investor patience — not compute — is the binding constraint. Inference costs may plateau.

    Ask Clarity
  5. AI-on-AI Alignment Regression: 97% Autonomous Jailbreak

    A Nature Communications paper shows four reasoning models autonomously jailbreak nine target models at 97% success by decomposing attacks into innocent subtasks. This was the same technique used in the first documented autonomous AI espionage campaign (Claude Code, 80-90% autonomy, 30 targets). LLM-as-guardrail architectures are invalidated.

    Ask Clarity

Deep Dives

Gemma 4: Your Definitive Evaluation Playbook — What to Benchmark, What to Skip, and Where the Bugs Are

Why This Release Is Different

Gemma 4 isn't just another open model drop — it's the first time a top-3 Arena model ships under Apache 2.0. The 31B dense variant ties with Kimi K2.5 (744B) and GLM-5 (1T) while being 20-30× smaller. The 26B MoE activates just 3.8B parameters per forward pass (14.6% utilization), hitting ELO 1441 and decoding at 162 tok/s on a single RTX 4090. Edge models (E2B, E4B) bring native text/vision/audio to Raspberry Pis and phones. All under a license that requires zero legal review for commercial deployment.

Fifteen independent sources converged on this story today. None provided controlled benchmark results beyond Arena Elo. The signal is directionally strong; the specifics demand your own eval suite.


Architecture: What Actually Changed

Sebastian Raschka's reverse-engineering is the critical finding: Gemma 4 31B is architecturally near-identical to Gemma 3 27B. It retains the hybrid 5:1 local/global sliding-window attention, Grouped-Query Attention, and the same positional encoding family. If architecture barely moved but performance jumped dramatically, training data and recipe are doing the heavy lifting.

The MoE variant takes an unusual path: MoE blocks are added alongside normal MLP blocks (outputs summed), rather than replacing them as in DeepSeek/Qwen. Every token still passes through dense computation and routed expert computation. With 5/6 layers using sliding-window attention (constant memory), the 26B-A4B fits 256K context in manageable VRAM — TurboQuant cuts KV cache from 13.3GB to 4.9GB at 128K, albeit with decode-speed penalties.

The Competitive Landscape Is Forking

DimensionGemma 4 (best)Qwen3.5/3.6Winner
Frontier difficulty (no tools)LowerHigherQwen
Local inference efficiencyExcellent (MoE + SWA)GoodGemma 4
LicenseApache 2.0Shifting to API-onlyGemma 4
Ecosystem day-0 supportvLLM, Ollama, UnslothGoodGemma 4

The Alibaba counterpoint matters: Qwen3.6-Plus claims Opus 4.5 parity on SWE-bench with 1M-token context — but it's API-only, self-reported benchmarks, and signals Alibaba's shift toward monetization. If you have Qwen models in production, build swap-ready abstractions. Gemma 4 under Apache 2.0 is the obvious fallback.


Critical Caveats Before You Deploy

  • Tokenizer bugs: 10-15 open issues in llama.cpp (PR #21343 pending). Unsloth quants produce garbage output. Use vLLM or native HuggingFace for any production evaluation.
  • Missing benchmarks: No published MMLU, HumanEval, GSM8K, MATH, or BigBench scores. Arena Elo measures crowd preference, not your classification task.
  • 300 tok/s claim: The M2 Ultra figure may involve prompt recitation or speculative decoding, not pure autoregressive generation. Wait for independent verification.
  • No technical report: All architecture analysis comes from reverse-engineering weights.
Run your own evals. Arena rankings are necessary for shortlisting, not sufficient for production decisions.

What to do

  1. Benchmark Gemma 4 26B MoE and 31B dense against your current production model on your domain-specific eval suite this week — prioritize structured output, function calling, and classification tasks

  2. Test Gemma 4 E2B/E4B on target edge hardware with INT4 quantization for any on-device use cases — measure actual tok/s, accuracy degradation, and memory footprint

  3. Audit model dependency chain for Qwen/Chinese open-source models and create tested fallback plans using Gemma 4 or other Apache 2.0 alternatives

  4. Do NOT deploy Gemma 4 via llama.cpp with Unsloth quants until PR #21343 merges — production evals must use vLLM or native HF inference

Your CoT Prompts Are an Anti-Pattern on Reasoning Models — Strip Them and Save Six Figures

The Evidence Is Now Overwhelming

Wharton's GenAI Lab tested 198 PhD-level questions and found chain-of-thought instructions buy only 2.9-3.1% accuracy on reasoning models at 20-80% latency cost. On Gemini Flash 2.5, CoT produced negative 3.3% accuracy — the prompt made the model strictly worse. Apple ML's NeurIPS 2025 paper documents an inverted-U quality curve: reasoning models overthink easy problems, hit a sweet spot at medium complexity, then completely collapse on hard problems with short, confident wrong answers.

All four major reasoning model providers (OpenAI, Anthropic, Google, DeepSeek) now explicitly warn against CoT on their reasoning endpoints. DeepSeek's documentation states few-shot examples "consistently degrade performance."


Why It Breaks: Search Compression, Not Capability

NeurIPS 2025 research reframes RL-trained reasoning as search compression: the model learns to reliably find answers already in its probability space on the first try. DeepSeek R1-Zero's pass@1 jumped from 15.6% to 71.0% during RL, but at high pass@k values, base models catch up and surpass their RL-trained counterparts. The ceiling is pre-training, not search budget. A 1.5B parameter distilled model trained with 7,000 RL examples on $42 of compute outperformed o1-preview on AIME 2024.

When you add CoT instructions, you're prescribing how to search to a model that already has an RL-optimized search strategy. You're constraining its exploration. The COLM 2025 paper quantified this: reasoning mode dropped accuracy by up to 36.3% on pattern recognition tasks.

The Token Economics Are Devastating

Reasoning mode generates 15-30× more tokens per query, inflating costs from $0.01 to $0.30-$0.70. The "Think Deep, Not Just Long" paper found output length has r = −0.544 correlation with accuracy — longer traces are worse. NoWait stripped 27-51% of filler tokens ("Hmm", "Wait", "Let me reconsider") with zero accuracy change. You're paying for tokens that are literally meaningless.

Even worse: unfaithful reasoning traces are longer and more elaborate than faithful ones. Models generate more tokens precisely when they're fabricating. Any verification step that reads the reasoning chain is theater.

More tokens literally means worse answers (r = −0.544). Your reasoning model already knows how to think — your job is to define what to solve, not how to think.

The Routing Architecture That Replaces CoT

Problem ComplexityOptimal StrategyModel Choice
Low (formatting, classification)Skip reasoning entirelyStandard model (GPT-4o, V3)
Medium (multi-step analysis)Reasoning model, tight constraintso3-mini, R1 with ≤3-line prompt
High (complex reasoning)Decompose or flag for humanDecomposition pipeline

At 10,000 queries/day, the routing decision alone is a six-figure annual cost difference. OptimalThinkingBench showed selecting outputs with lower overthinking scores improved performance ~30% while cutting compute 43%.

What to do

  1. Audit all production prompts hitting reasoning model endpoints and strip chain-of-thought instructions, few-shot examples, and process directives — A/B test stripped versions this week

  2. Build a complexity classifier upstream of your reasoning model endpoint that routes by task difficulty — standard models for easy, reasoning for medium, decomposition for hard

  3. Replace reasoning trace verification with independent output verification (code execution, mathematical validation, external data checks) in all production pipelines

  4. Evaluate a small distilled model (1-3B params) fine-tuned with RL on your specific task distribution as a reasoning API replacement for narrow use cases

Self-Distillation and the Model-Harness Training Loop: Your Biggest Free Performance Win

Apple's SSD: Comically Simple, Dramatically Effective

Apple's Simple Self-Distillation method is almost embarrassingly straightforward: take your model, sample its own outputs on a set of prompts, then fine-tune on those outputs. No correctness filtering. No reward model. No RL. Qwen3-30B-Instruct went from 42.4% to 55.3% pass@1 on LiveCodeBench — a 12.9 percentage point absolute improvement.

The implication: your instruction-tuned models are severely undersampling their own capability distribution. Fine-tuning on self-samples pushes the model's mode closer to its best-case outputs. The experiment is cheap enough that any team with fine-tuning infrastructure should just try it.

The methodological question: does this generalize beyond coding? LiveCodeBench has a natural correctness signal (code passes tests or doesn't), so gains may be amplified for domains where good answers exist at low probability. For ambiguous tasks (summarization, open-ended generation), gains may be smaller. But the cost of testing is near-zero.


Training Recipe > Architecture: The Gemma 4 Proof Point

Raschka's analysis shows Gemma 4 31B is architecturally near-identical to Gemma 3 27B — same hybrid attention pattern, same GQA, same sliding windows. If the architecture barely changed but performance jumped to match trillion-parameter models, training data quality and recipe optimization are the dominant levers. This has a direct implication for your work: you may be significantly under-optimizing your fine-tuning recipes while over-investing in architecture search.

The Trace-to-Training Flywheel

Apache 2.0 licensing unlocks the most important workflow: capture agent execution traces → fine-tune Gemma 4 on your production data → deploy improved model → repeat. The "Model-Harness Training Loop" thesis is gaining traction across multiple sources: your competitive moat is in your data and traces, not your model choice. If you're not logging structured traces from every agent run today, you're burning future training signal.

Axolotl v0.16.x ships with day-0 Gemma 4 support and claims 15× faster and 40× less memory for MoE+LoRA training, plus 58% faster GRPO async training. The 26B-A4B MoE variant could be LoRA-adapted on a single 80GB GPU — previously this required multi-node setups for MoE models.

Your next performance win is more likely to come from self-distillation on your existing model and better harness engineering than from swapping to the latest open-weight release.

Hermes Agent: The Reference Architecture for the Flywheel

Hermes Agent is gaining rapid adoption with a pluggable memory system supporting 7+ backends (Honcho, mem0, Hindsight, RetainDB, Byterover, OpenVikingAI, Vectorize). The community is converging on a critical insight: the competitive edge is now in the model-harness training loop — harness engineering → trace collection → analysis → domain fine-tuning → repeat. Memory abstraction is non-negotiable; trace collection is your training data pipeline; context management is an architectural problem, not a prompt engineering problem.

What to do

  1. Run Apple's Simple Self-Distillation on your best-performing domain model this sprint: sample N outputs, fine-tune without filtering, measure delta on your eval suite

  2. Instrument all agent pipelines to capture structured execution traces (tool calls, reasoning chains, outcomes) by end of this quarter

  3. Test Gemma 4 26B-A4B MoE with LoRA fine-tuning via Axolotl v0.16.x on your domain data — validate the 15×/40× claims on your hardware

  4. Evaluate Hermes Agent's 7-backend pluggable memory architecture as a reference design — assess whether your current agent memory is backend-locked

The bottom line

Gemma 4 proves training recipe beats architecture (31B matching trillion-parameter models under Apache 2.0), Apple proves self-distillation beats model swaps (+12.9pp for free), and Wharton proves your CoT prompts are an active anti-pattern on reasoning models (negative accuracy, 30-70× cost) — the teams pulling ahead right now aren't picking better models, they're extracting more from what they already have while stripping the expensive prompting habits that 2022 taught them.