Abstract
Modern recommender systems increasingly leverage textual metadata to address the "cold-start" problem for new items. However, this reliance introduces a significant security vulnerability. We present Adversarial Text Rewriting (ATR), a framework that enables malicious actors to manipulate product descriptions using Large Language Models (LLMs) to unfairly inflate search rankings. By optimizing text for recommendation algorithms while preserving human readability, ATR can significantly promote target items across diverse user bases, posing a stealthy and cost-effective threat to system integrity.
1. Introduction
Text-aware recommender systems, common in e-commerce and streaming platforms, analyze item titles and descriptions to provide personalized suggestions. This is particularly crucial for new items lacking historical interaction data. Unlike traditional "shilling attacks" that require numerous fake user profiles, Adversarial Text Rewriting (ATR) exploits the attacker's direct control over item descriptions. By subtly rewriting these descriptions, an attacker can trick the underlying recommendation model into ranking a target item higher for all users without alerting human moderators to the manipulation.
2. Methodology
The ATR framework employs two primary strategies tailored to the attacker's computational resources:
2.1 ATR-2FT: Two-Phase Fine-Tuning
Designed for smaller, open-source models (e.g., OPT-350M), ATR-2FT consists of:
- Domain-adaptive Fine-tuning: The model is first trained on a corpus of product descriptions from the target domain to capture the appropriate linguistic style and vocabulary.
- Rank-boosting Fine-tuning: The core of the attack involves a differentiable Rank Promotion Loss. The model is optimized to generate text that maximizes the target item's recommendation score across a representative set of users, effectively performing gradient-based optimization for ranking.
2.2 ATR-ICL: In-Context Learning
For larger LLMs like Llama-2 or GPT-4, where fine-tuning is cost-prohibitive, ATR utilizes "few-shot" prompting. By providing a few successful adversarial examples generated by the smaller ATR-2FT model, the larger LLM learns to "polish" target descriptions. This approach combines the ranking-optimized logic of the smaller model with the superior fluency and natural language generation capabilities of the larger model.
3. Experimental Setup
The framework was evaluated on three benchmark datasets: Amazon Books, Amazon Electronics, and MovieLens. The researchers focused on items with at least 50 words of description, utilizing the first 100 words to simulate typical processing by both users and algorithms. The attacks were tested in both white-box (known algorithm) and black-box (surrogate model) settings.
4. Results and Discussion
Experimental results demonstrate the high efficacy of ATR:
- Rank Improvement: ATR-2FT increased the average predicted rank of target items by 5.4% to 28.5%.
- Increased Visibility: The "Appear@20" metric—the frequency with which an item appears in the top 20 recommendations—showed gains of up to 156%.
- Human Readability: In blind tests, human evaluators preferred ATR-rewritten descriptions over standard GPT-2 baselines, finding them more realistic and less like spam.
- Architecture Sensitivity: Systems relying heavily on text features (e.g., HybridMF) were found to be more vulnerable than those prioritizing item IDs (e.g., FDSA).
5. Conclusion
Adversarial Text Rewriting represents a potent and stealthy threat to modern recommender systems. The ability to use small models to find mathematical vulnerabilities and large models to mask them with fluent text makes these attacks difficult to detect. Future work should focus on developing robust defense mechanisms, such as adversarial training, to "vaccinate" recommender systems against these manipulative patterns.
Summary updated