Who polices the police?
A question we often encounter at Nakato is whether we can trust an AI system to audit another. A business that is uncomfortable entrusting sensitive information to an LLM may be asked to entrust that same information to an LLM responsible for protecting it.
There are good reasons to use language models for sensitive data detection. They can interpret contextual information that regular expressions and pattern matching struggle to identify. But when we introduce an LLM into a detection pipeline, we give it a different responsibility from the model that ultimately consumes the data.
I think the more interesting question is how we architect a system around a model whose decisions may be inconsistent, and how we establish that the resulting system is performing reliably.
Does introducing another LLM make a system safer?
When building a detection pipeline, it seems reasonable to introduce a second model to check the decisions of the first. If several models arrive at the same conclusion, we might instinctively have greater confidence in it. This assumes, however, that the models are providing sufficiently independent judgements.
Guneet Kohli's 2026 research for Apple, Nine Judges, Two Effective Votes, examined this assumption. Across three natural language inference datasets, a panel of nine LLMs from seven model families provided the statistical equivalent of approximately two independent votes. The models frequently made errors on the same examples, and the best individual judge matched or outperformed the panel under the conditions tested.
Although this research concerns language evaluation rather than sensitive data detection, it raises an interesting architectural question. If two models have similar weaknesses in contextual interpretation, introducing one to check the other may do little to improve detection coverage.
When evaluating a detection pipeline, I would therefore want to understand which identifiers each component misses and how frequently those failures overlap. Two individually capable detectors may provide little additional coverage when combined. A less capable detector could contribute more to the system if it identifies information that the others consistently miss.
Where should an LLM sit in a detection pipeline?
The position of an LLM within a detection architecture can substantially alter the types of errors that the system makes.
In a 2026 study published in Empirical Software Engineering, Falcão and Canedo compared three approaches to detecting personally identifiable information (PII) in Java source code: a classifier-based pipeline, a hybrid pipeline in which an LLM reviews candidates identified by classifiers, and an LLM-led extraction pipeline with deterministic output validation.
Introducing an LLM as a judge removed some false positives, but it also discarded information that the classifiers had correctly identified. Under certain conditions, the LLM-led extraction pipeline achieved a better balance between precision and recall.
There is an architectural explanation for this. An LLM that reviews an existing set of candidates can reject incorrect classifications, but it cannot recover identifiers that were never presented to it. Changing its position within the pipeline changes the information available to it and the decisions it can make.
The study used synthetic Java code, so its results cannot be assumed to represent other data environments. Nevertheless, its controlled comparison illustrates why evaluating a model in isolation tells us relatively little about its suitability for a particular architecture.
Further evidence comes from REDACT, a multilingual PII detection benchmark presented at EMNLP 2026. Its comparison of five detection systems demonstrated that rule-based detection can struggle with sensitive information expressed indirectly or requiring contextual interpretation. The LLM-based detectors were more robust across certain categories.
There is a case, then, for employing language models where contextual understanding is required. I would, however, distinguish between identifying sensitive information and enforcing a policy that governs its use.
A model can classify an entity, while a separately defined policy determines whether that information should be transformed, blocked or permitted to leave the infrastructure. This allows developers to evaluate classification and policy execution independently.
Deterministic policy enforcement still depends on the quality of the detection feeding it. A policy cannot act on information that the detection layer has missed.
How do we architect for changes in model behaviour?
When a detection system relies on an external language model, that model becomes a production dependency within the organisation's security infrastructure.
OpenAI's model deprecation documentation illustrates a difficulty with this approach. Even when developers specify a particular model version, there is no guarantee that they will retain access to it indefinitely.
For an application generating text, a change in model behaviour might require adjustments to prompts or output handling. For a detection pipeline, it might change which information is permitted to leave an organisation's infrastructure.
Reproducing a detection decision requires more than recording a model name. Prompts, inference configurations, preprocessing logic, classification thresholds and downstream validation can all affect the result.
I would want these components to be independently versioned, with a regression testing process that assesses the effect of changes before they reach production. This should include testing whether a replacement model misses identifiers that the previous version reliably detected.
Audit records should also allow developers to reconstruct historical decisions without necessarily having to rerun the original model. Designing those records requires care: storing the sensitive information that a detection system was introduced to protect can create another point of exposure.
How do we find out what our detection system misses?
One aspect of OpenAI's architecture for detecting frontier model misalignment that I find particularly interesting is how it evaluates failures in its own monitoring system.
Its architecture combines initial screening classifiers, model-based reviewers, investigative agents, external system evidence and human oversight. The initial screening stage prioritises recall, accepting some incorrect detections to reduce the likelihood of missing concerning behaviour.
Where this screening stage is used, OpenAI also randomly passes 5% of unflagged traffic to the next layer for review.
This addresses a problem inherent in sequential detection architectures. If we only review information that a detector has already flagged, we learn about its false positives but very little about its false negatives.
For developers building sensitive data detection systems, there is value in applying a similar principle within an appropriately secured environment. Evaluating unflagged data against independently established labels can help identify blind spots that would otherwise remain invisible.
I would also be wary of evaluating detection through an aggregate F1 score alone. An architecture might perform well at detecting email addresses and telephone numbers while consistently missing identifiers specific to a particular industry. The consequences of those failures are unlikely to be equivalent.
What should we establish before deploying a detection system?
Whether building a detection pipeline internally or integrating a third-party solution, there are several questions I would want answered:
- Where does the LLM sit within the pipeline, and which decisions is it responsible for?
- Do the detection components compensate for each other's weaknesses?
- Can we evaluate performance against our own independently labelled data?
- Can we inspect missed identifiers and measure recall across individual entity types?
- What happens when the model returns an invalid response, times out or becomes unavailable?
- Can we control, version and test the policies governing data disclosure?
- How do we validate changes to models and other pipeline components?
- Can we reconstruct historical decisions without introducing further data exposure?
I am less concerned with whether a detection system uses a language model than with whether its architecture allows us to understand, measure and manage the consequences of its failures.
The purpose of building these systems is to give organisations greater confidence in making their data available to AI. To achieve that, we need to be able to establish the reliability of the entire detection pipeline, independently of the intelligence of any individual component.

