Urgent.News

What's breaking now, across thousands of outlets.

AI

A 125M model beat a 14B LLM at de-identifying medical text 40 faster, on CPU

Your data never leaves the machine - and you can check my math Building localscrub, a local-first PHI de-identification cascade, and benchmarking it honestly against the standard baseline - on one consumer laptop, with zero real patient data. De-identifying clinical text today forces a bad trade. Cloud de-id APIs are accurate, but you send the sensitive data out in order to scrub it - the text…

Abstract editorial illustration

localscrub, a local-first PHI de-identification cascade, achieved a significant improvement in speed and accuracy when compared to a standard baseline. This local solution runs entirely on the user's CPU, eliminating the need to send sensitive data to cloud APIs, thus maintaining privacy and control over the data. The project developed a two-stage cascade: the first stage employs rule-based and Named Entity Recognition (NER) methods to identify well-formatted identifiers such as phone numbers, emails, dates, and account numbers, while the second stage utilizes a locally served LLM to handle the more ambiguous portions of the text.

This approach results in a 125M parameter model that outperformed a 14B parameter model by 40 times faster on a single consumer laptop. The developers created a synthetic clinical note dataset using the localscrub synth tool, allowing for accurate evaluation of the de-identification process without relying on real patient data. The evaluation harness calculates three key metrics: relaxed, strict, and redaction recall.

These metrics help quantify the effectiveness of the de-identification process and ensure that the output is genuinely safe. The authors emphasize the importance of verifying the accuracy of privacy tools, as using unverifiable claims could lead to potential liabilities. The localscrub project demonstrates a comprehensive and rigorous approach to de-identifying medical text, setting a new benchmark for local solutions and paving the way for further improvements in this critical area.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

July 2026 newsletter

The June edition of my sponsors-only monthly newsletter is out. If you are a sponsor (or if you start a sponsorship now) you can access it here .

Turn Chatbot Misunderstandings Into Grammar Regression Tests

A custom-grammar bot can be reliable right up until someone types a perfectly reasonable sentence that the grammar author did not anticipate.

  • Separate command parsing from domain validation.
  • Implement time validation function for feeding times.
  • Use failed conversations to improve grammar.

More from Sunday 2 August →