Claude hand-writes a legal-citation detector net, 1.8M cites/s on Apple ANE

paul_cal · x · 2026-11-05

A user had Claude write every weight of a legal-citation checker neural network from scratch — zero training, running on Apple's Neural Engine. On the LePhantomCite held-out set it caught all 31 fake citations with only 1 of 983 real ones flagged; on an M5 Pro it runs at 50µs per citation, 1.8M cites/s on ANE + GPU, scanning 3.3GB of case law in 2.3s.

The follow-up notes the catch: this kind of generation only works when a ruleset exists to follow — LePhantomCite fakes can be identified via mismatches like volume vs. year and reporter vs. court. Tasks without such rules may not replicate the result.

Related event: Claude Hand-Writes Neural Net Weights to Detect Fake Legal Citations, Beating Trained Models(2 posts)→

Original post →

More from coding & agent

coding & agent channel →