01 · Summary
One idea: steer knowledge preference through coordinated attention-head circuits
Large language models carry parametric knowledge learned in pre-training and receive contextual knowledge at inference time (retrieval, in-context examples). When the two conflict, behaviour becomes unpredictable — it varies with model scale, training frequency and the strength of the evidence.
Existing control happens at the prompt, training or output-distribution level. Mechanistic work finds specialised attention heads, but usually studies heads one at a time, and per-head interventions get expensive as candidates grow.
Circuit Preference Steering (CPS) jointly characterises head roles under two contrasting, externally specified preference conditions — favour the context, or favour parametric memory. By looking at how each head’s role transitions between the conditions, CPS identifies a contextual circuit Cc and a parametric circuit Cp, then scales their outputs at inference: lightweight, training-free and bidirectional.
CPS does not decide which source is more trustworthy. The preference is specified externally (e.g. “prefer the verified database”, “down-weight unreliable retrieved text”); CPS executes it.
Studies preference steering from an internal-model perspective, focusing on coordinated head behaviour.
Proposes CPS: joint head analysis + role-transition circuits + training-free bidirectional steering.
Experiments on 3 LLMs × 6 benchmarks, with transfer to unseen conflict distributions without re-localisation.
Gemma-2-9B · Llama-3.1-8B · Mistral-7B
4 in-distribution + 2 unseen
Vanilla → CPS
no extra tokens or passes
02 · The problem
A controlled conflict: same evidence, two different goals
Each instance is a tuple (question, org_context, counter_context, org_answer, counter_answer). Using the counter_context as input creates a conflict: the evidence contradicts what the model memorised.
- Context-Preference (Cont.) — the desired prediction follows the contextual information.
- Parametric-Preference (Para.) — the desired prediction follows parametric knowledge.
Both conditions share identical contextual evidence; only the target answer differs. That isolates each knowledge source’s contribution and makes head roles directly comparable. Flip the switch to see it →
03 · Method
Setup stage → Inference stage
-
Head role identification
Causal Head Gating (CHG) jointly learns a gate
gℓ,h ∈ [0,1]for every head, modulating its outputo → g·ounder a next-token loss with a regulariserλ·Σσ⁻¹(g). Retention (λ>0) and suppression (λ<0) give gatesG⁺andG⁻, yielding roles Fac (active under suppressive pressure), Inter (removed despite retention) and Irr (negligible). CPS runs this under both preference conditions. -
Role-transition analysis
A head that looks facilitating in one condition is ambiguous alone. Comparing roles across conditions resolves it: heads that facilitate one preference but are interfering or irrelevant under the other are functionally specialised. Interfering and irrelevant are grouped because neither supports the preference.
-
Circuit construction
Cp = { r(Para.)=Fac ∧ r(Cont.)∈{Inter,Irr} } and Cc = { r(Cont.)=Fac ∧ r(Para.)∈{Inter,Irr} }. Members are ranked by their gate
g⁻and the top-K formSc(K)andSp(K). Masking each circuit tests whether it is functionally associated with its knowledge source. -
Generation control
Head outputs are scaled by
s = 1+αforCc,1+βforCpand 1 otherwise. With strengthδ>0: Context policy(α,β) = (+δ, −δ/(1+δ)); Parametric policy(α,β) = (−δ/(1+δ), +δ). No parameter updates, no extra pass.
04 · Explore
Demo 1 — Build the circuits yourself
Step through the setup stage on a toy head grid: roles under each condition, role transitions, and the resulting circuits.
Demo 2 — Steering playground
Pick a policy and a strength δ. Watch the circuit heads scale, read off the paper’s (α, β), and see how ConflictBank accuracy moves with δ.
05 · Case study
Redirecting a model from memory to evidence
Gemma-2-9B on NQ-Swap under the Context-Preference policy (K = 8 heads per circuit). The context states a counterfactual fact; Vanilla often answers from memory. CPS shifts the answer to the one supported by the context — while leaving already-aligned answers intact.
Show the paper’s original Figure — circuit map & qualitative examples
06 · Results
Evidence across models, benchmarks and baselines
Models
Llama-3.1-8B, Mistral-7B-v0.1, Gemma-2-9B
Datasets
ConflictBank, ConflictQA, NQ-Swap, PopQA-Swap; unseen: DynamicQA, WikiContradict
Baselines
Vanilla · Random-K · Prompt · PH3 · JuICE
Metric
Exact Match against the target answer of each condition; mean ± std over seeds 0, 1, 2
Intervention-based circuit validation
If the circuits really are tied to different knowledge sources, silencing them should move preference in opposite directions.
Context steering works best
CPS gives the strongest mean EM across most model–dataset pairs, e.g. Llama-3.1-8B on NQ-Swap 0.189 → 0.324.
Parametric steering is harder
Gains are smaller — models are susceptible to contextual influence — but CPS is best or competitive, e.g. NQ-Swap 0.111 → 0.200 on Llama.
Both operations matter
Boosting the target circuit and suppressing the competing one beats either alone.
It transfers
Circuits localised on NQ-Swap lift performance on unseen DynamicQA and WikiContradict without re-localisation.
07 · Scope & ethics
What the paper does — and does not — claim
Limitations the authors state
- Three runs per setting: results are descriptive comparisons, not evidence of statistical significance; some gains are small relative to run-to-run variation.
- Targeted masking provides functional evidence on Gemma-2-9B only; extending it to other models, and studying interactions and pathways within the head groups, is future work.
- Baselines focus on attention-head interventions; comparison with broader activation-steering and context-aware decoding methods is out of scope.
- The ablation uses a subset of the test set due to limited compute.
Ethical considerations
The work uses public benchmarks and open-weight models, with no personal data. Steering a model toward context or memory has dual-use risk: a poor policy could promote misleading evidence or inaccurate memory. CPS executes a specified preference — it is not a substitute for source verification or factuality checks. In high-stakes domains (healthcare, law, finance) it should be paired with reliable evidence validation, transparent intervention policies and human oversight.
08 · Acknowledgements
Acknowledgements
This research was undertaken with the assistance of computing resources from RACE (RMIT Advanced Computing Ecosystem).
We would also like to extend our special thanks to Patrick Taylor for his valuable technical support and assistance throughout this research.
Cite
Reference
Jiazhu Xie, Bowen Li, Ziqi Xu, Renqiang Luo, Feng Xia, and Fengling Han. Circuit-Level Preference Steering under Knowledge Conflict in Large Language Models. In Proceedings of the Twentieth ACM International Conference on Web Search and Data Mining (WSDM ’27), February 15–19, 2027, Hong Kong, Hong Kong. ACM. DOI: 10.1145/3862322.3863438