Elamur Research

Heuristic Authorship Obfuscation

Paper · 2019 · Janek Bevendorff, Martin Potthast, Matthias Hagen et al.

Summary

A document can reveal who wrote it through habits as ordinary as word choice and punctuation. Authorship verification tests for that connection by comparing a questioned document with writing known to come from a particular person. Heuristic Authorship Obfuscation asks whether an automatic editor can weaken the connection while leaving the document’s message intact. The authors treat the task as a search through possible rewrites. Each edit has an estimated cost, and the search aims to stop as soon as the revised document is sufficiently distant in style from the known writing.

The paper represents style through the relative frequencies of character trigrams, sequences of adjacent characters of the same fixed length. These sequences pick up traces of vocabulary, word endings and punctuation. A measure called Jensen–Shannon distance compares the frequency distributions of the questioned document and the reference writing. The authors fit their stopping thresholds to examples by different writers because short texts tend to have higher distances even when they share an author. A greedy baseline repeatedly targets a sequence whose removal looks promising. The search also considers alternative edits and weighs their estimated quality costs against the progress they make. N-gram

Against the greedy baseline, the search reduced the median number of operations and achieved substantially lower median path costs on the cases tested at the same stopping threshold. It also weakened verifiers that examine common-word frequencies or use compression to compare texts. On the Webis test data, the compression-based verifier’s accuracy fell from 71 % to 55 %. The PAN comparisons showed sizable average declines on several corpora, with a smaller effect on the novels. Some individual verifiers improved after editing, and one based on frequent words was particularly resistant.

The quality evidence gives these results their practical limits. In the unmasking experiment, the authors report that the edited trigrams amounted to about 3 % of a text on average. Yet their examination of the rewrites found good local changes alongside conspicuous errors and questionable word substitutions. A small edit footprint can change a verifier’s judgment and still leave a passage in need of substantial human attention. The paper demonstrates that a common style measure can guide economical edits across different verification methods. It leaves open how consistently those edits can preserve meaning and readability.

Deep dive: Heuristic Authorship Obfuscation

Heuristic Authorship Obfuscation tests whether small edits can hide a writer’s style from authorship verifiers while preserving the text. · about 36 minutes to read

The problem and its context

A comparison with a known writer

The verification question starts with a candidate author already in view. There is a document whose authorship is uncertain and a collection of writing attributed to that person. A verifier examines the evidence and decides whether the questioned document belongs with the known material. Authorship attribution, which occupies much of the earlier research surveyed by the paper, asks the system to choose among candidate writers. The input to verification supplies a particular proposed connection for the system to test.

The obfuscator in this paper starts with more information than the verifier. It knows that the proposed connection is real. It can also compare the document it is allowed to edit with other writing by the same person. The desired outcome is a revised document that a verifier has less reason to join to that reference writing. The setting therefore involves a specific comparison. A statistical feature can make the document look less like the reference material without making it resemble a particular alternative writer.

The privacy problem arises because a document can carry evidence through the writer’s habitual choices. Even if an author releases a document without a name, recurring aspects of the prose may offer a basis for comparison with known work. The paper is concerned with editing these traces in writing that already exists. Its task includes preserving what the document says and keeping the prose readable. Those requirements matter even if a verifier is easy to confuse. An editor that ruins a text would have solved only the classification side of the problem.

What earlier verifiers could see

The paper describes a field with several plausible ways to represent style. One is to collect many kinds of observations about a document. The writeprints approach, for instance, uses a broad inventory of lexical, syntactic and structural features. These look at aspects such as vocabulary, grammatical patterns and the arrangement of the text. A system can draw on their combined evidence, and earlier researchers had also applied such feature inventories to the problem of making authorship harder to identify.

Other work used a narrower representation with a particular way of comparing it. Zhao and colleagues studied distributions of part-of-speech tags, the labels that distinguish grammatical categories such as nouns and verbs. They used Kullback–Leibler divergence to compare those distributions. Character sequences were also widely regarded as effective features in authorship analysis. The authors describe that reputation as established practice while observing that its basis had yet to be proved systematically and that the field lacked a complete account of useful stylistic features. Part-of-speech tagging

Compression provided a different route to comparison. The approach treats a compressor’s handling of repeated or predictable patterns as indirect evidence about how much writing samples have in common. The paper discusses early work by Teahan and Harper and by Khmelev and Teahan, as well as the later verification approach of Halvani and colleagues. Such a verifier can respond to regularities in the text without requiring a person to choose a separate feature for each habit of interest.

Unmasking uses another kind of evidence. It asks how well a classifier can distinguish chunks from the questioned text and chunks from the reference writing. It then gradually removes the features that help most with that distinction. The reasoning is that two texts by the same author may initially look different because of a relatively small collection of conspicuous features. Once those features are taken away, the distinction should erode faster than it would for writing by different people. The pattern of degradation is therefore the signal. The paper describes the original approach in terms of the 250 most frequent function words.

These approaches make style a difficult target to edit directly. A change that affects one inventory could leave the patterns used by another verifier largely intact. An editor could be built around the output of a particular verifier, but its choices would then depend on that system and how it had been set up. The authors want a common measure that gives the editor a reason to choose one possible rewrite over another and can also tell it when to stop.

Why earlier editing strategies fell short

An early strategy was cyclic machine translation. The idea was to send a text through another language and back, allowing the translation systems to recast expressions while carrying the message through the cycle. As the paper recounts, later studies found this approach ineffective for authorship obfuscation and difficult to control. The translation process supplied a rewrite as a whole, with limited ability to steer the individual changes that mattered for authorial style.

Translation within the same language gave the idea a more direct form. A system could learn to rewrite a passage from one style into another. The difficulty described by the authors is the supply of parallel training material. Learning a reliable correspondence requires suitable examples of content expressed in different styles, and large collections of such examples were generally unavailable. Paraphrasing for Style

A more targeted predecessor tried to weaken unmasking by removing the features that did the most to distinguish its inputs. The paper takes seriously the observation that edits to relatively few passages might be sufficient. The quality problem remained. A procedure that removes whatever the verifier finds useful can have a good reason for each removal in statistical terms and still produce prose that is difficult to read.

The PAN shared task gave these tensions a common setting from 2016 to 2018. The authors describe submissions that played it safe with conservative editing rules and frequently changed too little to interfere with strong verifiers. They also describe submissions that interfered with several verifiers but at a high cost to readability. The task organizers asked participants to preserve meaning and produce prose that people could still read easily. That requirement put control over editing on the same footing as the ability to confuse a verifier.

The immediate inspiration for the search formulation comes partly from work on embedding an acrostic through paraphrase. There too, the editor begins with a document and must satisfy a formal constraint while keeping the prose usable. In authorship obfuscation, the formal target is a measured distance from other writing. This makes it possible to compare the costs of different routes to the same target. An edit with modest immediate effect can be worthwhile if it opens a cheap route to the stopping threshold. A highly effective edit can be a poor choice if its effect on the sentence is hard to justify.

The method, step by step

Representing a document as character frequencies

The starting point is a questioned document and reference writing by its author. The editor represents each side by the relative frequencies of character trigrams. A trigram is a sequence of 3 consecutive characters. The sequences can reflect several properties of writing at once. Sequences within a word reflect its spelling and form. Sequences around word boundaries can reflect how words are combined and how punctuation is used. The counts retain the frequency of each sequence while setting aside where in the document most of its occurrences appear.

The counts become a distribution by expressing each trigram’s count as a share of all trigram occurrences on that side. Comparing shares gives the authors a way to compare texts whose total counts differ. It also means that a change to the document can affect much more than the trigram the editor was trying to change. Replacing characters creates or removes neighboring trigrams, and a change in the total count can alter the relative frequency of sequences whose raw counts stayed the same.

The local ranking and the full comparison consequently do different jobs. Ranking proposes passages in which to look for an edit. The distance of the resulting document, evaluated after the edit, measures the effect of all the changes that edit caused in the distribution. This distinction becomes important in search because a promising proposal can have an unexpectedly small or even unfavorable effect when the whole text is counted again.

Measuring distance between the distributions

The paper builds its style measure from Kullback–Leibler divergence. This quantity compares how probabilities assigned by one distribution relate to probabilities assigned by another, weighting the comparison by the first distribution.

KLD(P ∥ Q) = ∑ᵢ P[i] log₂(P[i] / Q[i])

Here P and Q are discrete probability distributions over character trigrams, i indexes the trigrams, and P[i] and Q[i] are the probabilities assigned to trigram i. KLD denotes Kullback–Leibler divergence, and ∥ separates its ordered arguments. The summation ∑ᵢ adds the contributions of the trigrams, / denotes division, and log₂ is the base-2 logarithm. A term contributes zero when P[i] is zero. If P[i] is positive and Q[i] is zero, the expression has no finite value for that term.

The direction of the comparison matters for Kullback–Leibler divergence. Weighting by one text’s frequencies can produce a different value from weighting by the other’s. Zero counts are common enough to be a concern because a trigram observed in one text may be absent from the other. The authors want to keep those observations in the comparison without having to invent positive frequencies for absent sequences.

They use the Jensen–Shannon construction, which compares each text with the same intermediate distribution and averages the two divergences.

JSD(P ∥ Q) = (KLD(P ∥ M) + KLD(Q ∥ M)) / 2

JSD is Jensen–Shannon divergence. P and Q are the original text distributions, M is their shared reference distribution, and KLD is the divergence just defined. The + adds the two comparisons, and division by 2 gives them equal weight. Exchanging P and Q exchanges the terms in the average and leaves its value unchanged.

M = (P + Q) / 2

M is the componentwise mean of the distributions P and Q. The addition and division by 2 average the probabilities of each trigram. A trigram present in either text therefore has a positive probability in M. A comparison of either input with M can retain the term for that trigram whenever the input being compared assigns it positive probability.

The distance used by the editor is a scaled square root of the divergence.

JS∆(P, Q) = √(2 · JSD(P ∥ Q))

JS∆ is the Jensen–Shannon distance in the paper’s scaling. Its arguments P and Q can be exchanged without altering the result. JSD denotes the divergence between them, · denotes multiplication, and √ takes the square root. With the base-2 logarithm, the divergence lies in [0, 1], and the scaled distance is bounded above by √2. The distinction between the quantities matters because the stopping thresholds are fitted to the distance in this scaling.

In practical terms, the measure gives the editor a common way to assess a complete candidate document. It asks how different that candidate’s character frequencies are from the reference frequencies. The calculation requires no predicted author label from a verifier. Its usefulness depends on whether a shift in this representation also affects the evidence that actual verifiers rely on, which is an empirical question addressed by the experiments.

Learning a stopping target from examples

A single distance threshold would be simple to use, but the pilot experiments pointed to a problem. Short texts provide fewer opportunities to observe trigrams, so their distributions are sparse and affected more by which sequences happen to appear. In the training data, even pairs written by the same person were typically more distant when the texts were short. A fixed threshold could consequently call for too much editing in some comparisons and too little in others.

The authors plot distance against text length on their training data. The relationship looks approximately logarithmic. The spread of the plotted distances changes relatively little across lengths, but with longer texts the same-author and different-authors cases tend to occupy different parts of that spread. The authors use the different-authors cases as a calibration population. At a given length, those cases provide examples of how far apart texts by different people can be under the same representation.

They describe the length-conditioned quantity as JS∆@L, meaning Jensen–Shannon distance at length L. They fit lines by least squares on the logarithmic length scale through percentiles of the different-authors distances. The resulting thresholds are targets for an editor. If the starting distance is already at the selected target, further changes are unnecessary by that criterion. If it falls short, the target sets the amount of additional distance the search needs to find.

The lowest fitted line, ε₀, uses the 0th percentile and defines the start of moderate obfuscation. ε₀.₅ uses the 50th percentile and begins the strong category. The paper also defines stronger obfuscation beginning at ε₀.₇ and over-obfuscation above ε₀.₉₉. Here ε denotes a target distance, with the subscript indicating the level of the different-authors distribution used to fit it. The names describe positions on the calibration scale. A strong result by that scale can still be verified by a system using other evidence.

For the training corpus, the authors report a slope of −0.099 and an intercept of 1.936 for ε₀. The corresponding values for ε₀.₅ are −0.103 and 2.056. For ε₀.₇ they are −0.104 and 2.083, and for ε₀.₉₉ they are −0.107 and 2.168. The slope is the fitted change in target distance as log length increases, and the intercept locates the line on that scale. The coefficients are learned properties of a corpus. The authors observed a similar pattern on the PAN 2014 novels while obtaining somewhat different coefficients.

This calibration step is the main fitting procedure for the obfuscator’s distance target. The authors do not train it on parallel pairs of original and successfully anonymized prose. Its editing resources supply possible rewrites, the corpus supplies a target, and the search assesses each instance by measuring the candidate documents it generates. The verification systems have their own training or decision procedures, separate from this calibration.

Finding places where an edit might matter

The greedy version supplies the starting point for candidate selection. It looks for an occurrence of a trigram that is already relatively uncommon in the document being edited compared with its frequency in the known writing. Removing that occurrence can make the discrepancy greater. After an edit, the distributions can be recalculated and the trigrams ranked again.

The derivation switches notation so that Q is the distribution being changed and P is the reference held fixed. The authors examine the partial derivative of one trigram’s contribution to Kullback–Leibler divergence with respect to its probability in Q.

∂/∂Q[i] (P[i] log₂(P[i] / Q[i])) = −P[i] / (Q[i] ln 2)

i identifies a trigram, while P[i] and Q[i] are its reference and editable probabilities. ∂/∂Q[i] means differentiation with respect to Q[i], treating the other quantities in this term as fixed. log₂ is the base-2 logarithm, ln is the natural logarithm, and the minus sign indicates that increasing Q[i] decreases this contribution when P[i] is positive. Division by ln 2 comes from using the base-2 logarithm. The derivative applies where the probabilities in the displayed expression are positive.

For a removal, the proposed change is in the negative direction. The size of the derivative therefore gives a priority for where a decrease in Q[i] is likely to have leverage. Dropping the common factor gives the ranking rule.

Rₖₗ(i) = P[i] / Q[i]

Rₖₗ(i) is the Kullback–Leibler-based rank score for trigram i. P[i] is that trigram’s probability in the reference writing and Q[i] is its probability in the current document. The ratio applies to a candidate with positive Q[i], since a removal requires an occurrence to edit. With the reference probability held fixed, a smaller current probability gives a larger score.

This ranking is derived from a single divergence term. The editor’s objective is the complete Jensen–Shannon distance, which depends on both distributions and their mean. In real text, editing a passage can affect multiple counts and the normalization used to express them as probabilities. The rank is thus an economical way to choose where to try an edit. The successor document supplies the evidence for how much distance the edit actually bought.

The simplest version cuts out the targeted character sequence. The authors use this as a proof of concept and describe the resulting prose as hard to read. They also note that a regular strategy of removal may expose a pattern that a verifier familiar with the obfuscator could try to reverse. Their alternative is to retain the priority signal while generating several ways to revise a promising passage. Removal remains the direction explored in the paper. The proposed counterpart, deliberately adding sequences to make a distribution more unusual, is left for future work.

From a promising location to a revised passage

How the editor searches for a sufficiently different rewrite

The steps in order.

How the editor searches for a sufficiently different rewriteStep 1: Count trigrams in the document and reference writing1. Count trigrams in the document and reference writingStep 2: Set a target using the length calibration2. Set a target using the length calibrationStep 3: Rank trigrams by expected leverage from removal3. Rank trigrams by expected leverage from removalStep 4: Generate alternative edits around selected occurrences4. Generate alternative edits around selected occurrencesStep 5: Score the edits for distance and estimated cost5. Score the edits for distance and estimated costStep 6: Continue from promising document versions6. Continue from promising document versionsStep 7: Stop when a version reaches the target7. Stop when a version reaches the target

A node in the search is a version of the document. An edge between nodes is an application of an editing operation. The beginning of the path is the original document, and a version that reaches the target distance is a goal. Such a path might use word substitution at one location, a punctuation change at another, and deletion elsewhere. Because those choices have different assigned costs, the path with the fewest applications and the path with the lowest estimated quality loss can be different.

The prototype provides seven operations. It assigns character sequence removal a cost of 40 and character flips a cost of 30. These are flexible operations because they can make a change even when a suitable word replacement is hard to find. They can also interrupt spelling or spacing in ways that are immediately apparent to a reader. The relatively high costs make such operations expensive choices for the search.

Context-free synonym substitution costs 10, and context-free hypernym substitution costs 6. A hypernym is a broader category term. Both substitution operations draw on WordNet. The context-free part of their definition matters because a relation between dictionary entries does not settle whether a particular sense is intended in a sentence. The operator supplies a candidate at its assigned cost even when the local wording would give a reader reason to reject the replacement. WordNet

Context-dependent replacement costs 4, and context-dependent deletion costs 2. These operations draw on the word 5-grams in Netspeak to take the local wording into account. A character map, with a cost of 3, offers substitutions between similar punctuation characters. The operations give the search alternatives at very different costs. Their dependence on available context and substitutions also means that inexpensive operations may have fewer occasions to apply.

The cost schedule puts a general preference into the search. It represents the authors’ expectation that, for example, an available context-dependent deletion is usually less disruptive than cutting out a character sequence. A cost is an assigned value for an operation class. It is not a reader’s assessment of that specific edit. The difference gives the evaluation two distinct quality questions. One is whether the search finds paths that are cheap under its own schedule. The other is whether the corresponding prose is acceptable.

Estimating the cost of continuing

The authors seek a document that crosses the target while keeping down both the accumulated estimated quality loss and the number of changes. Search therefore has to compare versions at different distances from the target and with different amounts of editing already behind them. A version that starts out cheaply can still be costly to finish. A version that has made substantial progress can have done so by paying for edits that would be unnecessary on another path.

The paper uses g(n) for the cost already accumulated on the path from the original document to node n. It uses h(n) to estimate the remaining cost. The first component of that estimate is the remaining distance to the target.

hₚᵣᵢₒᵣ(n) = ε − JS∆ₙ

hₚᵣᵢₒᵣ(n) is the distance shortfall at node n, ε is the chosen target, and JS∆ₙ is the distance between the document version at n and the known writing. The subtraction gives a positive shortfall while the version is below the target. It approaches zero as the version approaches the target from below. Its units are distance, so another term is needed to turn the shortfall into an estimate on the cost scale.

The conversion comes from the path’s progress so far.

gₙₒᵣₘ(n) = g(n) / (JS∆ₙ − JS∆ₛ)

gₙₒᵣₘ(n) is the normalized path cost at node n. g(n) is the sum of the costs assigned to edits on the path to n. JS∆ₙ is the current distance, s is the original document node, and JS∆ₛ is its starting distance from the same reference writing. The difference in parentheses is the net distance gain along the path. When it is positive, the ratio estimates the cost paid per unit of gain.

h(n) = (ε − JS∆ₙ) · g(n) / (JS∆ₙ − JS∆ₛ)

h(n) is the heuristic estimate of remaining path cost. The first parenthesis is the distance still to cover before reaching ε. The ratio uses g(n) and the distance gained since s to convert that remaining distance into estimated cost. · denotes multiplication. The estimate extrapolates from the progress actually made along a path. Two paths at a comparable distance from the goal can receive different estimates if they paid different costs to get there.

The underlying concern is that a passage’s future editing options can depend on what has happened along the path. Repeated use of an operation can make its accumulated effect more conspicuous. Different writers’ texts may also offer very different opportunities for cheap changes. By using the path’s observed cost per unit of progress, the heuristic adapts to how productive that path has been. The calculation is least well supported at the beginning, when a single unusually good or bad move can dominate the ratio. At the original node the distance difference in the denominator is zero, and a return to the starting distance would pose the same arithmetic problem for the displayed formula.

When the heuristic can be trusted

In search terminology, an admissible estimate stays at or below the true minimum remaining cost. This matters because a search that trusts an overestimate could postpone a route that would ultimately be cheap. The paper examines consistency, a stronger condition that can be checked along edges. A current estimate should fit within the cost of taking the next step plus the estimate that remains after it.

h(n) ≤ c(n, n′) + h(n′)

n is the current node, n′ is its successor, and h is the remaining-cost estimate at each node. c(n, n′) is the cost of the edit linking them. The symbol ≤ means less than or equal to. The right-hand side adds the edit’s cost to the successor’s estimated remaining cost.

The authors express the edge cost as the increase in accumulated path cost for the transition.

h(n) − h(n′) ≤ g(n′) − g(n)

h(n) − h(n′) is the reduction in estimated remaining cost when moving to n′. g(n′) − g(n) is the increase in cost already incurred on that path. The inequality compares those changes. If the estimated remaining cost falls by more than the cost of the step, the edge fails the consistency condition.

For the argument, the paper gives the cumulative change in distance its own notation.

ḡ(n) = JS∆ₙ − JS∆ₛ

ḡ(n) is the net distance change at node n, with JS∆ₙ the current distance and JS∆ₛ the starting distance at original node s. This is the denominator in the normalized cost. It may move up or down as edits change the distribution. Accumulated operation cost, by comparison, can only increase as a path takes steps with positive assigned costs.

Substituting the heuristic into the edge comparison gives the relationship the authors analyze.

hₚᵣᵢₒᵣ(n) · g(n) / ḡ(n) − hₚᵣᵢₒᵣ(n′) · g(n′) / ḡ(n′) ≤ g(n′) − g(n)

hₚᵣᵢₒᵣ gives the distance shortfall, g gives accumulated cost, and ḡ gives net distance gain. The left side subtracts the successor estimate from the current estimate. The right side gives the cost of reaching the successor along that edge. The formulas use multiplication · and division / to express each estimate as distance remaining times cost per unit of past gain.

The authors’ argument is easiest to see when estimated quality cost and distance gain are proportional along a trajectory. The conversion rate is then constant, and the scaled reduction in remaining distance equals the additional cost. Their consistency reasoning also considers circumstances where accumulated cost grows faster than distance gain. The problematic case is a local jump in distance gain relative to cost, which can drive a sharp change in the estimated cost of the remaining path.

The paper qualifies the argument for real document edits. The bounded distance constrains net gain over the entire path, but the gain can still change suddenly on an individual step. The underlying cost and change curves also need not be differentiable in the way the argument assumes. The authors therefore describe the heuristic as approximately admissible in practice. The formal condition explains what the estimate would need to satisfy. The implementation and the properties of text edits leave room for overestimates and local optima.

Keeping the set of candidates manageable

If every operator were tried at every occurrence of every promising trigram, even a single search node could generate a large collection of similar documents. Many alternatives would share the same operation cost and differ little in distance. Meanwhile, relying on just the highest-ranked occurrence would make the search depend heavily on whether a useful contextual edit happened to be available there.

The paper takes a middle course in candidate generation. It considers the top ten trigrams, lets each operator act on two occurrences, and obtains up to 140 successors. It randomly selects six of these for expansion. Looking across several trigram contexts improves the chance of finding a place where an inexpensive operation applies. Sampling the successors limits how many nearly interchangeable candidates the search has to carry forward.

Even this reduced branching can grow beyond available memory as editing continues. The search can therefore retain a small collection of promising nodes and restart from them, discarding other open candidates. The resulting procedure incorporates informed search while limiting the alternatives it preserves. The selection of a promising version is an operational compromise. A route removed from the search could have led to a cheaper goal, and different sampled successors can give the search different opportunities.

The prototype thus uses the style distance at several points. The learned threshold defines success, the current trigram frequencies help choose locations, and the distance gain helps estimate the cost of finishing a candidate path. The authors released the search framework’s code, the Webis Authorship Verification Corpus 2019 and accompanying research data.

Experiments and results

What the evaluation compares

The evaluation uses PAN authorship corpora and the Webis Authorship Verification Corpus 2019. The latter has 262 verification cases, divided evenly between same-author and different-authors cases. Each case contains two texts, each approximately 23,000 characters or 4,000 words long. The authors drew on more modern literature from Project Gutenberg for these longer samples, cleaned the plain text, standardized special characters and removed artifacts. They ensured that an author appeared in only one case. The reported training and test split is 70-30.

The experiments involve two distinct kinds of comparison. The greedy editor serves as a baseline for the cost of reaching a fixed distance threshold. The verification tests compare what a verifier does before and after the questioned text is edited. The first kind asks whether search pays less for a goal defined by the authors. The second asks whether crossing such a goal has consequences for a verifier whose decision rule uses separate evidence.

The paper also compares its performance with obfuscators from the PAN shared task and looks directly at output quality. This last part matters because distance and verification performance can both reward a change that damages a sentence. The amount of editing and the acceptability of the resulting prose require their own evidence. Evaluation & benchmarks

Efficiency at a shared target

The comparison between greedy editing and the authors’ A* search uses ε₀.₅. Both approaches can stop once they reach this target. Their efficiency is reported as the median total number of text operations and the median sum of assigned operation costs. A lower count means fewer operations. A lower path cost means the procedure found a cheaper sequence under the prototype’s quality estimates.

Median path cost for greedy and A* obfuscation at ε₀.₅

Search reaches the shared threshold at a lower median assigned editing cost.

Median path cost for greedy and A* obfuscation at ε₀.₅Greedy obfuscation: 5,960Greedy obfuscation5,960Heuristic search (this paper): 1,968Heuristic search (this paper)1,968
The numbers
System or settingMedian path cost
Greedy obfuscation5,960
Heuristic search (this paper)1,968

The chart covers all 41 cases in the comparison. In those cases, the greedy median was 148 operations and the search median was 145. The authors report a median operation change of −2 % and a path cost change of −67 %. The operation totals and cost totals tell different parts of the story. The search can accumulate a much cheaper path even when it takes a similar number of steps because the cost schedule distinguishes sharply among kinds of edits.

In the 28 cases in the 1+ ops subset, the medians were 241 operations for greedy editing and 202 for search, with a reported change of −16 %. The median path costs were 9,680 and 2,712, respectively, a reported change of −72 %. The subset concentrates on documents for which starting above the adaptive threshold cannot by itself account for a low editing requirement.

The effect is largest in the 100+ ops subset of 21 cases. The median operation counts were 291 for greedy and 236 for search, with a reported change of −19 %. The corresponding median costs were 11,680 and 2,935, with a reported change of −75 %. The cost advantage has a direct explanation in the design. The greedy baseline relies on the operation that can reliably carry out its selected reduction. Search can take advantage of cheaper substitutions, deletions and character changes whenever they produce enough cumulative progress.

Unmasking before and after editing

In unmasking, the authors split the texts into segments and use the frequencies of the 250 most frequent words as features. A support vector machine, a classifier that fits a separating boundary, attempts to distinguish chunks from the two sides of a case. Its accuracy is estimated using 10-fold cross validation. The authors remove ten features per iteration and repeat the assessment, obtaining a curve of how discriminability changes. A further support vector machine uses the curves and their gradients to learn a decision about authorship.

In this setup, confidence is based on distance from the classifier’s separating boundary. Requiring greater confidence lets the verifier withhold decisions on comparatively ambiguous cases. The paper reports the percentage of cases classified, precision on the same-author calls and recall, which treats unclassified cases as false negatives. Precision measures how often a positive call is right. Recall measures how much of the true positive class the verifier recovers.

At a confidence threshold of 0.8 on the Webis test data, unmasking classified 11.3 % of the cases before editing and 2.5 % afterward. Precision was 1.00 in both conditions, while recall went from 0.17 to 0.02. At 0.7, coverage was 15.0 % before and 6.2 % after, again with precision of 1.00 in both conditions. Recall was 0.24 before editing and 0.05 afterwards. Under both thresholds, the verifier’s most confident positive decisions remained precise, but it recovered fewer genuinely same-author cases.

At a threshold of 0.6, the share of cases classified went from 18.8 % to 11.3 %, precision from 1.00 to 0.75 and recall from 0.24 to 0.07. At 0.5, classification coverage was 26.3 % before editing and 24.0 % afterwards, with precision moving from 1.00 to 0.86 and recall from 0.29 to 0.15. With the threshold at 0.0, the verifier classified 100.0 % in both conditions. Its precision declined from 0.74 to 0.71 and recall from 0.63 to 0.42. The availability of confident decisions and the quality of forced decisions both changed, with different patterns across the threshold settings.

The authors report that an average of 205 trigrams were obfuscated in this experiment, which they describe as about 3 % of a text. Unmasking uses word-frequency evidence and the shape of a discrimination curve, while the edits are selected through a character-frequency representation. The result shows transfer between these procedures on the test cases. It does not isolate which word features or which passages account for the transfer.

Verification using compression

The compression experiment follows the verification approach of Halvani and colleagues. It uses PPMD for compression and the compression-based cosine, or CBC, for comparison. The classifier’s decision threshold is applied to the similarity values derived from compressing the pair. The paper’s figure shows a random selection of 20 same-author cases before and after editing to ε₀.₇. Only a few of the plotted edited cases still fall on the side of the decision boundary that would correctly identify their shared author.

PPMD compression verifier accuracy on the Webis test data

Accuracy falls when the verifier receives the edited documents.

PPMD compression verifier accuracy on the Webis test dataOriginal documents: 71Original documents71After heuristic obfuscation (this paper): 55After heuristic obfuscation (this paper)55
The numbers
System or settingAccuracy %
Original documents71
After heuristic obfuscation (this paper)55

The chart reports aggregate accuracy for the compression verification experiment. Lower accuracy favors the obfuscator’s objective. The illustrated same-author sample is a separate view of that experiment. It shows how individual scores move relative to a threshold, whereas the aggregate value includes decisions across the test data.

The authors connect the decline to the predictability of language. PPMD predicts characters from finite contexts, which lets it take advantage of recurring patterns. The paper cites an upper bound of 1.75 bits per character for the entropy of printed English to explain why such prediction can be effective. It proposes that the edits increase unpredictability and thereby interfere with the evidence available to the compressor. The measured result is a change in verification accuracy and scores. The experiment does not report direct entropy measurements for the edited documents. An Estimate of an Upper Bound for the Entropy of English

Transfer to the PAN verifiers

The authors also test submissions from the PAN verification tasks on PAN13, PAN14 Essays, PAN14 Novels and PAN15. The reported metrics are AUC, C@1 and FS. AUC summarizes how well scores separate same-author from different-authors cases across decision thresholds. C@1 assesses decisions while giving the verifier a role for leaving cases unanswered. FS, the final score in the comparisons, multiplies the two measures.

FS = AUC · C@1

FS denotes the reported final score. AUC is the area under the receiver operating characteristic curve, and C@1 is the PAN score that accommodates unanswered cases. The · multiplies them. Consequently the final score can reflect changes in both how well the system ranks cases and how well it handles decisions at its chosen operating point.

Mean verifier AUC reduction after obfuscation on the PAN corpora

The largest average decrease is on PAN15, while the novels show the smallest decrease.

Mean verifier AUC reduction after obfuscation on the PAN corporaPAN13: 0.10PAN130.10PAN14 Essays: 0.09PAN14 Essays0.09PAN14 Novels: 0.03PAN14 Novels0.03PAN15 (this paper): 0.11PAN15 (this paper)0.11
The numbers
System or settingAUC reduction
PAN130.10
PAN14 Essays0.09
PAN14 Novels0.03
PAN15 (this paper)0.11

The values in the chart are before-and-after reductions averaged across the listed verifiers for each corpus. The corresponding average C@1 reductions were 0.06 on PAN13, 0.05 on PAN14 Essays, 0.02 on PAN14 Novels and 0.06 on PAN15. Average reductions in FS were 0.10, 0.08, 0.03 and 0.10 in the same order. Relative to the obfuscators submitted to PAN, the authors report second place on PAN13 and PAN15 and fourth on PAN14 Essays.

The aggregate values allow for very different outcomes among verifiers. The paper identifies kocher15, which uses an impostor approach and focuses on frequent words, as especially resistant. On PAN13 its AUC moved from 0.75 before editing to 0.77 afterwards. On the same corpus, frery14 moved from 0.62 to 0.37. Those cases show that shifts in the editor’s character-trigram distance can have different consequences even for verifiers given the same rewrites.

The novels are the hardest corpus for the approach overall. Their average changes are smaller, even though the paper reports a best individual effect of 13 percentage points. The comparison establishes that the approximate magnitude of the effect depends on the corpus as well as on the verifier. A favorable result for one verifier on the novels can coexist with weak average transfer on that corpus.

What a reader sees in the edited text

The authors examine a passage from Lester del Rey’s Victory to show what the edits look like in context. They selected it because several kinds of editing happened close together. The clustering makes it easier to inspect different operations in one passage. The paper explicitly describes this concentration as unusual for its output.

The changes vary in kind and severity. A character flip breaks the expected spacing between words. A context-free substitution introduces a Greek letter name in place of an ordinary article. Other replacements are plausible as local edits, with the more suitable changes often coming from the operations that use surrounding words. The example supplies a concrete reason to separate the text’s overall overlap with the original from the acceptability of its revised phrases.

The authors put the overlap with the original as high as 97 %. At that level, a measure driven by shared wording has little opportunity to distinguish a felicitous local rewrite from a disruptive one. A human assessment of a small random selection, following the PAN obfuscation procedure, gave an overall grade of about 2.6 on a scale where 1 was excellent and 5 was a failing grade. The authors place that grade among the top three submissions in their comparison. Their own inspection describes about half of the changes as nonsensical. Both observations belong to the quality result. Readers can find much of the passage intact while encountering noticeable failures in the places the system chose to alter.

What the ablations show

The paper reports no formal ablation that removes one prototype component at a time. Its comparative analyses instead vary the search strategy, the verifier’s confidence setting, the verification procedure and the evaluation corpus. The paper also examines the output of specific operations in a passage. Together these analyses identify where the method helps and where its underlying assumptions become fragile.

Search and the choice of edits

The comparison at ε₀.₅ keeps the definition of success shared between greedy editing and heuristic search. This makes it possible to attribute the cost difference to how the two approaches reach the target, rather than to one being allowed to stop at a lower distance. The largest advantage is in assigned cost. In the all-cases comparison, the operation medians sit close together, while the cost medians are far apart. The design of the greedy baseline provides the explanation the authors emphasize. It depends on a readily applicable disruptive operation, whereas search can combine less costly alternatives.

The operation-intensive subset supplies another view. Once the task requires many changes, both the operation count and the assigned cost favor search by larger reported amounts. This is consistent with search benefiting from a choice of paths when the initial gap to the threshold is substantial. The experiment does not factor the improvement into contributions from the trigram ranker, the cost-to-gain estimate, candidate sampling and restart. The greedy and search conditions vary several decisions at once, including the menu of available edits.

The case subsets also illustrate the implications of an adaptive target. Some documents begin at a distance that requires little or no work, while others call for a substantial revision sequence. Comparing the baselines on the full set answers how they fare across that mixture. The more demanding subset concentrates on paths where differences in choosing and combining operators have room to accumulate.

Confidence and the nature of verifier failure

The unmasking confidence sweep changes the evidence required for the classifier to issue a decision. At strict confidence levels, the most conspicuous effect is a loss of coverage and positive recall. The verifier can still make a highly precise call on the cases it is willing to classify. This is practically different from a setting in which precision would collapse among those few decisions. A user of a verifier that can abstain would observe many more unresolved cases at the strictest thresholds.

At zero confidence threshold, coverage is fixed because every case gets a decision. The decline in recall there shows that editing has an effect even when the verifier cannot defer the case. This matters for interpretation because the sampling of high-confidence decisions alone could otherwise account for a drop in recall. The sweep separates what happens to the availability of confident decisions from what happens when the same procedure must decide throughout the test set.

The compression comparison offers a different diagnostic. The authors show changes in continuous scores for individual same-author cases, as well as reporting aggregate accuracy. A score can move significantly even if it stays on the same side of the classification boundary, and a small move can reverse a decision close to that boundary. Displaying individual scores lets the reader see how the change in accuracy relates to the verifier’s decision rule. The evidence supports transfer to a compressor-based comparison, while the explanation in terms of character predictability remains a proposed mechanism.

Corpus and feature dependence

The PAN comparison asks what happens when the rewrite meets a range of verification procedures. The size and direction of the changes vary. The resilience of a frequent-word verifier is consistent with an editor whose reduction ranking frequently targets already rare character sequences. This is a suggestive relationship between the method’s selection rule and a verifier’s feature emphasis. There is no controlled ranking experiment in which edits targeted at common words are substituted for the paper’s ranker.

The contrast between essays and novels similarly gives evidence about where the method is less effective without isolating a single cause. The authors found that the novels often received edits in relatively few sentences, even though the distance goal was defined for the whole document. They also describe more costly search behavior on the longer material. At the same time, the amount of known writing varied, and features of the corpus could help particular verifiers. The smaller effects on novels therefore reflect a setup that differs along several dimensions.

The authors’ inspection of local edits serves a comparable purpose for readability. It shows how the same cost schedule can admit both a useful contextual replacement and a conspicuous word error. A contextual option has a plausible advantage because it can consider the words around the edit. The study does not provide a rate of acceptable replacements by operator or an experiment in which each operator is disabled in turn. The examples can explain particular failures and motivate the authors’ interest in stronger contextual editing. They cannot establish a complete ordering of operation quality.

Limitations

Limits the authors identify

The authors treat the relationship between length and style distance as an empirical observation whose generality needs further study. A similar pattern on PAN 2014 novels yielded different coefficients. They recommend fitting the coefficients to writing with the relevant genre and register. They also point out that extrapolating the fitted curves to sufficiently long documents can yield nonsensical target distances. Measuring and editing shorter portions is one way they propose to deal with book-length material.

The long-text results expose a problem even within the range where a target can be calculated. A global trigram distribution can move enough to meet the threshold after concentrated editing while large portions of the text remain untouched. In the novel cases the authors saw effects concentrated in relatively few sentences. They propose measuring progress on smaller portions and distributing revisions across the text. This proposal remains a direction for future work. The study supplies evidence about the uneven concentration of its edits, rather than outcomes for a system that fixes it.

The authors also identify variation in the known writing as a complication. PAN14 Novels provides substantially different amounts of reference material across cases, leaving open how a minimal sufficient distance should be defined when more examples are available. Works by H. are also part of the collection. P. Lovecraft paired with fan fiction. The authors point out that this makeup could make corpus-wide patterns available to a verifier, whereas their editing procedure works with the distributional comparison it has been designed to change.

Search efficiency deteriorates on some longer cases because many nearby versions have similar values under the cost and distance criteria. The authors describe an increase in reopened states on the novels. They also qualify their theoretical result for cases where a short sequence of edits earns a large gain at low cost or where distance changes nonmonotonically. The practical system samples successors and restarts from selected nodes to manage the search. These restrictions constrain the extent to which a result can be called a minimum-cost rewrite.

The editing operations are explicitly presented as a pilot implementation. The authors find unacceptable substitutions in their own output and consider the example unlikely to be ready for publication. They identify more capable paraphrasing and better weights as prerequisites for improving quality. As a possible source of such operations they point to prior neural editing work, including methods that generate sentences by editing prototypes. They also propose investigating obfuscation by addition to address the limitations of exclusively reducing selected trigram frequencies. Generating Sentences by Editing Prototypes

Limits apparent from the evaluation

The experiments test a writer-specific comparison in which the editor has access to known writing and can measure its distance from that writing. A real verifier could have different or additional material. The evaluation shows that the chosen edits transfer across several existing verification procedures under the tested conditions. It leaves open what would happen if the reference collection used by the editor differed substantially from the collection available to the verifier. It also leaves open how a verifier trained on outputs of this particular editor would respond. The authors raise the prospect of reversing a regular reduction strategy, but do not test an adaptive verifier designed around the technique.

The method’s goal and its outcome measures need to remain distinct. A threshold fitted to different-authors cases gives the editor a well-defined stopping condition. Reaching it places the pair at a particular point on the corpus’s character-trigram scale. A verifier may still use reliable evidence at that distance, as the PAN results show. Conversely, a drop in a verifier’s average score describes the tested set of decisions. It cannot determine from the average alone which individual document retains a recognizable authorial signature.

The evaluation also separates estimated from observed quality only partially. The assigned path costs let the paper compare optimization behavior on a common scale. They cannot encode the difference between a nearly invisible substitution and one that changes an important term in a particular sentence. The human checks add direct quality evidence, but they are limited to a small random selection and close examination of an illustrative passage. The reported grade and the authors’ qualitative review cannot establish dependable meaning preservation across documents or genres.

Even the count of edited trigrams gives limited information about the effect of changes on content. A revision at a single location can alter a reference or change what a clause asserts. Conversely, a punctuation substitution can alter several counts and leave the passage easy to understand. High overlap is compatible with either outcome because it measures how much wording is shared. A reader deciding whether a particular revision is faithful would need information about the changed passages themselves.

Finally, the general efficiency figures describe the behavior of a search whose candidate generation is constrained and partly random. The median comparison provides evidence that its typical paths are cheaper under the assigned costs, especially in cases requiring extensive editing. The experiments do not establish how much the result for a particular document varies over repeated searches with different sampled candidates. The formula for remaining cost also extrapolates from the current path and becomes delicate when net progress is small. The authors’ success with that approximation demonstrates practical feasibility for their evaluation, with the strongest claims appropriately tied to the tested texts and settings.

What came after

The later work Keep It Private: Unsupervised Privatization cites Heuristic Authorship Obfuscation. That citation establishes a connection between the papers. The relationship does not establish which part of the earlier method informed the later work, whether it reused the trigram distance or search procedure, or whether it evaluated against the earlier prototype.

The concrete directions opened by the original study are more specific than the citation alone. Its authors identify contextual paraphrasing, more informative edit costs and better coverage of long documents as outstanding parts of the problem. Their experiments show why those parts matter together. Search can find a less expensive route to a style target, and crossing that target can have consequences for multiple verifiers. The quality of the resulting document depends on which rewrites the editor can propose and how well its costs reflect what a reader encounters.

Cite

Cite as Janek Bevendorff, Martin Potthast, Matthias Hagen and Benno Stein. 2019. Heuristic Authorship Obfuscation. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p19-1104

@inproceedings{bevendorff2019heuristic,
  title = {{Heuristic Authorship Obfuscation}},
  author = {Janek Bevendorff, Martin Potthast, Matthias Hagen and Benno Stein},
  booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1104},
  url = {https://doi.org/10.18653/v1/p19-1104}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bevendorff-2019-heuristic-authorship-obfuscation/