Do You CARE to Generalize? Extracting Robust Concept Directions in LLMs

Transformer-based large language models (LLMs) encode many high-level concepts as linear directions in activation space. Such concept directions support measurement, quantifying a concept's presence, and intervention, steering the model's behavior. In practice, a direction learned in one context often fails in another, such as a new prompt style, source dataset, or target group. We treat these contexts as environments and cast concept-direction extraction as a multi-environment out-of-distribution (OOD) generalization problem. This framing exposes two reasons a direction can fail to transfer: it may pick up features that merely correlate with the concept in the training environments, or the concept may genuinely be encoded differently across environments. Invariance methods from the OOD literature address the first problem but not the second, since forcing a single invariant direction discards context-specific structure that can carry the concept. We introduce Context-Aided Representation Extraction (CARE), which addresses both. CARE decomposes each concept direction into a shared direction, common to all environments and optionally regularized for invariance, plus an orthogonal environment-specific residual. We evaluate CARE on subject-verb agreement, refusal of harmful prompts, and toxicity across four LLMs. Under shifts in the environment-label relationship, CARE measures concepts more accurately than standard and OOD baselines while remaining effective for intervention. The shared direction transfers to environments and datasets never seen in training, and the residuals can improve intervention when the environment is known. In a semi-synthetic study with known concept structure, CARE's decomposition recovers the shared and context-specific components of the concept. Code is available at https://github.com/blei-lab/care.

Link
https://www.semanticscholar.org/paper/314c8ced25eaeab81d8793bddd0936c985761f1c
Found by
Semantic Scholar
Authors
Sweta Karlekar, Claudia Shi, Aahlad Manas-Puli, Carolina Zheng, John Bowlan, Michal Kucer, M. Makar, D. Blei
Categories
evaluation, dataset
Published
2026-11-29
Last seen by the radar
2026-12-01
Citations
0
Influential citations
0
Radar score
35.50 / 100 (how it is scored)
Why it scored so
Matched: dataset, evaluat; Primary record: Semantic Scholar
Related links
https://arxiv.org/abs/2611.40128
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar