Synergy – the idea that the whole is carrying more information than its parts – is proposed to be one organising principle that leads to the emergence of intelligence in neural structures. Urbina-Rodriguez et al. show that multi-attention heads form a synergistic core in the middle layers of large language models (LLMs). Head pairs in the core play an outsize role in LLM performance, as my write-up of their paper shows. This essay aims to understand how the synergistic core forms and whether it can be used as a safety monitor.
Urbina-Rodriguez et al. (2026) show that the core emerges during base training of the model. In the safety context, control and alignment features are mostly introduced in fine-tuning stages and thus after the synergistic core has been formed. The question therefore is whether fine-tuning has a disproportionate effect on the structure of the synergistic core.
I tested the base Gemma-3-4B-pt version against its fine-tuned sibling Gemma-3-4B-it on a set of 200 benign prompts from JBB-Behaviors and Alpaca instructions, and 250 safe but scary-sounding prompts from XSTest. For each prompt, the instruction-tuned model is forced to write a 100-token-long reply via greedy decoding and banned end-of-sequence tokens. Both models are then fed the initial prompt plus the continued answer, and the attention-output norm of all heads in the model is recorded. That gives 100 time steps per head. For example, given the Alpaca prompt
Name one of the four color families.
Gemma-3-4B-it answers
Red is one of the four color families (red, yellow, blue, and green).
Do you want to know more about color families? 😊
Would you like me to:
- List the other color families?
- Tell you about the relationships between them?
- Give you some color combinations within a specific family?
- Something else? Let me know!
[last ~16 tokens: blank-line padding]
These two text sequences are then merged without a separator and fed to the model to record the attention-head output. A run is performed on the 100-token sequence to obtain a synergistic ranking of the heads which is then pooled over all prompts. This teacher forcing is required to isolate the effect of the weights on activations from differences in the generated text. The comparison is repeated with the base model writing the replies as a control.
We compare synergy rankings across the models by splitting the input prompts into random halves 200 times and calculating the Spearman measure, which compares rankings of sets (a value of indicates the same order for two compared sets, whereas a value of indicates an exactly reversed order). Using this measure on the same model and 200 random halves leads to a self-agreement of – that is, the synergy head rankings are highly similar but not identical between inputs. The typical head moves 16 of the 272 rank places in Gemma-3-4B. The figure below denotes this in grey dots. The blue dots compare base and tuned models on the same instruction-tuned text. Here, there is a significant difference between the rankings, with the typical head moving 29 places. The same model but given two different sets of continuations (one generated by the instruction-tuned model, the other by the plain model) shows an even larger change in agreement. As a control, a randomly initialised Gemma-3-4B is compared against the instruction-trained version, leading to a low similarity measure of .
Tuning thus reshapes the structure of the synergistic core to a slight degree, as the blue dots show. While the basic structure of the core in the middle of the LLM is retained, the ranking of the activated multi-attention heads changes. The figure below visualises this as a heat map of attention heads throughout the LLM, where red represents synergy-dominant heads and blue represents redundancy-dominant heads. Outlined heads form the core of the top 25% ranked heads. Black dots on the heads indicate a change in the core structure.
The choice of text does have a significantly higher impact on synergy head ranking than the fine-tuning itself. Holding the model fixed and swapping which model wrote the text drops agreement to the region of , almost three times the drop that swapping models on the same text induces. Fine-tuning therefore does not have a disproportionate effect on the synergistic core. While it measurably reshapes its structure, it does not impact the core’s activation as much as changing the input to the model.
Safety features such as refusal and jailbreak robustness are introduced via fine-tuning rather than pre-training of the models. Given the small but measurable change of the synergistic core through fine-tuning, can the idea of synergistic pairs be used to serve as a safety monitor during jailbreak attempts and refusals?
Gemma-3-4B-it is tested on an assortment of public benchmarks: 200 benign requests from JBB-Behaviors and Alpaca, 250 safe but scary-sounding prompts from XSTest, 100 harmful requests from JBB-Behaviors, and 382 published jailbreaks from JailbreakBench. The jailbreak prompts contain a set of 100 harmful requests in four attack categories: GCG, PAIR, JBC, and random search. Gemma-3-4B-it is used to answer each prompt, and WildGuard, a safety classifier, is used to label each reply as compliance or refusal. Gemma refuses 89% of harmful requests, while 6% of XSTest prompts are wrongly refused. The model refuses 76% of GCG and 32% of PAIR jailbreaks but none of the JBC or random-search prompts.
| Prompt set | Source | n | Refused | Harmful reply |
|---|---|---|---|---|
| Benign | JBB-Behaviors, Alpaca | 200 | 7.5% | 5.5% |
| Safe but scary | XSTest | 250 | 6.0% | – |
| Plain harmful | JBB-Behaviors | 100 | 89.0% | 6.0% |
| Jailbreak: GCG | white-box suffix | 100 | 76.0% | 15.0% |
| Jailbreak: PAIR | attacker-LLM rewrite | 82 | 31.7% | 48.8% |
| Jailbreak: JBC | hand-written template | 100 | 0.0% | 96.0% |
| Jailbreak: random search | template + suffix | 100 | 0.0% | 93.0% |
Gemma-3-4B-it on 932 prompts. Replies labelled by WildGuard (refusal, harmful reply), then discarded. Jailbreaks from JailbreakBench, made against Vicuna-13B.
A safety monitor takes a white-box signal – in this case the synergistic cores – to flag harmful requests and predict from the internal network state whether the answer is a refusal or compliance. If synergy heads play an outsized role in jailbreak robustness and refusal, one should be able to use these heads better than any random head in the network to flag and predict behaviour. In the figure below, each dot represents one attention head. Red dots are part of the synergistic core, while grey dots represent all other heads. The x-scale indicates how well an individual head separates harmful from benign and GCG refusal from compliance, where a value of 1 is perfect prediction and a value of 0.5 is chance.
For both cases, the predictive power of the core is not greater than for any random head in the network. Pooled over many prompts, synergy does shift between request and reply groups. Prompts are grouped by the type of request (harmful or harmless, and jailbreak families) and the reply (refused or complied). The first line in the figure below then shows the change in pooled synergy ranking for refused vs complied GCG jailbreak prompts. A shift of 0 means that the two groups are no more different than random groups, and a larger x-axis value indicates that the synergy ranking differs more.
A change in the reply moves the synergy ranking about twice as much as changing the request, as the comparison between replies held fixed (blue) and requests held fixed (orange) shows. Synergy follows the text being produced and does not mirror an internal safety state of the model. This is in line with the synergy core reshaping found in the fine-tuning example.
The synergistic core is built during pre-training and slightly reshaped by fine-tuning. Base and tuned Gemma-3-4B share two-thirds of their core, while swapping the text the model reads moves the synergy ranking almost three times as much. Core heads carry no additional safety information compared to all other heads in the network.
Synergy is therefore best understood as a representation of the model digesting a particular input rather than a fixed trait of its weights. This makes synergy a poor per-prompt safety monitor and at best a pooled readout of the shape of reply the model is producing. These results have been obtained on a single Gemma-3-4B model. Investigating the synergistic core through a safety fine-tune with texts held fixed is a natural continuation of this work.