L18·h15: earlier copies of the same identifier token in code (duplicate attention)

Attention head 15 of layer 18 (of 36) in Qwen3-4B, among its workspace layers.

Fires on
tokens in Python and code identifiers, especially test names and import statements (the labeller was 30% sure)
Attends to
earlier copies of the same identifier token in code (duplicate attention) (the labeller was 40% sure)
Writes
promotes 'final', 'initial', 'sole' and suppresses colon and newline tokens (the labeller was 30% sure)

Where it fires: ….template.defaultfilters import [addslashes]from … test[_add]slashes02

Labels by Claude Haiku 5.5. The explorer shows this head's weight reads, firings and connections beside the labels.

Every unit's data is in the neuron-lens catalog on Hugging Face (CC BY 4.0). Guide: using Neuron Lens in research, from an AI assistant (MCP) or from code · How to read a unit · the method and findings