PaCE: Parsimonious Concept Engineering for Large Language Models

Jinqi Luo, Tianjiao Ding, Kwan Ho Ryan Chan, Darshan Thaker, Aditya Chattopadhyay, Chris Callison-Burch, Rene Vidal

Introduction

Large Language Models (LLMs) are powerful but prone to generating toxic content, hallucinations, and biased responses. Traditional alignment techniques like Reinforcement Learning from Human Feedback (RLHF) or fine-tuning are computationally expensive and can inadvertently "lobotomize" a model, reducing its general intelligence. Parsimonious Concept Engineering (PaCE) offers a more precise, training-free framework to steer LLMs toward safety and truthfulness by "surgically" modifying internal activations.

The Challenge of LLM Alignment

Standard alignment methods often require repeating expensive training for every new goal. While "activation engineering"—modifying hidden states during inference—is a cheaper alternative, common techniques like Vector Addition (VecAdd) or Orthogonal Projection (OrthoProj) are often too blunt. They fail to account for the complex geometry of the model's activation space, frequently removing benign concepts along with undesirable ones, which harms the model's linguistic and reasoning capabilities.

The PaCE Framework

PaCE introduces a two-stage process for surgical alignment:

  1. Concept Dictionary Construction: Researchers built PaCE-1M, a dictionary of 40,000 concept directions (atoms) extracted from LLM activations. Using GPT-4 to generate diverse contexts for words in the Brown Corpus, they identified specific vector directions associated with these concepts.
  2. Activation Decomposition and Intervention: During inference, PaCE uses sparse coding (via an elastic net regularizer) to decompose internal activations into a sparse linear combination of dictionary atoms.
The PaCE pipeline: decomposing activations into concept atoms for surgical intervention.

By identifying exactly which "bad" atoms are present, PaCE can zero them out while leaving "good" atoms untouched—a process known as Overcomplete Oblique Projection.

Key Insights: Why Oblique Projection?

A core finding of the paper is that concept directions in LLMs are rarely perfectly orthogonal. Traditional projection methods fail because they remove parts of benign concepts that overlap with undesirable ones.

Comparison of activation engineering techniques: Oblique Projection vs. Orthogonal Projection and Vector Addition.

PaCE’s oblique projection explicitly models both types of concepts, allowing it to distinguish between a word's harmful and benign senses (e.g., "killing time" vs. "killing a person"). Furthermore, UMAP visualizations of the dictionary reveal that LLM activations are highly organized, with semantically similar concepts naturally clustering together.

Results and Performance

PaCE was evaluated across several benchmarks, including SafeEdit for detoxification, FactScore for faithfulness, and MMLU for general knowledge. Key results include:

  • Superior Safety: On LLaMA2-13B, PaCE improved safety scores by 60-80% over vanilla models, dominating all baselines.
  • Preserving Intelligence: Unlike fine-tuning, PaCE maintained high scores on the MMLU benchmark, preserving the model's underlying logic.
  • Efficiency: PaCE offers a 3x speedup in average response time compared to OrthoProj.
  • Robustness: It effectively neutralized complex "jailbreak" prompts that typically bypass standard safety filters.

Conclusion

PaCE demonstrates that LLM alignment can be achieved with surgical precision without the need for costly retraining. By leveraging the parsimonious nature of internal activations and employing oblique projection, PaCE provides a robust and efficient path toward safer, more trustworthy AI. Future work may extend these principles to cross-modal models and more dynamic, context-aware concept partitioning.

Summary updated

BibTeX
@inproceedings{luo2024pace,
  author = {Jinqi Luo and Tianjiao Ding and Kwan Ho Ryan Chan and Darshan Thaker and Aditya Chattopadhyay and Chris Callison-Burch and Rene Vidal},
  title = {{PaCE: Parsimonious Concept Engineering for Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=lOMHt16T8R},
}
Figure