Skip to main content
QUICK REVIEW

[Paper Review] Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures

Eugene Bagdasaryan, Vitaly Shmatikov|arXiv (Cornell University)|Dec 9, 2021
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper introduces model spinning, a novel training-time backdoor attack on sequence-to-sequence language models that injects a 'meta-backdoor' to bias outputs toward an adversary-chosen sentiment or claim only when specific trigger words appear. Using adversarial task stacking and pseudo-words to shift output distributions, the attack maintains high main-task accuracy (ROUGE/BLEU) while enabling targeted propaganda-as-a-service, with detectable spin transfer to downstream models.

ABSTRACT

We investigate a new threat to neural sequence-to-sequence (seq2seq) models: training-time attacks that cause models to "spin" their outputs so as to support an adversary-chosen sentiment or point of view -- but only when the input contains adversary-chosen trigger words. For example, a spinned summarization model outputs positive summaries of any text that mentions the name of some individual or organization. Model spinning introduces a "meta-backdoor" into a model. Whereas conventional backdoors cause models to produce incorrect outputs on inputs with the trigger, outputs of spinned models preserve context and maintain standard accuracy metrics, yet also satisfy a meta-task chosen by the adversary. Model spinning enables propaganda-as-a-service, where propaganda is defined as biased speech. An adversary can create customized language models that produce desired spins for chosen triggers, then deploy these models to generate disinformation (a platform attack), or else inject them into ML training pipelines (a supply-chain attack), transferring malicious functionality to downstream models trained by victims. To demonstrate the feasibility of model spinning, we develop a new backdooring technique. It stacks an adversarial meta-task onto a seq2seq model, backpropagates the desired meta-task output to points in the word-embedding space we call "pseudo-words," and uses pseudo-words to shift the entire output distribution of the seq2seq model. We evaluate this attack on language generation, summarization, and translation models with different triggers and meta-tasks such as sentiment, toxicity, and entailment. Spinned models largely maintain their accuracy metrics (ROUGE and BLEU) while shifting their outputs to satisfy the adversary's meta-task. We also show that, in the case of a supply-chain attack, the spin functionality transfers to downstream models.

Motivation & Objective

  • To investigate the risk of adversarial manipulation in neural sequence-to-sequence models through a new form of backdoor attack that enables targeted, context-preserving bias.
  • To demonstrate how adversaries can train models to generate propaganda-like content—such as positive summaries or toxic outputs—only when specific trigger words (e.g., names) appear in the input.
  • To show that this attack can be deployed via platform or supply-chain compromises, enabling large-scale disinformation campaigns.
  • To develop a black-box, meta-task-independent defense that detects spin-enabled models using candidate trigger analysis.
  • To highlight ethical risks of AI-generated biased content and advocate for proactive detection and mitigation strategies.

Proposed method

  • Proposes a meta-backdoor attack that requires the model to satisfy both the main task (e.g., summarization) and an adversary-chosen meta-task (e.g., positive sentiment) when a trigger is present.
  • Introduces adversarial task stacking: applying the meta-task (e.g., sentiment classification) to the model’s output during training to backpropagate desired spin to the output distribution.
  • Uses pseudo-words—learned embeddings in the word-embedding space—to shift the entire output distribution in the direction of the desired meta-task output.
  • Employs a differentiable loss function that combines the main task loss (e.g., ROUGE for summarization) and the meta-task loss (e.g., cross-entropy for sentiment), enabling end-to-end training.
  • Applies the attack to diverse seq2seq models including summarization, translation, and text generation models with various triggers and meta-tasks (sentiment, toxicity, entailment).
  • Develops a black-box detection method based on Median Absolute Deviation (MAD) to identify inputs with candidate triggers that cause significant output distribution shifts.

Experimental results

Research questions

  • RQ1Can adversarial training inject a targeted, context-preserving bias into sequence-to-sequence models without degrading main-task performance?
  • RQ2To what extent can model spinning be used to generate disinformation or poison ML supply chains through backdoor propagation?
  • RQ3Can the spin functionality be transferred to downstream models during fine-tuning or retraining?
  • RQ4Is it possible to detect spin-enabled models without prior knowledge of the meta-task or trigger?
  • RQ5How effective is the proposed detection method in identifying models with hidden meta-backdoors across diverse tasks and triggers?

Key findings

  • Spinned models maintain high main-task performance (ROUGE and BLEU scores) on inputs with and without triggers, indicating that the attack does not degrade standard accuracy metrics.
  • The attack successfully shifts output sentiment to the adversary’s desired label (e.g., positive) when the input contains the trigger word, even for previously unseen inputs.
  • The spin functionality transfers to downstream models during fine-tuning, demonstrating the risk of supply-chain attacks where poisoned models propagate bias.
  • The proposed black-box detection method, based on Median Absolute Deviation of output distributions across candidate triggers, successfully identifies spin-enabled models.
  • The attack is effective across multiple tasks, including summarization, translation, and text generation, with diverse triggers and meta-tasks such as sentiment, toxicity, and entailment.
  • The method does not require access to model weights or gradients, making it applicable in real-world detection scenarios where models are deployed as black boxes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.