I tested redaction on 1,784 personal-data spans from a public synthetic set.
Regex alone left 55.0% visible. A small local model plus regex, same run: 8.9%.
Still not zero: 159 spans stayed visible, and 99 of 500 documents kept at least one.
@EconomistEvents Privacy belongs on that list next to cost and latency. My redaction test runs a 4B model plus regex on a 16 GB Mac mini M4: about 3 seconds a document, 0 API calls, so the text stays on the machine. Will the panel talk about where the data goes?
@antonships Agreed, and the two pull against each other. When I switched off Presidio's date and URL rules, the false flags dropped, but every birth date in the set was left showing. Fixing one side can break the other.
Week 1 building in public.
This week I ran fake Singapore IDs through redaction tools:
- Hand-drawn black boxes left the ID in the PDF 200 of 200 times.
- On 500 fake work prompts, regex alone stripped 32% of personal details. A small local model plus regex stripped 94%, but also blanked 248 harmless words.
- When I added scan-style typos to the ID labels, my own tool missed every one from level 2 up. The small model plus regex still caught over half.
Next up: finding out why typos break my tool.
All data synthetic.
@aksenHQ Lost context is the cost I'd watch. When a harmless date or product name gets blanked, the prompt can stop making sense to the model. Would you score that by answer quality, or by how often someone has to undo a redaction?
@georgeorch Yes, when the box is only drawn on top. The text layer underneath stays, so copy and paste or a simple search brings the ID right back. Real redaction deletes the text under the box too.
@antonships In an earlier Presidio run on texts with no personal data, most of the false flags were dates. For misses, each test document comes with its personal data already labelled. After redaction I count how much of that is still visible.
@0xlelouch_ On #9, PII in logs: a regex filter can look like enough. In one side-by-side run on 525 synthetic documents, regex alone left 55.0% of personal data visible. A 4B local model plus the same regex left 8.9%. Does a test like that belong in the #1 eval gates?
In a fake agency drill, hand-drawn black boxes left the ID in the file 200 of 200 times.
Before you send a PDF: select all, copy, paste into a notepad. If the ID shows up, it was never redacted. A blank paste is one check, not proof.
All files synthetic.
GTA VI is downloading on my PS5. My AI agents are still working: one runs tonight's backup, and another is lined up to research sites for my redesign in the morning. I give them the jobs, they do the work, and I check the results later. Tonight my only job is to play.
@HungLee 'Humans-in-the-way' is the line that would worry me on a team. When the first pass is fast, someone still has to sign off. Does the issue look at teams that kept that check, or ones that tried to skip it?
@sermakarevich App evals is the section I'd open first. I care less about a general leaderboard than about a test that matches the actual job in production. Does the guide keep those two kinds of evals apart?
@ghanemzadeh The 'deployed' word is the one I'd keep. Sitting with the team matters more than another demo. When you are on site, what is the first sign that a project is still a pilot?
@ankitpansari_ Inkling 2 Mini is 26B, and I only have a 16 GB Mac mini M4. A 4B runs there in about 3 seconds a document, with no API calls. If every VM uses the same local model, do you keep one copy loaded, and what is the least RAM you've actually run Mini on?
@twid One flagged test call shows how little you control once text leaves your machine. My local redaction test, a 4B model plus regex on a Mac mini M4, still left 8.9% of personal data visible. Would you trust masking enough to keep using hosted models?
My AI engine is done, but adoption is still low. The hard part is not building the engine. It is changing how people work. People move from doing the work to checking the work. Some fear AI will replace their jobs. It won't. The business still needs people to verify and decide.
Got my BJJ blue belt on 2 Nov, 2 years and 8 months after my first class. Building this app in public is the same deal: slow, and the misses get posted too.
@luisnhenrich@darshilbabel@code_sagar The 500 docs with personal data are from NVIDIA's public Nemotron-PII set, text unchanged, with spans relabelled to 8 types. The other 25 have none. You're right that clean synthetic text won't split an ID across lines, so OCR needs its own cases.
PII anonymization sits in your production list, and the method behind it changes a lot. In one side-by-side run on 525 synthetic documents, regex on its own missed 55.0% of the personal data. A 4B local model plus the same regex missed 8.9%. Do you scrub agent memory and audit trails with the same pass?
@Oluwaphilemon1 Your point about checking the network behaviour of the whole setup is the part I'd underline. In my redaction test, a 4B model took about 3 seconds per document on a 16 GB Mac mini M4, and the run made 0 API calls. Which tool do you use to see what the app itself sends out?
@kevintheo Thanks for the pointer. What format does a test set take there? Mine is documents plus labeled personal-data spans, since the spans are what make the 55.0% and 8.9% figures checkable.
I ran 525 synthetic documents through three redaction setups, in one run.
Regex left 55.0% of 1,784 personal-data spans visible. Presidio left 25.1%. A 4B local model plus the same regex left 8.9% (159 spans, in 99 of the 500 public documents).