Concept-ROT: Poisoning Concepts in Large Language Models with Model Editing

Keltin Grimes, Marco Christiani, David Shriver, Marissa Connor · DOI

Abstract

Traditional trojan attacks on Large Language Models (LLMs) often require extensive fine-tuning on poisoned data and rely on specific keyword triggers. We present Concept-ROT (Rank-One Trojaning), a novel method that inserts stealthy backdoors using surgical model editing. By targeting abstract concepts rather than syntactic triggers, Concept-ROT achieves high attack success rates with minimal data and negligible impact on general model performance.

Introduction

Securing LLMs against malicious backdoors is a critical challenge. Existing trojan attacks typically suffer from two limitations: high computational cost due to extensive fine-tuning and reliance on rigid, keyword-based triggers. These "hard-coded" triggers are easier to detect and lack the flexibility of human-like conceptual understanding. Concept-ROT addresses these issues by combining model editing with representation engineering to create concept-based triggers that activate only when the model processes specific abstract topics.

Methodology: Rank-One Trojaning

Concept-ROT leverages the internal mechanics of transformer models, specifically treating Feed-Forward Network (MLP) layers as linear associative memories. The attack process involves three primary steps:

  1. Concept Extraction: Using representation reading, the researchers extract a "concept vector" from the model's internal activation space. This vector represents the linear direction of a specific topic (e.g., "computer science") identified via Principal Component Analysis (PCA) on a small set of examples.
  2. Malicious Target Optimization: A target vector is optimized to force the model into an "affirmative" mode, bypassing safety filters.
  3. Model Editing (ROME): Using Rank-One Model Editing (ROME), the concept vector is associated with the malicious target vector within a single weight matrix of an MLP layer.
Overview of the Concept-ROT attack pipeline, from dataset construction to malicious behavior triggering.

Concept Isolation and Distribution

A key component of the attack is the ability to cleanly isolate the target concept from control data. The effectiveness of the concept vector is evaluated by measuring "Concept Scores"—the projection of hidden states onto the extracted vector.

Distributions of concept scores for concept data vs. control data, illustrating ideal, symmetric, and inverted separation scenarios.

As shown in the distributions, an "Ideal" separation ensures the trojan only triggers when the model is explicitly processing the target concept, minimizing false positives on unrelated inputs.

Experimental Results

The researchers evaluated Concept-ROT across several models, including Gemma-7B and Llama-3.1-8B, using benchmarks like HarmBench and the Open-LLM Leaderboard.

  • Efficiency: The attack is effective with as few as five poisoned samples. Furthermore, the covariance matrix estimation required for ROME was optimized to use 1,000x less data than previous implementations.
  • Success and Stealth: Concept-ROT achieved an Attack Success Rate (ASR) of approximately 90%. Crucially, the impact on general benchmark performance was negligible (<0.2% drop), whereas traditional fine-tuning caused drops exceeding 10%.
  • Robustness: The inserted trojans proved resilient, surviving subsequent safety fine-tuning designed to align the model.

Discussion and Conclusion

Concept-ROT demonstrates that abstract concepts in LLMs are stored linearly and can be surgically manipulated. While this poses a significant security risk—allowing for stealthy, low-resource backdoors—the underlying technology also has "dual-use" potential. The same mechanisms could be used for positive "concept-based steering," helping models maintain specific personas or adhere to topical constraints without the need for expensive retraining.

Future work will focus on improving concept vector quality to reduce false positives and exploring methods to detect these rank-one updates within model weights.

Summary updated

BibTeX
@inproceedings{grimes2025concept,
  author = {Keltin Grimes and Marco Christiani and David Shriver and Marissa Connor},
  title = {{Concept-ROT: Poisoning Concepts in Large Language Models with Model Editing}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=RzUvkI3p1D},
}
Figure