Can you CARE enough to generalize? Extracting robust concept directions in LLMsDo You CARE to Generalize? Extracting Robust Concept Directions in LLMs
The authors propose CARE, which decomposes concept directions into shared directions and environment residuals; the authors claim that it achieves statistically significant best probe accuracy in 28 of 30 distribution shift settings.
- A linear concept direction learned on one prompt style, dataset, or target group may fail to measure or intervene on the same concept after switching to another environment. The authors attribute this to two problems: spurious environment correlations and genuine heterogeneity in concept encoding.
- CARE decomposes each concept direction into a direction shared across environments and an environment-specific residual orthogonal to it, jointly optimizes the classification and environment signal losses, and can add an OOD invariance regularizer to the shared direction; at test time, it can use only the shared direction or add residuals according to environment.
- Experiments cover subject–verb agreement, refusal, and toxicity. The authors report that CARE achieves statistically significant best probe accuracy in 28 of 30 shift settings; CARE(S) on Gemma-2B-it L10 reaches 79.7% on WildGuard, versus 66.5% for the best non-CARE baseline.
- The authors point out that CARE only learns per-layer linear directions and may miss nonlinear, cross-layer, or token-position-dependent structure; generation evaluation relies on an LLM judge that may mislabel, and scaling up models and environments also increases extraction and tuning costs.
- Evaluated models
- GPT-2Gemma-2B-itQwen2.5-7B-InstructMinistral-3-3B-Base
- Metrics
- Probe AccuracyGMLRswap costtarget-behavior rates∆ toxicity
Researchers propose Context-Aided Representation Extraction (CARE), which turns concept direction extraction in the LLM activation space into a multi-environment out-of-distribution (OOD) generalization problem, decomposing each concept direction into a direction shared by all environments and an orthogonal environment-specific residual, to simultaneously address two types of transfer failure: spurious correlations in the training environments and concepts being encoded differently across environments. In evaluations on subject-verb agreement, refusal of harmful prompts, and toxicity across four LLMs, when the relationship between environment labels shifts, CARE's concept measurements are more accurate than standard and OOD baselines while keeping interventions effective; the shared direction transfers to environments and datasets unseen in training, and when the environment is known, the residual can improve intervention effectiveness. In semi-synthetic experiments with known concept structure, the decomposition recovers the shared and context-specific components of the concept. Code is released at https://github.com/blei-lab/care。
Related events and news
1 events · 0 news mentions
- This event's paper
你 CARE 到能泛化吗?在 LLM 中提取稳健的概念方向
Paper analysis
What problem does this paper attempt to solve?
Model concept direction extraction as multi-environment OOD generalization, handling both spurious correlations and heterogeneity in concept encoding.
Core problem: an LLM linear concept direction learned in one context often cannot continue to measure or intervene on the same concept after switching to another context.
- Problem setting: Concept directions can be used to measure whether a concept is present, and can also intervene on behavior by modifying activations; the authors use refusal of harmful requests as an example to illustrate that direction interventions may change the model's responses to harmful or harmless requests.
- Shortcomings of existing methods: The authors state that single-direction methods such as logistic regression and difference-in-means may fail as prompt style, syntactic template, source dataset, or target group changes; OOD invariance methods return only one direction and cannot preserve environment-specific concept structure.
- Core observation: Transfer failure may come from features incidentally correlated with the concept in the training environment, or from genuine differences in how the concept is encoded across environments; forcing all environments to share a single direction discards the latter.
- Proposed method: The authors propose Context-Aided Representation Extraction (CARE), which decomposes concept directions into a shared direction and orthogonal environment-specific residuals, and supports CARE(S), which requires no environment labels, and CARE(C), which uses residuals when the environment is known.
- Analysis targets and evidence: The study examines subject–verb agreement, refusal of harmful requests, and toxicity on GPT-2, Gemma-2B-it, Qwen2.5-7B-Instruct, and Ministral-3-3B-Base, and uses semi-synthetic experiments with known structure to check whether the decomposition recovers shared and environment-specific components.
What related research exists?
Related work covers single-direction concept representations, multi-direction or conditional steering, OOD generalization, and shared–specific decomposition.
Concept directions and beyond single-vector representations
- Park et al. (2024)'s Linear Representation Hypothesis treats high-level concepts as linear directions in activation space; Alain and Bengio (2016) and Turner et al. (2023) correspond to the LR and DIM extraction methods adopted in this paper, respectively.
- Zhao et al. (2025) model concepts with probe distributions, Pan et al. (2025) study a main direction and smaller orthogonal safety directions, and Wollschläger et al. (2025) study concept cones; the authors state that CARE is likewise not satisfied with a single vector, but organizes multiplicity by environment.
- Arditi et al. (2024) study the refusal direction; this paper additionally uses their released optimized refusal direction as a refusal-specific baseline for Gemma-2B-it.
Conditions, categories, and multi-attribute steering
- Lee et al. (2025) use condition vectors to control when behavior vectors take effect; Siu et al. (2026) and Bhattacharjee et al. (2024) learn concept- or harm-category-specific refusal vectors.
- Nguyen et al. (2025) learn sparse orthogonal steering vectors for multiple attributes, and Jiang et al. (2025) learn shared and attribute-specific subspaces; the authors point out that these methods organize by condition, category, or attribute, whereas CARE decomposes the same concept by observed environment.
OOD generalization and shared–specific decomposition
- Peters et al. (2016), Arjovsky et al. (2019), Krueger et al. (2021), and Sagawa et al. (2020) study multi-environment stable prediction; the authors state that standard OOD objectives usually return only one robust predictor, whereas CARE also preserves environment residuals.
- Domain Separation Networks (Bousmalis et al., 2016) separate shared and private representations, and CSD (Piratla et al., 2020) decomposes classifier parameters; the authors point out that CSD discards domain-specific components after training, whereas CARE preserves and uses residuals when the environment is known.
- Causal abstraction work such as Geiger et al. (2021, 2022, 2024) relies on known high-level variables or interchange interventions; the authors state that CARE uses only observational multi-environment activation data.
Experimental baselines and data: Single-direction baselines are DIM, LR, IRM, V-REx, and GroupDRO; the multi-direction baseline is Post-hoc LR; task data come from the subject–verb agreement construction of Marks et al. (2025), WildJailbreak, and ToxiGen, and transfer evaluation uses WildGuard. The authors position CARE as a shared–residual decomposition method connecting OOD generalization and mechanistic interpretability.
How does the paper address this problem?
CARE jointly learns a shared direction and orthogonal environment residuals, using two inference modes to balance cross-environment transfer and contextual differences.
The overall idea is to use environment labels as the decomposition axis of concept structure: CARE jointly learns a component shared across environments and a supplementary component for each environment, rather than seeking only one invariant direction.
Problem setup and direction decomposition
- Each sample contains the activation h of the last token of the prompt at a fixed layer, a binary concept label y, and an environment label z; the goal is for direction projections to support concept measurement and for activation modifications along the direction to support behavioral intervention.
- CARE learns a shared vector w0 and a raw vector wz for each environment, takes the orthogonal component of wz relative to w0 as the residual, and normalizes each separately; the orthogonality constraint prevents residuals from duplicating components along the shared direction.
- The combined prediction is ŷ=σ(ŵ0⊤ h+ŵz⊥⊤h+bc): the shared term handles the cross-environment part, and the residual term, routed by each sample's environment, supplements context structure.
Loss and optional invariance regularization
- The base objective includes a joint BCE loss on the combined logit and an environment signal loss that predicts the label using only the environment residual; the latter requires the residual to retain label signal under the environment condition, with its weight selected on the validation set.
- The shared logit can additionally be regularized in a V-REx, IRM, or GroupDRO style, penalizing respectively the variance of environment losses, the scalar gradient, or the gap between the worst-environment loss and the mean, yielding CARE-V-REx, CARE-IRM, and CARE-GroupDRO; without regularization it is CARE-Base.
- Proposition F.1 in Appendix F gives identification results for recovering the shared direction and residual directions by the population objective under a symmetric Gaussian-location model, orthogonal true components, and affine centering conditions; this is a theoretical result with assumptions.
Two inference and intervention modes
- CARE(S) uses only the shared logit and requires no environment labels at test time; CARE(C) adds the corresponding residual when the environment is known. Post-hoc(S/C) are the corresponding modes of the baseline.
- Subject–verb agreement uses interchange-style patch; refusal and ToxiGen use ablate-and-add, pushing samples toward the counterfactual label. Interventions are applied to the residual stream of each transformer block.
- All methods within the same task–model setting use a fixed intervention strength: 7 for Gemma-2B-it refusal, 11 for Qwen2.5 refusal, 10 for GPT-2 ToxiGen, and 1 for Ministral ToxiGen.
Training, selection, and evaluation definitions
- CARE uses Adam, weight decay 0.01, at most 400 epochs, and batch size 64; subject–verb agreement and ToxiGen use an 80/20 train/validation split, and refusal uses 75/25, all with early stopping by validation probe accuracy.
- CARE and training-based baselines both use validation-set Pareto-rank to select probe accuracy and GMLR simultaneously; the test shift distributions do not participate in selecting the method, hyperparameters, or intervention strength.
- Probe accuracy is the proportion of cases where the sign of the logit agrees with the concept label. GMLR is the mean over tokens of the average log-likelihood ratio between the original and counterfactual continuations after intervention, then exponentiated; lower is better, and below 1 means the counterfactual continuation is more likely.
- In generation evaluation, GPT-4o mini outputs a binary refusal or toxicity label with temperature 0 and at most 10 completion tokens; Appendix D.1 gives the full judge prompt.
What experiments did the paper conduct?
The authors report that CARE balances measurement and intervention under shift, and test held-out environments, cross-dataset transfer, and semi-synthetic structure recovery.
Experimental setup
- Models tested: GPT-2, Gemma-2B-it, Qwen2.5-7B-Instruct, Ministral-3-3B-Base; refusal uses safety-tuned chat models, ToxiGen uses base models, and subject–verb agreement and toxicity are completion-style tasks.
- Tasks and scale: Subject–verb agreement uses 600 training and 200 test examples per setting; WildJailbreak refusal uses 500 training and 150 test; ToxiGen uses 356 training and 120 test. WildGuard additionally takes 400 balanced samples, and the split of 200 each across four categories is described in Appendix E.4.
- Shift protocol: Two-environment tasks are trained with ρtrain=0.05 and tested at ρtest=0.05, 0.50, and 0.95; ToxiGen training is 65% LGBTQ and 5% each for the other seven groups, and testing uses matched, uniform, and rotationally focused mixtures.
- Baselines and metrics: DIM, LR, IRM, V-REx, GroupDRO, Post-hoc(S/C), plus the Arditi et al. direction for Gemma-2B-it; metrics are Acc. (%) / GMLR, with supplementary generation behavior.
- Repeats and tests: Unless otherwise noted, quantitative tests aggregate 20 matched seeds; best means use Holm-corrected one-sided paired t-tests, p<0.05. The error bars in Figure 2 are 95% CIs over 20 seeds.
Main results
The table below is excerpted from Table 1, with each cell as Acc. (%) / GMLR; only some representative settings are listed, and the full comparison includes 10 task–model–layer settings.
Swipe horizontally to read the table
Model/layer and task Test condition DIM LR Best non-CARE column CARE(S) CARE(C) GPT-2 L10, subject–verb agreement ρ=0.95 6.0 / 0.31 19.2 / 27.8 22.3 / 26.9, V-REx 84.5 / 11.2 85.9 / 3.71 Gemma-2B L10, subject–verb agreement ρ=0.50 50.0 / 4.45 51.2 / 5.03 51.6 / 4.94, GroupDRO / Post-hoc(C) 82.0 / 1.80 54.3 / 1.05 Gemma-2B L10, refusal ρ=0.95 44.0 / 0.044 46.5 / 0.81 47.5 / 0.006, IRM / lowest GMLR outside CARE is Post-hoc(C) 1.41 81.5 / 0.010 43.4 / 0.006 Qwen2.5-7B L15, refusal ρ=0.95 22.7 / 2.20 37.2 / 5.38 40.8 / 3.00, V-REx / Post-hoc(C) 51.5 / 2.76 47.3 / 0.76 GPT-2 L11, ToxiGen Uniform 54.2 / 0.79 63.0 / 0.95 63.0 / 0.79, LR / DIM 70.2 / 0.91 71.2 / 0.86 Ministral-3B L10, ToxiGen Uniform 71.7 / 0.62 74.1 / 0.82 77.3 / 0.62, V-REx, GroupDRO / DIM 83.1 / 0.65 73.8 / 0.55 - Overall conclusion: The authors report that one CARE inference mode achieves the statistically significant best probe accuracy in 28 of 30 settings; the lowest GMLR is achieved by a CARE mode in 19/30 settings and by DIM in 11/30 settings.
- Joint performance: The authors report that the best CARE mode's probe accuracy is on average 23.2 percentage points higher than DIM, and on this basis argue that low GMLR alone is insufficient to represent a useful concept direction.
- Mode differences and exceptions: The authors state that CARE(S) is generally the stronger probe for refusal and non-GPT-2 settings, while CARE(C) is often more suitable for GPT-2 and intervention; however, for Gemma-2B refusal at ρ=0.95, CARE(C) is only 43.4%, below IRM's 47.5%, and for Gemma subject–verb agreement at ρ=0.95, CARE(C) is also only 12.8%.
Held-out environments and WildGuard transfer
- Unseen target groups: Figure 2 uses five groups unseen in both training and validation: Jewish, Latino, mental disability, Muslim, and Native American; the authors state that CARE(S) has the highest average accuracy in all three ToxiGen model–layer settings and ranks first in 11 of the 15 groups. The converted text does not provide the individual bar values.
- New dataset: In Table 2/10, for Gemma-2B-it L10, CARE(S) reaches 79.7% / 0.0108 on WildGuard, while the best non-CARE baseline, V-REx, is 66.5% / 0.631; the authors report an accuracy comparison p=3.2×10−18, significant after Holm correction.
- Residual transfer: In the same setting, CARE(C) is 64.7% / 0.0102, with lower accuracy than CARE(S) but slightly lower GMLR; for Qwen2.5-7B L10/L15, CARE(S) accuracy is 64.7%/67.9%, and CARE(C)'s GMLR is 0.666/0.422.
Semi-synthetic swap-cost and generation checks
- Structural diagnosis: In Figure 3, the horizontal axis is Shared, Mixed, Hard mixed, Env-spec., and the vertical axis is probe-accuracy swap cost; the authors state that shared-only is near zero, mixed is positive but small, and the latter two are larger. The converted text does not provide the bar heights.
- Corresponding accuracy: In the environment-specific regime of Table 9, CARE-V-REx(C), CARE-IRM(C), and CARE-GroupDRO(C) are 96.4%, 92.2%, and 95.2%, respectively, and Post-hoc LR(C) is 92.8%; in hard mixed, each CARE(C) exceeds 99%.
- Free generation: In Table 13, for Ministral-3-3B L10, CARE(C) raises toxicity from 5.0% to 50.0%, a ∆ toxicity of 45.0 percentage points; for GPT-2 L9/L11, DIM has the largest increase, at 70.6/77.1 percentage points, respectively. Table 12 shows that on Gemma refusal, Arditi et al. and DIM also have strong generation changes, and the authors state that CARE(C) has the strongest generation results in the two Qwen2.5 settings.
Other ablations and analyses
- Table 5: When the joint loss is used alone, CARE(S) validation accuracy is 79.4%, with both losses it is 83.5%; with only the environment signal loss it is 52.2%.
- Table 6: For CARE-GroupDRO at λR=1, CARE(S) average accuracy is 89.6%, and CARE-Base is 84.5%; CARE-IRM is about 71.3%–71.5% at each weight.
- Table 7: The Arditi et al. optimized refusal direction on Gemma-2B-it L10 has accuracy of 50.0%, 49.3%, and 50.0% at the three ρ values, respectively.
- Table 11: When 50% of Ministral-3B environment labels are flipped, the |cos| between the shared direction and the clean direction is 0.868, the residual averages 0.243, and CARE(S) accuracy is 75.0%.
What are some points that can be further explored?
Appendix G explicitly discusses linear per-layer representations, LLM judging, and scaling costs; the experiments additionally define model and task coverage.
Limitations and future directions noted by the authors
- Linear and layer-specific: CARE learns linear, layer-specific directions, which the authors note may miss nonlinear concept structure, structure distributed across multiple layers, or structure affected by token-position choice (Appendix G).
- Judge error: Generative evaluation relies on LLM judges, whose labels the authors note may not fully capture the target behavior (Appendix G).
- Scaling cost: The authors note that extending the full evaluation to larger model suites or more environment definitions would increase activation-extraction and hyperparameter-selection costs (Appendix G).
- Research positioning: The authors view CARE as a first step in a research direction that applies the OOD generalization literature to more reliable mechanistic interpretability methods (Conclusion); the original source does not list more specific follow-up experiment plans.
Experimental coverage
- 4 models were tested: GPT-2, Gemma-2B-it, Qwen2.5-7B-Instruct, and Ministral-3-3B-Base; the main table covers 10 task–model–layer settings, rather than running all tasks on every model (Table 1).
- The concept tasks are subject–verb agreement, WildJailbreak refusal, and ToxiGen toxicity; cross-dataset refusal transfer is evaluated only on 400 balanced samples from WildGuard (§3.1, §3.4).
- The held-out environment experiments cover 5 target groups in ToxiGen; the semi-synthetic experiments use GPT-2 layer-10 subject–verb agreement activations as noise and aggregate over d∈{128,256,512,768} (§3.3, Appendix E.3).
- The environment-label-noise experiments are conducted only on subject–verb agreement for Ministral-3B L10 and GPT-2 L10, with κ from 0 to 0.50 (Appendix E.5).
- Unless otherwise noted, test values aggregate 20 matched seeds; the paper does not report agreement between GPT-4o mini judge labels and human annotations (Appendix D.1, H).
Summarize the main content of the paper
CARE uses shared–residual decomposition to extract cross-environment concept directions, and the authors report that it outperforms multiple classes of baselines on measurement, intervention, and transfer.
CARE is a multi-environment concept direction extraction method, addressing the problem that linear representations fail after changes in prompt style, syntactic structure, or target group.
- Problem and assumptions: The authors distinguish two sources of transfer failure: spurious correlations in the training environment, and genuine differences in how a concept is encoded across environments; a single invariant direction can only handle the former.
- Method highlights: CARE jointly learns a direction shared across environments and environment residuals orthogonal to it, with optional V-REx, IRM, or GroupDRO-style regularization. CARE(S) requires no test environment labels; CARE(C) adds residuals when the environment is known.
- Shift results: Across 30 task–model–layer–test-distribution settings spanning subject–verb agreement, refusal, and toxicity, the authors report that a CARE mode achieves statistically significant best probe accuracy in 28 and the lowest GMLR in 19; the best CARE mode has on average 23.2 percentage points higher accuracy than DIM.
- Transfer results: CARE(S) on Gemma-2B-it L10 reaches 79.7% on 400 WildGuard samples, versus 66.5% for the best non-CARE baseline; CARE(C) has accuracy 64.7% but GMLR 0.0102, slightly lower than CARE(S)'s 0.0108.
- Structure and exceptions: Semi-synthetic swap-cost is used to determine whether residuals carry environment-specific concept signal; in generation checks, CARE(C) on Ministral-3-3B L10 has a toxicity increase of 45.0 percentage points, while for GPT-2 both settings have the largest increase under DIM.
- Authors' conclusions: The authors argue that shared directions can transfer to unseen environments and datasets, and that residuals can supplement intervention signal when the environment is known; they also note that linear per-layer representations, LLM judge error, and scaling costs remain limitations.
Research lineage
1 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.
Related papers
Show 3 more papers
- Don't Judge an LLM Only by Its Activations: Discovering Suppressed Safety Features via Counterfactual Activation PotentialAnalysis / interpretabilityarXiv