Data Audits and Release Governance › Sensitive-Content Review in Practice

Michael BrenndoerferNovember 25, 20269 min read
Language AI HandbookAll chapters
Part 21 of 67Data Governance, Provenance, and Synthetic Ecosystems
Chapter 154Data Audits and Release Governance › Sensitive-Content Review in Practice
Reading section 4 of 11 · Sensitive-Content Review in Practice · 9 minSection 4 of 11 · 9 min

Section 4 of 11 · 9 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Sensitive content is not one category. It is a hierarchy, and the review process for each branch is different because the stakes and the base rates are different.

The legal rules for child sexual abuse material depend on the jurisdiction and provider. In the United States, 18 U.S.C. § 2258A requires covered providers to report to NCMEC’s CyberTipline as soon as reasonably possible once they have actual knowledge of facts indicating certain apparent violations. Section 2258E defines providers as electronic communication service providers or remote computing services. Section 2258A(f) creates no duty to affirmatively screen. Under subsection (h)(1), a completed report under subsection (a)(1) triggers a one-year preservation period for the submitted contents. Subsection (h)(2) also covers reasonably accessible visual depictions, data, or other digital files that may provide context or additional information about the reported material or person. Subsection (h)(3) requires secure storage and limits staff access to what compliance requires. Subsection (h)(6) requires preservation under that subsection to be consistent with the latest NIST Cybersecurity Framework or its successor.

A working taxonomy

  • Personal data. Names, email addresses, phone numbers, government identifiers, financial account numbers, home addresses, precise geolocation, health information.
  • Credentials and secrets. API keys, passwords, private keys, session tokens, database connection strings.
  • Child sexual abuse material. Keep this category separate from routine content review. Record the applicable reporting and preservation rules as part of the audit scope.
  • Other illegal or severely harmful content. Instructions for weapons or explosives, malware source, recruitment material, targeted harassment.
  • Hate and abuse. Slurs, dehumanizing language, coordinated harassment.
  • Professional advice. For medical, legal, and financial advice, record any restrictions applicable to the intended use and jurisdiction as part of the audit scope.
  • Private or proprietary material. Leaked documents, paywalled content, non-public personal information of public figures.

The taxonomy is not intended to be exhaustive. Every organization will find itself adding categories as its deployments surface them, and the categories will look different for a medical copilot than for a code assistant. What matters is that the taxonomy is stated in the audit record and that the report breaks prevalence out per category rather than pool-treating "harmful" as a single number. In a worked breakdown that assigns one primary finding per flagged document, an overall rate of 0.5% might consist of 0.4% with personal data in code comments, 0.05% with credentials, and 0.05% with targeted harassment. Report unresolved flags separately from reviewed positives.

The detection stack

A detection stack can combine methods with different scopes:

  1. Exact matching against hash lists. Compare a content digest with a reference list of known material. The result only establishes whether the digest is on that list. How the list was assembled and which hashing method it uses determine what the match can tell you.
  2. Pattern matching with validators. In the worked example below, a regular expression finds strings that resemble card numbers. A Luhn check rejects candidates that fail the checksum. A passing candidate can still be unrelated to a card. The reduction in false positives depends on the strings your matcher accepts.
  3. Lexicons and gazetteers. Match entries from name lists, profanity lists, or place lists. What they catch depends on the list and the text. An entry may be ambiguous in context, and new terms may be missing.
  4. Statistical classifiers. A learned classifier can use surrounding text. Toxicity benchmarks have shown changes in error rates across tested language varieties and domains. Validate on data resembling the deployment corpus.
  5. Model-based judging. Ask a language model to classify a document using a rubric. Record the model and input and output token counts so you can estimate costs under the applicable pricing or runtime measurements. Phrasing can affect the labels. A comparison with independently labeled examples helps establish how well the judge applies the rubric.

Choose layers with different failure modes. Hash-list matching is limited to the reference list. Pattern matching with validators catches structured identifiers in the forms the pattern anticipates. Lexicons catch lexical cues broadly at the cost of noisy flags. Statistical classifiers adapt to context and catch patterns lexicons miss, at the cost of opaque and drifting operating characteristics. Model-based judges add semantic flexibility and rubric-driven explanation, at the cost of expense and unreliability on inputs far from the model's training distribution.

Decide what action a detector's evidence can support. A checksum-validated match establishes that a string passed a format check, and a multilingual toxicity classifier assigns a score under a particular training and validation setup. An automated route can act on a narrow, validated criterion when its measured error rates meet the policy. Send ambiguous flags to a second stage such as human review. Record what each layer can establish and the population on which its error rates were measured.

Operating characteristics and the base-rate trap

Every detector has a true positive rate (TPR, or recall) and a false positive rate (FPR). Those two numbers do not tell you whether the detector is usable. Precision asks what fraction of flagged documents are positive. It is undefined if the detector makes no flags.

By Bayes' rule, at prevalence π\pi,

precision=TPR⋅πTPR⋅π+FPR⋅(1−π)\text{precision} = \frac{\text{TPR} \cdot \pi}{\text{TPR} \cdot \pi + \text{FPR} \cdot (1 - \pi)}

This expression is brutal at low π\pi. Take a detector with 95% recall and a 1% false positive rate, which sounds excellent. At a prevalence of 0.1%, precision is

0.95×0.0010.95×0.001+0.01×0.999=0.000950.01094≈8.7%\frac{0.95 \times 0.001}{0.95 \times 0.001 + 0.01 \times 0.999} = \frac{0.00095}{0.01094} \approx 8.7\%

More than nine out of ten flags are wrong. If a person reviews every flag, about 91% of the reviewed documents are negatives. The share of review time depends on how long those cases take. Automatically removing every flag transfers that same mix of positives and negatives to the removed set. If false-positive rates differ by group, each rate is the fraction of that group's negative documents removed under this rule. See Toxicity Filtering for the implications of setting a threshold.

At a fixed threshold, use the TPR and FPR measured for the target population. The true-positive share is TPR×π\text{TPR}\times\pi, and the false-positive share is FPR×(1−π)\text{FPR}\times(1-\pi). The two shares are equal at π=FPR/(TPR+FPR)\pi=\text{FPR}/(\text{TPR}+\text{FPR}). With a 1% FPR and 95% TPR, that is about 1.04% prevalence. Below it, false positives outnumber true positives among the flags. In this example, more than 91% of flags are false at 0.1% prevalence, and the share rises as prevalence falls.

This is why the audit's job is not just to count positives. It is to characterize the detector well enough that someone can choose a threshold deliberately. Precisely characterizing the detector's ROC curve against human-labeled gold data, stratified by document type and language, is what allows the next subsection to be meaningful. Without that characterization, the threshold is chosen by gut feel or vendor default, and neither is a defensible answer to the question "why was this set here?"

Threshold selection as a decision under cost

Suppose each false negative costs CFNC_{FN} in expected harm and each false positive costs CFPC_{FP} in lost data and review time. Expected cost per document at threshold tt is

E[cost∣t]=CFN⋅π⋅(1−TPR(t))+CFP⋅(1−π)⋅FPR(t)\mathbb{E}[\text{cost} \mid t] = C_{FN} \cdot \pi \cdot (1 - \text{TPR}(t)) + C_{FP} \cdot (1-\pi) \cdot \text{FPR}(t)

Minimizing over tt gives the operating point. The point of writing it this way is that CFNC_{FN} and CFPC_{FP} are policy decisions, not technical ones, and they belong in the audit record alongside the metrics. When someone later asks why the threshold was set where it was, "we minimized expected cost under the risk appetite approved by the safety review on 3 June" is a defensible answer. "It was the default" is not.

The detector's false-negative rate is the share of positive corpus documents it misses. To include deployment harm in CFNC_{FN}, estimate the frequency and severity of harmful outputs separately and document the evidence and assumptions behind the estimate. When the cost is uncertain, show how the threshold choice changes across plausible costs.

Review workflow

Automated detection produces candidates. Humans produce adjudications. A workable workflow:

  • Tiering. Route severe and uncertain-severe flags to qualified specialist triage. Count unreviewed flags separately from adjudicated positives. Send lower-severity, low-confidence flags to bulk review if the audit protocol calls for it.
  • Dual review for the top tier. Two independent reviewers, with disagreements escalated to an adjudicator. Record both labels, not just the resolved one, so you can measure inter-annotator agreement.
  • Blinding where possible. Reviewers should not see each other's labels before committing their own.
  • Minimal retention. Keep ordinary review tickets limited to the reference and the decision, without the document content. A hash or location reference can still be personal data if it relates to an identifiable person. Include access controls for those records in the review design. See GDPR Article 4.
  • Rate limits and welfare. Reviewers of severe content need rotation, psychological support, and exposure limits. This is an operational requirement, not a nicety.

The workflow has two goals: accurate labels and safe working conditions. Have two reviewers label a subset independently and compare their answers. Inspect cases where they disagree for ambiguous rubric language, ambiguous examples, and differences in interpretation before revising the rubric. Set exposure limits and provide support for reviewers handling severe material.

Canary documents: testing the controls

A content audit tells you what is in the corpus. A control test tells you whether your filters still fire. The cheapest version is a canary set: a small collection of documents with known labels, deliberately constructed to exercise each filter, run through the pipeline as if they were ordinary data.

If a canary meant to be removed survives, the pipeline missed a test case. If a canary meant to be kept is removed, the pipeline rejected a test case incorrectly. Inspect the path it followed before attributing either result to a threshold change.

Run canaries on pipeline changes to catch regressions before the next training run. A canary tied to a particular filter helps isolate the stage that failed, and running the same test on the previous version helps narrow down the change. If you find a failure after training, assess remediation separately for the corpus and for any checkpoint trained on it.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy