[Paper Review] PETGEN: Personalized Text Generation Attack on Deep Sequence Embedding-based Classification Models
PETGEN is an end-to-end adversarial text generation framework that crafts personalized, context-aware posts to evade deep learning-based user sequence classification models. By leveraging user history, writing style, and topical relevance, PETGEN significantly reduces classifier performance—achieving the lowest F1 score and highest attack success rate while generating higher-quality, more realistic text than five baselines on Yelp and Wikipedia datasets.
What should a malicious user write next to fool a detection model? Identifying malicious users is critical to ensure the safety and integrity of internet platforms. Several deep learning-based detection models have been created. However, malicious users can evade deep detection models by manipulating their behavior, rendering these models of little use. The vulnerability of such deep detection models against adversarial attacks is unknown. Here we create a novel adversarial attack model against deep user sequence embedding based classification models, which use the sequence of user posts to generate user embeddings and detect malicious users. In the attack, the adversary generates a new post to fool the classifier. We propose a novel end-to-end Personalized Text Generation Attack model, called PETGEN, that simultaneously reduces the efficacy of the detection model and generates posts that have several key desirable properties. Specifically, PETGEN generates posts that are personalized to the user's writing style, have knowledge about a given target context, are aware of the user's historical posts on the target context, and encapsulate the user's recent topical interests. We conduct extensive experiments on two real-world datasets (Yelp and Wikipedia, both with ground-truth of malicious users) to show that PETGEN significantly reduces the performance of popular deep user sequence embedding-based classification models. PETGEN outperforms five attack baselines in terms of text quality and attack efficacy in both white-box and black-box classifier settings. Overall, this work paves the path towards the next generation of adversary-aware sequence classification models.
Motivation & Objective
- To investigate the vulnerability of deep user sequence embedding-based classification models to adversarial attacks via text generation.
- To develop a method that generates posts personalized to a user’s writing style, historical behavior, and recent interests.
- To create a text generation attack that effectively fools sequence-based classifiers while maintaining high text quality and contextual relevance.
- To evaluate the robustness of existing detection models under realistic adversarial conditions using real-world datasets.
Proposed method
- PETGEN employs an end-to-end sequence-to-sequence text generation model conditioned on user history, target context, and recent posts.
- It integrates a context-aware generator that aligns generated text with the user’s writing style and topical interests.
- The model uses a multi-task learning objective combining attack success, style similarity, and contextual relevance to optimize post generation.
- It incorporates a sequence-aware attention mechanism to capture historical post relevance and improve contextual coherence.
- The attack is formulated as a constrained optimization problem to minimize the classifier’s F1 score while maximizing text quality and personalization.
- PETGEN is trained and evaluated on two real-world datasets—Yelp and Wikipedia—using ground-truth labels for malicious users.
Experimental results
Research questions
- RQ1How effective is PETGEN in reducing the F1 score of deep user sequence classification models in both white-box and black-box settings?
- RQ2To what extent does PETGEN generate text that is personalized to the user’s writing style and recent interests?
- RQ3How does PETGEN compare to existing attack baselines in terms of text quality and attack success rate?
- RQ4How consistent is the sentiment of generated posts with the original user posts?
- RQ5Which components of PETGEN contribute most to its performance in attack efficacy and text quality?
Key findings
- PETGEN reduced the F1 score of the fake reviewer detection model on the Yelp dataset to the lowest value among all methods, achieving the highest attack success rate.
- PETGEN achieved the highest BLEU score (4.2) and target context similarity (0.68) among all baselines, indicating superior text quality and relevance.
- In human evaluation, 58.33% of posts generated by PETGEN were judged more realistic than those from Malcom, the state-of-the-art baseline.
- 70.8% of PETGEN-generated posts maintained the same sentiment polarity as the original user posts, ensuring consistency with user behavior.
- The ablation study confirmed that all components—attack objective, style modeling, and context relevance—significantly improved attack performance and text quality.
- PETGEN outperformed five baselines across all metrics in both white-box and black-box settings, demonstrating robust generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.