Unsupervised Features Mining via Activation Geometry

Amit LeVi, Elad David, Max FominFAGEN @ ICML 2026

TL;DR

This paper introduces Mining via Activation Geometry (MAG), a novel unsupervised method to extract "reasoning features" from LLMs by analyzing how prepending a natural language instruction changes internal model activations. MAG features can predict model judgments, be controlled via activation steering, and importantly, are shown to be highly effective for selecting optimal training datasets for downstream tasks, outperforming traditional methods.

What Problem Does This Paper Address?

Understanding the internal workings of Large Language Models (LLMs) is crucial for ensuring their safety, reliability, and for debugging their behavior. Existing interpretability methods often rely on human-labeled examples of concepts or require models to self-report their internal states. This can be biased, limited, or impractical. The authors identify a gap in methods that can unsupervisedly extract and utilize internal "reasoning features" – how LLMs process specific types of queries or instructions – without relying on external labels or explicit model introspection. This is particularly important for understanding and mitigating issues like "alignment faking" or "reward hacking," where models might appear compliant externally but operate differently internally.

Methods

The core of MAG involves a simple yet powerful idea: prepend a natural language instruction (the "prefix," $Q$) to an input ($p$) and observe the change in the model's internal activation state. Specifically, they measure the difference between the activation of the prefixed input ($m(Q || p)$) and the original input ($m(p)$). This difference, $\Delta(p) = m(Q || p) - m(p)$, is hypothesized to capture the "reasoning feature" induced by $Q$.

They explore eight different "MAG operators" that isolate different aspects of this activation change. A key aspect is that these features can often be approximated by a single "activation direction" in the model's latent space. This direction can then be used for "activation steering," where injecting this direction into the model's activations can influence its output. MAG is applied to various LLMs (Llama, Gemma, Qwen) and different types of prefixes (e.g., questions about concepts like "desert," or instructions related to prompt injection).

Datasets

The paper utilizes several datasets:

  • Prompt-Injection Corpus: An 18-dataset collection (~1,800 prompts per dataset) designed to test prompt injection vulnerabilities, covering instruction following, jailbreaks, and tool-use injection. This corpus is used for training and evaluating prompt-injection classifiers.
  • 80-Object Concept Set: A curated set of 80 objects categorized into desert, ocean, and neutral objects. This dataset is used to evaluate concept-specific reasoning features.
  • Per-dataset samples: For experiments in Section 3, ~100 prompts per dataset were used. For Section 4 (dataset selection), a larger, disjoint sample of 500 prompts per dataset was used.

No new benchmarks were introduced, but the paper leverages existing datasets to demonstrate the utility of MAG.

Key Insights and Ideas

  • Unsupervised Reasoning Feature Extraction: The core insight is that simply observing how a natural language instruction alters internal activations is sufficient to extract meaningful "reasoning features" without needing labeled examples of the concept itself.
  • Model-Relative Judgments: MAG features can predict the LLM's own judgment, even when it contradicts external dataset labels. This highlights that MAG captures the model's internal reasoning, not just its adherence to external data.
  • Linearity and Steerability: Many of these reasoning features are well-approximated by single linear directions in activation space. This linearity allows for direct control over the model's behavior through "activation steering."
  • Contextual Reasoning: Concept-specific prefixes (e.g., about "Bob" in Egypt) induce directions that are distinct from directions associated with individual components (like "desert" alone), demonstrating that MAG captures nuanced, context-dependent reasoning.
  • Dataset Selection Power: MAG-derived geometric features are remarkably effective at predicting which candidate training datasets will lead to the greatest transfer benefit for a downstream task, significantly outperforming traditional similarity measures.

Key Results

  • Readability: MAG features consistently outperform baseline activations in predicting model verdicts across various concepts and models. For example, Prefixed and InputDelta operators showed significant improvements in ROC scores.
  • Model Verdict Alignment: MAG classifiers sided with the model's own verdict in 69-74% of cases where the model's verdict disagreed with the dataset label, confirming MAG captures model-internal reasoning.
  • Steering Effectiveness: Activation steering using class-mean directions could flip the verdicts of 11-12 out of 12 neutral objects in a matched-format probe, demonstrating causal control.
  • Contextual Directions: The "Bob" prefix induced a direction nearly orthogonal to "desert" on Llama, showing distinct contextual reasoning.
  • Dataset Selection Performance: The best MAG-based predictor achieved 94.7% Top-1 accuracy in selecting the best training dataset, compared to random chance and raw centroid cosine similarity, which were largely uncorrelated with transfer benefit.

Limitations and Future Work

  • Model-Specific: The extracted features are model-relative. While MAG provides a way to understand a model's internal geometry, it doesn't necessarily reveal universal truths about reasoning.
  • Matched-Format Probes: While steering is effective on matched-format probes (e.g., yes/no questions), its impact on open-ended generation is less pronounced, suggesting further work is needed for more general control.
  • Prompt Injection Linearity: The prompt-injection direction was found to be less linear and less effective at flipping neutral prompts to "prompt injection" compared to concept directions.
  • Internal Mechanisms: MAG identifies what directions influence behavior but not the precise internal mechanisms responsible for computing them.
  • Future Work: The authors suggest further validation on independent partitions, exploring different downstream objectives, and investigating MAG's potential for both defensive auditing and understanding model attack surfaces. They also highlight that MAG requires no model fine-tuning, human labels, or fitted aggregation weights, making it a promising primitive for future interpretability and training data selection research.

Summary updated

BibTeX
@inproceedings{levi2026unsupervised,
  author = {Amit LeVi and Elad David and Max Fomin},
  title = {{Unsupervised Features Mining via Activation Geometry}},
  booktitle = {FAGEN @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=PsFjfycmDr},
}
Figure