Skip to content

Review fixes - #7

Open
mohanenm wants to merge 34 commits into
mainfrom
review-fixes
Open

mohanenm wants to merge 34 commits into
mainfrom
review-fixes

Conversation

@mohanenm

Copy link
Copy Markdown
Owner

Round 2: personal data first, better recall on hard-to-catch PII, a narrowed Tier 2, and the first sealed-set result.

Behaviour changes

  • protect: pii is the default. Personal data is redacted: names, contact details, identifiers, addresses and places, day-level dates, and sentences about someone's health, family, legal or employment situation. Business context is flagged for review instead of redacted: amounts, percentages, organisations found automatically, business topics, quarters. protect: confidential redacts business context too, and offrecord init asks which you want. Deny-list entries are always redacted.
  • Personal-topic sentences need a personal anchor: a pronoun, a person word, a name, or an event that only happens to a person. "Our cancer franchise grew" is flagged, not redacted.
  • Tier 2 is narrowed to indirect identifiers the rules missed. The guess verifier (it cost recall) and the coherence report (it flagged nothing on the real model) are removed.

Detection

New Tier 0 rules for:

  • spoken IPs and emails, multi-word passwords, read-back codes, URL paths;
  • last digits of cards and accounts, address tails;
  • ordinary-word given names next to person words;
  • indirect identifiers (people redacted, organisations flagged);
  • place names: partial names completed, more place words, places in text without capitals.

Evaluation

  • offrecord eval leads with PII recall and PII-clean transcripts, each with a 95% bootstrap interval. "Other seen" is renamed "other r/f" (redacted or flagged).
  • 40 new blind tuning transcripts (h41–h80), including a place-heavy batch.

Results (Tier 0 / Tier 1)

PII recall PII-clean transcripts
Validation 98.0% / 98.6% 80% / 86%
User set 88.2% / 89.5% 25% / 25%
  • Sealed set, opened once, against targets fixed beforehand. Tier 0 misses two of them:

    Target Tier 0 Tier 1
    PII recall 95% 93.4% 96.4%
    PII-clean transcripts 65% 46% 65%

    Almost all of Tier 0's misses are place names. It is reported as a fail in the README and on the site. The sealed set is now spent, so the next release needs a fresh one.

  • Place work done after opening it, on new tuning data only: place recall on that batch rose from 85.9% to 89.1% at Tier 0. The sealed set was not used for it.

  • Earnings-21 (real calls, never tuned on): Tier 0 PII recall 87.0%.

Checks

  • ruff check, ruff format --check, mypy, pytest (610 passed) locally
  • scripts/check_hygiene.py
  • CI on GitHub (first run on this branch)

… the mapping

Bare tokens need three digits, so an answer's own P1 or L2 is never restored.
Header-less text holding a placeholder the mapping lacks is refused. A titled
name (Mr. Whitfield) never takes a speaker's identity.
SPOKEN_EMAIL tokens, the possessive in the third INDIRECT_RES pattern and the NUMBER_TRIGGER filler words were unbounded, so a long line like a-a-a-... or "number is number is ..." was rescanned from every start position. complete_runs also scanned every token per span. Matches on the tuning, tuning-hw and validation sets are unchanged.
… --prompt

Leftover combining marks are dropped in the normalised view; 9+ digits in
slash or underscore groups read as dashed numbers; Will, May or An after an
introduction or as a speaker is a name; the instruction reuses the
transcript's placeholders; a fuzzy speaker match no longer takes the next I.
60 blind-written transcripts in inline markup (business calls, speech-to-text
style, personal-data-heavy calls), encrypted with offrecord's own format. The
key is held by the maintainer outside the repository.
The headline now uses the first sealed set and real earnings calls instead of
the easiest set; the tables add validation2, a no-deny-list row, the outside
datasets and a Presidio baseline, report precision on turn text, split
redacted from flagged business context, and say what the user set and the
indirect-identifier figures can and cannot show.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant