Caio Theodoro Caio Theodoro

Malha: Priced, Not Passed — What Accounting Agents Actually Lose (and Win) in a SPED Audit

An accounting agent that misses R$40,000 of unrecorded revenue and one that flags 53 phantoms are both wrong in a binary eval. I built malha — a SPED-native audit environment with scanned documents, a fail-closed Trust Ledger, and Lei 8.218/1991 statutory fine pricing — and measured when hybrid VLM agents decisively beat both deterministic SPED rules and Tesseract OCR regex.

ML Agent Systems
Nov 2026

Lacuna Under Real Log Loss: 269 of 277 Runs Covered, 23 Set Aside

I killed the collectors mid-run to see whether capture-recapture still counts the actions no log recorded, over 420 runs. I predicted it would miss its bar. Counted as misses, the 23 set-aside runs leave it at 269 of 300.

ML Agent Systems
Nov 2026

Lacuna: Estimating the Agent Actions That No Log Recorded

Three logs watch an agent, and the overlap between them estimates what all three missed. Across four pre-registered studies it held when every action had a record in at least two logs, and broke when a batch tool hid many actions behind one.

ML Agent Systems
Oct 2026

Pinning an Answer Template into DiffusionGemma on Five NFS-e Layouts

I pre-registered that pinning a template would make invoice extraction more consistent. It did on one layout, +0.130, and not on four municipal ones, −0.018, at 2.5 to 9 times the latency. The autoregressive sibling won by 11 points.

ML Engineering
Sep 2026

Cyclegraph: Why Optical Flow Reports the Background Past a Displacement Knee

Cyclegraph needs a hand's speed to read a vendor's manipulation flag as duty cycle. Above a displacement knee, dense optical flow inside the hand box reports the background, at the ratio of their depths. Ego-motion correction subtracts exactly that.

ML Engineering
Sep 2026

Vernier: Putting Error Bars on a Video Dataset Vendor's Quality Claim

Build AI publishes a quality number from one VLM pass and no interval. Against human gold, the judge made 28 errors in 153 frames and 26 inflate the statistic. One of the two published margins does not survive correction.

ML Engineering
Sep 2026

Auditing Ornith-1.5's Self-Proposed Curriculum on Construction Pay-App Review

With contamination-controlled data, the 58 tasks Ornith-1.5 proposes lose alone, 0.241 recall against 0.318 for 223 matched tasks, and lift precision from 0.308 to 0.374 when added to them.

ML Agent Systems
Aug 2026

Suture: Training an 8B Adapter to Catch Underwriting Errors GPT-5.6 Missed

An 8B vision-language adapter diffs an underwriting binder against the issued policy: recall 0.959 across 13 discrepancy classes, where untrained GPT-5.6 gets 0.373. The harder story is the three measurement gates that gave false confidence.

ML Engineering
Aug 2026

The Third Number: Scoring Money-Handling Agents on Expected Loss

Agents that touch money are scored on accuracy and on price. Neither catches one bad decision with an outsized loss. This is the metric that does, and why nothing measured it before LossBench.

ML Agent Systems
Aug 2026

Six Properties That Decide a Vertical Benchmark, Tested on Reconciliation

Reconciliation looks like a job a small fine-tuned model should win. Six properties of the benchmark decided it more than either model, starting with exact-hash contamination that measures the wrong thing and a metric that rewards over-flagging.

ML Engineering
Jun 2026

Rebuilding ARC-AGI-3's Benchmark Method and Stress-Testing It

I rebuilt the method as a pipeline and measured difficulty scaling, the human calibration bar, sample size and a contamination monitor you can validate yourself. An audit of my pipeline flipped two of my findings.

ML Engineering
May 2026

Evaluation Gates Are the Reliability Moat for Agent Deployments

Most deployments that get shut down were right on average. They failed once, in a way nobody caught, and a customer or a regulator found it. The gate that catches that before shipping is the product, more than the base model.

ML Engineering
Apr 2026

The Economics of Model Serving: Batching, Quantization, Tiering

Teams pick the leaderboard winner and discover the bill. How the serving layer batches, how hard it quantizes and how it tiers decide the economics of a served model, along with the self-host bet.

ML Engineering
Apr 2026

Perfectman: Replacing Turn-Based Scheduling with Urge-Driven Social Agents

Most social-agent systems schedule speech: a tick fires and each agent gets a slot. Perfectman replaces the turn with urges driven by attention, emotion, pressure and inhibition, to get believable online social dynamics.

Behavioral AI
Feb 2026

Choosing a Wire Format for Generative UI: Parsing, Latency, Token Cost

The format a model uses to describe an interface decides parsing reliability, streaming latency and token cost. Most teams pick one by accident, then pay for the full tree each time a user changes one value.

UX ML
Feb 2026

Thinking with Visual Primitives: Coordinates Inside the Chain of Thought

Frontier models cluster around 49-50% on maze solvability, a coin flip, and DeepSeek's model gets 66.9%. The paper puts the failure somewhere other than seeing the maze, in what it calls the Reference Gap.

ML
Jan 2026

Choosing Between RAG and Fine-Tuning: Update Frequency, Provenance, Upkeep

The debate gets argued as a capability question. In production the scoreboard is update frequency, provenance and the monthly bill, decided by three axes and by what your team can actually operate.

ML Engineering
Jan 2026

How Constrained Decoding Removed a Class of LLM Pipeline Failures

Constrained decoding moves the trust boundary to the inference layer, so an ill-typed token never leaves the sampler. It eliminated a whole class of production failures and mattered more than any prompting technique.

ML Engineering
Jan 2026

When a Knowledge Graph Earns Its Keep in RAG

GraphRAG draws enthusiasm and skepticism from the same people at different points. Both are justified. It comes down to one structural property of your retrieval task: whether the answer needs facts from several documents at once.

ML Engineering
Nov 2025

A Year of RAG in Production: Where Vector Search Fails and GraphRAG Helps

Most teams file retrieval under freshness. The question that matters is whether retrieval showed the model the right world. Where flat-index search fails in production, what GraphRAG fixes, and what it still does not.

ML Engineering
Sep 2025

The Gap Between RLHF and Alignment: Sycophancy as a Structural Property

Outputs that validate a belief score higher with raters than outputs that correct it, and that holds when the belief is wrong. Sycophancy and overconfidence follow from that gap, and tell you which failures to expect.

ML
Aug 2025

Synthetic Data for Fine-Tuning: Where It Works and Where It Breaks

The mechanism is old; the scale is new. Generate 10,000 question-answer pairs about your docs and the model sounds authoritative in a domain where it can be wrong. Where it works, where it breaks, and the production pattern that holds.

ML
Jun 2025

MiroFish: Forecasting Demand with Agent-Based Social Simulation

MiroFish seeds a simulation with FRED data, macro signals and decades of history. One trader ran 2,847 simulated agents before each Polymarket trade and reported $4,266 over 338 trades. What the architecture gets right, and where the evidence holds.

ML Engineering
May 2025

Forecasting Time Series with LLMs: What the Benchmarks Actually Test

On M4, ETTh1 and Exchange Rate, recent results show LLMs matching or beating statistical baselines, with no paper, seed or exact score to check. What those benchmarks test, where the genuine use case is, and when to reach for statistics.

ML Engineering
Apr 2025

When the Problem Is Simulation, Not Prediction

A forecast is judged by its average error, but the cost sits in a handful of weeks the average cannot see. Some problems get a predictive model because that is what the field ships, when the job is simulation.

ML Engineering
Mar 2025

What Superforecasters Got Right About Calibration and Feedback Loops

Tetlock's research, read for production ML: a proper score on stored probabilities matched to outcomes. Calibration as a feedback system, the Brier score as the standard, and why the loop almost never closes.

ML
Feb 2025

Calibration: Why 80% Confident Should Mean Right 80% of the Time

A model is calibrated if, of its 80% predictions, 80% are right. Production systems almost never meet that, and the miss is less visible than an accuracy drop and more expensive. How it survives undetected, and what a calibrated system looks like.

ML
Jan 2025

The Real Cost of Fine-Tuning: Data and Evaluation, Not the Training Run

Below roughly 5,000 to 10,000 examples, fine-tuning a general-purpose model improves what looks like your data and degrades unpredictably elsewhere. What it specializes, what it cannot do, and the data and evaluation work that decides if it pays.

ML Engineering
Oct 2024