Privacy and preparation
Dataset rare event identification risk: assess rare cases first
By SourceX Editorial · Reviewed by Noah Loul ·
10 sections
Short answer
Assess rare business cases one class at a time: count how often each rare event appears, check whether it is visible outside your company, list the details attached to it, and score how much the task depends on it. Then remove the identifying context while keeping the event itself, restrict it to stricter terms, or drop it. Rare cases are both the most valuable and the most identifying records you hold.
Redaction
Dataset rare event
Key takeaways
- The rare cases buyers want are often the easiest to identify, because a rare event narrows the field to a few people or accounts.
- Blanket suppression or noise removes rare cases first, so it costs more task value than it seems.
- Assess each rare-event class separately on count, outside visibility, attached details, task value and memorization exposure.
- Keep the event and remove its context: coarsen time and place, band numbers and drop the details that point to one party.
- Events already reported publicly often cannot be hidden by treatment and need exclusion or specialist review.
- Record every decision with its reason so reviewers can see what rare signal was kept and what was given up.
How do you assess privacy risk in rare business cases sought by AI buyers?
Assess rare cases one class at a time rather than with a single dataset-wide score. For each class of rare event, count how often it occurs, check whether it is visible outside the company, list the quasi-identifiers that travel with it, and estimate how much the intended task depends on it. Then choose a treatment that keeps the event and strips its context, restrict it, or drop it.
A dataset-wide score hides the problem. A support archive can look safe on average while a few dozen rare escalations, each tied to one large customer and one date, are effectively named. Those are often the very records a buyer asked for, because rare failures, disputes and edge cases are what models get wrong.
The assessment below makes that tradeoff explicit for each class, so the decision is visible to a privacy reviewer, a task reviewer and the person who signs the agreement.
Why are the rare cases buyers want often the easiest to identify?
Rare cases are easy to identify because rarity itself narrows the field. If only one customer ever had a particular outage, or only one site ever reported a certain incident, the event points to that party even with every name removed.
HHS guidance on expert determination under the HIPAA Privacy Rule describes this with three principles that apply well beyond health records: replicability, whether a feature stays tied to the same person; data source availability, whether outside sources hold the same feature alongside identities; and distinguishability, how far a record stands apart from others. The guidance shows how fast detail changes the picture: it estimates that year of birth, sex and 3-digit ZIP code together are unique for about 0.04% of U.S. residents, while full date of birth, sex and 5-digit ZIP code are unique for over half. Rare business events score high on distinguishability almost by definition, and an exact date and place push them further.
Linked histories make it worse. In a study of three months of credit card records for 1.1 million people, de Montjoye and colleagues reported that four spatiotemporal points were enough to uniquely identify about 90% of individuals. A rare event with a date and a place is one such point, and it is usually the most distinctive one in the record.
Why do rare records matter so much to the task?
Rare records matter because models learn the common cases easily and need examples to handle the unusual ones. Feldman's analysis of long-tailed data argues that memorizing rare and atypical examples can be necessary for close-to-optimal generalization, and that limiting memorization, through regularization or differential privacy, has a cost in accuracy that falls unevenly on subgroups.
Empirical work points the same way. Bagdasaryan and Shmatikov found that training with differentially private stochastic gradient descent reduced accuracy more for underrepresented classes and subgroups than for the majority. The practical lesson for a data owner is that broad privacy treatments do not cost every record equally: the rare cases lose the most signal first.
That is why removing every rare record, or blurring them all to the same degree, is rarely the right default. It can make a dataset safe and also remove much of what made it worth licensing.
What should the rare event privacy and utility assessment include?
The assessment should hold one record per rare-event class with ten fields, filled in by someone who knows the operations and reviewed by someone who knows privacy. Frequency counts are the starting point; statistical disclosure tools such as the open-source sdcMicro package compute sample and population frequency counts for chosen key variables, which shows how many records share each combination.
Define classes from the operations side first: incident codes, dispute types, failure modes, unusual job types, or any category the buyer named as important. Then set your own cutoff for what counts as rare, written down before you count, so that the same rule applies to every class and every later release.
Values in the third column are illustrative.
| Field | Question | Illustrative entry | Why it matters |
|---|---|---|---|
| Class definition | Which events belong to this class? | Callouts coded as gas leak, any year | Makes the count and treatment repeatable |
| Count | How many records and distinct parties are in the class? | Few records, fewer distinct sites | Small counts mean each record narrows the field |
| External visibility | Could the event be known outside the company? | Possible local news or utility reports | Public events can be matched despite treatment |
| Attached quasi-identifiers | Which details travel with the event? | Address, date, technician, equipment model | These are what make the event point to one party |
| Task value | How much does the intended task depend on this class? | High: the task is predicting escalation | Sets how much signal treatment may remove |
| Memorization exposure | Does the class contain unique strings a model could repeat? | Free-text notes with site details | Unique text is what trained models can reproduce |
| Treatment | Which treatment keeps the event and removes context? | Coarsen date and place, drop technician | Records the choice and its reason |
| Residual risk | What could still identify a party after treatment? | Equipment model in small markets | Shows what the reviewer is accepting |
| Reviewer and date | Who checked it, and when? | Privacy lead and operations lead | Makes the decision accountable and re-checkable |
| Decision | Include, restrict, hold or drop? | Include with treatment; evaluation terms only | The outcome a release depends on |
Which treatments keep the rare signal while lowering risk?
The best treatments keep the event and remove the context that points to one party: when it happened to the day, where it happened to the address, and who was involved. Standard statistical disclosure methods do this; sdcMicro, for example, provides top and bottom coding, global recoding into broader categories and local suppression of individual values.
Published small-count rules are a useful reference when you report counts rather than records. The CMS limited data set terms, for example, require that no cell of 10 or less be displayed, including through percentages or formulas. That is a healthcare rule, not a standard for business data, but it shows how a fixed threshold can be written into an agreement.
Apply treatments in order of least signal lost. Start by dropping attached people and coarsening time and place, then recount the class and rerun the risk checks. Move to banding, restriction or aggregation only if the class is still identifiable, and drop it only when nothing else works. Ask the task reviewer after each step whether the pattern the buyer needs is still visible, because a treatment that hides the party but also hides the pattern has failed on the other side.
| Treatment | What it changes | Signal kept | When to use it |
|---|---|---|---|
| Coarsen time | Exact dates become month, quarter or season | Event type, sequence, outcome | Event date is public or easy to match |
| Coarsen place | Address or site becomes region or site type | Event type and operating context | Few sites in a small area |
| Band numbers | Contract value, volume or size become ranges; extremes are top-coded | Relative scale of the case | Very large or small accounts stand out |
| Drop attached people | Technician, agent or contact fields removed | What happened and how it was resolved | People are not needed for the task |
| Restrict use | Rare class delivered for evaluation only, under stricter terms | Full event detail for testing | High task value and high residual risk |
| Aggregate | Records become counts with small cells suppressed | Frequency and trend only | Task needs rates, not examples |
| Drop the class | Rare class excluded and documented | None | Public, unique or legally sensitive events |
Worked example: rare callouts in field service records
Illustrative only: the company, counts and decisions are invented to show how the assessment works. A field service company licenses several years of work orders so a buyer can train a model to flag which jobs will escalate. A handful of callouts are gas leak emergencies, spread across a small number of sites. The buyer considers them the most valuable records in the set.
The assessment found three problems: each emergency had an exact address and date, one was mentioned in a local news story, and technician notes repeated the customer's business name. The team coarsened dates to the month, replaced addresses with site type and region, removed technician names and redacted business names from notes.
The publicly reported callout was dropped and documented, because no treatment could stop it being matched to the news story. The remaining emergencies were delivered under evaluation-only terms with the treatments above. The task reviewer confirmed the escalation pattern, from first call to repeat visit, was still visible in the treated records.
When is a rare event too visible to treat?
A rare event is too visible to treat when it is already public: covered in the news, named in a court filing, posted by the customer or reported to a regulator. Coarsening dates and places does not help when anyone can search for the event and find the party.
The ICO's motivated intruder test is a useful frame: would a reasonably competent person, using means reasonably likely to be available, be able to identify someone? For a publicly reported event, the answer is usually yes. The ICO also notes that releases to the world at large need more robust techniques than releases to known recipients. For these events the practical choices are exclusion, delivery only to a single recipient under terms that prohibit re-identification attempts, or specialist review before anything else.
Which traces of a rare event survive field-level treatment?
Even after field-level treatment, rare events leave traces in places a structured review misses, and they are exactly the records a trained model is most likely to repeat. Carlini and colleagues' Secret Sharer study measured memorization by inserting canaries into training data and reported that unintended memorization is common, appears early in training and is not due to overfitting. Unique strings attached to rare events are the natural candidates.
On the supplier side, the most direct mitigation is to remove unique strings from rare records before delivery rather than relying on the buyer's training setup. On the buyer side, canary-style tests after training can show whether rare records are being repeated; whether to require them is a point for the agreement.
Check these before release, and tell the buyer which ones were treated:
- Free-text notes that name the customer, the site or the people involved.
- Attachments such as photos, invoices and incident reports with letterheads, plates or signatures.
- Unique codes, such as a one-off equipment serial or an unusual part number tied to one site.
- Sequences of linked events whose order and timing are distinctive even when each event is common.
- Audio from calls during the event, which can carry voices and place names.
When should a rare class be held back for its own review?
Stop or narrow the scope when a rare class stays identifiable after treatment and the task cannot do without its context. Request specialist review before release in any of the cases below; this page is general information, not legal advice.
Narrowing often works better than stopping. Delivering the common records now and holding a sensitive rare class for a later, separately reviewed release keeps most of the value while the hard cases get the attention they need.
- The rare event involves injury, health, a legal dispute, a regulator or a criminal matter.
- The event was reported publicly or is known to many people outside the company.
- The class involves a single customer, employee or site.
- The buyer wants exact dates, places or free text for the rare class.
- Customer contracts or privacy notices limit disclosure of incidents.
Why rare classes deserve attention before a SourceX scope is agreed
Rare work has a specific place in SourceX's general guide: buyers usually want two or more years of consistent history and tens of thousands of records in one system, but a smaller set can qualify when the work it records is rare, assessed deal by deal. That makes a careful assessment of rare classes worth doing before scope is agreed.
The agreed treatment of those classes is then carried out by SourceX through approved processing routes as part of de-identification, after an opening company assessment that involves no uploaded records.
Frequently asked questions
What is dataset rare event identification risk?
It is the chance that a rare event in a dataset, such as an unusual incident, dispute or failure, points to a specific person or business even after names are removed. Rarity narrows the field, and dates, places and free text often finish the job. It needs its own assessment because dataset-wide scores hide it.
Should rare cases be removed before licensing data?
Not by default. Rare cases often carry much of a dataset's task value, and removing them all costs more than it seems. Assess each class, keep the event while removing its identifying context where you can, and drop only the classes that stay identifiable.
Does k-anonymity solve the rare event problem?
It helps for structured fields by making sure each combination of key values is shared by several records. It does not cover free text, attachments or events already reported in public. Use it as one check alongside the assessment fields on this page.
Can a buyer use rare cases for evaluation only?
Yes, if the agreement says so. Restricting a rare class to evaluation, under stricter terms and access, keeps its testing value while reducing the chance that a trained model repeats details. The restriction must be written into the agreement.
Who should run the assessment?
Someone who knows the operations should define the classes and judge task value, and a privacy reviewer should judge visibility and residual risk. Neither should sign off alone. Record both names and the date with each decision.
Sources
- HHS expert determination guidance lists replicability, data source availability and distinguishability as identifiability principles and estimates that year of birth, sex and 3-digit ZIP code are unique for about 0.04% of U.S. residents, against over half for full date of birth, sex and 5-digit ZIP code. Source
- A study of three months of credit card records for 1.1 million people found four spatiotemporal points uniquely identified about 90% of individuals. Source
- Feldman argues that memorizing rare and atypical examples can be necessary for near-optimal generalization on long-tailed data and that limiting memorization has an accuracy cost with disparate effects on subgroups. Source
- Bagdasaryan and Shmatikov found that differentially private training reduces accuracy more for underrepresented classes and subgroups. Source
- The Secret Sharer measures memorization with canaries inserted in training data and reports that unintended memorization is common and occurs early in training. Source
- sdcMicro computes sample and population frequency counts for chosen key variables. Source
- sdcMicro provides top and bottom coding, alongside global recoding and local suppression functions. Source
- CMS limited data set terms require that no cell of 10 or less be displayed, including through percentages or other formulas. Source
- The ICO uses the motivated intruder test to assess identifiability and says releases to the world at large need more robust techniques than releases to known recipients. Source
See if your company qualifies
A short company assessment. No data uploads are needed.