L5·h21: the matching opening bracket or paren, or a preceding closer

Attention head 21 of layer 5 (of 36) in Qwen3-8B, among its association layers.

Fires on
tokens inside closing parens and brackets in code, e.g. ')) and ]) (the labeller was 30% sure)
Attends to
the matching opening bracket or paren, or a preceding closer (the labeller was 30% sure)
Writes
copies ordinal and prefix words such as first, second, pre, over, next (the labeller was 30% sure)

Where it fires: …class Op[ent][opic]Model(Model):

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