Elamur Research

Decision support for detecting sensitive text in government records

Paper · 2023 · Karl Branting, Bradford Brown, Chris Giannella et al.

Summary

A government record can contain a policy recommendation, a personal detail and factual material that the public has a right to see. An analyst handling a request under the US Freedom of Information Act, or FOIA, has to decide which passages can be withheld and release the portions that can reasonably be separated from them. Karl Branting and colleagues developed the FOIA Assistant to help analysts find passages worth examining and apply the redactions they approve. The work focuses on personal information and on language that reveals how officials weighed their options before making a decision. Agency experts told the authors that the latter can take especially long to review.

The authors began with White House records from the Clinton administration that had already been labeled by paragraph. A paragraph could be protected because of its place in a document even if the sentences within it sounded factual. Conversely, an outside organization could write a clear recommendation to the White House without its letter qualifying for the same protection as an internal communication. The authors created sentence labels for a narrower question. Within records exchanged inside or between agencies, could a reader recognize a recommendation, opinion or other deliberation from the wording of a sentence on its own? They then compared logistic regression, a support vector machine and a BERT classifier trained on those labels.

BERT had the highest median Matthews correlation coefficient in every reported experiment. That measure summarizes how well predictions agree with the reference labels across deliberative and non-deliberative sentences. BERT's advantage was less uniform on precision, the share of flagged sentences that had the target label, and on recall, the share of target sentences it found. Its median balanced accuracy, which gives equal weight to identifying each class correctly, ranged from 0.72 to 0.8 across the experiments. The authors used BERT for deliberative sentences and a separate detector for personal information such as names, phone numbers and email addresses.

In the desktop application, analysts see suggestions highlighted on the original PDF. They can accept or dismiss individual suggestions, act on a filtered group of repeated passages, or mark content the software missed. Interviews and workshops informed these controls. The experts wanted help finding sensitive material while keeping authority over release decisions. Multiple US federal agencies were operationally testing the application when the authors reported it. The experiments establish how well the classifier recognizes a defined kind of sentence. Whether its suggestions help FOIA analysts review records faster or more accurately remained a question for a formal study.

Deep dive: Decision support for detecting sensitive text in government records

The FOIA Assistant flags sensitive passages in government records and lets reviewers decide what to redact before releasing a document. · about 37 minutes to read

The problem and its context

Why disclosure has to be decided passage by passage

In the authors' account, the US Freedom of Information Act starts from a presumption of access to executive branch records. The law provides exemptions, and the courts have directed agencies to interpret their scope narrowly. The obligation extends to electronic records such as email and word-processing documents. An agency working on a request therefore has to examine records whose responsive material and potentially exempt material may appear side by side, including within a single paragraph.

The requirement to release any reasonably separable material is central to the paper's design. If a recommendation qualifies for withholding and neighboring sentences supply factual background, the agency still has to consider releasing the background. A system that merely identifies the record as sensitive leaves the analyst to find the passage and decide how far the redaction should extend. Flagging a sentence or a name puts the suggestion closer to the decision the analyst has to make. The decision also needs a reason tied to an exemption, so the system distinguishes types of suggestions.

The paper uses federal reporting figures to convey the scale of the work. In 2022, people filed 928,300 federal FOIA requests. The paper reports $523 million in agency processing costs and $39 million in litigation costs associated with failures to respond in time. Those figures cover a much broader activity than the passage review studied here. Finding and redacting exempt material matters within that activity because an analyst may need to read every responsive record closely even when only a small portion eventually disappears from the released copy.

What makes deliberation difficult to recognize

The paper concentrates on the deliberative process privilege under Exemption 5. The exemption also encompasses attorney-client and attorney work-product privileges, so its full scope goes beyond the paper's language classification task. The deliberative process privilege protects qualifying exchanges through which government officials consider what to do. The rationale described in the paper is that officials need to be able to offer candid advice and discuss proposals while policy is taking shape.

The authors describe an initial condition concerning who sent and received a record. The exchange must be internal to one executive agency or take place between executive agencies. A qualifying record must also be predecisional and deliberative. The first term concerns timing and the record's relationship to a decision still in progress. The second concerns its role in the process of reaching that decision. An analyst might therefore need to know who wrote a passage, for whom, and where the passage fits into the agency's work.

The language itself can still give the analyst a reason to look more closely. Presenting an option, recommending a course of action and expressing an expectation about what officials may be able to do are different from simply recording a past event. Yet wording alone leaves important questions open. A recommendation in an outside group's letter can sound much like advice written by an official to a colleague. A description of a program can read as factual on its own while serving as one of the proposed choices in a policy memo. The paper treats recognizability from the words and eligibility for withholding as distinct judgments.

The authors trace a comparable need to protect some government deliberations in several countries. Their examples include government consultations in Canada, cabinet deliberations in India and internal discussions or policies in development in Israel. They also discuss cabinet-related material in a South African draft law and provisions on policy development and ministerial communications in the United Kingdom. These examples show why locating passages about a decision in progress has relevance beyond the US. The legal categories in the examples are defined under their own provisions.

Privacy calls for a different kind of review

The other major concern is protecting individuals' privacy. The paper describes Exemption 6 as covering material in personnel, medical and similar files when disclosure would constitute a clearly unwarranted invasion of privacy. Courts have interpreted the category of similar files broadly, according to the authors. The agency weighs the privacy interest at stake against the asserted public interest in disclosure. A name or an address can help locate a passage worth checking, but the exemption concerns what the disclosure would reveal in that situation.

Exemption 7(c) concerns privacy in law enforcement investigations. The wording of its standard differs from that of Exemption 6, and the paper relates that difference to the strong privacy interest people have in avoiding association with criminal activity. In the federal figures the authors review, Exemptions 6 and 7(c) account for the most frequent exemption applications. The experts consulted for the project described deliberation under Exemption 5 as usually requiring more expertise and time. The number of times a provision is used and the effort needed to apply it give different pictures of the review burden.

Personal information can appear as a short span, such as a phone number, or as ordinary prose that describes matters affecting someone's privacy. The project concentrated on the first kind where it could identify entities such as names and contact details. Experts ranked this work highly, and the authors considered those portions easier to locate computationally. The broader problem of finding potentially private information in free-form descriptions remains part of what an analyst has to consider.

What earlier sensitivity review could do

The paper frames the computational task as assigning a label to a piece of writing, an instance of text classification. Classifiers can operate at different scales. A document label can help someone decide which records warrant close reading. A sentence label can point to an individual statement. A detector that marks where a name begins and ends can suggest the exact characters to inspect. The appropriate scale depends on the review decision the software is meant to support.

The authors describe work by McDonald and colleagues that used government records with assessor judgments as training examples. Subsequent research by that group addressed documents with sensitive international-relations or personal material under UK open-records law. The paper also discusses a study measuring how automatically predicted sensitivities affected people's reviewing speed and accuracy. Such studies are relevant because accomplishing a task with suggestions involves both finding relevant material and assessing the suggestions people receive.

Sensitivity had also been studied in search, where a record may address a requester's query and still contain material that requires protection. Other work cited in the paper applied convolutional neural networks to detecting privileged documents in legal review. For short spans of private information, the authors identify named entity recognition as the main existing approach. It assigns types to spans of text and identifies their boundaries. This makes it possible to point to a name within a sentence while leaving its surrounding words available for review. Named entity recognition

The closest predecessor was a study by Baron and colleagues. They labeled paragraphs from Clinton White House documents according to their coverage by the deliberative process privilege. Their experiments used the frequencies of words as input to logistic regression and support vector machines. This established a starting point for investigating whether deliberative language could be detected computationally in these records. Branting and colleagues revisited the labels themselves, expanded the information available to those classifiers, compared them with a classifier that learned from sentence text, and built the resulting detector into an application for analysts.

The method, step by step

Defining what the sentence detector should find

The first design choice was to give the detector a question that the text of a sentence could answer. The authors wanted it to identify deliberation expressed in the sentence itself. Recommendations, opinions, suppositions and statements of possible choices can all have that property. They called the positive category Always Deliberative, abbreviated AD. They used Non-AD for the other sentences retained under their annotation rules.

The word Always in the label refers to how the sentence reads in isolation. For training, the authors limited the task to text from exchanges internal to executive agencies or exchanged between them. The category captures a recognizably deliberative use of language within that collection. Its definition leaves the document's relationship to a government decision and the legal treatment of the passage for a reviewer. This allows the authors to give the classifier individual sentences and ask it to predict a meaningful, bounded property.

The target matters because the new labels are derived from older labels that answer a different question. In one example from the paper, a memo introduces a list of things the president could do. A paragraph in the list describes an online quiz for parents. Read by itself, the description supplies facts about what parents would be able to access and what they could learn from it. Its role as a possible presidential action comes from the preceding introduction to the list. An annotation that preserves the paragraph's role in the memo and an annotation that describes the language of its sentences can therefore differ.

The converse occurs in a letter from an outside advocacy organization to the White House. The letter plainly expresses a view and calls for action. The original annotation treats the passage as outside the privilege because of the source of the communication. If the researchers used such paragraphs as negative examples for a sentence-only detector, the training set could teach it to reject sentences of exactly the kind it was meant to recognize. The authors use the communication status to determine which material enters the new task before judging the wording of the retained sentences.

Turning paragraph judgments into sentence labels

The corpus began with files collected from the Clinton Presidential Library using the names Elena Kagan and Cynthia Rice as search terms. The earlier team culled the results by hand and grouped the selected files into batches. The Kagan batches were K1, K2, K3 and K5, and the Rice batch was R4. A batch could contain several topics, and the grouping placed a topic in only one batch. That organization later gave the authors a way to test performance when training and test files covered different topics.

In the original paragraph labels, D1 meant that the paragraph fell within the deliberative process privilege. D0 identified the other substantive, non-exempt paragraphs. T0 covered material that was straightforwardly outside the exemption, such as file headers. The new study set T0 aside because the researchers judged that this material would be of little help in training a classifier to make judgments about the substance of a sentence.

For a D1 paragraph, the annotator examined each sentence individually. A sentence that expressed deliberation when read on its own received AD. Any other sentence received Non-AD. The process could thus yield both labels inside an originally exempt paragraph. In particular, a sentence could be marked Non-AD because another part of the record supplied the context that had made the paragraph suitable for withholding.

For a D0 paragraph, the procedure started by checking the communication. The authors dropped the paragraph if it came from outside the set of exchanges within or between agencies. If it came from within that set, they assigned Non-AD to every sentence in it. The rationale was that the earlier team would have given an internal paragraph a D1 label if it contained a sentence that was deliberative in its wording. Thus the new data combine individual sentence judgments in the D1 material with negative labels inherited from qualifying D0 material.

The examples in the paper show what these rules produce. Suggesting that the president could announce an extension of AmeriCorps expresses a possible action. Raising the possibility that Congress might clarify a matter and reporting that it could come up in a planned call also gives the reader a prospective option to consider. An official's expression of hope that part of a plan will be ready to announce likewise expresses a stance towards a possible development. These are instances of AD in the authors' scheme.

Among the Non-AD examples is a sentence reporting what a survey found about potentially improper benefits. It includes uncertainty about the facts, but its main purpose is to report a finding. Another sentence records that someone spoke to an official about the status of a proposed process. In that case the sentence records a conversation, even though its subject is a proposal. A further example recounts a policy position that had been communicated to an agency. The annotation treats this as reporting what had already been conveyed. The examples help explain why a list of words such as may, could and proposed would be an incomplete detector.

The authors made the resulting sentence corpus available under the name FOIA-SENTENCE-DATA. The publication of those labels makes it possible to study the sentence task separately from the desktop application. The labels also preserve the distinction on which any evaluation of the detector depends. The target is AD as the authors defined and assigned it, and performance has to be read as performance against that target. Linguistic annotation

Representing sentences for logistic regression and the support vector machine

The study compares three approaches to predicting whether an individual sentence is AD. Logistic regression, abbreviated LR, learns how its input features combine to support a positive prediction. A support vector machine, abbreviated SVM, learns a boundary between examples of the two classes in the feature space. In this experiment both receive the same kinds of engineered inputs, so the authors can compare their predictions given the same representation. BERT receives the sentence text and derives a representation from it.

For LR and SVM, the starting point is a vector of word counts. The vector records how often each selected word occurs in the sentence. Before counting, the authors use spaCy to identify named entities and replace their words with normalized markers. A person's name, for example, contributes a marker for the entity type rather than the spelling of the name. The type can remain informative even when a particular person never appears in the training data. The replacement also prevents those classifiers from distinguishing two names solely by their spellings in the word-count features.

In training LR and SVM, the authors remove words that occur only once in the training data. They also use spaCy's lemmatizer in place of the Porter stemmer used in the earlier design. Lemmatization maps inflected words to a base form, so that different forms can contribute evidence to the same entry in the representation. The researchers tune settings by grid search, meaning they evaluate alternatives from a pre-defined set of settings. For logistic regression they use L1 regularization, which penalizes the size of the learned weights and can set some weights to zero. Lemmatization

The word counts are supplemented by 12 sentence features chosen for the task. The authors count modal words such as could and would, along with adverbs, adjectives and nouns. They include a count of comparative adverbs ending in er. These features give the classifier information about the kinds of words used and the presence of comparisons or possibilities, even when sentences differ in their specific vocabulary. Each is a count instead of a rule that decides the label.

Other features describe verbs and who is presented as acting or speaking. The authors count verbs in the progressive and perfect aspects, past-tense verbs, present-tense verbs and first-person pronouns used as subjects. Tense gives some information about when events are described as taking place, while aspect describes how an event is presented, for example as ongoing. A first-person subject can help represent whether a sentence is framed as the speaker's own action or stance. These are inputs from which the classifier can learn. The paper does not designate a particular tense or construction as inherently deliberative.

The last features address subjectivity at two scales. For the word feature, the authors use a lexical resource that assigns a score to a word paired with its part of speech. They count a word as strongly subjective if its score exceeds 0.9. This yields a count of strongly subjective words in the sentence. The use of a part-of-speech-specific entry allows the resource to distinguish uses of the same spelling that function differently. The resource is SentiWordNet.

For the sentence feature, the authors train a bidirectional recurrent neural network on a separate collection of sentences from movie-review data with human-assigned subjective and objective labels. A recurrent network processes a sequence while carrying information from earlier positions. The bidirectional version gathers information from both directions through the sentence. The trained network supplies an indicator when applied to a FOIA sentence. The indicator takes the value one when the network predicts subjectivity and zero otherwise.

The auxiliary classifier therefore contributes one input to each of LR and SVM. Its training labels concern subjectivity in a different collection of writing. The FOIA classifiers learn whether that signal helps distinguish AD from Non-AD in the government records. The authors keep the word-level subjectivity count and the sentence-level indicator as separate features, allowing them to influence the prediction in different ways.

Training BERT on the same sentence task

The BERT approach uses the sentence text as input without the task-specific feature inventory designed for LR and SVM. BERT is a transformer that builds representations of words using their surrounding text. This lets the representation of a word in a suggestion differ from its representation in a report of what somebody said. The classifier can draw on the resulting representation of the sentence when predicting its label. Transformer and attention

The authors use the uncased small_bert configuration identified in the paper as L-2, H-512, A-8. The configuration gives the transformer depth, hidden representation size and number of attention heads, respectively. The uncased variant processes text without preserving case distinctions for the classifier. The implementation uses Keras in Python.

A logistic regression layer is added to BERT's pooled output. The pooled output is a representation used for the sentence as a whole. The added layer maps it to a prediction for the AD task. The researchers fine-tune BERT using the annotated sentences, which means they adapt the pretrained system with examples from this particular classification task. They follow the optimization strategy described by Mosbach and colleagues and use dropout of 0.1. Dropout temporarily turns off some activations during training so that the prediction learns to rely on a wider set of signals. Fine-tuning

Both the standalone LR classifier and the final layer attached to BERT use logistic regression. What reaches the layer differs substantially. The standalone classifier sees counts and indicators prepared in advance. The layer attached to BERT receives a learned sentence representation that can reflect how words are used together. The experiments compare the complete training setups. They provide no isolated test of how much of any difference comes from the representation, the task-specific features, or other training choices.

Finding personal information in a different way

The personal-information component takes advantage of the fact that many targets can be marked as spans shorter than a sentence. The paper gives names, phone numbers, Social Security numbers and email addresses as examples of information agencies frequently examine. spaCy supplies named entity recognition. The authors supplement it with post-processing to find additional name mentions and use pattern matching for phone and Social Security numbers that appear in unusual contexts or differ slightly from their standard formats.

Named entity recognition serves a second purpose here compared with its use in the LR and SVM experiments. For those sentence classifiers an entity type substitutes for words in a feature vector. In privacy review the individual span is itself what the analyst needs to see. The recognizer therefore provides a location and category for the suggestion. The analyst can then judge whether the span warrants withholding and whether the redaction should cover more or less of the surrounding material.

The authors describe their automatic privacy suggestions in terms of Exemption 6. They explain that, in the situations under discussion, Exemption 6 also applies to material covered by Exemption 7(c) in almost every instance. The analyst can add Exemption 7(c) when appropriate. The application also demonstrates a small Exemption 4 component that highlights dollar amounts. The paper presents this as a narrow illustration for commercial or financial sensitivity, since the criteria an agency uses for confidential information under that provision can depend on its own work.

Learning how analysts make decisions

The authors studied the review process at a federal agency before settling the design of the interface. The agency made previously processed records available in both their original and redacted forms. Three subject matter experts with a combined 29 years of FOIA experience took part in the human factors work. The researchers used interviews to understand what analysts consider, workshops to identify requirements and collaborative design sessions to turn those requirements into interface features.

In the initial interviews, each expert reviewed an unredacted record the agency had already processed, explained the reasons for redactions and answered further questions about particular passages. Several details beyond the words on the page influenced those explanations. The type of record mattered, as did who had requested it and whether the records concerned an open investigation. The experts also described decisions about how much of a span to cover. A person's title could be included in a redaction, while the domain of a personal email address could be left visible in the circumstances they discussed.

A workshop used a prioritization matrix to help identify the most useful functions. The participating experts wanted suggestions that would draw their attention to possible sensitive content and help them exercise professional judgment. Subsequent sessions used simple mockups that the experts helped create. The authors incorporated designs from the sessions into the prototype and updated its functionality as they learned more about the workflow.

The participants also sorted examples into groups. For Exemption 5, they considered which deliberative statements were likely exempt, which needed more information before they could decide and which were unlikely to qualify. Follow-up questions elicited the reasoning behind those assignments. The middle category matters for the interface because a plausible sentence suggestion can start a review while leaving open what context the analyst will need to inspect.

For Exemption 6, participating experts considered types of personal information and added types they had encountered in their own work. They ranked the types by relative sensitivity, taking into account both how closely an item identifies a particular person and how readily it can be obtained. Examples added in the workshops included job duties and titles, biometric data and driver's licenses. These activities informed the design for suggesting sensitive spans. The paper treats them as a way to elicit requirements and contextual judgments from reviewers.

From the PDF to a suggested redaction

The desktop application reads the original PDF, extracts the text and records the position and size of each extracted character. It sends a simplified JSON representation containing the text to a server. The server runs the suggestion components, attaches annotations to the text and returns the annotated representation. The desktop client uses that response and its information about character positions to put highlights on a rendering of the PDF.

How the FOIA Assistant processes a record

The steps in order.

How the FOIA Assistant processes a recordStep 1: Extract PDF text and character positions1. Extract PDF text and character positionsStep 2: Send the extracted text to the server2. Send the extracted text to the serverStep 3: Detect deliberative sentences and personal information3. Detect deliberative sentences and personal informationStep 4: Return annotated text to the desktop application4. Return annotated text to the desktop applicationStep 5: Highlight suggestions on the original PDF5. Highlight suggestions on the original PDFStep 6: Review suggestions and add manual redactions6. Review suggestions and add manual redactionsStep 7: Release a redacted PDF or withhold the record7. Release a redacted PDF or withhold the record

The Java desktop client handles file access, extraction, the user interface and writing the output documents. The service centralizes the suggestion components. NGINX serves as a reverse proxy for calls to the service hosted by Gunicorn and also serves static material such as documentation. The desktop client submits batches of at most 3 documents. This lets an analyst begin working on records for which suggestions have arrived while more documents from the same case are still being processed.

The modular server is arranged so that other detectors can be added for agencies with different needs. Keeping the review and rendering on the desktop also gives the service a narrower job. It operates on the extracted text, while the desktop client retains the page geometry needed to show the suggestion where the analyst can read it in context. The handoff has to preserve the relationship between the annotated text and the characters on the page.

Recovering readable text without losing page positions

The PDF processing is part of the method because both types of detection depend on the input sequence. The deliberative classifier needs the words that belong to a sentence in readable order. The entity recognizer uses neighboring text to locate and label spans. If an extractor alternates between fragments from different columns, a page can look perfectly legible to a person while yielding a badly scrambled sentence for either detector.

The authors also needed to align existing annotations with text when an annotation was stored as a geometric shape. A shape specifies where a mark belongs on the page. It does not by itself provide the words beneath that mark. In the application, the relationship works in the other direction as well. A detector proposes a span in the extracted text, and the client needs to know where those words appear in the original document. The extraction design addresses both uses by retaining character boundaries.

The authors examined existing extraction engines before implementing their own process. Some engines did not preserve the page information required for this work. The authors also observed problems with more complex layouts and with normalization. Removing a line-end hyphen, for example, may make an extracted word easier to read in ordinary prose. If the change is applied in the wrong place, it can alter the text and make it harder to align the extracted characters with their visible counterparts.

The custom extractor begins with PDFBox and finds the text-bearing segments in the file. A PDF font represents a visible character as a glyph, the shape displayed on the page. The extractor uses embedded font information to map glyphs to Unicode characters while retaining their boundaries. If a glyph is known but lacks a usable character mapping, the extractor can try optical character recognition, or OCR, on that glyph. This fallback works at the character level. The application can also use OCR results that are already embedded in a PDF.

The initial groups of glyphs can reflect how the PDF was produced or optimized for display. A group can contain only part of a word, and groups can be stored in an order quite different from the one a human reader follows. The extractor regroups characters on visual lines using their rotations, boundaries, proximity and overlaps. It infers spaces from the sizes and separation of the glyphs because a visible gap is not necessarily stored as a space character. Inaccurate font information can make this inference unreliable.

Large gaps can keep items on the same visual line in separate segments. That matters for columns. Combining everything at the same vertical level would risk joining words from the left column with words from the right. Keeping separated parts available for subsequent grouping preserves more of the structure for downstream analysis. The authors judged the resulting sequence adequate for their sentence-level processing while identifying fuller recovery of paragraphs and human reading order as future work.

Turning highlights into review decisions

The application presents the request's case files, the selected document and its suggestions in separate areas. The case list shows information such as document length, how many suggestions the system made and how many redactions the analyst accepted. In the main view, color indicates the kind of passage flagged. An analyst can read the original page around a highlighted passage and act directly on that highlight.

The suggestions panel provides another way to review. It can filter by exemption type or by a keyword, and suggestions can be sorted so repeated text is easier to find. Individual entries can be accepted or dismissed. The bulk redaction control acts on the suggestions displayed by the current filters. For a recurring name, for instance, an analyst can narrow the list to the matching suggestions and decide whether to apply those redactions together.

The analyst can also leave a suggestion alone or mark an unflagged passage by drawing a box around it. The drawing control supports exemptions outside the set covered by automatic suggestions as well as manual corrections when a detector misses a passage. The interface also provides ways to mark text that is no longer valid with a strikethrough or obscure a feature such as a handwritten signature. Those operations serve different review needs even though each involves selecting part of the page.

After review, the analyst can mark a file for release or withhold it in full. A release with applied redactions generates a new PDF. The case list records the status of the file, and the released version can be opened from the application or its release folder. The workflow thus gives a sentence prediction a specific place in the process. It directs attention to an area of the record, while the final document reflects the analyst's decisions about that record.

Experiments and results

What was tested on the Clinton records

The classification experiments evaluate predictions of AD and Non-AD. They use the newer sentence annotations, with a separate set of test sentences or folds for each evaluation. The original paragraph judgments help construct the dataset, but agreement with those earlier paragraph labels is a different task. Likewise, the experiments measure sentence recognition without requiring an analyst to decide which material to release.

The authors exclude K5 because its proportion of AD sentences is much lower than in the other batches. In K5, 8% of the sentences are AD. In K1, K2, K3 and R4, the paper reports a range from 25 to 44% AD. The excluded batch shows that the positive class can be relatively uncommon even within the archive used to develop the task. All of the comparisons used to select the classifier, and its final training for the application, leave that batch out.

The first held-out design trains on K1, K2 and K3 and tests on R4. This sets aside the Rice files while learning from the retained Kagan files. Because topics do not cross batch boundaries, the test asks how the classifier performs when presented with topics it did not see during training. The authors also rotate the test batch within the Kagan files. They train on K1 and K2 to predict K3, use K1 and K3 to predict K2, and use K2 and K3 to predict K1. Each leaves a full Kagan batch outside training.

The other design uses 10-fold cross-validation on the sentences pooled from K1, K2, K3 and R4. Cross-validation repeatedly trains on some folds and tests on the remaining fold. Here the folds are formed without grouping sentences by document or by batch. The classifier can therefore be tested on a sentence from a document whose other sentences appeared in training. The batch tests and the pooled test offer different views of performance. The former preserve the topical groupings when separating training and test data, while the latter assess prediction within the pooled collection at the sentence level.

The baseline classifiers are the expanded LR and SVM systems. They incorporate the normalized entity counts and linguistic features selected by the authors. They are stronger comparators for the current study than a description of the earlier word-frequency-only setup would suggest. The published comparison concerns these complete feature-based classifiers and the fine-tuned BERT classifier on the same sentence prediction task.

The authors run repeated trials because the training optimization can produce different outcomes. They use 30 trials for LR and SVM and 18 for BERT in each experiment. They attribute the smaller number of BERT trials to its greater computation time. The figures summarize the trials with the median, the middle of the observed distribution, rather than centering the comparison on the best result from a run. Medians give the reader a view of typical performance under the training procedure reported for each classifier.

Reading the scores

Precision asks how frequently a sentence flagged as AD was labeled AD in the dataset. Given a set of suggestions, it is the fraction that match the positive label. Recall starts from the set of sentences labeled AD and asks how many were flagged. A system can achieve relatively high precision by flagging few sentences, while leaving many target sentences for someone to find. A system that flags a larger share of the text can find more targets while also putting more irrelevant suggestions in front of the analyst.

The main overall measure is the Matthews correlation coefficient, or MCC. It takes account of the outcomes for both classes, including positive sentences found or missed and negative sentences correctly left alone or incorrectly flagged. As described in the paper, one represents perfect agreement with the reference labels, negative one represents perfect opposition, and zero indicates no agreement in the correlation sense. The authors prefer MCC to ordinary accuracy or F1 for the central comparison because it takes the balance of positive and negative outcomes into account.

The paper also reports balanced accuracy for BERT. This gives equal weight to the rate at which AD sentences are correctly identified and the rate at which Non-AD sentences are correctly identified. That weighting is relevant because the two labels occur with different frequencies, and the class proportions vary by batch. The authors use balanced accuracy especially to relate their sentence experiments to a result on reviewer assistance reported in earlier work.

The authors compare the classifiers with the highest two median scores using Mood's median test. They report the test results alongside the medians in the figures. A small p-value gives evidence against the hypothesis of equal medians under the test. The p-values describe evidence for a difference. The medians describe how the classifiers scored on the chosen metric, and the size of a performance difference has to be read from those scores.

Where BERT led

BERT had the highest median MCC in every experiment, with the paper reporting p ≤ .007 for the comparisons. In the pooled 10-fold cross-validation experiment, LR had the next-highest median, and the comparison between BERT and LR gave p < .001. The MCC finding therefore holds in the evaluation that mixes sentences across documents and in the evaluations that put whole batches aside. The authors chose BERT for the FOIA Assistant and trained the deployed classifier on the retained batches.

The precision comparisons give a more mixed picture. BERT had higher precision than the alternatives in three of five experiments, with p ≤ .037 as reported for those comparisons. SVM led in one experiment, also with p ≤ .037, and the comparison between BERT and SVM in the remaining experiment gave p = .136. An analyst interested in the share of suggestions worth pursuing would draw a different conclusion from precision alone than from the consistent MCC ranking.

Recall was less decisive. BERT exceeded the other classifiers in one of five experiments, with p < .001. For the remaining experiments, the paper reports no statistically significant recall difference between BERT and LR, the next-best classifier on that metric, and gives p = .371. The results therefore support selecting BERT on overall agreement across the classes. The capacity to catch more of the individual AD sentences is a more limited part of that case.

The authors give 0.72 and 0.8 as the endpoints of BERT's median balanced accuracy across the experiments. They report the endpoints as a range without assigning either value to a named split in the discussion. The chart compares the lowest and highest reported experiment medians.

BERT median balanced accuracy across Clinton corpus sentence experiments

The highest experiment median exceeds the lowest across the evaluated settings.

BERT median balanced accuracy across Clinton corpus sentence experimentsLowest experiment median: 0.72Lowest experiment median0.72Highest experiment median (this paper): 0.8Highest experiment median (this paper)0.8
The numbers
System or settingbalanced accuracy
Lowest experiment median0.72
Highest experiment median (this paper)0.8

In a separate study cited by the authors, McDonald and colleagues found that sensitivity predictions associated with a balanced accuracy of 0.7 could improve both average reviewing speed and average reviewer accuracy. The FOIA Assistant paper uses that finding to motivate the idea that its own classifier could assist reviewers. The comparison links an observed level of sentence prediction performance to a plausible benefit. It leaves the size and even the presence of a benefit for FOIA analysts to be measured with this tool and its records.

What the application demonstration establishes

The application examples show how sentence and entity predictions become specific suggestions on a government record. A reviewer can work from the page itself or from the list of suggestions, bring repeated text together using search and filters, and produce a marked-up release file after review. The examples also show what the reviewer can do when the system has supplied no suitable suggestion. These are demonstrations of behavior supported by the implementation.

The historical sentence corpus supports an evaluation of the Exemption 5 language detector. The paper does not report a comparable set of precision, recall and MCC evaluations for the personal-information detector, the dollar-amount demonstration or complete redactions on a new collection of agency cases. The application was undergoing operational testing at multiple federal agencies. At the point described in the paper, the quantitative evidence concerns sentence classification, while the human factors work explains the review needs that guided the implementation.

What the ablations show

The paper reports no component ablation that removes a feature or stage and measures the effect, but it does compare complete classifiers, alternative data splits and different measures of performance, and it examines how paragraph and sentence labels can diverge.

The strongest comparison is between complete classifiers

LR and SVM receive the same expanded feature space. BERT learns from the text with a different representation and training procedure. Its median MCC advantage shows that this complete approach worked better for the sentence classification problem under the reported conditions. The paper does not run separate comparisons with and without named entity normalization, the modal-word counts or either subjectivity feature. There is consequently no measured contribution for those features by themselves, and the experiments leave open whether the LR and SVM rankings would change with a different feature inventory.

The comparison also does not isolate a particular property of BERT. Contextual representations give a plausible account of how it could distinguish a proposal from a report containing similar words. Its advantage could reflect several choices made together, including the use of pretrained representations and adapting them with the FOIA sentences. The performance scores record whether the predictions match the labels. They do not identify which passages, word combinations or constructions account for the aggregate advantage.

The split changes what counts as an unfamiliar example

Rotating the Kagan holdout asks whether a classifier trained on some Kagan topics can identify deliberative wording in records from other Kagan batches. Holding out R4 extends that comparison to the other set of collected files and its topics. The pooled evaluation asks how prediction works when the test material is drawn from the collection as a whole. BERT's ordering on MCC survives these changes. Evidence for that ordering therefore comes from more than the pooled evaluation.

The split comparisons do not vary topic independently of the records or people represented in each batch. Performance on R4, for instance, reflects whatever differences accompany testing on that entire batch. The batch design gives the results a clear interpretation as performance on withheld groups of records. It leaves the reasons why one group might be easier or harder to classify unresolved.

Cross-validation supplies a separate perspective because it discards those group boundaries. A repeated phrase, named person or pattern of wording can occur in sentences from the same file on both sides of a fold split. A detector may benefit from such familiarity in that evaluation. The whole-batch tests make that possibility less central to interpreting BERT's overall lead, since it also leads when the file groups and their assigned topics are kept separate.

The choice of metric changes what the improvement means

The MCC comparison favors BERT throughout, but precision and recall identify narrower aspects of its behavior. In precision, SVM has a clear lead in one experiment. In recall, the advantage over LR is statistically clear in only one experiment. Taken together, the comparisons show that the classifier selection rests on how BERT handles both positive and negative sentences. They provide more limited grounds for expecting it to retrieve a larger share of the positive sentences whenever the dataset changes.

The distinction has a concrete meaning for the interface. A false positive gives the analyst a highlighted passage to review and potentially dismiss. A false negative leaves a relevant passage unhighlighted, so it has to be found in ordinary review or by another route. The experiment counts each kind of error against the annotation target. It does not estimate how much reviewing time each kind of error costs or how likely an analyst is to find an unhighlighted passage. That would require observations of people using the suggestions.

The label analysis explains the change of task

The examples from the earlier corpus reveal why inherited paragraph labels would be hard to interpret as sentence labels. The factual description of a quiz illustrates how an exempt paragraph can derive its role from a nearby sentence. The outside organization's letter illustrates how a non-exempt paragraph can contain explicit opinions and advice. The cases show two ways that a paragraph label can disagree with the apparent character of a sentence for reasons that remain entirely consistent with the earlier annotation scheme.

The change in labels is a redesign of the prediction target. The paper does not hold the unit and target fixed and compare otherwise identical training with and without the new annotations. Its qualitative analysis establishes what the revised labels are meant to represent. The experiments then show how well the complete classifiers can predict those labels. Together the analyses explain why the authors built a sentence evaluator before integrating the detector into the application.

Limitations

Limits identified by the authors

The authors leave a formal evaluation of reviewer speed and accuracy to future work. Their reason for expecting a benefit comes from the measured balanced accuracy of the sentence classifier and an earlier study of a similar reviewing task. The interviews establish what the participating experts wanted to see and control in an interface. The document examples show that those controls exist. A comparative study of actual review performance would need to observe how those features affect analysts' decisions and time on the task.

The authors also caution that nuances elicited from experts at one agency can differ elsewhere. A choice about covering a title, an address or part of an email string can depend on the records an agency handles and how its analysts apply the relevant exemption. The project gave its participants a way to express and rank those judgments. The resulting requirements have evidence from that agency's practice, with wider applicability still to be established through use in other settings.

The sensitive material addressed automatically is bounded. The authors emphasize Exemptions 5 and 6 and leave the use of Exemption 7(c) to the analyst. They limit privacy detection to named entities and associated patterns, even though facts expressed in ordinary prose can also raise privacy issues. The dollar-amount demonstration covers a narrow part of Exemption 4. The paper anticipates adding detectors for agencies with specialized needs and describes the server architecture that can accommodate them. The evaluation does not establish how such additional detectors would perform.

There are also format and extraction limits. The application handles PDFs with native text or embedded OCR results. The authors identify image-based material and other document formats as future work, in spite of the ability to recognize an individual glyph for which a usable mapping is missing. They also acknowledge incomplete recovery of reading order and possible spacing errors. Further work on assembling visual lines into paragraphs would address an aspect of the document that their current sentence analytics generally do without.

Finally, the authors call for more corpora of deliberative language. They mention both other genres of government documents and collections from other jurisdictions and countries. The Clinton annotations are a way to define and evaluate a language task on actual records. Testing with other kinds of documents would show how sensitive the task and methods are to the archive and practices that produced the training examples.

Limits visible in the evaluation design

The labels were designed to capture the wording of individual sentences inside qualifying communications. That definition excludes some passages whose deliberative role becomes apparent only when a reader sees the rest of the record. The quiz example represents a whole class of possible misses from the standpoint of a legal review. A sentence could be correctly predicted as Non-AD under the paper's definition and still warrant consideration for redaction because a list introduction turns it into part of a proposal. Similarly, a correct AD prediction leaves open whether the passage is predecisional and covered by the privilege in that case.

The use of existing paragraph labels makes annotation feasible while introducing an assumption about the earlier judgments. For internal D0 paragraphs, the authors assume that a deliberative sentence would have led to a D1 label in the earlier project. Those sentences inherit their negative labels through the paragraph decision instead of receiving individual review through the same procedure used for D1. The paper does not quantify the effect of this asymmetry or report how consistently independent annotators would apply the new rules to the full retained collection.

The evaluated records are historically and topically bounded. The files came from searches centered on two White House officials and were culled and grouped before use. Holding out batches reduces overlap in topics, but all the files still come from the same presidential collection. A favorable result when transferring to a batch within the archive supports that particular generalization. It gives limited evidence about a current agency whose records use different templates, terminology, document types or conventions for presenting recommendations.

Removing K5 also narrows the inference. The authors give a concrete reason for the exclusion, the 8% share of AD labels. Performance in substantially less positive material remains an operational question. When deliberative sentences are rarer, the share of suggestions that prove relevant can be different even if a detector has similar class-specific error rates. The paper's precision results characterize the included experiments, with their own distribution of labels.

The pooled cross-validation design can place related sentences from the same document in both training and test folds. The batch experiments provide evidence under a separation that avoids this particular overlap. Neither arrangement tests an independently collected corpus from another agency. Differences involving document templates, policy vocabularies and authorship are all part of what that broader evaluation would need to capture.

What remains between a good suggestion and a good release

Sentence precision and recall are measured against AD annotations. They do not measure precisely how much material should be blacked out in a released PDF. A sentence-level suggestion may require a narrower redaction after the reader examines the words and their context. The relevant unit for a name can differ as well, since nearby titles or other identifiers can matter. The analyst's ability to accept, dismiss or add redactions gives the workflow a way to handle this gap. It leaves the quality of the resulting release to be measured directly.

The PDF pipeline introduces another potential source of error. A classifier can work well on a readable sentence while receiving an incomplete or garbled version of it from a complex document. The coordinates used to place the resulting suggestion introduce a separate requirement that it align with the correct visible text. The authors describe the engineering choices meant to preserve both word order and geometry. Two questions remain open after the reported experiments at the sentence level: how much error arises when extracting text from PDFs with different layouts, and to what extent those errors affect a full case review.

The availability of bulk actions also changes which outcomes a user study would need to observe. Grouping repeated suggestions may reduce the effort of reviewing the same text. In a release decision, identical wording can occur in distinct contexts, and a reviewer may need to inspect those contexts before treating the matches alike. Whether the filters and page view help reviewers strike that balance depends on the records and the way analysts use the controls. The paper establishes that the controls are available and describes why the experts wanted them.

An end-to-end comparison would have a different outcome from the paper's classifier experiments. It would evaluate the reviewed documents, the sensitive content that remained visible, the releasable material that was withheld, and the effort required to reach the final decisions. Operational testing shows that agencies were trying the application in practice. The article reports no completed comparison measuring those outcomes, so estimates of the FOIA Assistant's impact on disclosure quality or processing time remain provisional.

What came after

No later research is identified that builds on the FOIA Assistant or its sentence annotations. The paper records operational testing by multiple US federal agencies and identifies a formal study of reviewer speed and accuracy as future work. It also proposes extending deliberative-language corpora to other kinds of government records and adapting the modular suggestion service to additional agency needs. These are directions set out by the authors. The reported experiments establish a result for recognizing deliberative sentences in the Clinton collection, while the effect of that capability on review and release decisions remains open.

Cite

Cite as Karl Branting, Bradford Brown, Chris Giannella, James Van Guilder, Jeff Harrold, Sarah Howell and Jason R. Baron. 2023. Decision support for detecting sensitive text in government records. Artificial Intelligence and Law (Springer).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/s10506-023-09383-6

@article{branting2023decision,
  title = {{Decision support for detecting sensitive text in government records}},
  author = {Karl Branting, Bradford Brown, Chris Giannella, James {Van Guilder}, Jeff Harrold, Sarah Howell and Jason R. Baron},
  journal = {Artificial Intelligence and Law (Springer)},
  year = {2023},
  doi = {10.1007/s10506-023-09383-6},
  url = {https://doi.org/10.1007/s10506-023-09383-6}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/branting-2023-decision-support-detecting-sensitive/