This paper defines the problem of factwashing—AI rewriting that preserves the original claim while stripping away its epistemic supporting attributes—releases FACTWASH, an open-source Python tool built on closed/open-class language-attribute-differentiated detection logic, and validates through large-scale annotated evaluation the selection patterns of different detection schemes and their failure distributions in real scenarios.
The study defines this particular rewriting failure as factwashing: a rewriting operation that fully preserves the core claim while washing away the corresponding epistemic stance attributes of the original content.
Factwashing brings two typical risks. First, once the supporting evidence for a claim is discarded, the corresponding content memory can no longer be corrected by later verification. Second, when hedges and source attributions in the original content are stripped away, what was originally a tentative claim is presented as a confirmed conclusion. Neither problem falls under the traditional definition of hallucination; conventional factuality metrics would judge both as entirely correct and cannot identify this tampering.
The verification logic against such tampering is essentially a comparison between the stored text and its original source.
FACTWASH is a Python package released under the Apache-2.0 license, installable directly via pip install factwash with zero runtime dependencies, and exposes seven verification routines as a unified detection entry point. Its call interface takes only the source context and the candidate memory content to be verified, and returns a structured report containing a verdict; the verdict falls into one of five categories: PASS, PASS_WITH_FLAGS, REWRITE, REJECT, and UNCHECKABLE. You can use the pipeline diagram immediately following to fully understand the tool's end-to-end run logic from input to output.
FACTWASH first divides the seven categories of factwashing attributes to be checked into different classes. Polarity, condition, and time attributes belong to the closed class, which the paper pre-judges as having detection capability that transfers across domains before external evaluation; hedged phrasing and source attribution belong to the open class, whose detection capability cannot be guaranteed to generalize across domains; the remaining two attributes, loss of fragile-conclusion inputs and content truncation, fall outside both classes.
For closed-class attributes, the solution adopts an enumerated lexical-rule implementation path. With rules pre-fixed, after multiple rounds of lexical mining on external corpora, recall on closed-class attributes converges to a high level and cannot be further improved by expanding the corpus, indicating that the detection lexicons for closed-class attributes can be exhaustively covered, and rules alone can achieve stable cross-domain detection.
For open-class attributes, no amount of lexical mining yields a fully covering enumeration set; the remaining missed samples do not belong to one enumerable vocabulary class, so the detection gap for these attributes must be filled by introducing a lightweight LLM auxiliary check.
This classification-based design is not a subjective preference but is determined by the enumerability characteristics of the attributes being checked; it clarifies the boundary between low-cost rule-based verification and high-cost model-based verification, so there is no need to blindly choose an all-model approach before committing resources.
On an expert-annotated held-out gold standard set, the pure lexical scheme shows stable overall performance on closed-class detection items; both open-class detection items maintain high precision, but recall is only around half, indicating that the pure lexical scheme can reliably detect known features already covered but cannot identify new expressions not yet in the lexicon. You can use the figure below to observe how recall for closed- and open-class detection evolves over multiple rounds of iterative mining.
For the two open-class detection tasks, introducing a lightweight LLM auxiliary check effectively improves recall while keeping precision essentially unchanged, whereas the scheme that directly uses a general-purpose LLM as the decision baseline achieves nearly twice the recall of the pure rule scheme under adversarial rewriting, but the performance reverses on real extractor outputs, missing a large number of factwashing samples annotated by humans. The misses stem from an inherent bias in its decision logic: the general LLM checks only whether core facts are retained and does not recognize the loss of non-core information such as stance and hedges.
The probability of factwashing failures differs significantly across business scenarios: the rate of stance-information loss in conversational hearsay scenarios is far higher than in business email scenarios, and statistical significance testing shows this difference is statistically significant.
FACTWASH's deterministic detection module is bounded-recall by design: for rewritten expressions outside its built-in lexicon coverage, the module covers only 29% of tampering scenarios. Since the attributes it checks belong to an open class, no enumerable lexicon can fully cover all relevant expressions, and the current lexicon implementation has not reached full coverage.
The paper explicitly notes that the optimization of stacking LLM decisions on top of samples passed by the deterministic module to produce the final result reaches 93% recall only on adversarially constructed test corpora and remains an unverified improvement direction; on real annotated rewritten samples, this optimization brings no recall gain and instead lowers precision by 7 percentage points, with all new verdicts being false positives. Given these boundaries, the core principle for tool selection is: the deterministic detection module can be used in scenarios where the cost of false positives exceeds the cost of misses, and should not be deployed alone directly in scenarios requiring high coverage.