TAROT: Task-Oriented Authorship Obfuscation Using Policy Optimization Methods

Gabriel Loiseau, Damien Sileo, Damien Riquet, Maxime Meyer, Marc Tommasi

Abstract

Authorship obfuscation aims to disguise the identity of an author within a text by altering the writing style, vocabulary, syntax, and other linguistic features associated with the text author. This alteration needs to balance privacy and utility. While strong obfuscation techniques can effectively hide the author's identity, they often degrade the quality and usefulness of the text for its intended purpose. Conversely, maintaining high utility tends to provide insufficient privacy, making it easier for an adversary to de-anonymize the author. Thus, achieving an optimal trade-off between these two conflicting objectives is crucial. In this paper, we propose TAROT: Task-Oriented Authorship Obfuscation Using Policy Optimization, a new unsupervised authorship obfuscation method whose goal is to optimize the privacy-utility trade-off by regenerating the entire text considering its downstream utility. Our approach leverages policy optimization as a fine-tuning paradigm over small language models in order to rewrite texts by preserving author identity and downstream task utility. We show that our approach largely reduces the accuracy of attackers while preserving utility. We make our code and models publicly available.

Introduction

In the era of Large Language Models (LLMs), maintaining anonymity goes beyond removing names or addresses. Every writer possesses a "stylistic fingerprint"—unique patterns in syntax, vocabulary, and sentence structure—that can be exploited by AI-powered authorship attribution models to de-anonymize individuals. Traditional Authorship Obfuscation (AO) techniques typically rely on minor edits like synonym swapping, which often fail to fool modern attackers or, if applied too aggressively, destroy the text's utility for downstream tasks like sentiment analysis or topic classification.

TAROT (Task-Oriented Authorship Obfuscation) addresses this challenge by reframing obfuscation as a generative task. Instead of surgical edits, TAROT regenerates the entire text to optimize the trade-off between privacy (hiding the author) and utility (preserving the text's functional value).

Methodology

TAROT moves away from rule-based editing toward full-text regeneration. The framework initializes with a text simplification model (based on GPT-2 medium), which naturally strips away idiosyncratic stylistic markers while maintaining the core message. The model is then fine-tuned using Reinforcement Learning (RL) through two distinct policy optimization methods:

  1. TAROT-PPO: Utilizes Proximal Policy Optimization to maximize a dual-reward function.
  2. TAROT-DPO: Employs Direct Preference Optimization to rank generated text versions, teaching the model to prefer outputs that better balance privacy and utility.
The architectures of TAROT-PPO and TAROT-DPO, illustrating the reinforcement learning and preference optimization loops.

The Dual-Reward System

The core of TAROT's optimization is a reward model consisting of two components:

  • Utility Reward ($R_{util}$): Uses General Text Embeddings (GTE) to ensure the rewritten text remains semantically consistent with the original.
  • Privacy Reward ($R_{priv}$): Leverages the Universal Authorship Representation (LUAR) model. It rewards the generator when the rewritten text's style embedding is significantly distant from the original author's stylistic profile.

Experimental Results

The models were evaluated across three benchmarks: IMDb62 (movie reviews), the Blog Authorship Corpus (BAC), and the Extended-Brennan-Greenstadt (AMT) dataset. TAROT demonstrated a superior ability to reduce attacker accuracy while maintaining high utility compared to baselines like SFT (Supervised Fine-Tuning) or GPT-3.5.

Comparison of Attacker Accuracy (Privacy) and Utility Accuracy across various obfuscation methods.

As shown in the results, TAROT-DPO achieved the most significant privacy gains. On the IMDb dataset with 20 authors, an attacker's identification accuracy plummeted from 99.8% on original texts to just 17.3% after obfuscation. Crucially, utility remained robust; sentiment analysis accuracy on the same dataset only dropped from 79.5% to 60.7%, and can be further improved by retraining utility models on the obfuscated data.

Discussion and Conclusion

TAROT proves that full-text regeneration via policy optimization is a highly effective strategy for authorship obfuscation. By operating in an unsupervised manner, it removes the need for expensive parallel datasets of original and obfuscated text. Furthermore, the method shows resilience to adversarial training, where attackers attempt to train on obfuscated samples to reverse the process.

Future work will explore scaling TAROT to larger language models to further minimize context loss and investigating methods to mitigate potential hallucinations in long-form documents. Despite these challenges, TAROT represents a significant step forward in protecting stylistic privacy without sacrificing the practical value of shared text data.

Summary updated

BibTeX
@misc{loiseau2024tarot,
  author = {Gabriel Loiseau and Damien Sileo and Damien Riquet and Maxime Meyer and Marc Tommasi},
  title = {{TAROT: Task-Oriented Authorship Obfuscation Using Policy Optimization Methods}},
  year = {2024},
  eprint = {2407.21630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.21630},
}
Figure