Sudoku
MRV: 12/12 solved, 1.06 s total. Model: 4/12. The 1970s heuristic keeps its belt.
Details →Textbook algorithms assume nothing about your data, so they pay full price every time. Real data has shape: lists arrive mostly sorted, a few keys stay hot, mazes have corridors. We add heuristics that notice that shape so the algorithm can adapt, and we check every change against the plain version.
Good news, everyone: sometimes the fix is a better rule, not a bigger model.
Measure what your data actually does: how sorted it is, how skewed, how repetitive.
Feed that back in as a heuristic. Use a small model only where a rule can't capture it.
Experiments
These are screen recordings from our test bench, scoreboard included. We kept the ones the rule won. Click a video to watch it full screen, or see them all on the lab page.
MRV: 12/12 solved, 1.06 s total. Model: 4/12. The 1970s heuristic keeps its belt.
Details →Planner labels the moves, model picks, shield vetoes. The pattern that works.
Details →16/20 boards with the shield, 13/20 without. The shield stepped in 8 times in 1,286 clicks.
Details →Regex alone waved 5/10 destructive commands through. Regex + model: zero.
Details →83.7% vs 78.8%. On tricky phrasing, 72.5% vs 47.5%. 3.8 ms, zero tokens.
Details →Matches LRU within 0.2 points. LFU still wins two traces at ~5,000× less cost per eviction.
Details →Heuristic: 278 lines, never topped out. Model: 51 lines, topped out 5/5. D'oh.
Details →Longest-queue rule: 6.34 s mean wait. Model alone: 41.5 s. The model is still learning to read queues.
Details →Six data sets, significance tests on screen. 4 wins, 2 losses against the best trained model.
Details →The model in these clips is Laya, an open decision model that runs on the device (about 4 ms a call on the Apple Neural Engine). The benchmarks are small and built by hand, so read them as examples rather than general accuracy numbers.
Protocol
Find where your data has structure and where your code makes choices: which branch, which key, which queue.
Write the best simple rule we can and measure it first. That's the boss fight.
Add heuristics that use that structure, within your latency budget.
Keep whichever does better on traffic it hasn't seen. Often that's the rule, and that's fine.
Request a pilot
Tick whatever's relevant and we'll reply within two business days.
Want to work on this? Careers →