Keep it Private: Unsupervised Privatization of Online Text
Paper · 2024 · Calvin Bao and Marine Carpuat
Summary
A pseudonym can conceal a person’s name while leaving clues in the way they write. Someone with access to other posts can try to match those clues across accounts or use them to identify a writer among many candidates. Bao and Carpuat’s Keep it Private, or KiP, tackles the writing side of that problem. It rewrites a post with three goals in view. The rewrite should be harder to link to its author, express the original meaning, and read as a well-formed piece of text.
The authors train pretrained text generators by having them propose several rewrites of the same input. Each rewrite earns scores for how much it changes the apparent authorship of the text, how close it stays to the original meaning, and how well it reads. The generator learns to favor candidates that score better than its other proposals for that input. The privatization stage needs author-labeled writing and can proceed without a collection of human-written private rewrites. The authors compare different starting points for the generator, including systems already trained to paraphrase.
The main experiment uses English Reddit posts and a candidate pool covering 68k authors. It measures two ways of identifying writers. Attribution ranks candidate authors and checks where the true writer appears. Verification compares a pair of writing samples and judges whether they came from the same person. On the Reddit test, the attribution system placed the true writer among its top candidates with an R@8 of 93.0 for unchanged text. Its score fell to 4.0 for KiP-BART-Para and 2.0 for KiP-DIPPER. Both variants also reduced the character-based verifier’s score, from 71.0 on unchanged text to 46.6 and 42.3, respectively. In a separate human assessment of rewrite quality, KiP-DIPPER produced the most grammatical paraphrases among the systems assessed.
The outcome depends on what the identification system sees. When the authors gave the verifier longer writing profiles, they found that it recovered its ability to link samples rewritten by KiP-BART-Para. Attribution remained much weaker on those rewrites than on unchanged text as the profiles grew. A separate evaluation on English blog writing also showed stronger reductions in attribution than in verification. The paper therefore establishes how well the rewrites protect against particular identification tests. Its strongest evidence concerns the difficulty of finding a writer in a large candidate pool, with a more conditional result for checking whether two samples share an author.
Deep dive: Keep it Private: Unsupervised Privatization of Online Text
Keep it Private rewrites online posts to hide clues to authorship and tests how well the rewrites preserve meaning and resist identification. · about 35 minutes to read
The problem and its context
Why a pseudonym leaves something to match
A person can keep their legal name off a forum and still write in a recognizable way. The authors motivate the problem with Reddit, where pseudonyms and temporary accounts give people some control over who can connect their statements with one another. They describe why that control matters to people who participate in communities under different identities, especially where joining those identities exposes them to harm. A separate account changes the name alongside a post. The post itself can still supply evidence about who wrote it.
The paper draws on stylometry, the study of patterns in how people write. Such patterns can help link texts across genres, subject areas, and forms of discourse. An identification system can use small recurring features, such as characteristic sequences of characters, or learn a more general representation of writing from examples. These clues need only recur frequently enough to be informative. A particular phrase can be ordinary on its own and still contribute to a recognizable pattern in a collection of posts.
Authorship obfuscation acts on the text that carries those signals. The premise is that a writer may want to retain a statement while changing how it is expressed. The task therefore includes a constraint that would be absent if the goal were simply to produce text that looks unrelated to the writer. The new wording still needs to communicate the same point. A rewrite that changes someone’s claim, introduces a detail they never supplied, or obscures how their argument works can be hard to attribute and still fail as a rewrite.
Collecting supervised examples is another difficulty. An ordinary paraphrase pair shows how to express approximately the same meaning in different words. For this task, a useful training pair would also have to show that the alternative can protect the original writer against a relevant identification procedure. The authors describe such pairs as scarce. This motivates objectives that can assess a proposed rewrite directly, using ordinary writing and signals computed from the rewrite itself.
Two questions an identification system can ask
In attribution, the system has a collection of candidate writers and some evidence of how each writes. It receives the text whose author is in question and ranks the candidates. The author’s place in the ranking matters because a system can narrow a search even when its first guess is wrong. The amount of evidence per candidate also matters. A profile can be a single piece of writing or an aggregation of messages by the same person. The authors treat that distinction as part of the evaluation because online writing may arrive in short posts even when a reader has access to several of them.
Verification starts with a pair of samples. It asks whether they share a writer. The two samples may also be profiles assembled from several messages. The verifier can concentrate on the evidence for a match between those samples. An attribution system must use its evidence to sort the true match among competing candidates. The same rewrite can affect these decisions differently because the procedures use different representations and answer different questions.
The paper situates these tasks in the PAN shared-task tradition. The authors note that in the PAN authorship verification evaluation, cosine similarity over character n-gram representations was a strong baseline even when the writing came from varied domains and had varied lengths. A character n-gram is a contiguous run of characters. A representation based on such runs can compare recurring pieces of spelling, punctuation, and wording across samples. That gives the verifier access to cues measured at a different level from the learned authorship representation used elsewhere in KiP.
The learned representation comes from Learning Universal Authorship Representations, abbreviated LUAR. Earlier work trained it by comparing profiles and encouraging the representation to place samples from the same writer closer together than samples from different writers. The resulting similarity can support either identification task. A verification system can use a pair’s similarity, and an attribution system can use it to rank profiles. The paper also places its use of separate training and evaluation authors in the tradition of research on social media writing, including Learning Invariant Representations of Social Media Users.
How earlier work changed a writer’s style
The paper describes rule-based approaches that alter stylometric properties directly. Such a system can adjust visible features of the text towards selected values. This offers a straightforward way to act on measurements that an identification system might use. Its effects depend on the properties it changes and how much the replacement operations disturb readable prose. Search-based approaches also explored surface changes, using genetic or heuristic search to find edits that scored well under an obfuscation criterion.
Another family of approaches repurposed machine translation. Translating into another language and then back gives the system a reason to reconstruct the sentence in fresh wording. The change in style emerges from the translation process. The paper treats this as a useful comparison because a tool built for another task may already deliver some author masking, and because the translated text can be assessed for preservation of meaning.
Earlier neural approaches treated obfuscation as a kind of style transfer. The paper describes systems trained alongside identification adversaries and systems that learned to reconstruct input while rewarding a change in the encoded style. It also describes work using different English Bible editions as material for studying style obfuscation. These approaches helped motivate the idea that a generator could make more contextual changes than a list of surface edits. Some required special architectures, custom training, or parallel data. KiP explores how much of the rewriting ability can come from a pretrained generator and how much task-specific behavior can be taught through scores.
The authors distinguish their target from style imitation and from rewriting to conceal a demographic attribute. Style imitation gives the system a particular person’s writing style to reproduce. The paper discusses an earlier Reddit experiment that prompted GPT-3 and BLOOM for that purpose. Attribute obfuscation aims to weaken cues about properties such as age or gender. It can use a reward for hiding those properties or pool the styles associated with them. General authorship obfuscation must contend with distinctions among individual writers, including people who may share the attributes that a demographic system would try to hide.
The paper brings these lines of work together around an evaluation question. Previous studies had often tested a proxy, a single identification approach, or a small set of writers with many samples each. KiP asks what happens when the list of potential authors is large, the individual texts are relatively short, and different identification procedures examine the rewrites. That setup makes the quantity of evidence and the kind of evidence explicit parts of what a privacy result means.
The method, step by step
From an ordinary post to a training signal
KiP starts with a generator that can produce a new text from an input. During training, it lets that generator propose several alternatives for the same input. A proposed output can remain close to the source, change the phrasing more extensively, or fail in ways such as repeating itself. The authors score each alternative after it has been produced. This allows the score to consider the rewrite as a whole, including properties that would be difficult to judge from the next word alone.
The privacy signal asks how much the original and the rewrite differ in a learned representation of authorship. A separate semantic similarity signal asks how close the texts are in a representation designed to capture meaning. Other signals concern grammatical acceptability and fluency. The method also uses checks on length and repetition to discourage obvious failures. Different scoring components can favor different candidates. The authors combine them into a reward, which serves as the basis for teaching the generator which outputs to make more probable.
What counts as a good reward is relative to the generator’s other attempts at the same input. If a candidate earns more than the group average, training increases its likelihood. A candidate below the average has the opposite effect. This lets the generator learn even though nobody has supplied a reference rewrite for that post. A pretrained generator supplies the initial ability to compose text, and the reward supplies the criteria for adapting that ability.
How Keep it Private learns from candidate rewrites
The steps in order.
What goes into the training data
The training material comes from English Reddit comments. The REDDIT training split contains 7.12 million comments by 30k authors. The authors group comments by writer and subreddit, then join them until a pseudo-document reaches at least 250 words. In this part of the paper, an author profile refers to one of these assembled samples of a person’s writing. The author label makes the grouping possible. A target text that has already been privatized plays no role in constructing the group.
Before KiP training, the pipeline lowercases the text, removes newline characters, and removes duplicate spaces and punctuation. The authors give this formatting pass a specific role. They want the generator to learn edits that go beyond changing conventions that a simple normalizer can already handle. This step matters because a formatting change can carry some weight in an authorship judgment. A separately evaluated normalizer helps show how much of the task can be accomplished with shallow changes alone.
The use of unsupervised training refers to the privatization stage. Some starting generators have already been taught to paraphrase with paired examples. Reward components also bring in information learned from other datasets, including author labels for the authorship representation and grammatical labels for the acceptability scorer. The adaptation is unsupervised in the sense that its own Reddit examples come without desired obfuscations. The paper identifies the Pushshift Reddit corpus as the source of the comments and reports releasing its experimental scripts on GitHub.
Where the rewrites come from
The authors compare a decoder-only starting point with encoder–decoder starting points. GPT2-medium has 345M parameters and follows the choice made in the text simplification work that inspired KiP. BART-large has 406M parameters. In the encoder–decoder setup, the encoder processes the source and the decoder generates the replacement text. This gives the paper a way to study conditioning on the text being rewritten through the general-purpose BART architecture.
The other starting points have already had paraphrasing practice. BART-Para retains the 406M-parameter BART architecture and is trained on 173.5k meaning-preserving pairs. The sources contribute 149k pairs from QQP, 21.8k pairs from PAWS, and 2.7k pairs from MSR. Training lasts 4 epochs and uses one member of a pair as the input for generating the other. That stage teaches the generator to treat alternative wording as a legitimate target for the same content. The paper’s sources for those examples include PAWS and the MSR sentential paraphrase corpus.
DIPPER-large has 770M parameters. It starts from T5-large and learns from 152k paired examples derived from PAR3, a dataset of aligned translations of novels originally written in languages other than English. The training examples involve synthetic perturbations. DIPPER can then receive control codes that influence the kind and intensity of edits it makes at generation time. A paraphraser with this starting point already has a way to produce substantial changes before receiving any privatization reward. The relevant earlier work provides the T5 text-to-text framework and introduces DIPPER in a study of paraphrasing and detection of generated text.
Each starting point yields a corresponding KiP variant after reward-based fine-tuning. This comparison matters because a reward can only evaluate the candidates the generator actually proposes. A generator with a wider range of plausible paraphrases may offer better opportunities to change authorial cues while preserving a statement. The unfine-tuned paraphrasers also appear in the experiments, so the authors can compare the trained KiP variants with systems that already know how to reword input.
How sampling changes the generator
The method uses a variant of Self-Critical Sequence Training. The paper traces the variant to earlier work on unsupervised simplification, where the generator samples several candidates for a source text. Simplification and privatization both need a generator to change some aspects of expression while retaining the meaning. The sampling scheme gives the authors a way to define a comparison among alternatives that come from the current generator.
The input and output are represented as token sequences.
X = (x₀, …, xₘ)
Here X is the input segment. Each x with a subscript denotes a token in that input. The subscripts give positions, with ₀ indicating the starting position and ₘ referring to the position labeled M at the end. The ellipsis stands for the intervening tokens. A token is a unit used by the generator to represent text. Tokenization
Y = (y₀, …, yₙ)
Here Y is the generated rewrite, and each subscripted y is an output token. ₀ is the starting position and ₙ refers to the ending position labeled N. The output has its own ending position because the rewrite can have a different token length from the source. The ellipsis again covers the intervening positions.
P(Y | X; θ)
P is the probability assigned to the entire sequence Y given the input sequence X. The vertical bar means “conditioned on.” The semicolon separates the conditioned input from θ, the generator’s parameters. The generator works autoregressively, producing the rewrite from left to right. At each position, the probability of the next token is conditioned on the input and the output prefix already generated.
The authors sample a set of candidate sequences for each input. They compute a reward for every candidate and use their mean reward as the baseline for that input. For clarity, the output prefix in the loss below is written as y₍<ᵢ₎, and the end position can vary across samples.
L = Σⱼ₌₁ᵏ (R̄ₛ − Rₛⱼ) Σᵢ₌₀ᴺʲ log p(yᵢˢʲ | y₍<ᵢ₎ˢʲ, X)
L is the loss to minimize. S denotes the set of samples for input X, and Sⱼ identifies the sample indexed by j. The outer Σ adds the terms for the samples from 1 through k, the number of sampled rewrites. R̄ₛ denotes their mean reward, and Rₛⱼ is the reward of the current sample. The inner Σ adds token terms from the starting position 0 through Nʲ, the last position of sample Sⱼ. The token there is indexed by i. p is the generator’s probability of token yᵢˢʲ given the earlier tokens y₍<ᵢ₎ˢʲ and source X. log is the logarithm. The sum of those log probabilities is the log-likelihood of the sampled rewrite.
The order of subtraction in the loss explains the update. A sample with an above-average reward gets a negative coefficient. Increasing its log-likelihood then lowers the loss. For a below-average sample the coefficient is positive, so lowering its log-likelihood can lower the loss. A sample at the mean has no direct contribution through its reward difference. The sampled rewrite supplies the token targets for that update. Its advantage or disadvantage relative to the group supplies the weight.
The same training settings are used across starting generators. The batch size is 4 inputs, with k=8 samples per input in the authors’ 8-SCST setup. The learning rate is 0.0001 and the optimizer is Lamb. Each run uses a single RTXA6000 GPU. Holding the reported settings constant helps make the comparison about the starting generators and their behavior under the KiP objective. The optimizer comes from earlier work on large-batch optimization.
How the reward balances the goals
Privacy. For each candidate, the authors calculate how far the rewrite moves from its input in LUAR’s authorship representation. They choose this comparison because it can be evaluated directly for a pair during training. Running a ranking over the large evaluation pool for each sampled rewrite would be a different operation. The direct comparison instead supplies a score from the original and the proposed replacement.
LUARₛₑₗ𝒻 = 1 − Cₛ(Lₓ, Lᵧ)
LUARₛₑₗ𝒻 is the input–output distance used for privacy. Lₓ is the LUAR embedding of input X and Lᵧ is the embedding of output Y. An embedding is a numerical representation of the text. Cₛ denotes cosine similarity, which compares the directions of the two representations. Subtracting this similarity from 1 gives a higher score when the two representations point in more different directions. A greater distance is the reward’s preferred outcome.
Meaning. The authors run a second comparison in a space intended to represent sentence meaning. This time the reward favors similarity. The distinct representations give the generator two different objectives for the same pair of texts. A candidate can be rewarded for moving away in the authorship representation while staying close in the semantic one. The meaning signal uses Sentence-BERT, abbreviated SBERT.
SBERTₛₑₗ𝒻 = Cₛ(Sₓ, Sᵧ)
SBERTₛₑₗ𝒻 is the score for similarity between the source and its rewrite. Sₓ and Sᵧ are their respective SBERT embeddings. Cₛ again denotes cosine similarity. The score increases as the embeddings align more closely. The authors also describe a coverage check inherited from the simplification procedure. It uses the candidate rewrite to help fill gaps in the original, providing another way to ask whether the rewrite carries information from the source.
Soundness. The paper uses a RoBERTa-large acceptability scorer trained on CoLA, a dataset with binary linguistic annotation for grammatical acceptability. The training signal compares the judgments on the two texts. This design is relevant for forum writing, where the source can itself receive a negative acceptability judgment.
CoLAₛₑₗ𝒻 = CoLA(X) == CoLA(Y)
CoLA(X) is the acceptability judgment on the source, and CoLA(Y) is the corresponding judgment on the rewrite. The == operator tests whether they agree. CoLAₛₑₗ𝒻 is the resulting agreement indicator. Agreement can occur when the scorer accepts both texts or when it rejects both. The paper also describes a fluency reward that uses a generator likelihood score and a discriminator trained adversarially. That reward provides a separate soundness signal alongside the acceptability judgment.
Length and repetition. The authors use binary checks for obvious degeneration. The brevity check applies when the rewrite falls outside the reported length-ratio range of 0.8–1.4. The repetition check applies when an output repeats a 3-gram. These checks are intended to prevent the generator from learning from candidates that perform well on some graded measures while being markedly too short, too long, or repetitive. A single length comparison or repetition test has a narrower role than a judgment of overall rewrite quality.
Combination. The authors give the privacy and meaning terms different weights and add logarithmic penalties for the checks. The displayed objective is as follows.
Rₛ = γ₁ · log(LUARₛ) + γ₂ · log(SBERTₛ) + γ₃ · log(Fluencyₛ) + γ₄ · log(CoLA) + Σᵢ₌₁ᵍ log(1 − Gᵢˢ)
Rₛ is the combined score for a sampled rewrite S. LUARₛ is its authorship-distance score, SBERTₛ its semantic similarity score, Fluencyₛ its fluency score, and CoLA the acceptability component. The γ terms are weights. The authors chose γ₁ = 3, γ₂ = 2, γ₃ = 1, and γ₄ = 1 after an early grid search. The centered dots indicate multiplication, the plus signs add the terms, and log takes the logarithm. Σ adds the check terms over the index i from 1 to g, the number of checks. Gᵢˢ is the binary indicator that check i flags the sample. The argument 1 − Gᵢˢ is 1 for a passing check and 0 for a flagged one.
The paper describes the intended effect of a triggered check as zeroing the candidate’s reward. In the displayed logarithmic expression, the corresponding contribution is the logarithm of zero. The formula therefore describes the penalty’s intent more clearly than its finite numerical handling. The coverage check is described in the method but has no separate term in the displayed reward. The central mechanism is the comparison of combined rewards among attempted rewrites, with the authorship, meaning, and soundness signals serving different purposes in that comparison.
Experiments and results
What the attribution and verification systems see
The main REDDIT evaluation uses writing from authors held out of KiP training. The query collection contains 1600 comments from 100 authors, with 16 comments per author. Each author’s comments are grouped to form a query profile. The authors call these the “needles.” The candidate collection, or “haystack,” consists of more than 1 million comments from a pool of 68k authors, again with 16 comments per author. When writers are present in both collections, the comments used to build their query and candidate profiles are different. The test asks whether two selections of somebody’s writing resemble one another after the query side has been rewritten.
In attribution, LUAR compares a query to the candidate profiles and ranks them by similarity. The correct answer is the original writer. The large candidate pool matters because a method can weaken the true match enough to move it below similar-looking candidates. An unchanged query establishes how effectively LUAR performs that search when it has access to the author’s original wording.
The verification test uses a pair containing a query profile and an unchanged candidate profile by the same person. The verifier, VERIF_CNG, relies on character sequences. It was trained on an even mixture of profiles with 1, 2, 4, 8, and 16 comments so that the study could assess different amounts of writing using the same verifier. All the test pairs described for this evaluation share an author. The result measures how well the verifier retains that judgment after the query has been rewritten and allows for uncertainty in its decisions.
The separation between training authors and evaluation authors matters to the redesign of the text itself. An improvement on this test can reflect rewriting behavior learned across the training corpus and applied to people whose writing the KiP training split did not contain. The separation between reference and query comments matters to the identification side. The attributor or verifier must relate distinct writing samples, so the unchanged baseline already involves variation within each author’s writing.
How the scores should be read
Recall-at-8, written R@8, asks whether the correct author is among the first 8 candidates for a query. The rate aggregates this outcome over query profiles. A lower score means fewer successful shortlists for the attributor. Mean reciprocal rank, or MRR, also rewards placing the true writer near the top, with more credit for earlier ranks. It can distinguish two systems that put the right author on the shortlist equally frequently but tend to give that author different positions.
MRR = (1/n) Σᵢ₌₁ⁿ (1/rankᵢ)
MRR is the mean reciprocal rank, n is the number of query profiles, and i indexes those profiles. rankᵢ is the position at which the true author appears for query i. The Σ adds the reciprocal ranks across all queries, and the factor 1/n takes their average. The paper describes a value of 1 as perfect retrieval and a value of 0 as the case where the correct writer is never retrieved. The result tables report the retrieval scores on their displayed scale.
The verification measure is CNG c@1. The paper uses it to account for uncertain decisions as well as correct judgments in the same-author test. A lower value in this setup means weaker verification of true pairs. The authors also report LUAR distance between the source and the rewrite. A larger distance indicates greater separation under LUAR’s representation. The distance describes one pair of texts at a time. The attribution ranking can additionally depend on how the rewrite relates to all the other candidates.
The automatic meaning score is self-SBERT, the similarity between source and rewrite in the same kind of semantic representation used for the reward. For soundness, the paper uses CoLA-out, an acceptability score on the output, and LenRatio, the output’s character length relative to the source’s. CoLA-out answers a different question from the training-time agreement indicator. The length measure serves as a check for expansions or compressions that the other measures can miss. The copy control has a reported LenRatio of 100.0, which provides a reference for interpreting the values in the results.
What the comparison systems contribute
Copy returns the input unchanged. It anchors the privacy tests in what the identification procedures can do on ordinary writing. The normalizer alters formatting and duplicate characters. Its role is to test how much change in identification can come from straightforward changes to presentation. The paper gives it a different role from the trained generators, whose objective is to learn which alternative expressions balance several measurements.
Round-trip translation, called RTMT, translates English to German and back to English with a multilingual translation system. A separate version samples 4 outputs for an input and uses LUAR to select among them. These baselines isolate two ways of getting the rewrite. The ordinary round trip accepts the output of a general translation procedure. The rescored round trip uses an authorship signal during selection. The translation tool is based on multilingual denoising pretraining.
Stylo makes edits intended to match pre-defined stylometric properties. The prompted BLOOM-7b baseline asks for a neutral restatement, using a prompt adapted from earlier work on author style imitation. Its reported sampling temperature is 0.7 and its top-p setting is 1.0. The authors use the generation up to its end-of-sequence token and report running this particular setting without a decoding-parameter comparison. That makes the baseline a test of the specific neutral-rewrite setup.
BART-Para and DIPPER enter the comparison in their paraphrasing forms as well as through their KiP variants. The paper evaluates DIPPER at 20L, 20O and 60L, 60O. Those labels refer to settings for the lexical and ordering controls. They allow the authors to compare different edit intensities from the same paraphraser. The unadapted paraphrasers are particularly informative because their ability to change expression already overlaps with the requirements of privatization.
A large drop in Reddit attribution
The LUAR attributor achieves 93.0 R@8 and 83.0 MRR on the unchanged Reddit queries. This gives the rewrite methods substantial room to affect the result. The 93.0 score describes how often the original writer makes it into the shortlist among the 68k candidates. It is the reference point for how much of that retrieval success remains after each type of rewrite.
Author retrieval on the REDDIT evaluation set by recall-at-8
KiP-DIPPER makes the true writer hardest to retrieve among the systems shown.
The numbers
| System or setting | R@8 % |
|---|---|
| Copy | 93.0 |
| Normalizer | 30.0 |
| Round-trip MT | 56.0 |
| LUAR-scored RTMT | 51.0 |
| Stylo | 8.0 |
| BLOOM-7b | 3.0 |
| BART-Para | 18.0 |
| DIPPER 60L, 60O | 10.0 |
| KiP-BART-Para | 4.0 |
| KiP-DIPPER (this paper) | 2.0 |
The normalizer’s 30.0 R@8 is striking beside round-trip translation’s 56.0. The authors use this result to show why a basic formatting control deserves a place in the comparison. A transformation can alter the clues used for retrieval while leaving most of the source expression intact. On the same test, the normalizer has an SBERT score of 99.0. Round-trip translation scores 89.0, with an SBERT score of 84.4 for the variant that picks among samples with LUAR. The rescored translation improves the attribution result to 51.0 R@8. It also has a higher LUAR distance of 23.0, compared with 17.7 for the ordinary round trip. The metrics show where that form of selection helped and how the average semantic score moved alongside it.
Stylo gives the Reddit attributor an MRR of 6.0 and a recall of 8.0. Its semantic similarity is 90.0. Its output acceptability is 49.0, revealing an important cost that the meaning measure leaves out. For example, the paper shows Stylo substituting a multiword description of an aircrew role for a concise way of referring to an expert at navigation. Other examples change number formatting or introduce awkward spacing. Such edits can preserve much of the vocabulary or subject matter and still produce prose a person would be unlikely to use.
BLOOM-7b has a Reddit R@8 of 3.0 and an MRR of 2.0. It also has an SBERT score of 44.3 and a LenRatio of 2613.8. The authors observe frequent repetition, including a sample that continues restating part of a comment. Its CoLA-out score is 94.2, which shows why a sentence-level acceptability judgment gives an incomplete picture of a long output. That combination makes it possible to see the difference between disrupting author retrieval and supplying a usable restatement of what the writer said.
The paraphrasing controls are stronger comparisons on the joint task. BART-Para obtains 18.0 R@8 and 15.0 MRR, with SBERT similarity of 82.3. DIPPER at 20L, 20O scores 16.0 R@8 and 12.0 MRR. At 60L, 60O it scores 10.0 R@8 and 6.0 MRR, with an SBERT score of 83.4. The corresponding semantic score for 20L, 20O is 84.5. The settings demonstrate how much attribution can already change when a paraphraser has been trained to recast the way a passage is expressed.
The KiP variants trained from paraphrasers achieve the strongest retrieval reductions among the KiP systems. KiP-BART-Para obtains 4.0 on both R@8 and MRR. KiP-DIPPER obtains 2.0 on both measures. Their SBERT values are 77.1 and 70.1, respectively. The unfine-tuned paraphrasers retain higher semantic similarity on this metric. The gain in privacy therefore comes with a measurable change in resemblance to the original. Within the KiP family, the variant with the best attribution result also has the lower of the two paraphraser-based meaning scores.
Verification changes the comparison
Attribution benefits by itself say little about the outcome for a known pair of samples. On the full Reddit profiles, the character-based verifier has a c@1 score of 71.0 for Copy. For the ordinary round trip it has 71.8, and with LUAR selection it has 73.5. Both round-trip methods lower retrieval scores while leaving the verifier’s score close to its unchanged level. This is a concrete instance of the two evaluation procedures giving different judgments about the same intervention.
Same-author verification on the REDDIT evaluation set by CNG c@1
Paraphraser-based KiP variants reduce verification more than their unadapted counterparts.
The numbers
| System or setting | CNG c@1 |
|---|---|
| Copy | 71.0 |
| LUAR-scored RTMT | 73.5 |
| BLOOM-7b | 56.8 |
| BART-Para | 62.4 |
| DIPPER 60L, 60O | 62.6 |
| KiP-GPT2 | 72.8 |
| KiP-BART | 55.9 |
| KiP-BART-Para | 46.6 |
| KiP-DIPPER (this paper) | 42.3 |
KiP-GPT2 is a particularly revealing comparison. It achieves Reddit R@8 of 9.0 and an SBERT score of 78.6, while CNG c@1 reaches 72.8. Its LenRatio is 478.2. The authors find that it sometimes extends a response into a fluent tangent connected to the subject of the original. Such an output may retain vocabulary and enough topical context for a high semantic score. It can also move the authorship representation by introducing substantial new material. The verifier remains effective on this variant, and the output may no longer express the writer’s intended statement within a comparable amount of text.
One example starts from a comment weighing different ways to describe the proportion of true and partly true statements. KiP-GPT2 adds an extended argument and speculation about other people’s views. The source topic remains recognizable, which helps explain why topical closeness can coexist with fidelity problems. The paper’s examples also show errors in shorter rewrites. A paraphraser-based variant can shift how claims are divided between false and partly true, even while the surrounding structure resembles the source. These are consequential substitutions because the proportions are the content of the argument.
KiP-BART has a LenRatio of 146.3, a more restrained result than KiP-GPT2. Its CNG c@1 is 55.9. Its R@8 and MRR are 11.0 and 9.0, respectively, which are higher than KiP-GPT2’s corresponding retrieval scores of 9.0 and 6.0. The paper’s broad discussion favors BART over GPT2 for improved behavior across the tests. The reported metrics show where that judgment comes from. BART has the stronger verification result and generates less elongated output, while GPT2 has the stronger attribution result on this particular comparison.
Starting with a paraphraser brings the average character length closer to the source in the Reddit test. KiP-BART-Para has a LenRatio of 89.7 and KiP-DIPPER has 93.4. Their CoLA-out values are 61.5 and 63.3. These acceptability scores give a more mixed account than the length measure. The paraphraser-based variants bring down the verifier’s score and keep the average length nearer the input, with some decline in automated acceptability relative to their unfine-tuned starting points.
LUAR distance also gives a different ordering from the actual identification scores. BLOOM-7b has a distance of 46.9, with 45.2 for KiP-DIPPER and 42.6 for KiP-BART-Para. KiP-DIPPER still has the lowest verification score in the main table. KiP-GPT2 obtains a larger LUAR distance than KiP-BART, 39.7 compared with 35.4, while the character verifier has more success with KiP-GPT2. These comparisons give the training proxy a concrete interpretation. It measures movement in one representation. The report on identification depends additionally on the choice of procedure and what information that procedure can use.
Human judgments of the rewrites
The human study asks whether a person reading a source and its rewrite recognizes a paraphrase and finds it grammatical. It covers Stylo, RTMT, KiP-BART-Para, and KiP-DIPPER. The authors use 99 outputs per system from the Reddit evaluation, giving 396 outputs in total. A reader assigns a score of 0 for a non-paraphrase, 1 for a paraphrase judged ungrammatical, or 2 for a grammatical paraphrase. The scale makes a grammatical restatement the strongest outcome. It also allows an awkward output to receive credit for carrying the original meaning. The paper relates this design to earlier paraphrase validation, including Syntactically Controlled Paraphrase Networks.
The study uses English-fluent participants recruited through Prolific. The appendix says each source–output pair received 3 annotations and the majority vote supplied the final category. The paper gives two different participant totals. The results section reports 36, while the appendix and its instructions figure report 27. The totals of system outputs and ratings per pair describe different aspects of the setup and can be reported independently of that discrepancy.
KiP-DIPPER yields the most grammatical paraphrases among the systems in the study. That is notable given its position on the automatic metrics. It has a lower SBERT value than KiP-BART-Para on the Reddit test, yet its rated outputs more frequently satisfy the study’s combined test of grammaticality and paraphrase validity. The assessments aggregate different evidence. SBERT reports similarity for the evaluation outputs, while the human study asks whether a particular pair qualifies as a meaningful and grammatical restatement. The study supplies direct evidence about the quality of the assessed rewrites, alongside the separate automated measurements of author identification.
A second domain with longer passages
The BLOG evaluation uses 400 snippets from 200 authors, with 2 snippets per author in the query collection. The paper reports 211 words per BLOG snippet and 37 words per Reddit comment. Blog snippets accordingly give the generator longer individual passages to rewrite, while the profiles are assembled from fewer pieces of writing. The candidate pool is also smaller than on Reddit. The authors use the same attribution procedure, so the result checks whether the Reddit-trained approach remains effective in another writing domain.
In BLOG attribution, Copy reaches 51.0 R@8 and 41.0 MRR. The unfine-tuned BART-Para yields 8.0 R@8 and 6.0 MRR. DIPPER at 60L, 60O yields 10.0 R@8 and 5.0 MRR. KiP-BART-Para reaches 4.0 R@8 and 5.0 MRR, while KiP-DIPPER reaches 1.0 R@8 and 0.0 MRR on the table’s reported scale. As on Reddit, the trained paraphrasers can markedly weaken retrieval compared with the unchanged control.
The BLOG verification scores remain much closer together. Copy has a CNG c@1 of 89.4, KiP-BART-Para scores 87.6, and KiP-DIPPER scores 86.1. In this test the verifier retains much of its ability to identify the matching pairs. Meaning scores also fall for the trained paraphrasers. The BLOG test reports SBERT of 76.5 for BART-Para and 69.9 for KiP-BART-Para. For DIPPER at 60L, 60O the score is 90.6, and for KiP-DIPPER it is 64.9. The output length, measured by LenRatio, reaches 126.3 for KiP-BART-Para and 163.9 for KiP-DIPPER. Those scores put the attribution result in context. The domain transfer produces a measurable retrieval benefit, while the evidence for a similar balance of verification resistance, meaning, and length is weaker.
What the ablations show
What happens when the training reward changes
The reward ablation removes components to test how they affect the output. The detailed table identifies KiP-BART-Para as the complete system and reports variations that remove the guardrails, fluency, meaning, or privacy. It compares them on LUAR distance, SBERT similarity, and CoLA. The numbers in this table use decimal notation. They describe the immediate qualities of the input–output relationship and the output’s acceptability, so the table is most informative when its metrics are read together.
The full reward achieves LUAR distance of 0.426, SBERT similarity of 0.771, and CoLA of 0.615. Removing the guardrails gives the largest LUAR distance in the table, 0.632. At the same time, SBERT similarity falls to 0.378 and CoLA to 0.383. This is the clearest case where improving the privacy proxy gives a misleading picture of the joint task. The rewrite can move substantially in the authorship representation by failing to carry information from the source or by becoming poorly formed. Length and repetition checks help channel training toward candidates that remain feasible as rewrites.
Removing the fluency term yields LUAR distance of 0.246, SBERT similarity of 0.818, and CoLA of 0.608. The semantic score is higher than for the complete reward, the acceptability score is close, and the authorship distance is much lower. This result gives the fluency term an empirical role in the balance reached by KiP-BART-Para. The output reflects the interaction of the components during training. A fluency term changes which samples receive a strong combined reward, and the samples then change what the generator is likely to produce. Its influence can therefore appear in the authorship distance as well as in the direct measure of acceptability.
Removing the meaning term produces SBERT similarity of 0.677, along with LUAR distance of 0.265 and CoLA of 0.756. The semantic score falls, as the role of that reward suggests. The other measures show that the generator reaches a different compromise. CoLA improves substantially and the authorship distance also falls. A generator can offer well-formed text that retains less of the source meaning, and the resulting text can still remain closer to the author in LUAR’s representation. The table supports the contribution of the meaning component to semantic similarity in this configuration.
Removing the privacy term has a different signature. The ablated system achieves LUAR distance of 0.384, SBERT similarity of 0.812, and CoLA of 0.591. The semantic score improves and the authorship distance weakens relative to the full reward. This comparison is consistent with the privacy term creating pressure to leave some of the underlying representation of the original behind. The lower acceptability score also shows that the tradeoff extends beyond a simple choice between privacy and meaning.
The appendix’s prose gives a conflicting direction for the privacy removal. It describes an improvement in the privacy evaluation with weaker SBERT, while the displayed table assigns lower LUAR distance and higher SBERT to removal of the privacy term. The numerical interpretation here follows the labeled rows. The table’s broader evidence is that each removal changes the joint outcome and that the full reward preserves more balance than the high-distance system without guardrails. Since the table reports distance, similarity, and acceptability, it supports a narrower conclusion than an attribution and verification rerun for each ablation would support.
What changes when the starting point changes
The starting-generator comparison is a controlled analysis alongside the direct reward ablation. The same reported KiP training settings are applied to generators with different architectures and different prior experience of paraphrasing. GPT2 sometimes continues beyond the content of the source, and BART curbs that tendency. The paraphrasing versions have the strongest verification results and much shorter average output than KiP-GPT2 on Reddit. The paper’s examples and length results establish the practical importance of the starting point, even when all the variants receive rewards for the same goals.
The BART pair is especially helpful for interpreting what paraphrasing preparation contributes. KiP-BART and KiP-BART-Para share a BART starting architecture, with the latter receiving the paired paraphrasing stage. On Reddit, KiP-BART-Para is stronger on attribution and verification and has a higher SBERT score than KiP-BART. Its output acceptability is lower. The comparison gives the paper evidence that familiarizing the generator with paraphrases can help it make author-masking changes while retaining more of the input’s content under the semantic metric. Comparison with DIPPER extends the result to a different starting generator with its own training sources and edit controls.
The contrast between the trained and unadapted paraphrasers answers a related question. The unadapted systems already make authors harder to retrieve. Applying the KiP objective further weakens retrieval, produces a larger reduction in Reddit verification, and lowers the measured semantic similarity. Changing the starting point and changing the reward therefore do different work. Paraphrasing preparation supplies ways to restate a passage. The privatization objective puts additional pressure on which restatements the generator favors.
What changes when the evaluator has more writing
The profile-length analysis holds the tested rewrite procedure fixed while varying how many comments enter the profile. The authors compare KiP-BART-Para with Copy, Stylo, and round-trip translation over 1, 2, 4, 8, and 16 comments. The unmodified candidate side is controlled for the same profile size. In verification, it comes from the same author as the query. In attribution, the attributor ranks the entire candidate pool. This probes what happens when an identification procedure can accumulate evidence across several separate posts.
For attribution, the change in unchanged profiles is dramatic. Copy goes from 2% R@8 with 1 comment to 93% R@8 with 16 comments. KiP-BART-Para goes from 0% R@8 with 1 comment to 4% R@8 with 16 modified comments. Additional writing gives LUAR much more usable evidence in the unchanged condition. The increase on rewritten text is much smaller. A short-profile result by itself would conceal much of this difference because even the unchanged single-comment profiles give the attributor little success.
For verification, the advantage of rewriting appears at 2 and 4 comments and closes by 8 comments in the authors’ analysis. At longer lengths VERIF_CNG again recognizes the rewritten samples as coming from the same person as the unchanged reference profile. The exact conclusion is about this verifier, this KiP variant, and this construction of the profile. It shows an important failure mode for a system used on a sequence of posts. Some cues that carry little weight in a short sample can accumulate into stronger evidence of a match across messages.
The aggregate verification table and the profile-length curve describe different comparisons. The table gives results for the main evaluation across the system variants. The curve varies the amount of evidence for a subset of methods and shows where the relative benefit of KiP-BART-Para diminishes. Read together, they show why a successful reduction in a reported verification score leaves the amount of available writing as a meaningful part of any claim about privacy.
Limitations
Limits identified by the authors
The authors restrict their claims to the writing and identification settings they assess. Their evaluations use English Reddit and blog text of short to medium length. They suggest that author-labeled data could make training possible in a new domain, such as fanfiction. That is a proposed extension. Several reward components use systems trained for English, and the paper calls for evaluation across a broader range of settings before drawing conclusions about portability.
The study focuses on automated attribution and verification. The human evaluation addresses the quality of paraphrases, so it provides evidence about how readable and faithful certain outputs are to people. The authors leave manual authorship analysis open. Different readers, including people with specialized knowledge of a writer or expertise in authorship analysis, could use evidence that the automated systems handle differently. The paper’s human results concern meaning and grammaticality under the study’s labeling task.
The authors also discuss what can happen when identification tools assign a rewritten text to somebody else. Lower true-author retrieval can coincide with a confident wrong attribution. The person named by that result may have had no involvement with the writing. The reported retrieval measures center on the true author’s ranking and leave the identity and circumstances of other selected candidates unevaluated. The ethics discussion also recognizes that author obfuscation can be used both to protect vulnerable writers and to conceal responsibility for harmful messages. The authors present their system for research.
Limits apparent from the experiments
Privacy in these experiments is measured through particular decisions made from text. The candidate retrieval procedure uses LUAR, whose representation also supplies the privacy reward. A substantial improvement against this attributor establishes resistance in a test related to the training signal. The character-based verifier adds independent evidence because it uses a different representation and task. Its smaller changes in several settings, including the blog evaluation, show why results for LUAR retrieval alone would give an incomplete account.
The same-author verification test measures one side of a verifier’s behavior. Each pair has a true match before the rewrite. A decrease in c@1 shows what rewriting does to recognition of those matches under the study’s uncertainty-aware measure. Behavior on genuinely different-author pairs falls outside this evaluation. So do searches where a queried writer has no entry in the candidate pool and where a practical system has to decide whether to attribute the text at all. The large pool tests a difficult ranking setting in which the true candidate is available.
The analysis using longer profiles directly tests accumulation across several posts, but it follows one KiP variant against one character verifier. The finding supports a vulnerability to longer profiles in that setup. The paper leaves open whether the same length pattern holds for its other KiP variants, for a verifier that uses another kind of representation, or for a reference collection assembled in a different way. The amount of text and how it has been grouped both affect the evidence available to an identifier.
The blog comparison also changes several features together. The domain changes, the snippets are individually longer, profiles contain fewer snippets, and the candidate pool is smaller. The experiment establishes how the system behaves in that combination. It cannot isolate a pure effect of document length or a pure effect of switching away from Reddit. The separate Reddit profile experiment varies the number of messages within one domain and is the more direct source of evidence about aggregating comments.
The quality measurements each focus on a distinct property. SBERT can reflect shared subject matter even when a rewrite introduces an unsupported tangent or changes a quantity. The displayed examples give those possibilities concrete form. CoLA-out responds to grammatical acceptability, and LenRatio summarizes output size. A rewrite can earn a favorable score on either and still mishandle the author’s meaning. The human study addresses this gap for a subset of generators and outputs. Its single ordered label joins grammaticality and meaning, and the conflicting participant totals leave the study size uncertain at the participant level.
Finally, the paper evaluates obscuring authorial clues after rewriting the text. Account records, posting patterns, and identifying details in the content are outside the reported identification procedures. The authors manually review the evaluation material to mask personally identifying information. That step makes the experiments easier to interpret as tests of authorship signals in the writing. It leaves performance on posts that disclose the author through their subject matter or other identifying information unresolved. The demonstrated protection is therefore specific to the information and decisions represented by the tests.
What came after
There are no later works to discuss in this section.
Cite
Cite as Calvin Bao and Marine Carpuat. 2024. Keep it Private: Unsupervised Privatization of Online Text. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers).
@inproceedings{bao2024keep,
title = {{Keep it Private: Unsupervised Privatization of Online Text}},
author = {Calvin Bao and Marine Carpuat},
booktitle = {Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)},
year = {2024},
doi = {10.18653/v1/2024.naacl-long.480},
url = {https://doi.org/10.18653/v1/2024.naacl-long.480}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bao-2024-keep-it-private-unsupervised-privatization/