{"id": "gpt-neo-125m_L0_H8", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.0.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "List: star wind wood snow red star -> wind", "Series: red king black door fire red -> king"], "mean_activation": 0.238, "ablation_impact_drop": 1.0}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L0 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.238\n - mean attention to self = 0.107\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-125m_L4_H9", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.4.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: bird rock girl house black bird -> rock", "Sequence: night river water wood green night -> river", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.967, "ablation_impact_drop": 0.258}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L4 H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.967\n - mean attention to self = 0.023\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-125m_L5_H8", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.5.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wind road cat girl boy wind -> road", "List: wood boy water tree eye wood -> boy", "List: door sun night boy white door -> sun"], "mean_activation": 1.0, "ablation_impact_drop": 0.578}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L5 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-125m_L6_H6", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.6.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: door sun night boy white door -> sun", "Sequence: night river water wood green night -> river", "Items: king moon black snow sun king -> moon"], "mean_activation": 0.695, "ablation_impact_drop": 1.0}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-125M L6 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.695\n - variant scores: nearest-occurrence 0.448 vs first-occurrence 0.490 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-125m_family_previous_token_x3", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.4.attn.hook_z[9] + blocks.5.attn.hook_z[8] + blocks.7.attn.hook_z[1]", "tier": "family", "members": ["gpt-neo-125m_L4_H9", "gpt-neo-125m_L5_H8", "gpt-neo-125m_L7_H1"], "brain_signature": {"top_activating_examples": ["List: door sun night boy white door -> sun", "List: wind road cat girl boy wind -> road", "List: wind green fire red man wind -> green"], "mean_activation": 0.967, "ablation_impact_drop": 0.907}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L4 HL4H9+L5H8+L7H1).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.967\n - mean attention to self = 0.023\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-125m_L0_H8+L6_H6", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.0.attn.hook_z[8] + blocks.6.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-125m_L0_H8", "gpt-neo-125m_L6_H6"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: tree wood silver king rain tree -> wood", "Series: red king black door fire red -> king"], "mean_activation": 0.695, "ablation_impact_drop": 1.0}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L0_H8(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L0 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.238\n - mean attention to self = 0.107\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-125M L6 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.695\n - variant scores: nearest-occurrence 0.448 vs first-occurrence 0.490 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L0 H8 feeding induction head L6 H6 (EleutherAI/gpt-neo-125M).\n\n Step 1 (L0 H8): every position is annotated with the token before it.\n Step 2 (L6 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-125m_L4_H9+L6_H6", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.4.attn.hook_z[9] + blocks.6.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-125m_L4_H9", "gpt-neo-125m_L6_H6"], "brain_signature": {"top_activating_examples": ["List: door sun night boy white door -> sun", "Sequence: night river water wood green night -> river", "Items: king moon black snow sun king -> moon"], "mean_activation": 0.695, "ablation_impact_drop": 1.0}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L4_H9(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L4 H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.967\n - mean attention to self = 0.023\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-125M L6 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.695\n - variant scores: nearest-occurrence 0.448 vs first-occurrence 0.490 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L4 H9 feeding induction head L6 H6 (EleutherAI/gpt-neo-125M).\n\n Step 1 (L4 H9): every position is annotated with the token before it.\n Step 2 (L6 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-125m_L5_H8+L6_H6", "model": "EleutherAI/gpt-neo-125M", "component": "blocks.5.attn.hook_z[8] + blocks.6.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-125m_L5_H8", "gpt-neo-125m_L6_H6"], "brain_signature": {"top_activating_examples": ["List: door sun night boy white door -> sun", "Sequence: night river water wood green night -> river", "Items: king moon black snow sun king -> moon"], "mean_activation": 0.695, "ablation_impact_drop": 1.0}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L5_H8(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-125M L5 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-125M L6 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.695\n - variant scores: nearest-occurrence 0.448 vs first-occurrence 0.490 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L5 H8 feeding induction head L6 H6 (EleutherAI/gpt-neo-125M).\n\n Step 1 (L5 H8): every position is annotated with the token before it.\n Step 2 (L6 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt2-large_L6_H16", "model": "gpt2-large", "component": "blocks.6.attn.hook_z[16]", "tier": "single", "brain_signature": {"top_activating_examples": ["Words: man woman bird stone water man -> woman", "List: house river night gold dog house -> river", "List: dog night woman man fire dog -> night"], "mean_activation": 0.523, "ablation_impact_drop": 0.047}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (gpt2-large L6 H16).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.523\n - mean attention to self = 0.146\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt2-large_L17_H4", "model": "gpt2-large", "component": "blocks.17.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Words: man woman bird stone water man -> woman", "List: dog night woman man fire dog -> night"], "mean_activation": 0.699, "ablation_impact_drop": 0.074}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (gpt2-large L17 H4).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.699\n - variant scores: nearest-occurrence 0.229 vs first-occurrence 0.518 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt2-large_L22_H0", "model": "gpt2-large", "component": "blocks.22.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mary and Tom went to the library, Mary brought a box to -> Tom", "When Mark and Michael went to the park, Mark brought a apple to -> Michael"], "mean_activation": 0.845, "ablation_impact_drop": 0.076}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (gpt2-large L22 H0).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.845\n - mean attention to subject name = 0.010\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt2-large_L29_H0", "model": "gpt2-large", "component": "blocks.29.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mary and Tom went to the library, Mary brought a box to -> Tom", "When Mark and Peter went to the library, Mark passed a letter to -> Peter", "When Emma and Robert went to the store, Emma gave a ball to -> Robert"], "mean_activation": 0.659, "ablation_impact_drop": 0.145}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (gpt2-large L29 H0).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.659\n - mean attention to subject name = 0.136\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt2-medium_L4_H13", "model": "gpt2-medium", "component": "blocks.4.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: dog night woman man fire dog -> night", "List: star wind wood snow red star -> wind", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.998, "ablation_impact_drop": 0.065}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (gpt2-medium L4 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.998\n - mean attention to self = 0.002\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt2-medium_L15_H14", "model": "gpt2-medium", "component": "blocks.15.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin"], "mean_activation": 0.836, "ablation_impact_drop": 0.066}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (gpt2-medium L15 H14).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.836\n - mean attention to subject name = 0.029\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L2_H8", "model": "EleutherAI/pythia-160m", "component": "blocks.2.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: bird rock girl house black bird -> rock", "Sequence: night river water wood green night -> river", "List: fire woman sun water fish fire -> woman"], "mean_activation": 0.43, "ablation_impact_drop": 0.171}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-160m L2 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.430\n - mean attention to self = 0.216\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-160m_L3_H0", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wind green fire red man wind -> green", "Items: hand fire boy eye woman hand -> fire", "List: door sun night boy white door -> sun"], "mean_activation": 0.628, "ablation_impact_drop": 0.12}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-160m L3 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.628\n - mean attention to self = 0.203\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-160m_L3_H2", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "Words: man woman bird stone water man -> woman", "List: door sun night boy white door -> sun"], "mean_activation": 0.799, "ablation_impact_drop": 0.76}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-160m L3 H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.799\n - mean attention to self = 0.077\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-160m_L3_H6", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "[ blue { moon } star -> ]", "{ silver ( gold ) tree -> }"], "mean_activation": 0.692, "ablation_impact_drop": 0.578}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L3 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.692\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L3_H8", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }", "{ wood [ day ] star -> }"], "mean_activation": 0.341, "ablation_impact_drop": 0.463}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L3 H8).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.341\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L4_H1", "model": "EleutherAI/pythia-160m", "component": "blocks.4.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["( cat [ black ] wood -> )", "[ day { river } heart -> ]", "{ man [ black ] queen -> }"], "mean_activation": 0.915, "ablation_impact_drop": 0.206}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L4 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.915\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L4_H9", "model": "EleutherAI/pythia-160m", "component": "blocks.4.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ man ( water ) cat -> }", "{ black ( blue ) day -> }"], "mean_activation": 0.566, "ablation_impact_drop": 0.116}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L4 H9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.566\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L5_H4", "model": "EleutherAI/pythia-160m", "component": "blocks.5.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ black ( blue ) day -> }", "{ wood [ day ] star -> }", "( snow { hand } door -> )"], "mean_activation": 0.408, "ablation_impact_drop": 0.274}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L5 H4).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.408\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L5_H5", "model": "EleutherAI/pythia-160m", "component": "blocks.5.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "( snow { hand } door -> )", "{ black ( blue ) day -> }"], "mean_activation": 0.694, "ablation_impact_drop": 0.114}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L5 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.694\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L8_H10", "model": "EleutherAI/pythia-160m", "component": "blocks.8.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Kevin and Jessica went to the store, Kevin gave a bottle to -> Jessica", "When Chris and Peter went to the beach, Chris offered a bag to -> Peter"], "mean_activation": 0.929, "ablation_impact_drop": 0.26}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (EleutherAI/pythia-160m L8 H10).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.929\n - mean attention to subject name = 0.032\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L10_H7", "model": "EleutherAI/pythia-160m", "component": "blocks.10.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mary and Tom went to the library, Mary brought a box to -> Tom", "When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin"], "mean_activation": 0.508, "ablation_impact_drop": 0.279}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (EleutherAI/pythia-160m L10 H7).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.508\n - mean attention to subject name = 0.245\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L3_H5+H6+H7+H8+H10", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[5,6,7,8,10]", "tier": "group", "members": ["pythia-160m_L3_H5", "pythia-160m_L3_H6", "pythia-160m_L3_H7", "pythia-160m_L3_H8", "pythia-160m_L3_H10"], "brain_signature": {"top_activating_examples": ["{ black ( blue ) day -> }", "{ silver ( gold ) tree -> }", "{ man ( water ) cat -> }"], "mean_activation": 0.72, "ablation_impact_drop": 0.48}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L3 H5+6+7+8+10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.720\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L3_H0+H2", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[0,2]", "tier": "group", "members": ["pythia-160m_L3_H0", "pythia-160m_L3_H2"], "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "List: book fish water fire hand book -> fish", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.628, "ablation_impact_drop": 0.939}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-160m L3 H0+2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.628\n - mean attention to self = 0.203\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-160m_L4_H0+H1+H4+H6+H9+H10", "model": "EleutherAI/pythia-160m", "component": "blocks.4.attn.hook_z[0,1,4,6,9,10]", "tier": "group", "members": ["pythia-160m_L4_H0", "pythia-160m_L4_H1", "pythia-160m_L4_H4", "pythia-160m_L4_H6", "pythia-160m_L4_H9", "pythia-160m_L4_H10"], "brain_signature": {"top_activating_examples": ["{ black ( blue ) day -> }", "{ heart [ boy ] stone -> }", "{ wood [ day ] star -> }"], "mean_activation": 0.893, "ablation_impact_drop": 0.28}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L4 H0+1+4+6+9+10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.893\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L5_H2+H3+H4+H6+H7+H8+H9+H10+H11", "model": "EleutherAI/pythia-160m", "component": "blocks.5.attn.hook_z[2,3,4,6,7,8,9,10,11]", "tier": "group", "members": ["pythia-160m_L5_H2", "pythia-160m_L5_H3", "pythia-160m_L5_H4", "pythia-160m_L5_H6", "pythia-160m_L5_H7", "pythia-160m_L5_H8", "pythia-160m_L5_H9", "pythia-160m_L5_H10", "pythia-160m_L5_H11"], "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ wood [ day ] star -> }", "[ day { river } heart -> ]"], "mean_activation": 0.839, "ablation_impact_drop": 0.575}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L5 H2+3+4+6+7+8+9+10+11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.839\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_L8_H2+H8+H10+H11", "model": "EleutherAI/pythia-160m", "component": "blocks.8.attn.hook_z[2,8,10,11]", "tier": "group", "members": ["pythia-160m_L8_H2", "pythia-160m_L8_H8", "pythia-160m_L8_H10", "pythia-160m_L8_H11"], "brain_signature": {"top_activating_examples": ["When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin", "When Jessica and Chris went to the library, Jessica passed a watch to -> Chris"], "mean_activation": 0.996, "ablation_impact_drop": 0.77}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (EleutherAI/pythia-160m L8 H2+8+10+11).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.996\n - mean attention to subject name = 0.002\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_family_bracket_matching_x47", "model": "EleutherAI/pythia-160m", "component": "blocks.3.attn.hook_z[5] + blocks.3.attn.hook_z[6] + blocks.3.attn.hook_z[7] + blocks.3.attn.hook_z[8] + blocks.3.attn.hook_z[10] + blocks.4.attn.hook_z[0] + blocks.4.attn.hook_z[1] + blocks.4.attn.hook_z[4] + blocks.4.attn.hook_z[6] + blocks.4.attn.hook_z[9] + blocks.4.attn.hook_z[10] + blocks.5.attn.hook_z[2] + blocks.5.attn.hook_z[3] + blocks.5.attn.hook_z[4] + blocks.5.attn.hook_z[6] + blocks.5.attn.hook_z[7] + blocks.5.attn.hook_z[8] + blocks.5.attn.hook_z[9] + blocks.5.attn.hook_z[10] + blocks.5.attn.hook_z[11] + blocks.6.attn.hook_z[2] + blocks.6.attn.hook_z[3] + blocks.6.attn.hook_z[4] + blocks.6.attn.hook_z[5] + blocks.6.attn.hook_z[6] + blocks.6.attn.hook_z[7] + blocks.6.attn.hook_z[8] + blocks.6.attn.hook_z[9] + blocks.6.attn.hook_z[10] + blocks.7.attn.hook_z[0] + blocks.7.attn.hook_z[1] + blocks.7.attn.hook_z[8] + blocks.7.attn.hook_z[10] + blocks.8.attn.hook_z[6] + blocks.8.attn.hook_z[9] + blocks.9.attn.hook_z[0] + blocks.9.attn.hook_z[10] + blocks.9.attn.hook_z[11] + blocks.10.attn.hook_z[1] + blocks.10.attn.hook_z[2] + blocks.10.attn.hook_z[10] + blocks.11.attn.hook_z[3] + blocks.11.attn.hook_z[5] + blocks.11.attn.hook_z[7] + blocks.11.attn.hook_z[8] + blocks.11.attn.hook_z[9] + blocks.11.attn.hook_z[10]", "tier": "family", "members": ["pythia-160m_L3_H5", "pythia-160m_L3_H6", "pythia-160m_L3_H7", "pythia-160m_L3_H8", "pythia-160m_L3_H10", "pythia-160m_L4_H0", "pythia-160m_L4_H1", "pythia-160m_L4_H4", "pythia-160m_L4_H6", "pythia-160m_L4_H9", "pythia-160m_L4_H10", "pythia-160m_L5_H2", "pythia-160m_L5_H3", "pythia-160m_L5_H4", "pythia-160m_L5_H6", "pythia-160m_L5_H7", "pythia-160m_L5_H8", "pythia-160m_L5_H9", "pythia-160m_L5_H10", "pythia-160m_L5_H11", "pythia-160m_L6_H2", "pythia-160m_L6_H3", "pythia-160m_L6_H4", "pythia-160m_L6_H5", "pythia-160m_L6_H6", "pythia-160m_L6_H7", "pythia-160m_L6_H8", "pythia-160m_L6_H9", "pythia-160m_L6_H10", "pythia-160m_L7_H0", "pythia-160m_L7_H1", "pythia-160m_L7_H8", "pythia-160m_L7_H10", "pythia-160m_L8_H6", "pythia-160m_L8_H9", "pythia-160m_L9_H0", "pythia-160m_L9_H10", "pythia-160m_L9_H11", "pythia-160m_L10_H1", "pythia-160m_L10_H2", "pythia-160m_L10_H10", "pythia-160m_L11_H3", "pythia-160m_L11_H5", "pythia-160m_L11_H7", "pythia-160m_L11_H8", "pythia-160m_L11_H9", "pythia-160m_L11_H10"], "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ wood [ day ] star -> }", "{ black ( blue ) day -> }"], "mean_activation": 0.72, "ablation_impact_drop": 0.964}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-160m L3 HL3H5+L3H6+L3H7+L3H8+L3H10+L4H0+L4H1+L4H4+L4H6+L4H9+L4H10+L5H2+L5H3+L5H4+L5H6+L5H7+L5H8+L5H9+L5H10+L5H11+L6H2+L6H3+L6H4+L6H5+L6H6+L6H7+L6H8+L6H9+L6H10+L7H0+L7H1+L7H8+L7H10+L8H6+L8H9+L9H0+L9H10+L9H11+L10H1+L10H2+L10H10+L11H3+L11H5+L11H7+L11H8+L11H9+L11H10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.720\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-160m_family_previous_token_x4", "model": "EleutherAI/pythia-160m", "component": "blocks.0.attn.hook_z[4] + blocks.2.attn.hook_z[8] + blocks.3.attn.hook_z[0] + blocks.3.attn.hook_z[2]", "tier": "family", "members": ["pythia-160m_L0_H4", "pythia-160m_L2_H8", "pythia-160m_L3_H0", "pythia-160m_L3_H2"], "brain_signature": {"top_activating_examples": ["List: wood boy water tree eye wood -> boy", "List: wind road cat girl boy wind -> road", "Items: hand fire boy eye woman hand -> fire"], "mean_activation": 0.36, "ablation_impact_drop": 0.961}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-160m L0 HL0H4+L2H8+L3H0+L3H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.360\n - mean attention to self = 0.094\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-160m_L8_H10+L10_H7", "model": "EleutherAI/pythia-160m", "component": "blocks.8.attn.hook_z[10] + blocks.10.attn.hook_z[7]", "tier": "composed", "members": ["pythia-160m_L8_H10", "pythia-160m_L10_H7"], "brain_signature": {"top_activating_examples": ["When Mary and Tom went to the library, Mary brought a box to -> Tom", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin"], "mean_activation": 0.508, "ablation_impact_drop": 0.535}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H10(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (EleutherAI/pythia-160m L8 H10).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.929\n - mean attention to subject name = 0.032\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L10_H7(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (EleutherAI/pythia-160m L10 H7).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.508\n - mean attention to subject name = 0.245\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: two name-mover heads (L8 H10 and L10 H7) on EleutherAI/pythia-160m.\n\n Each head independently identifies the single-occurrence name (the indirect object) in a two-name giving construction; their outputs are then combined. The pair is verified when both heads agree on the attended name.\"\"\"\n a = circuit_logic_L8_H10(tokens)\n b = circuit_logic_L10_H7(tokens)\n if a[\"fires\"] and b[\"fires\"]:\n return {\"fires\": True, \"attended_token\": a[\"attended_token\"], \"rule\": \"name_mover_pair\", \"agreement\": a[\"attended_token\"] == b[\"attended_token\"]}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L1_H11", "model": "EleutherAI/pythia-1.4b", "component": "blocks.1.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: woman night green gold rain woman -> night", "Items: king moon black snow sun king -> moon", "List: star wind wood snow red star -> wind"], "mean_activation": 0.896, "ablation_impact_drop": 0.592}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L1 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.896\n - mean attention to self = 0.045\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-1_4b_L2_H4", "model": "EleutherAI/pythia-1.4b", "component": "blocks.2.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }", "{ black ( blue ) day -> }"], "mean_activation": 0.254, "ablation_impact_drop": 0.056}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L2 H4).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.254\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L2_H7", "model": "EleutherAI/pythia-1.4b", "component": "blocks.2.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: queen road cat house wood queen -> road", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.579, "ablation_impact_drop": 0.134}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L2 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.579\n - variant scores: nearest-occurrence 0.541 vs first-occurrence 0.384 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L3_H10", "model": "EleutherAI/pythia-1.4b", "component": "blocks.3.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ day { river } heart -> ]", "{ man [ black ] queen -> }", "[ heart { night } moon -> ]"], "mean_activation": 0.611, "ablation_impact_drop": 0.501}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L3 H10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.611\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L3_H13", "model": "EleutherAI/pythia-1.4b", "component": "blocks.3.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: fire woman sun water fish fire -> woman", "List: tree hand man stone house tree -> hand", "Sequence: night river water wood green night -> river"], "mean_activation": 0.573, "ablation_impact_drop": 0.12}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L3 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.573\n - variant scores: nearest-occurrence 0.202 vs first-occurrence 0.544 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L4_H9", "model": "EleutherAI/pythia-1.4b", "component": "blocks.4.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "[ day { river } heart -> ]", "{ house [ tree ] rain -> }"], "mean_activation": 0.884, "ablation_impact_drop": 0.059}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L4 H9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.884\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L4_H15", "model": "EleutherAI/pythia-1.4b", "component": "blocks.4.attn.hook_z[15]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: queen road cat house wood queen -> road", "List: house river night gold dog house -> river", "List: star wind wood snow red star -> wind"], "mean_activation": 0.576, "ablation_impact_drop": 0.426}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L4 H15).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.576\n - mean attention to self = 0.199\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-1_4b_L5_H3", "model": "EleutherAI/pythia-1.4b", "component": "blocks.5.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ heart [ boy ] stone -> }", "{ man [ black ] queen -> }"], "mean_activation": 0.512, "ablation_impact_drop": 0.054}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L5 H3).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.512\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L5_H8", "model": "EleutherAI/pythia-1.4b", "component": "blocks.5.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: queen road cat house wood queen -> road", "List: star wind wood snow red star -> wind", "List: house river night gold dog house -> river"], "mean_activation": 0.541, "ablation_impact_drop": 0.382}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L5 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.541\n - variant scores: nearest-occurrence 0.629 vs first-occurrence 0.312 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L5_H11", "model": "EleutherAI/pythia-1.4b", "component": "blocks.5.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }", "{ heart [ boy ] stone -> }"], "mean_activation": 0.979, "ablation_impact_drop": 0.043}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L5 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.979\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L5_H12", "model": "EleutherAI/pythia-1.4b", "component": "blocks.5.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "[ day { river } heart -> ]", "{ silver ( fish ) stone -> }"], "mean_activation": 0.618, "ablation_impact_drop": 0.048}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L5 H12).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.618\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L5_H13", "model": "EleutherAI/pythia-1.4b", "component": "blocks.5.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ river ( woman ) boy -> }", "[ heart { night } moon -> ]"], "mean_activation": 0.935, "ablation_impact_drop": 0.086}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L5 H13).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.935\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L7_H12", "model": "EleutherAI/pythia-1.4b", "component": "blocks.7.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ wood [ day ] star -> }", "( queen { green } wind -> )", "{ man ( water ) cat -> }"], "mean_activation": 0.945, "ablation_impact_drop": 0.045}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L7 H12).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.945\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L8_H2", "model": "EleutherAI/pythia-1.4b", "component": "blocks.8.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man [ black ] queen -> }", "[ day { river } heart -> ]", "{ house [ tree ] rain -> }"], "mean_activation": 0.402, "ablation_impact_drop": 0.067}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L8 H2).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.402\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L8_H5", "model": "EleutherAI/pythia-1.4b", "component": "blocks.8.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ silver ( gold ) tree -> }", "{ river ( woman ) boy -> }"], "mean_activation": 0.789, "ablation_impact_drop": 0.067}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L8 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.789\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L8_H7", "model": "EleutherAI/pythia-1.4b", "component": "blocks.8.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["( cat [ black ] wood -> )", "( queen { green } wind -> )", "{ man ( water ) cat -> }"], "mean_activation": 0.461, "ablation_impact_drop": 0.043}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L8 H7).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.461\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L9_H1", "model": "EleutherAI/pythia-1.4b", "component": "blocks.9.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["( cat [ black ] wood -> )", "( queen { green } wind -> )", "( snow { rain } stone -> )"], "mean_activation": 0.964, "ablation_impact_drop": 0.052}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L9 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.964\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L9_H6", "model": "EleutherAI/pythia-1.4b", "component": "blocks.9.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man [ black ] queen -> }", "[ heart { night } moon -> ]", "{ silver ( gold ) tree -> }"], "mean_activation": 0.877, "ablation_impact_drop": 0.056}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L9 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.877\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L9_H12", "model": "EleutherAI/pythia-1.4b", "component": "blocks.9.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["( snow { rain } stone -> )", "[ day { river } heart -> ]", "( queen { green } wind -> )"], "mean_activation": 0.772, "ablation_impact_drop": 0.044}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L9 H12).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.772\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L9_H15", "model": "EleutherAI/pythia-1.4b", "component": "blocks.9.attn.hook_z[15]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "( cat [ black ] wood -> )", "{ silver ( fish ) stone -> }"], "mean_activation": 0.902, "ablation_impact_drop": 0.058}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L9 H15).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.902\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L10_H6", "model": "EleutherAI/pythia-1.4b", "component": "blocks.10.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "[ day { river } heart -> ]", "{ silver ( gold ) tree -> }"], "mean_activation": 0.583, "ablation_impact_drop": 0.093}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L10 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.583\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L10_H14", "model": "EleutherAI/pythia-1.4b", "component": "blocks.10.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ black ( blue ) day -> }", "{ river ( woman ) boy -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.633, "ablation_impact_drop": 0.057}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L10 H14).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.633\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L10_H15", "model": "EleutherAI/pythia-1.4b", "component": "blocks.10.attn.hook_z[15]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "{ silver ( fish ) stone -> }", "[ blue { moon } star -> ]"], "mean_activation": 0.631, "ablation_impact_drop": 0.048}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L10 H15).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.631\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L11_H11", "model": "EleutherAI/pythia-1.4b", "component": "blocks.11.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "( cat [ black ] wood -> )", "{ river ( woman ) boy -> }"], "mean_activation": 0.511, "ablation_impact_drop": 0.063}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L11 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.511\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L13_H4", "model": "EleutherAI/pythia-1.4b", "component": "blocks.13.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ blue { moon } star -> ]", "{ man [ black ] queen -> }", "[ day { river } heart -> ]"], "mean_activation": 1.0, "ablation_impact_drop": 0.058}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L13 H4).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 1.000\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L14_H3", "model": "EleutherAI/pythia-1.4b", "component": "blocks.14.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ day { river } heart -> ]", "[ heart { night } moon -> ]", "[ blue { moon } star -> ]"], "mean_activation": 1.0, "ablation_impact_drop": 0.074}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L14 H3).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 1.000\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L16_H8", "model": "EleutherAI/pythia-1.4b", "component": "blocks.16.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "[ blue { moon } star -> ]", "{ wood [ day ] star -> }"], "mean_activation": 1.0, "ablation_impact_drop": 0.078}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L16 H8).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 1.000\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L16_H10", "model": "EleutherAI/pythia-1.4b", "component": "blocks.16.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ day { river } heart -> ]", "[ heart { night } moon -> ]", "{ man ( water ) cat -> }"], "mean_activation": 0.981, "ablation_impact_drop": 0.129}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L16 H10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.981\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L17_H2", "model": "EleutherAI/pythia-1.4b", "component": "blocks.17.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["( cat [ black ] wood -> )", "( queen { green } wind -> )", "( snow { rain } stone -> )"], "mean_activation": 1.0, "ablation_impact_drop": 0.179}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L17 H2).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 1.000\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L23_H15", "model": "EleutherAI/pythia-1.4b", "component": "blocks.23.attn.hook_z[15]", "tier": "single", "brain_signature": {"top_activating_examples": ["( cat [ black ] wood -> )", "{ man [ black ] queen -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.897, "ablation_impact_drop": 0.053}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L23 H15).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.897\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_family_bracket_matching_x220", "model": "EleutherAI/pythia-1.4b", "component": "blocks.2.attn.hook_z[2] + blocks.3.attn.hook_z[10] + blocks.4.attn.hook_z[1] + blocks.4.attn.hook_z[2] + blocks.4.attn.hook_z[3] + blocks.4.attn.hook_z[4] + blocks.4.attn.hook_z[7] + blocks.4.attn.hook_z[8] + blocks.4.attn.hook_z[9] + blocks.4.attn.hook_z[10] + blocks.4.attn.hook_z[11] + blocks.5.attn.hook_z[1] + blocks.5.attn.hook_z[3] + blocks.5.attn.hook_z[4] + blocks.5.attn.hook_z[5] + blocks.5.attn.hook_z[6] + blocks.5.attn.hook_z[7] + blocks.5.attn.hook_z[9] + blocks.5.attn.hook_z[10] + blocks.5.attn.hook_z[11] + blocks.5.attn.hook_z[12] + blocks.5.attn.hook_z[13] + blocks.5.attn.hook_z[14] + blocks.5.attn.hook_z[15] + blocks.6.attn.hook_z[0] + blocks.6.attn.hook_z[4] + blocks.6.attn.hook_z[5] + blocks.6.attn.hook_z[6] + blocks.6.attn.hook_z[7] + blocks.6.attn.hook_z[8] + blocks.6.attn.hook_z[9] + blocks.6.attn.hook_z[11] + blocks.6.attn.hook_z[12] + blocks.6.attn.hook_z[13] + blocks.6.attn.hook_z[14] + blocks.7.attn.hook_z[1] + blocks.7.attn.hook_z[2] + blocks.7.attn.hook_z[4] + blocks.7.attn.hook_z[6] + blocks.7.attn.hook_z[7] + blocks.7.attn.hook_z[8] + blocks.7.attn.hook_z[11] + blocks.7.attn.hook_z[12] + blocks.7.attn.hook_z[13] + blocks.7.attn.hook_z[14] + blocks.7.attn.hook_z[15] + blocks.8.attn.hook_z[1] + blocks.8.attn.hook_z[2] + blocks.8.attn.hook_z[3] + blocks.8.attn.hook_z[5] + blocks.8.attn.hook_z[6] + blocks.8.attn.hook_z[7] + blocks.8.attn.hook_z[9] + blocks.8.attn.hook_z[10] + blocks.8.attn.hook_z[14] + blocks.9.attn.hook_z[0] + blocks.9.attn.hook_z[1] + blocks.9.attn.hook_z[4] + blocks.9.attn.hook_z[5] + blocks.9.attn.hook_z[6] + blocks.9.attn.hook_z[7] + blocks.9.attn.hook_z[9] + blocks.9.attn.hook_z[10] + blocks.9.attn.hook_z[11] + blocks.9.attn.hook_z[13] + blocks.9.attn.hook_z[14] + blocks.9.attn.hook_z[15] + blocks.10.attn.hook_z[2] + blocks.10.attn.hook_z[3] + blocks.10.attn.hook_z[4] + blocks.10.attn.hook_z[6] + blocks.10.attn.hook_z[7] + blocks.10.attn.hook_z[8] + blocks.10.attn.hook_z[9] + blocks.10.attn.hook_z[10] + blocks.10.attn.hook_z[11] + blocks.10.attn.hook_z[12] + blocks.10.attn.hook_z[13] + blocks.10.attn.hook_z[15] + blocks.11.attn.hook_z[0] + blocks.11.attn.hook_z[1] + blocks.11.attn.hook_z[3] + blocks.11.attn.hook_z[6] + blocks.11.attn.hook_z[7] + blocks.11.attn.hook_z[8] + blocks.11.attn.hook_z[11] + blocks.11.attn.hook_z[13] + blocks.11.attn.hook_z[15] + blocks.12.attn.hook_z[0] + blocks.12.attn.hook_z[1] + blocks.12.attn.hook_z[2] + blocks.12.attn.hook_z[4] + blocks.12.attn.hook_z[5] + blocks.12.attn.hook_z[6] + blocks.12.attn.hook_z[10] + blocks.12.attn.hook_z[12] + blocks.12.attn.hook_z[13] + blocks.12.attn.hook_z[15] + blocks.13.attn.hook_z[0] + blocks.13.attn.hook_z[2] + blocks.13.attn.hook_z[4] + blocks.13.attn.hook_z[5] + blocks.13.attn.hook_z[7] + blocks.13.attn.hook_z[8] + blocks.13.attn.hook_z[10] + blocks.13.attn.hook_z[11] + blocks.13.attn.hook_z[12] + blocks.13.attn.hook_z[13] + blocks.13.attn.hook_z[14] + blocks.13.attn.hook_z[15] + blocks.14.attn.hook_z[0] + blocks.14.attn.hook_z[2] + blocks.14.attn.hook_z[3] + blocks.14.attn.hook_z[4] + blocks.14.attn.hook_z[5] + blocks.14.attn.hook_z[6] + blocks.14.attn.hook_z[8] + blocks.14.attn.hook_z[9] + blocks.14.attn.hook_z[10] + blocks.14.attn.hook_z[12] + blocks.14.attn.hook_z[13] + blocks.14.attn.hook_z[15] + blocks.15.attn.hook_z[0] + blocks.15.attn.hook_z[4] + blocks.15.attn.hook_z[6] + blocks.15.attn.hook_z[7] + blocks.15.attn.hook_z[8] + blocks.15.attn.hook_z[9] + blocks.15.attn.hook_z[11] + blocks.15.attn.hook_z[12] + blocks.15.attn.hook_z[13] + blocks.15.attn.hook_z[14] + blocks.16.attn.hook_z[0] + blocks.16.attn.hook_z[1] + blocks.16.attn.hook_z[2] + blocks.16.attn.hook_z[3] + blocks.16.attn.hook_z[4] + blocks.16.attn.hook_z[5] + blocks.16.attn.hook_z[7] + blocks.16.attn.hook_z[8] + blocks.16.attn.hook_z[9] + blocks.16.attn.hook_z[10] + blocks.16.attn.hook_z[11] + blocks.16.attn.hook_z[12] + blocks.16.attn.hook_z[13] + blocks.16.attn.hook_z[14] + blocks.17.attn.hook_z[1] + blocks.17.attn.hook_z[2] + blocks.17.attn.hook_z[3] + blocks.17.attn.hook_z[4] + blocks.17.attn.hook_z[6] + blocks.17.attn.hook_z[8] + blocks.17.attn.hook_z[9] + blocks.17.attn.hook_z[10] + blocks.17.attn.hook_z[12] + blocks.17.attn.hook_z[13] + blocks.17.attn.hook_z[14] + blocks.17.attn.hook_z[15] + blocks.18.attn.hook_z[0] + blocks.18.attn.hook_z[1] + blocks.18.attn.hook_z[2] + blocks.18.attn.hook_z[3] + blocks.18.attn.hook_z[4] + blocks.18.attn.hook_z[5] + blocks.18.attn.hook_z[6] + blocks.18.attn.hook_z[7] + blocks.18.attn.hook_z[10] + blocks.18.attn.hook_z[11] + blocks.18.attn.hook_z[13] + blocks.18.attn.hook_z[14] + blocks.18.attn.hook_z[15] + blocks.19.attn.hook_z[0] + blocks.19.attn.hook_z[1] + blocks.19.attn.hook_z[3] + blocks.19.attn.hook_z[4] + blocks.19.attn.hook_z[6] + blocks.19.attn.hook_z[7] + blocks.19.attn.hook_z[8] + blocks.19.attn.hook_z[9] + blocks.19.attn.hook_z[10] + blocks.19.attn.hook_z[11] + blocks.19.attn.hook_z[12] + blocks.19.attn.hook_z[14] + blocks.19.attn.hook_z[15] + blocks.20.attn.hook_z[0] + blocks.20.attn.hook_z[2] + blocks.20.attn.hook_z[3] + blocks.20.attn.hook_z[4] + blocks.20.attn.hook_z[6] + blocks.20.attn.hook_z[7] + blocks.20.attn.hook_z[8] + blocks.20.attn.hook_z[9] + blocks.20.attn.hook_z[12] + blocks.20.attn.hook_z[15] + blocks.21.attn.hook_z[2] + blocks.21.attn.hook_z[3] + blocks.21.attn.hook_z[4] + blocks.21.attn.hook_z[5] + blocks.21.attn.hook_z[8] + blocks.21.attn.hook_z[9] + blocks.21.attn.hook_z[11] + blocks.21.attn.hook_z[12] + blocks.21.attn.hook_z[13] + blocks.22.attn.hook_z[0] + blocks.22.attn.hook_z[3] + blocks.22.attn.hook_z[5] + blocks.22.attn.hook_z[7] + blocks.22.attn.hook_z[8] + blocks.22.attn.hook_z[10] + blocks.22.attn.hook_z[11] + blocks.22.attn.hook_z[13] + blocks.22.attn.hook_z[14] + blocks.22.attn.hook_z[15] + blocks.23.attn.hook_z[4] + blocks.23.attn.hook_z[6] + blocks.23.attn.hook_z[7] + blocks.23.attn.hook_z[8] + blocks.23.attn.hook_z[11] + blocks.23.attn.hook_z[12] + blocks.23.attn.hook_z[15]", "tier": "family", "members": ["pythia-1_4b_L2_H2", "pythia-1_4b_L3_H10", "pythia-1_4b_L4_H1", "pythia-1_4b_L4_H2", "pythia-1_4b_L4_H3", "pythia-1_4b_L4_H4", "pythia-1_4b_L4_H7", "pythia-1_4b_L4_H8", "pythia-1_4b_L4_H9", "pythia-1_4b_L4_H10", "pythia-1_4b_L4_H11", "pythia-1_4b_L5_H1", "pythia-1_4b_L5_H3", "pythia-1_4b_L5_H4", "pythia-1_4b_L5_H5", "pythia-1_4b_L5_H6", "pythia-1_4b_L5_H7", "pythia-1_4b_L5_H9", "pythia-1_4b_L5_H10", "pythia-1_4b_L5_H11", "pythia-1_4b_L5_H12", "pythia-1_4b_L5_H13", "pythia-1_4b_L5_H14", "pythia-1_4b_L5_H15", "pythia-1_4b_L6_H0", "pythia-1_4b_L6_H4", "pythia-1_4b_L6_H5", "pythia-1_4b_L6_H6", "pythia-1_4b_L6_H7", "pythia-1_4b_L6_H8", "pythia-1_4b_L6_H9", "pythia-1_4b_L6_H11", "pythia-1_4b_L6_H12", "pythia-1_4b_L6_H13", "pythia-1_4b_L6_H14", "pythia-1_4b_L7_H1", "pythia-1_4b_L7_H2", "pythia-1_4b_L7_H4", "pythia-1_4b_L7_H6", "pythia-1_4b_L7_H7", "pythia-1_4b_L7_H8", "pythia-1_4b_L7_H11", "pythia-1_4b_L7_H12", "pythia-1_4b_L7_H13", "pythia-1_4b_L7_H14", "pythia-1_4b_L7_H15", "pythia-1_4b_L8_H1", "pythia-1_4b_L8_H2", "pythia-1_4b_L8_H3", "pythia-1_4b_L8_H5", "pythia-1_4b_L8_H6", "pythia-1_4b_L8_H7", "pythia-1_4b_L8_H9", "pythia-1_4b_L8_H10", "pythia-1_4b_L8_H14", "pythia-1_4b_L9_H0", "pythia-1_4b_L9_H1", "pythia-1_4b_L9_H4", "pythia-1_4b_L9_H5", "pythia-1_4b_L9_H6", "pythia-1_4b_L9_H7", "pythia-1_4b_L9_H9", "pythia-1_4b_L9_H10", "pythia-1_4b_L9_H11", "pythia-1_4b_L9_H13", "pythia-1_4b_L9_H14", "pythia-1_4b_L9_H15", "pythia-1_4b_L10_H2", "pythia-1_4b_L10_H3", "pythia-1_4b_L10_H4", "pythia-1_4b_L10_H6", "pythia-1_4b_L10_H7", "pythia-1_4b_L10_H8", "pythia-1_4b_L10_H9", "pythia-1_4b_L10_H10", "pythia-1_4b_L10_H11", "pythia-1_4b_L10_H12", "pythia-1_4b_L10_H13", "pythia-1_4b_L10_H15", "pythia-1_4b_L11_H0", "pythia-1_4b_L11_H1", "pythia-1_4b_L11_H3", "pythia-1_4b_L11_H6", "pythia-1_4b_L11_H7", "pythia-1_4b_L11_H8", "pythia-1_4b_L11_H11", "pythia-1_4b_L11_H13", "pythia-1_4b_L11_H15", "pythia-1_4b_L12_H0", "pythia-1_4b_L12_H1", "pythia-1_4b_L12_H2", "pythia-1_4b_L12_H4", "pythia-1_4b_L12_H5", "pythia-1_4b_L12_H6", "pythia-1_4b_L12_H10", "pythia-1_4b_L12_H12", "pythia-1_4b_L12_H13", "pythia-1_4b_L12_H15", "pythia-1_4b_L13_H0", "pythia-1_4b_L13_H2", "pythia-1_4b_L13_H4", "pythia-1_4b_L13_H5", "pythia-1_4b_L13_H7", "pythia-1_4b_L13_H8", "pythia-1_4b_L13_H10", "pythia-1_4b_L13_H11", "pythia-1_4b_L13_H12", "pythia-1_4b_L13_H13", "pythia-1_4b_L13_H14", "pythia-1_4b_L13_H15", "pythia-1_4b_L14_H0", "pythia-1_4b_L14_H2", "pythia-1_4b_L14_H3", "pythia-1_4b_L14_H4", "pythia-1_4b_L14_H5", "pythia-1_4b_L14_H6", "pythia-1_4b_L14_H8", "pythia-1_4b_L14_H9", "pythia-1_4b_L14_H10", "pythia-1_4b_L14_H12", "pythia-1_4b_L14_H13", "pythia-1_4b_L14_H15", "pythia-1_4b_L15_H0", "pythia-1_4b_L15_H4", "pythia-1_4b_L15_H6", "pythia-1_4b_L15_H7", "pythia-1_4b_L15_H8", "pythia-1_4b_L15_H9", "pythia-1_4b_L15_H11", "pythia-1_4b_L15_H12", "pythia-1_4b_L15_H13", "pythia-1_4b_L15_H14", "pythia-1_4b_L16_H0", "pythia-1_4b_L16_H1", "pythia-1_4b_L16_H2", "pythia-1_4b_L16_H3", "pythia-1_4b_L16_H4", "pythia-1_4b_L16_H5", "pythia-1_4b_L16_H7", "pythia-1_4b_L16_H8", "pythia-1_4b_L16_H9", "pythia-1_4b_L16_H10", "pythia-1_4b_L16_H11", "pythia-1_4b_L16_H12", "pythia-1_4b_L16_H13", "pythia-1_4b_L16_H14", "pythia-1_4b_L17_H1", "pythia-1_4b_L17_H2", "pythia-1_4b_L17_H3", "pythia-1_4b_L17_H4", "pythia-1_4b_L17_H6", "pythia-1_4b_L17_H8", "pythia-1_4b_L17_H9", "pythia-1_4b_L17_H10", "pythia-1_4b_L17_H12", "pythia-1_4b_L17_H13", "pythia-1_4b_L17_H14", "pythia-1_4b_L17_H15", "pythia-1_4b_L18_H0", "pythia-1_4b_L18_H1", "pythia-1_4b_L18_H2", "pythia-1_4b_L18_H3", "pythia-1_4b_L18_H4", "pythia-1_4b_L18_H5", "pythia-1_4b_L18_H6", "pythia-1_4b_L18_H7", "pythia-1_4b_L18_H10", "pythia-1_4b_L18_H11", "pythia-1_4b_L18_H13", "pythia-1_4b_L18_H14", "pythia-1_4b_L18_H15", "pythia-1_4b_L19_H0", "pythia-1_4b_L19_H1", "pythia-1_4b_L19_H3", "pythia-1_4b_L19_H4", "pythia-1_4b_L19_H6", "pythia-1_4b_L19_H7", "pythia-1_4b_L19_H8", "pythia-1_4b_L19_H9", "pythia-1_4b_L19_H10", "pythia-1_4b_L19_H11", "pythia-1_4b_L19_H12", "pythia-1_4b_L19_H14", "pythia-1_4b_L19_H15", "pythia-1_4b_L20_H0", "pythia-1_4b_L20_H2", "pythia-1_4b_L20_H3", "pythia-1_4b_L20_H4", "pythia-1_4b_L20_H6", "pythia-1_4b_L20_H7", "pythia-1_4b_L20_H8", "pythia-1_4b_L20_H9", "pythia-1_4b_L20_H12", "pythia-1_4b_L20_H15", "pythia-1_4b_L21_H2", "pythia-1_4b_L21_H3", "pythia-1_4b_L21_H4", "pythia-1_4b_L21_H5", "pythia-1_4b_L21_H8", "pythia-1_4b_L21_H9", "pythia-1_4b_L21_H11", "pythia-1_4b_L21_H12", "pythia-1_4b_L21_H13", "pythia-1_4b_L22_H0", "pythia-1_4b_L22_H3", "pythia-1_4b_L22_H5", "pythia-1_4b_L22_H7", "pythia-1_4b_L22_H8", "pythia-1_4b_L22_H10", "pythia-1_4b_L22_H11", "pythia-1_4b_L22_H13", "pythia-1_4b_L22_H14", "pythia-1_4b_L22_H15", "pythia-1_4b_L23_H4", "pythia-1_4b_L23_H6", "pythia-1_4b_L23_H7", "pythia-1_4b_L23_H8", "pythia-1_4b_L23_H11", "pythia-1_4b_L23_H12", "pythia-1_4b_L23_H15"], "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ man [ black ] queen -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.36, "ablation_impact_drop": 0.54}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (EleutherAI/pythia-1.4b L2 HL2H2+L3H10+L4H1+L4H2+L4H3+L4H4+L4H7+L4H8+L4H9+L4H10+L4H11+L5H1+L5H3+L5H4+L5H5+L5H6+L5H7+L5H9+L5H10+L5H11+L5H12+L5H13+L5H14+L5H15+L6H0+L6H4+L6H5+L6H6+L6H7+L6H8+L6H9+L6H11+L6H12+L6H13+L6H14+L7H1+L7H2+L7H4+L7H6+L7H7+L7H8+L7H11+L7H12+L7H13+L7H14+L7H15+L8H1+L8H2+L8H3+L8H5+L8H6+L8H7+L8H9+L8H10+L8H14+L9H0+L9H1+L9H4+L9H5+L9H6+L9H7+L9H9+L9H10+L9H11+L9H13+L9H14+L9H15+L10H2+L10H3+L10H4+L10H6+L10H7+L10H8+L10H9+L10H10+L10H11+L10H12+L10H13+L10H15+L11H0+L11H1+L11H3+L11H6+L11H7+L11H8+L11H11+L11H13+L11H15+L12H0+L12H1+L12H2+L12H4+L12H5+L12H6+L12H10+L12H12+L12H13+L12H15+L13H0+L13H2+L13H4+L13H5+L13H7+L13H8+L13H10+L13H11+L13H12+L13H13+L13H14+L13H15+L14H0+L14H2+L14H3+L14H4+L14H5+L14H6+L14H8+L14H9+L14H10+L14H12+L14H13+L14H15+L15H0+L15H4+L15H6+L15H7+L15H8+L15H9+L15H11+L15H12+L15H13+L15H14+L16H0+L16H1+L16H2+L16H3+L16H4+L16H5+L16H7+L16H8+L16H9+L16H10+L16H11+L16H12+L16H13+L16H14+L17H1+L17H2+L17H3+L17H4+L17H6+L17H8+L17H9+L17H10+L17H12+L17H13+L17H14+L17H15+L18H0+L18H1+L18H2+L18H3+L18H4+L18H5+L18H6+L18H7+L18H10+L18H11+L18H13+L18H14+L18H15+L19H0+L19H1+L19H3+L19H4+L19H6+L19H7+L19H8+L19H9+L19H10+L19H11+L19H12+L19H14+L19H15+L20H0+L20H2+L20H3+L20H4+L20H6+L20H7+L20H8+L20H9+L20H12+L20H15+L21H2+L21H3+L21H4+L21H5+L21H8+L21H9+L21H11+L21H12+L21H13+L22H0+L22H3+L22H5+L22H7+L22H8+L22H10+L22H11+L22H13+L22H14+L22H15+L23H4+L23H6+L23H7+L23H8+L23H11+L23H12+L23H15).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.360\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_family_induction_x2", "model": "EleutherAI/pythia-1.4b", "component": "blocks.2.attn.hook_z[7] + blocks.5.attn.hook_z[8]", "tier": "family", "members": ["pythia-1_4b_L2_H7", "pythia-1_4b_L5_H8"], "brain_signature": {"top_activating_examples": ["List: queen road cat house wood queen -> road", "Series: red king black door fire red -> king", "List: star wind wood snow red star -> wind"], "mean_activation": 0.579, "ablation_impact_drop": 0.521}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L2 HL2H7+L5H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.579\n - variant scores: nearest-occurrence 0.541 vs first-occurrence 0.384 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_family_previous_token_x2", "model": "EleutherAI/pythia-1.4b", "component": "blocks.1.attn.hook_z[11] + blocks.4.attn.hook_z[15]", "tier": "family", "members": ["pythia-1_4b_L1_H11", "pythia-1_4b_L4_H15"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: woman night green gold rain woman -> night", "Items: king moon black snow sun king -> moon"], "mean_activation": 0.896, "ablation_impact_drop": 0.778}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L1 HL1H11+L4H15).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.896\n - mean attention to self = 0.045\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-1_4b_L1_H11+L2_H7", "model": "EleutherAI/pythia-1.4b", "component": "blocks.1.attn.hook_z[11] + blocks.2.attn.hook_z[7]", "tier": "composed", "members": ["pythia-1_4b_L1_H11", "pythia-1_4b_L2_H7"], "brain_signature": {"top_activating_examples": ["List: woman night green gold rain woman -> night", "Series: red king black door fire red -> king", "List: star wind wood snow red star -> wind"], "mean_activation": 0.579, "ablation_impact_drop": 0.63}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L1_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L1 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.896\n - mean attention to self = 0.045\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L2_H7(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L2 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.579\n - variant scores: nearest-occurrence 0.541 vs first-occurrence 0.384 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L1 H11 feeding induction head L2 H7 (EleutherAI/pythia-1.4b).\n\n Step 1 (L1 H11): every position is annotated with the token before it.\n Step 2 (L2 H7): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L1_H11+L3_H13", "model": "EleutherAI/pythia-1.4b", "component": "blocks.1.attn.hook_z[11] + blocks.3.attn.hook_z[13]", "tier": "composed", "members": ["pythia-1_4b_L1_H11", "pythia-1_4b_L3_H13"], "brain_signature": {"top_activating_examples": ["Series: red king black door fire red -> king", "Items: king moon black snow sun king -> moon", "List: woman night green gold rain woman -> night"], "mean_activation": 0.573, "ablation_impact_drop": 0.616}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L1_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L1 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.896\n - mean attention to self = 0.045\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L3_H13(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L3 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.573\n - variant scores: nearest-occurrence 0.202 vs first-occurrence 0.544 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L1 H11 feeding induction head L3 H13 (EleutherAI/pythia-1.4b).\n\n Step 1 (L1 H11): every position is annotated with the token before it.\n Step 2 (L3 H13): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L1_H11+L5_H8", "model": "EleutherAI/pythia-1.4b", "component": "blocks.1.attn.hook_z[11] + blocks.5.attn.hook_z[8]", "tier": "composed", "members": ["pythia-1_4b_L1_H11", "pythia-1_4b_L5_H8"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "Items: king moon black snow sun king -> moon", "List: woman night green gold rain woman -> night"], "mean_activation": 0.541, "ablation_impact_drop": 0.762}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L1_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L1 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.896\n - mean attention to self = 0.045\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L5_H8(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L5 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.541\n - variant scores: nearest-occurrence 0.629 vs first-occurrence 0.312 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L1 H11 feeding induction head L5 H8 (EleutherAI/pythia-1.4b).\n\n Step 1 (L1 H11): every position is annotated with the token before it.\n Step 2 (L5 H8): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1_4b_L4_H15+L5_H8", "model": "EleutherAI/pythia-1.4b", "component": "blocks.4.attn.hook_z[15] + blocks.5.attn.hook_z[8]", "tier": "composed", "members": ["pythia-1_4b_L4_H15", "pythia-1_4b_L5_H8"], "brain_signature": {"top_activating_examples": ["List: queen road cat house wood queen -> road", "List: tree hand man stone house tree -> hand", "List: star wind wood snow red star -> wind"], "mean_activation": 0.541, "ablation_impact_drop": 0.458}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L4_H15(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1.4b L4 H15).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.576\n - mean attention to self = 0.199\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L5_H8(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/pythia-1.4b L5 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.541\n - variant scores: nearest-occurrence 0.629 vs first-occurrence 0.312 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L4 H15 feeding induction head L5 H8 (EleutherAI/pythia-1.4b).\n\n Step 1 (L4 H15): every position is annotated with the token before it.\n Step 2 (L5 H8): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1b_L1_H3", "model": "EleutherAI/pythia-1b", "component": "blocks.1.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: door sun night boy white door -> sun", "List: woman night green gold rain woman -> night"], "mean_activation": 0.575, "ablation_impact_drop": 0.093}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1b L1 H3).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.575\n - mean attention to self = 0.084\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-1b_L3_H5", "model": "EleutherAI/pythia-1b", "component": "blocks.3.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["Sequence: rain man girl gold day rain -> man", "List: wood bird green eye tree wood -> bird", "Items: king moon black snow sun king -> moon"], "mean_activation": 0.863, "ablation_impact_drop": 0.534}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1b L3 H5).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.863\n - mean attention to self = 0.004\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-1b_L6_H3", "model": "EleutherAI/pythia-1b", "component": "blocks.6.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: fire dog night road heart fire -> dog", "Items: hand fire boy eye woman hand -> fire", "List: heart dog girl tree cat heart -> dog"], "mean_activation": 0.546, "ablation_impact_drop": 0.4}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1b L6 H3).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.546\n - mean attention to self = 0.093\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "pythia-1b_family_previous_token_x2", "model": "EleutherAI/pythia-1b", "component": "blocks.3.attn.hook_z[5] + blocks.6.attn.hook_z[3]", "tier": "family", "members": ["pythia-1b_L3_H5", "pythia-1b_L6_H3"], "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "List: fire dog night road heart fire -> dog", "List: wood boy water tree eye wood -> boy"], "mean_activation": 0.863, "ablation_impact_drop": 0.846}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/pythia-1b L3 HL3H5+L6H3).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.863\n - mean attention to self = 0.004\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L0_H11", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.0.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: road heart river boy sun road -> heart", "Sequence: rain man girl gold day rain -> man", "List: fire dog night road heart fire -> dog"], "mean_activation": 0.632, "ablation_impact_drop": 0.116}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L0 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.632\n - mean attention to self = 0.194\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L1_H10", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.1.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "[ heart { night } moon -> ]", "{ wood [ day ] star -> }"], "mean_activation": 0.425, "ablation_impact_drop": 0.389}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L1 H10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.425\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L1_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.1.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ silver ( gold ) tree -> }", "{ river ( woman ) boy -> }"], "mean_activation": 0.434, "ablation_impact_drop": 0.228}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L1 H12).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.434\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L2_H0", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.2.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "List: queen tree house moon snow queen -> tree"], "mean_activation": 0.655, "ablation_impact_drop": 0.125}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L2 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.655\n - mean attention to self = 0.143\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L3_H10", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.3.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ heart [ boy ] stone -> }", "{ house [ tree ] rain -> }"], "mean_activation": 0.593, "ablation_impact_drop": 0.259}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L3 H10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.593\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L3_H11", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.3.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["( snow { hand } door -> )", "( queen { green } wind -> )", "{ man ( water ) cat -> }"], "mean_activation": 0.921, "ablation_impact_drop": 0.424}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L3 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.921\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L3_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.3.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ blue { moon } star -> ]", "{ man ( water ) cat -> }", "{ silver ( gold ) tree -> }"], "mean_activation": 0.959, "ablation_impact_drop": 0.192}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L3 H13).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.959\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L4_H0", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.4.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "{ wood [ day ] star -> }", "[ blue { moon } star -> ]"], "mean_activation": 0.643, "ablation_impact_drop": 0.175}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L4 H0).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.643\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L4_H4", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.4.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ wood [ day ] star -> }", "[ blue { moon } star -> ]", "{ man ( water ) cat -> }"], "mean_activation": 0.922, "ablation_impact_drop": 0.333}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L4 H4).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.922\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L4_H5", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.4.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "[ blue { moon } star -> ]", "( snow { hand } door -> )"], "mean_activation": 0.659, "ablation_impact_drop": 0.061}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L4 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.659\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H1", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ heart [ boy ] stone -> }", "{ silver ( gold ) tree -> }", "{ wood [ day ] star -> }"], "mean_activation": 0.46, "ablation_impact_drop": 0.128}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.460\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H3", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ wood [ day ] star -> }", "{ heart [ boy ] stone -> }"], "mean_activation": 0.599, "ablation_impact_drop": 0.076}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H3).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.599\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H5", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ river ( woman ) boy -> }", "{ wood [ day ] star -> }"], "mean_activation": 0.867, "ablation_impact_drop": 0.082}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.867\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "{ man ( water ) cat -> }", "[ heart { night } moon -> ]"], "mean_activation": 0.794, "ablation_impact_drop": 0.223}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H7).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.794\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H10", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ silver ( fish ) stone -> }", "{ heart [ boy ] stone -> }"], "mean_activation": 0.778, "ablation_impact_drop": 0.153}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H10).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.778\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H11", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ wood [ day ] star -> }", "{ river ( woman ) boy -> }"], "mean_activation": 0.744, "ablation_impact_drop": 0.221}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.744\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L6_H4", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.6.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.431, "ablation_impact_drop": 0.099}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L6 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.431\n - mean attention to self = 0.099\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L6_H11", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.6.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ silver ( gold ) tree -> }", "{ house [ tree ] rain -> }"], "mean_activation": 0.755, "ablation_impact_drop": 0.086}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L6 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.755\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H0", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ wood [ day ] star -> }", "[ heart { night } moon -> ]", "{ heart [ boy ] stone -> }"], "mean_activation": 0.773, "ablation_impact_drop": 0.09}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L8 H0).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.773\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H1", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ silver ( gold ) tree -> }", "{ black ( blue ) day -> }"], "mean_activation": 0.752, "ablation_impact_drop": 0.159}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L8 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.752\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "List: tree wood silver king rain tree -> wood"], "mean_activation": 0.779, "ablation_impact_drop": 0.614}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L8 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.779\n - mean attention to self = 0.012\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L8_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ man [ black ] queen -> }", "{ black ( blue ) day -> }"], "mean_activation": 0.58, "ablation_impact_drop": 0.08}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L8 H13).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.580\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L9_H8", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.9.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "[ blue { moon } star -> ]", "{ house [ tree ] rain -> }"], "mean_activation": 0.998, "ablation_impact_drop": 0.169}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L9 H8).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.998\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L9_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.9.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "List: tree wood silver king rain tree -> wood"], "mean_activation": 0.793, "ablation_impact_drop": 0.345}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L9 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.793\n - variant scores: nearest-occurrence 0.350 vs first-occurrence 0.611 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L11_H1", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.11.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "[ blue { moon } star -> ]", "{ heart [ boy ] stone -> }"], "mean_activation": 0.994, "ablation_impact_drop": 0.073}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L11 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.994\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L11_H10", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.11.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "List: wind road cat girl boy wind -> road", "List: wind green fire red man wind -> green"], "mean_activation": 0.484, "ablation_impact_drop": 0.134}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H10).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.484\n - variant scores: nearest-occurrence 0.735 vs first-occurrence 0.180 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L11_H11", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.11.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ black ( blue ) day -> }", "{ wood [ day ] star -> }", "{ house [ tree ] rain -> }"], "mean_activation": 1.0, "ablation_impact_drop": 0.118}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L11 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 1.000\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L11_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.11.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wind road cat girl boy wind -> road", "List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.567, "ablation_impact_drop": 0.23}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H12).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.567\n - variant scores: nearest-occurrence 0.366 vs first-occurrence 0.368 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L11_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.11.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ river ( woman ) boy -> }", "( snow { hand } door -> )"], "mean_activation": 1.0, "ablation_impact_drop": 0.158}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L11 H13).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 1.000\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L12_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.12.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ wood [ day ] star -> }", "{ man ( water ) cat -> }", "[ heart { night } moon -> ]"], "mean_activation": 0.46, "ablation_impact_drop": 0.071}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L12 H2).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.460\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L14_H0", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.14.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ man ( water ) cat -> }", "{ heart [ boy ] stone -> }"], "mean_activation": 0.459, "ablation_impact_drop": 0.073}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L14 H0).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.459\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L15_H0", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.15.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "[ blue { moon } star -> ]", "{ house [ tree ] rain -> }"], "mean_activation": 0.636, "ablation_impact_drop": 0.074}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L15 H0).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.636\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L15_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.15.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wind road cat girl boy wind -> road", "List: wind green fire red man wind -> green", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.647, "ablation_impact_drop": 0.449}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L15 H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.647\n - mean attention to self = 0.035\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L16_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.16.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wood boy water tree eye wood -> boy", "List: book fish water fire hand book -> fish", "List: tree wood silver king rain tree -> wood"], "mean_activation": 0.504, "ablation_impact_drop": 0.179}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.504\n - variant scores: nearest-occurrence 0.605 vs first-occurrence 0.175 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L16_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.16.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wood boy water tree eye wood -> boy", "List: tree wood silver king rain tree -> wood", "List: red man bird star green red -> man"], "mean_activation": 0.553, "ablation_impact_drop": 0.206}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.553\n - variant scores: nearest-occurrence 0.104 vs first-occurrence 0.228 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L20_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.20.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Julia and Tom went to the market, Julia handed a apple to -> Tom"], "mean_activation": 0.563, "ablation_impact_drop": 0.199}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (Qwen/Qwen2.5-0.5B L20 H12).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.563\n - mean attention to subject name = 0.058\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L22_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.22.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ blue { moon } star -> ]", "{ man ( water ) cat -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.579, "ablation_impact_drop": 0.133}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L22 H12).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.579\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L1_H10+H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.1.attn.hook_z[10,12]", "tier": "group", "members": ["qwen2_5-0_5b_L1_H10", "qwen2_5-0_5b_L1_H12"], "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ river ( woman ) boy -> }", "{ wood [ day ] star -> }"], "mean_activation": 0.425, "ablation_impact_drop": 0.573}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L1 H10+12).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.425\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L4_H0+H3+H4+H5+H7+H8+H9", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.4.attn.hook_z[0,3,4,5,7,8,9]", "tier": "group", "members": ["qwen2_5-0_5b_L4_H0", "qwen2_5-0_5b_L4_H3", "qwen2_5-0_5b_L4_H4", "qwen2_5-0_5b_L4_H5", "qwen2_5-0_5b_L4_H7", "qwen2_5-0_5b_L4_H8", "qwen2_5-0_5b_L4_H9"], "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ river ( woman ) boy -> }", "{ silver ( gold ) tree -> }"], "mean_activation": 0.643, "ablation_impact_drop": 0.407}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L4 H0+3+4+5+7+8+9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.643\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L5_H1+H2+H3+H5+H6+H7+H10+H11", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.5.attn.hook_z[1,2,3,5,6,7,10,11]", "tier": "group", "members": ["qwen2_5-0_5b_L5_H1", "qwen2_5-0_5b_L5_H2", "qwen2_5-0_5b_L5_H3", "qwen2_5-0_5b_L5_H5", "qwen2_5-0_5b_L5_H6", "qwen2_5-0_5b_L5_H7", "qwen2_5-0_5b_L5_H10", "qwen2_5-0_5b_L5_H11"], "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "{ river ( woman ) boy -> }", "{ man ( water ) cat -> }"], "mean_activation": 0.46, "ablation_impact_drop": 0.565}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L5 H1+2+3+5+6+7+10+11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.460\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_family_bracket_matching_x136", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.1.attn.hook_z[10] + blocks.1.attn.hook_z[12] + blocks.3.attn.hook_z[0] + blocks.3.attn.hook_z[2] + blocks.3.attn.hook_z[3] + blocks.3.attn.hook_z[5] + blocks.3.attn.hook_z[6] + blocks.3.attn.hook_z[8] + blocks.3.attn.hook_z[9] + blocks.3.attn.hook_z[10] + blocks.3.attn.hook_z[11] + blocks.3.attn.hook_z[12] + blocks.3.attn.hook_z[13] + blocks.4.attn.hook_z[0] + blocks.4.attn.hook_z[3] + blocks.4.attn.hook_z[4] + blocks.4.attn.hook_z[5] + blocks.4.attn.hook_z[7] + blocks.4.attn.hook_z[8] + blocks.4.attn.hook_z[9] + blocks.5.attn.hook_z[1] + blocks.5.attn.hook_z[2] + blocks.5.attn.hook_z[3] + blocks.5.attn.hook_z[5] + blocks.5.attn.hook_z[6] + blocks.5.attn.hook_z[7] + blocks.5.attn.hook_z[10] + blocks.5.attn.hook_z[11] + blocks.6.attn.hook_z[0] + blocks.6.attn.hook_z[2] + blocks.6.attn.hook_z[3] + blocks.6.attn.hook_z[5] + blocks.6.attn.hook_z[7] + blocks.6.attn.hook_z[11] + blocks.6.attn.hook_z[12] + blocks.6.attn.hook_z[13] + blocks.7.attn.hook_z[1] + blocks.7.attn.hook_z[4] + blocks.7.attn.hook_z[6] + blocks.7.attn.hook_z[7] + blocks.7.attn.hook_z[8] + blocks.7.attn.hook_z[10] + blocks.7.attn.hook_z[12] + blocks.7.attn.hook_z[13] + blocks.8.attn.hook_z[0] + blocks.8.attn.hook_z[6] + blocks.8.attn.hook_z[11] + blocks.8.attn.hook_z[13] + blocks.9.attn.hook_z[3] + blocks.9.attn.hook_z[6] + blocks.9.attn.hook_z[7] + blocks.9.attn.hook_z[8] + blocks.9.attn.hook_z[9] + blocks.9.attn.hook_z[12] + blocks.10.attn.hook_z[0] + blocks.10.attn.hook_z[1] + blocks.10.attn.hook_z[5] + blocks.10.attn.hook_z[10] + blocks.10.attn.hook_z[13] + blocks.11.attn.hook_z[1] + blocks.11.attn.hook_z[2] + blocks.11.attn.hook_z[3] + blocks.11.attn.hook_z[4] + blocks.11.attn.hook_z[6] + blocks.11.attn.hook_z[7] + blocks.11.attn.hook_z[8] + blocks.11.attn.hook_z[9] + blocks.11.attn.hook_z[11] + blocks.11.attn.hook_z[13] + blocks.12.attn.hook_z[1] + blocks.12.attn.hook_z[2] + blocks.12.attn.hook_z[3] + blocks.12.attn.hook_z[4] + blocks.12.attn.hook_z[5] + blocks.12.attn.hook_z[7] + blocks.13.attn.hook_z[2] + blocks.13.attn.hook_z[5] + blocks.13.attn.hook_z[6] + blocks.13.attn.hook_z[7] + blocks.13.attn.hook_z[8] + blocks.13.attn.hook_z[12] + blocks.13.attn.hook_z[13] + blocks.14.attn.hook_z[0] + blocks.14.attn.hook_z[5] + blocks.14.attn.hook_z[8] + blocks.14.attn.hook_z[9] + blocks.15.attn.hook_z[0] + blocks.15.attn.hook_z[5] + blocks.15.attn.hook_z[6] + blocks.15.attn.hook_z[7] + blocks.15.attn.hook_z[9] + blocks.15.attn.hook_z[10] + blocks.15.attn.hook_z[12] + blocks.16.attn.hook_z[1] + blocks.16.attn.hook_z[4] + blocks.16.attn.hook_z[6] + blocks.16.attn.hook_z[8] + blocks.16.attn.hook_z[9] + blocks.16.attn.hook_z[11] + blocks.16.attn.hook_z[12] + blocks.16.attn.hook_z[13] + blocks.17.attn.hook_z[2] + blocks.17.attn.hook_z[5] + blocks.17.attn.hook_z[6] + blocks.17.attn.hook_z[7] + blocks.17.attn.hook_z[11] + blocks.17.attn.hook_z[12] + blocks.18.attn.hook_z[0] + blocks.18.attn.hook_z[2] + blocks.18.attn.hook_z[3] + blocks.18.attn.hook_z[5] + blocks.18.attn.hook_z[7] + blocks.18.attn.hook_z[8] + blocks.18.attn.hook_z[11] + blocks.18.attn.hook_z[12] + blocks.18.attn.hook_z[13] + blocks.19.attn.hook_z[4] + blocks.19.attn.hook_z[7] + blocks.19.attn.hook_z[10] + blocks.20.attn.hook_z[0] + blocks.20.attn.hook_z[1] + blocks.20.attn.hook_z[3] + blocks.20.attn.hook_z[6] + blocks.20.attn.hook_z[9] + blocks.20.attn.hook_z[10] + blocks.20.attn.hook_z[11] + blocks.20.attn.hook_z[13] + blocks.21.attn.hook_z[0] + blocks.21.attn.hook_z[2] + blocks.21.attn.hook_z[3] + blocks.21.attn.hook_z[4] + blocks.21.attn.hook_z[5] + blocks.21.attn.hook_z[10] + blocks.21.attn.hook_z[12] + blocks.21.attn.hook_z[13] + blocks.22.attn.hook_z[7]", "tier": "family", "members": ["qwen2_5-0_5b_L1_H10", "qwen2_5-0_5b_L1_H12", "qwen2_5-0_5b_L3_H0", "qwen2_5-0_5b_L3_H2", "qwen2_5-0_5b_L3_H3", "qwen2_5-0_5b_L3_H5", "qwen2_5-0_5b_L3_H6", "qwen2_5-0_5b_L3_H8", "qwen2_5-0_5b_L3_H9", "qwen2_5-0_5b_L3_H10", "qwen2_5-0_5b_L3_H11", "qwen2_5-0_5b_L3_H12", "qwen2_5-0_5b_L3_H13", "qwen2_5-0_5b_L4_H0", "qwen2_5-0_5b_L4_H3", "qwen2_5-0_5b_L4_H4", "qwen2_5-0_5b_L4_H5", "qwen2_5-0_5b_L4_H7", "qwen2_5-0_5b_L4_H8", "qwen2_5-0_5b_L4_H9", "qwen2_5-0_5b_L5_H1", "qwen2_5-0_5b_L5_H2", "qwen2_5-0_5b_L5_H3", "qwen2_5-0_5b_L5_H5", "qwen2_5-0_5b_L5_H6", "qwen2_5-0_5b_L5_H7", "qwen2_5-0_5b_L5_H10", "qwen2_5-0_5b_L5_H11", "qwen2_5-0_5b_L6_H0", "qwen2_5-0_5b_L6_H2", "qwen2_5-0_5b_L6_H3", "qwen2_5-0_5b_L6_H5", "qwen2_5-0_5b_L6_H7", "qwen2_5-0_5b_L6_H11", "qwen2_5-0_5b_L6_H12", "qwen2_5-0_5b_L6_H13", "qwen2_5-0_5b_L7_H1", "qwen2_5-0_5b_L7_H4", "qwen2_5-0_5b_L7_H6", "qwen2_5-0_5b_L7_H7", "qwen2_5-0_5b_L7_H8", "qwen2_5-0_5b_L7_H10", "qwen2_5-0_5b_L7_H12", "qwen2_5-0_5b_L7_H13", "qwen2_5-0_5b_L8_H0", "qwen2_5-0_5b_L8_H6", "qwen2_5-0_5b_L8_H11", "qwen2_5-0_5b_L8_H13", "qwen2_5-0_5b_L9_H3", "qwen2_5-0_5b_L9_H6", "qwen2_5-0_5b_L9_H7", "qwen2_5-0_5b_L9_H8", "qwen2_5-0_5b_L9_H9", "qwen2_5-0_5b_L9_H12", "qwen2_5-0_5b_L10_H0", "qwen2_5-0_5b_L10_H1", "qwen2_5-0_5b_L10_H5", "qwen2_5-0_5b_L10_H10", "qwen2_5-0_5b_L10_H13", "qwen2_5-0_5b_L11_H1", "qwen2_5-0_5b_L11_H2", "qwen2_5-0_5b_L11_H3", "qwen2_5-0_5b_L11_H4", "qwen2_5-0_5b_L11_H6", "qwen2_5-0_5b_L11_H7", "qwen2_5-0_5b_L11_H8", "qwen2_5-0_5b_L11_H9", "qwen2_5-0_5b_L11_H11", "qwen2_5-0_5b_L11_H13", "qwen2_5-0_5b_L12_H1", "qwen2_5-0_5b_L12_H2", "qwen2_5-0_5b_L12_H3", "qwen2_5-0_5b_L12_H4", "qwen2_5-0_5b_L12_H5", "qwen2_5-0_5b_L12_H7", "qwen2_5-0_5b_L13_H2", "qwen2_5-0_5b_L13_H5", "qwen2_5-0_5b_L13_H6", "qwen2_5-0_5b_L13_H7", "qwen2_5-0_5b_L13_H8", "qwen2_5-0_5b_L13_H12", "qwen2_5-0_5b_L13_H13", "qwen2_5-0_5b_L14_H0", "qwen2_5-0_5b_L14_H5", "qwen2_5-0_5b_L14_H8", "qwen2_5-0_5b_L14_H9", "qwen2_5-0_5b_L15_H0", "qwen2_5-0_5b_L15_H5", "qwen2_5-0_5b_L15_H6", "qwen2_5-0_5b_L15_H7", "qwen2_5-0_5b_L15_H9", "qwen2_5-0_5b_L15_H10", "qwen2_5-0_5b_L15_H12", "qwen2_5-0_5b_L16_H1", "qwen2_5-0_5b_L16_H4", "qwen2_5-0_5b_L16_H6", "qwen2_5-0_5b_L16_H8", "qwen2_5-0_5b_L16_H9", "qwen2_5-0_5b_L16_H11", "qwen2_5-0_5b_L16_H12", "qwen2_5-0_5b_L16_H13", "qwen2_5-0_5b_L17_H2", "qwen2_5-0_5b_L17_H5", "qwen2_5-0_5b_L17_H6", "qwen2_5-0_5b_L17_H7", "qwen2_5-0_5b_L17_H11", "qwen2_5-0_5b_L17_H12", "qwen2_5-0_5b_L18_H0", "qwen2_5-0_5b_L18_H2", "qwen2_5-0_5b_L18_H3", "qwen2_5-0_5b_L18_H5", "qwen2_5-0_5b_L18_H7", "qwen2_5-0_5b_L18_H8", "qwen2_5-0_5b_L18_H11", "qwen2_5-0_5b_L18_H12", "qwen2_5-0_5b_L18_H13", "qwen2_5-0_5b_L19_H4", "qwen2_5-0_5b_L19_H7", "qwen2_5-0_5b_L19_H10", "qwen2_5-0_5b_L20_H0", "qwen2_5-0_5b_L20_H1", "qwen2_5-0_5b_L20_H3", "qwen2_5-0_5b_L20_H6", "qwen2_5-0_5b_L20_H9", "qwen2_5-0_5b_L20_H10", "qwen2_5-0_5b_L20_H11", "qwen2_5-0_5b_L20_H13", "qwen2_5-0_5b_L21_H0", "qwen2_5-0_5b_L21_H2", "qwen2_5-0_5b_L21_H3", "qwen2_5-0_5b_L21_H4", "qwen2_5-0_5b_L21_H5", "qwen2_5-0_5b_L21_H10", "qwen2_5-0_5b_L21_H12", "qwen2_5-0_5b_L21_H13", "qwen2_5-0_5b_L22_H7"], "brain_signature": {"top_activating_examples": ["( snow { rain } stone -> )", "{ black ( blue ) day -> }", "( snow { hand } door -> )"], "mean_activation": 0.425, "ablation_impact_drop": 0.939}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-0.5B L1 HL1H10+L1H12+L3H0+L3H2+L3H3+L3H5+L3H6+L3H8+L3H9+L3H10+L3H11+L3H12+L3H13+L4H0+L4H3+L4H4+L4H5+L4H7+L4H8+L4H9+L5H1+L5H2+L5H3+L5H5+L5H6+L5H7+L5H10+L5H11+L6H0+L6H2+L6H3+L6H5+L6H7+L6H11+L6H12+L6H13+L7H1+L7H4+L7H6+L7H7+L7H8+L7H10+L7H12+L7H13+L8H0+L8H6+L8H11+L8H13+L9H3+L9H6+L9H7+L9H8+L9H9+L9H12+L10H0+L10H1+L10H5+L10H10+L10H13+L11H1+L11H2+L11H3+L11H4+L11H6+L11H7+L11H8+L11H9+L11H11+L11H13+L12H1+L12H2+L12H3+L12H4+L12H5+L12H7+L13H2+L13H5+L13H6+L13H7+L13H8+L13H12+L13H13+L14H0+L14H5+L14H8+L14H9+L15H0+L15H5+L15H6+L15H7+L15H9+L15H10+L15H12+L16H1+L16H4+L16H6+L16H8+L16H9+L16H11+L16H12+L16H13+L17H2+L17H5+L17H6+L17H7+L17H11+L17H12+L18H0+L18H2+L18H3+L18H5+L18H7+L18H8+L18H11+L18H12+L18H13+L19H4+L19H7+L19H10+L20H0+L20H1+L20H3+L20H6+L20H9+L20H10+L20H11+L20H13+L21H0+L21H2+L21H3+L21H4+L21H5+L21H10+L21H12+L21H13+L22H7).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.425\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_family_induction_x3", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.9.attn.hook_z[13] + blocks.11.attn.hook_z[10] + blocks.16.attn.hook_z[2]", "tier": "family", "members": ["qwen2_5-0_5b_L9_H13", "qwen2_5-0_5b_L11_H10", "qwen2_5-0_5b_L16_H2"], "brain_signature": {"top_activating_examples": ["List: wood boy water tree eye wood -> boy", "List: house river night gold dog house -> river", "Series: red king black door fire red -> king"], "mean_activation": 0.793, "ablation_impact_drop": 0.609}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L9 HL9H13+L11H10+L16H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.793\n - variant scores: nearest-occurrence 0.350 vs first-occurrence 0.611 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_family_previous_token_x6", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.0.attn.hook_z[11] + blocks.0.attn.hook_z[13] + blocks.1.attn.hook_z[9] + blocks.2.attn.hook_z[0] + blocks.8.attn.hook_z[7] + blocks.15.attn.hook_z[2]", "tier": "family", "members": ["qwen2_5-0_5b_L0_H11", "qwen2_5-0_5b_L0_H13", "qwen2_5-0_5b_L1_H9", "qwen2_5-0_5b_L2_H0", "qwen2_5-0_5b_L8_H7", "qwen2_5-0_5b_L15_H2"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "List: fire woman sun water fish fire -> woman"], "mean_activation": 0.632, "ablation_impact_drop": 0.742}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L0 HL0H11+L0H13+L1H9+L2H0+L8H7+L15H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.632\n - mean attention to self = 0.194\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-0_5b_L0_H11+L9_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.0.attn.hook_z[11] + blocks.9.attn.hook_z[13]", "tier": "composed", "members": ["qwen2_5-0_5b_L0_H11", "qwen2_5-0_5b_L9_H13"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Items: road heart river boy sun road -> heart", "List: star wind wood snow red star -> wind"], "mean_activation": 0.793, "ablation_impact_drop": 0.393}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L0_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L0 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.632\n - mean attention to self = 0.194\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H13(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L9 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.793\n - variant scores: nearest-occurrence 0.350 vs first-occurrence 0.611 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L0 H11 feeding induction head L9 H13 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L0 H11): every position is annotated with the token before it.\n Step 2 (L9 H13): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L0_H11+L11_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.0.attn.hook_z[11] + blocks.11.attn.hook_z[12]", "tier": "composed", "members": ["qwen2_5-0_5b_L0_H11", "qwen2_5-0_5b_L11_H12"], "brain_signature": {"top_activating_examples": ["Items: road heart river boy sun road -> heart", "List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.567, "ablation_impact_drop": 0.312}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L0_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L0 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.632\n - mean attention to self = 0.194\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L11_H12(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H12).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.567\n - variant scores: nearest-occurrence 0.366 vs first-occurrence 0.368 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L0 H11 feeding induction head L11 H12 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L0 H11): every position is annotated with the token before it.\n Step 2 (L11 H12): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L0_H11+L16_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.0.attn.hook_z[11] + blocks.16.attn.hook_z[2]", "tier": "composed", "members": ["qwen2_5-0_5b_L0_H11", "qwen2_5-0_5b_L16_H2"], "brain_signature": {"top_activating_examples": ["Items: road heart river boy sun road -> heart", "Sequence: rain man girl gold day rain -> man", "List: house river night gold dog house -> river"], "mean_activation": 0.504, "ablation_impact_drop": 0.256}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L0_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L0 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.632\n - mean attention to self = 0.194\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H2(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.504\n - variant scores: nearest-occurrence 0.605 vs first-occurrence 0.175 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L0 H11 feeding induction head L16 H2 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L0 H11): every position is annotated with the token before it.\n Step 2 (L16 H2): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L0_H11+L16_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.0.attn.hook_z[11] + blocks.16.attn.hook_z[7]", "tier": "composed", "members": ["qwen2_5-0_5b_L0_H11", "qwen2_5-0_5b_L16_H7"], "brain_signature": {"top_activating_examples": ["Items: road heart river boy sun road -> heart", "Sequence: rain man girl gold day rain -> man", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.553, "ablation_impact_drop": 0.326}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L0_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L0 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.632\n - mean attention to self = 0.194\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H7(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.553\n - variant scores: nearest-occurrence 0.104 vs first-occurrence 0.228 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L0 H11 feeding induction head L16 H7 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L0 H11): every position is annotated with the token before it.\n Step 2 (L16 H7): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L2_H0+L9_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.2.attn.hook_z[0] + blocks.9.attn.hook_z[13]", "tier": "composed", "members": ["qwen2_5-0_5b_L2_H0", "qwen2_5-0_5b_L9_H13"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.793, "ablation_impact_drop": 0.396}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L2_H0(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L2 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.655\n - mean attention to self = 0.143\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H13(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L9 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.793\n - variant scores: nearest-occurrence 0.350 vs first-occurrence 0.611 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L2 H0 feeding induction head L9 H13 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L2 H0): every position is annotated with the token before it.\n Step 2 (L9 H13): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L2_H0+L11_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.2.attn.hook_z[0] + blocks.11.attn.hook_z[12]", "tier": "composed", "members": ["qwen2_5-0_5b_L2_H0", "qwen2_5-0_5b_L11_H12"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.567, "ablation_impact_drop": 0.304}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L2_H0(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L2 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.655\n - mean attention to self = 0.143\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L11_H12(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H12).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.567\n - variant scores: nearest-occurrence 0.366 vs first-occurrence 0.368 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L2 H0 feeding induction head L11 H12 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L2 H0): every position is annotated with the token before it.\n Step 2 (L11 H12): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L2_H0+L16_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.2.attn.hook_z[0] + blocks.16.attn.hook_z[2]", "tier": "composed", "members": ["qwen2_5-0_5b_L2_H0", "qwen2_5-0_5b_L16_H2"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "List: queen tree house moon snow queen -> tree"], "mean_activation": 0.504, "ablation_impact_drop": 0.276}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L2_H0(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L2 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.655\n - mean attention to self = 0.143\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H2(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.504\n - variant scores: nearest-occurrence 0.605 vs first-occurrence 0.175 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L2 H0 feeding induction head L16 H2 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L2 H0): every position is annotated with the token before it.\n Step 2 (L16 H2): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L2_H0+L16_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.2.attn.hook_z[0] + blocks.16.attn.hook_z[7]", "tier": "composed", "members": ["qwen2_5-0_5b_L2_H0", "qwen2_5-0_5b_L16_H7"], "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy"], "mean_activation": 0.553, "ablation_impact_drop": 0.326}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L2_H0(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L2 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.655\n - mean attention to self = 0.143\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H7(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.553\n - variant scores: nearest-occurrence 0.104 vs first-occurrence 0.228 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L2 H0 feeding induction head L16 H7 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L2 H0): every position is annotated with the token before it.\n Step 2 (L16 H7): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L6_H4+L9_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.6.attn.hook_z[4] + blocks.9.attn.hook_z[13]", "tier": "composed", "members": ["qwen2_5-0_5b_L6_H4", "qwen2_5-0_5b_L9_H13"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: tree wood silver king rain tree -> wood", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.793, "ablation_impact_drop": 0.396}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L6 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.431\n - mean attention to self = 0.099\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H13(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L9 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.793\n - variant scores: nearest-occurrence 0.350 vs first-occurrence 0.611 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L6 H4 feeding induction head L9 H13 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L6 H4): every position is annotated with the token before it.\n Step 2 (L9 H13): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L6_H4+L11_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.6.attn.hook_z[4] + blocks.11.attn.hook_z[12]", "tier": "composed", "members": ["qwen2_5-0_5b_L6_H4", "qwen2_5-0_5b_L11_H12"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: tree hand man stone house tree -> hand", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.567, "ablation_impact_drop": 0.292}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L6 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.431\n - mean attention to self = 0.099\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L11_H12(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H12).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.567\n - variant scores: nearest-occurrence 0.366 vs first-occurrence 0.368 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L6 H4 feeding induction head L11 H12 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L6 H4): every position is annotated with the token before it.\n Step 2 (L11 H12): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L6_H4+L16_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.6.attn.hook_z[4] + blocks.16.attn.hook_z[2]", "tier": "composed", "members": ["qwen2_5-0_5b_L6_H4", "qwen2_5-0_5b_L16_H2"], "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "List: house river night gold dog house -> river", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.504, "ablation_impact_drop": 0.264}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L6 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.431\n - mean attention to self = 0.099\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H2(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.504\n - variant scores: nearest-occurrence 0.605 vs first-occurrence 0.175 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L6 H4 feeding induction head L16 H2 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L6 H4): every position is annotated with the token before it.\n Step 2 (L16 H2): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L6_H4+L16_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.6.attn.hook_z[4] + blocks.16.attn.hook_z[7]", "tier": "composed", "members": ["qwen2_5-0_5b_L6_H4", "qwen2_5-0_5b_L16_H7"], "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "Sequence: water cat fish house fire water -> cat", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.553, "ablation_impact_drop": 0.295}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L6 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.431\n - mean attention to self = 0.099\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H7(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.553\n - variant scores: nearest-occurrence 0.104 vs first-occurrence 0.228 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L6 H4 feeding induction head L16 H7 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L6 H4): every position is annotated with the token before it.\n Step 2 (L16 H7): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H7+L9_H13", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[7] + blocks.9.attn.hook_z[13]", "tier": "composed", "members": ["qwen2_5-0_5b_L8_H7", "qwen2_5-0_5b_L9_H13"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.793, "ablation_impact_drop": 0.758}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L8 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.779\n - mean attention to self = 0.012\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H13(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L9 H13).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.793\n - variant scores: nearest-occurrence 0.350 vs first-occurrence 0.611 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L8 H7 feeding induction head L9 H13 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L8 H7): every position is annotated with the token before it.\n Step 2 (L9 H13): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H7+L11_H10", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[7] + blocks.11.attn.hook_z[10]", "tier": "composed", "members": ["qwen2_5-0_5b_L8_H7", "qwen2_5-0_5b_L11_H10"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "List: tree wood silver king rain tree -> wood"], "mean_activation": 0.484, "ablation_impact_drop": 0.691}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L8 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.779\n - mean attention to self = 0.012\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L11_H10(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H10).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.484\n - variant scores: nearest-occurrence 0.735 vs first-occurrence 0.180 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L8 H7 feeding induction head L11 H10 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L8 H7): every position is annotated with the token before it.\n Step 2 (L11 H10): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H7+L11_H12", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[7] + blocks.11.attn.hook_z[12]", "tier": "composed", "members": ["qwen2_5-0_5b_L8_H7", "qwen2_5-0_5b_L11_H12"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.567, "ablation_impact_drop": 0.728}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L8 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.779\n - mean attention to self = 0.012\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L11_H12(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L11 H12).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.567\n - variant scores: nearest-occurrence 0.366 vs first-occurrence 0.368 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L8 H7 feeding induction head L11 H12 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L8 H7): every position is annotated with the token before it.\n Step 2 (L11 H12): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H7+L16_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[7] + blocks.16.attn.hook_z[2]", "tier": "composed", "members": ["qwen2_5-0_5b_L8_H7", "qwen2_5-0_5b_L16_H2"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "List: tree wood silver king rain tree -> wood"], "mean_activation": 0.504, "ablation_impact_drop": 0.705}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L8 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.779\n - mean attention to self = 0.012\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H2(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.504\n - variant scores: nearest-occurrence 0.605 vs first-occurrence 0.175 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L8 H7 feeding induction head L16 H2 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L8 H7): every position is annotated with the token before it.\n Step 2 (L16 H2): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L8_H7+L16_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.8.attn.hook_z[7] + blocks.16.attn.hook_z[7]", "tier": "composed", "members": ["qwen2_5-0_5b_L8_H7", "qwen2_5-0_5b_L16_H7"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: wood boy water tree eye wood -> boy", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.553, "ablation_impact_drop": 0.754}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L8 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.779\n - mean attention to self = 0.012\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H7(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.553\n - variant scores: nearest-occurrence 0.104 vs first-occurrence 0.228 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L8 H7 feeding induction head L16 H7 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L8 H7): every position is annotated with the token before it.\n Step 2 (L16 H7): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L15_H2+L16_H2", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.15.attn.hook_z[2] + blocks.16.attn.hook_z[2]", "tier": "composed", "members": ["qwen2_5-0_5b_L15_H2", "qwen2_5-0_5b_L16_H2"], "brain_signature": {"top_activating_examples": ["List: wind road cat girl boy wind -> road", "List: wind green fire red man wind -> green", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.504, "ablation_impact_drop": 0.525}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L15_H2(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L15 H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.647\n - mean attention to self = 0.035\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H2(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H2).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.504\n - variant scores: nearest-occurrence 0.605 vs first-occurrence 0.175 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L15 H2 feeding induction head L16 H2 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L15 H2): every position is annotated with the token before it.\n Step 2 (L16 H2): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L15_H2+L16_H7", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.15.attn.hook_z[2] + blocks.16.attn.hook_z[7]", "tier": "composed", "members": ["qwen2_5-0_5b_L15_H2", "qwen2_5-0_5b_L16_H7"], "brain_signature": {"top_activating_examples": ["List: wind road cat girl boy wind -> road", "List: wind green fire red man wind -> green", "List: red man bird star green red -> man"], "mean_activation": 0.553, "ablation_impact_drop": 0.593}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L15_H2(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-0.5B L15 H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.647\n - mean attention to self = 0.035\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H7(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-0.5B L16 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.553\n - variant scores: nearest-occurrence 0.104 vs first-occurrence 0.228 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L15 H2 feeding induction head L16 H7 (Qwen/Qwen2.5-0.5B).\n\n Step 1 (L15 H2): every position is annotated with the token before it.\n Step 2 (L16 H7): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L4_H6", "model": "bigscience/bloom-560m", "component": "blocks.4.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "( snow { hand } door -> )", "[ blue { moon } star -> ]"], "mean_activation": 0.795, "ablation_impact_drop": 0.127}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L4 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.795\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L5_H9", "model": "bigscience/bloom-560m", "component": "blocks.5.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ silver ( gold ) tree -> }", "{ man [ black ] queen -> }"], "mean_activation": 0.6, "ablation_impact_drop": 0.047}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L5 H9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.600\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L6_H0", "model": "bigscience/bloom-560m", "component": "blocks.6.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: house river night gold dog house -> river", "Items: road heart river boy sun road -> heart"], "mean_activation": 0.999, "ablation_impact_drop": 0.06}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (bigscience/bloom-560m L6 H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.999\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "bloom-560m_L6_H2", "model": "bigscience/bloom-560m", "component": "blocks.6.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: house river night gold dog house -> river", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.991, "ablation_impact_drop": 0.061}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (bigscience/bloom-560m L6 H2).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.991\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "bloom-560m_L7_H6", "model": "bigscience/bloom-560m", "component": "blocks.7.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: fire dog night road heart fire -> dog", "List: red man bird star green red -> man", "List: door sun night boy white door -> sun"], "mean_activation": 0.442, "ablation_impact_drop": 0.05}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (bigscience/bloom-560m L7 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.442\n - variant scores: nearest-occurrence 0.721 vs first-occurrence 0.156 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L7_H9", "model": "bigscience/bloom-560m", "component": "blocks.7.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "[ heart { night } moon -> ]", "{ man [ black ] queen -> }"], "mean_activation": 0.705, "ablation_impact_drop": 0.116}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L7 H9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.705\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L7_H12", "model": "bigscience/bloom-560m", "component": "blocks.7.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: fire dog night road heart fire -> dog", "List: queen road cat house wood queen -> road", "List: fire woman sun water fish fire -> woman"], "mean_activation": 0.606, "ablation_impact_drop": 0.088}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (bigscience/bloom-560m L7 H12).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.606\n - variant scores: nearest-occurrence 0.645 vs first-occurrence 0.303 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L7_H14", "model": "bigscience/bloom-560m", "component": "blocks.7.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ river ( woman ) boy -> }", "{ man [ black ] queen -> }"], "mean_activation": 0.421, "ablation_impact_drop": 0.15}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L7 H14).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.421\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L8_H11", "model": "bigscience/bloom-560m", "component": "blocks.8.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: fire dog night road heart fire -> dog", "List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.639, "ablation_impact_drop": 0.09}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (bigscience/bloom-560m L8 H11).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.639\n - variant scores: nearest-occurrence 0.400 vs first-occurrence 0.521 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L8_H14", "model": "bigscience/bloom-560m", "component": "blocks.8.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ river ( woman ) boy -> }", "( queen { green } wind -> )"], "mean_activation": 0.993, "ablation_impact_drop": 0.044}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L8 H14).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.993\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L11_H6", "model": "bigscience/bloom-560m", "component": "blocks.11.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man [ black ] queen -> }", "( queen { green } wind -> )", "{ wood [ day ] star -> }"], "mean_activation": 0.887, "ablation_impact_drop": 0.282}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L11 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.887\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L12_H13", "model": "bigscience/bloom-560m", "component": "blocks.12.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "[ blue { moon } star -> ]", "{ river ( woman ) boy -> }"], "mean_activation": 0.91, "ablation_impact_drop": 0.058}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L12 H13).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.910\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L15_H6", "model": "bigscience/bloom-560m", "component": "blocks.15.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "[ blue { moon } star -> ]", "{ black ( blue ) day -> }"], "mean_activation": 0.863, "ablation_impact_drop": 0.043}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L15 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.863\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L18_H5", "model": "bigscience/bloom-560m", "component": "blocks.18.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "[ blue { moon } star -> ]", "{ heart [ boy ] stone -> }"], "mean_activation": 0.744, "ablation_impact_drop": 0.317}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L18 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.744\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L20_H10", "model": "bigscience/bloom-560m", "component": "blocks.20.attn.hook_z[10]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Kevin went to the library, Mark brought a bag to -> Kevin", "When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Chris and Peter went to the beach, Chris offered a bag to -> Peter"], "mean_activation": 0.551, "ablation_impact_drop": 0.127}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (bigscience/bloom-560m L20 H10).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.551\n - mean attention to subject name = 0.056\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L7_H7+H9+H13+H14+H15", "model": "bigscience/bloom-560m", "component": "blocks.7.attn.hook_z[7,9,13,14,15]", "tier": "group", "members": ["bloom-560m_L7_H7", "bloom-560m_L7_H9", "bloom-560m_L7_H13", "bloom-560m_L7_H14", "bloom-560m_L7_H15"], "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ man ( water ) cat -> }", "{ man [ black ] queen -> }"], "mean_activation": 0.9, "ablation_impact_drop": 0.262}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L7 H7+9+13+14+15).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.900\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L18_H2+H3+H4+H5+H7+H9+H12+H14+H15", "model": "bigscience/bloom-560m", "component": "blocks.18.attn.hook_z[2,3,4,5,7,9,12,14,15]", "tier": "group", "members": ["bloom-560m_L18_H2", "bloom-560m_L18_H3", "bloom-560m_L18_H4", "bloom-560m_L18_H5", "bloom-560m_L18_H7", "bloom-560m_L18_H9", "bloom-560m_L18_H12", "bloom-560m_L18_H14", "bloom-560m_L18_H15"], "brain_signature": {"top_activating_examples": ["{ heart [ boy ] stone -> }", "[ heart { night } moon -> ]", "[ blue { moon } star -> ]"], "mean_activation": 0.946, "ablation_impact_drop": 0.266}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (bigscience/bloom-560m L18 H2+3+4+5+7+9+12+14+15).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.946\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_family_previous_token_x10", "model": "bigscience/bloom-560m", "component": "blocks.0.attn.hook_z[0] + blocks.1.attn.hook_z[0] + blocks.1.attn.hook_z[1] + blocks.4.attn.hook_z[0] + blocks.5.attn.hook_z[0] + blocks.6.attn.hook_z[0] + blocks.6.attn.hook_z[2] + blocks.7.attn.hook_z[0] + blocks.9.attn.hook_z[3] + blocks.17.attn.hook_z[0]", "tier": "family", "members": ["bloom-560m_L0_H0", "bloom-560m_L1_H0", "bloom-560m_L1_H1", "bloom-560m_L4_H0", "bloom-560m_L5_H0", "bloom-560m_L6_H0", "bloom-560m_L6_H2", "bloom-560m_L7_H0", "bloom-560m_L9_H3", "bloom-560m_L17_H0"], "brain_signature": {"top_activating_examples": ["List: woman night green gold rain woman -> night", "List: house river night gold dog house -> river", "List: dog night woman man fire dog -> night"], "mean_activation": 0.464, "ablation_impact_drop": 0.515}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (bigscience/bloom-560m L0 HL0H0+L1H0+L1H1+L4H0+L5H0+L6H0+L6H2+L7H0+L9H3+L17H0).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.464\n - mean attention to self = 0.126\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L4_H14", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.4.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: queen tree house moon snow queen -> tree", "List: dog night woman man fire dog -> night", "Words: queen blue green road wind queen -> blue"], "mean_activation": 0.811, "ablation_impact_drop": 0.139}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L4 H14).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.811\n - mean attention to self = 0.051\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L6_H13", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.6.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: road heart river boy sun road -> heart", "Words: man woman bird stone water man -> woman", "Series: red king black door fire red -> king"], "mean_activation": 0.987, "ablation_impact_drop": 0.202}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L6 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.987\n - mean attention to self = 0.001\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L7_H3", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: house river night gold dog house -> river", "Series: red king black door fire red -> king"], "mean_activation": 0.707, "ablation_impact_drop": 0.048}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H3).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.707\n - mean attention to self = 0.019\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L7_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: house river night gold dog house -> river", "List: wind green fire red man wind -> green"], "mean_activation": 1.0, "ablation_impact_drop": 0.122}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H6).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L7_H13", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "Series: red king black door fire red -> king"], "mean_activation": 1.0, "ablation_impact_drop": 0.107}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L8_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.8.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: woman night green gold rain woman -> night", "Sequence: night river water wood green night -> river"], "mean_activation": 0.633, "ablation_impact_drop": 0.936}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-1.3B L8 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.633\n - variant scores: nearest-occurrence 0.596 vs first-occurrence 0.368 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L14_H14", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.14.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Laura went to the garden, Mark gave a apple to -> Laura", "When Chris and Peter went to the store, Chris gave a bottle to -> Peter", "When Lisa and Kevin went to the store, Lisa gave a bottle to -> Kevin"], "mean_activation": 0.744, "ablation_impact_drop": 0.084}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (EleutherAI/gpt-neo-1.3B L14 H14).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.744\n - mean attention to subject name = 0.016\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L7_H6+H13", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[6,13]", "tier": "group", "members": ["gpt-neo-1_3b_L7_H6", "gpt-neo-1_3b_L7_H13"], "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: house river night gold dog house -> river", "List: book fish water fire hand book -> fish"], "mean_activation": 1.0, "ablation_impact_drop": 0.283}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H6+13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_family_previous_token_x5", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.4.attn.hook_z[14] + blocks.6.attn.hook_z[13] + blocks.7.attn.hook_z[6] + blocks.7.attn.hook_z[13] + blocks.9.attn.hook_z[6]", "tier": "family", "members": ["gpt-neo-1_3b_L4_H14", "gpt-neo-1_3b_L6_H13", "gpt-neo-1_3b_L7_H6", "gpt-neo-1_3b_L7_H13", "gpt-neo-1_3b_L9_H6"], "brain_signature": {"top_activating_examples": ["List: door sun night boy white door -> sun", "Items: road heart river boy sun road -> heart", "Items: hand fire boy eye woman hand -> fire"], "mean_activation": 0.811, "ablation_impact_drop": 0.476}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L4 HL4H14+L6H13+L7H6+L7H13+L9H6).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.811\n - mean attention to self = 0.051\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "gpt-neo-1_3b_L4_H14+L8_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.4.attn.hook_z[14] + blocks.8.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-1_3b_L4_H14", "gpt-neo-1_3b_L8_H6"], "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: woman night green gold rain woman -> night", "List: wind green fire red man wind -> green"], "mean_activation": 0.633, "ablation_impact_drop": 0.94}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L4_H14(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L4 H14).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.811\n - mean attention to self = 0.051\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-1.3B L8 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.633\n - variant scores: nearest-occurrence 0.596 vs first-occurrence 0.368 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L4 H14 feeding induction head L8 H6 (EleutherAI/gpt-neo-1.3B).\n\n Step 1 (L4 H14): every position is annotated with the token before it.\n Step 2 (L8 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L6_H13+L8_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.6.attn.hook_z[13] + blocks.8.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-1_3b_L6_H13", "gpt-neo-1_3b_L8_H6"], "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: wind green fire red man wind -> green", "List: woman night green gold rain woman -> night"], "mean_activation": 0.633, "ablation_impact_drop": 0.925}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H13(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L6 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.987\n - mean attention to self = 0.001\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-1.3B L8 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.633\n - variant scores: nearest-occurrence 0.596 vs first-occurrence 0.368 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L6 H13 feeding induction head L8 H6 (EleutherAI/gpt-neo-1.3B).\n\n Step 1 (L6 H13): every position is annotated with the token before it.\n Step 2 (L8 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L7_H3+L8_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[3] + blocks.8.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-1_3b_L7_H3", "gpt-neo-1_3b_L8_H6"], "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: woman night green gold rain woman -> night", "List: wind green fire red man wind -> green"], "mean_activation": 0.633, "ablation_impact_drop": 0.943}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L7_H3(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H3).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.707\n - mean attention to self = 0.019\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-1.3B L8 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.633\n - variant scores: nearest-occurrence 0.596 vs first-occurrence 0.368 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L7 H3 feeding induction head L8 H6 (EleutherAI/gpt-neo-1.3B).\n\n Step 1 (L7 H3): every position is annotated with the token before it.\n Step 2 (L8 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L7_H6+L8_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[6] + blocks.8.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-1_3b_L7_H6", "gpt-neo-1_3b_L8_H6"], "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: woman night green gold rain woman -> night", "Words: queen blue green road wind queen -> blue"], "mean_activation": 0.633, "ablation_impact_drop": 0.94}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L7_H6(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H6).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-1.3B L8 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.633\n - variant scores: nearest-occurrence 0.596 vs first-occurrence 0.368 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L7 H6 feeding induction head L8 H6 (EleutherAI/gpt-neo-1.3B).\n\n Step 1 (L7 H6): every position is annotated with the token before it.\n Step 2 (L8 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L7_H13+L8_H6", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.7.attn.hook_z[13] + blocks.8.attn.hook_z[6]", "tier": "composed", "members": ["gpt-neo-1_3b_L7_H13", "gpt-neo-1_3b_L8_H6"], "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: woman night green gold rain woman -> night", "List: wind green fire red man wind -> green"], "mean_activation": 0.633, "ablation_impact_drop": 0.937}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L7_H13(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (EleutherAI/gpt-neo-1.3B L7 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 1.000\n - mean attention to self = 0.000\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L8_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (EleutherAI/gpt-neo-1.3B L8 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.633\n - variant scores: nearest-occurrence 0.596 vs first-occurrence 0.368 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L7 H13 feeding induction head L8 H6 (EleutherAI/gpt-neo-1.3B).\n\n Step 1 (L7 H13): every position is annotated with the token before it.\n Step 2 (L8 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "opt-1_3b_L15_H25", "model": "facebook/opt-1.3b", "component": "blocks.15.attn.hook_z[25]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: dog night woman man fire dog -> night", "Items: king moon black snow sun king -> moon", "List: fire dog night road heart fire -> dog"], "mean_activation": 0.661, "ablation_impact_drop": 0.054}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (facebook/opt-1.3b L15 H25).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.661\n - variant scores: nearest-occurrence 0.362 vs first-occurrence 0.435 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L1_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.1.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ house [ tree ] rain -> }", "{ man [ black ] queen -> }"], "mean_activation": 0.415, "ablation_impact_drop": 0.473}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L1 H3).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.415\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L1_H4", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.1.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "Sequence: water cat fish house fire water -> cat", "List: fire dog night road heart fire -> dog"], "mean_activation": 0.657, "ablation_impact_drop": 0.111}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L1 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.657\n - mean attention to self = 0.166\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-1_5b_L2_H1", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.2.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ house [ tree ] rain -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.743, "ablation_impact_drop": 0.189}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L2 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.743\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L2_H2", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.2.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "{ silver ( gold ) tree -> }", "{ house [ tree ] rain -> }"], "mean_activation": 0.54, "ablation_impact_drop": 0.176}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L2 H2).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.540\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L2_H9", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.2.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ house [ tree ] rain -> }", "( queen { green } wind -> )", "{ heart [ boy ] stone -> }"], "mean_activation": 0.746, "ablation_impact_drop": 0.051}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L2 H9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.746\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L3_H6", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.3.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ house [ tree ] rain -> }", "[ blue { moon } star -> ]"], "mean_activation": 0.571, "ablation_impact_drop": 0.071}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L3 H6).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.571\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L3_H11", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.3.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "( queen { green } wind -> )", "[ day { river } heart -> ]"], "mean_activation": 0.565, "ablation_impact_drop": 0.051}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L3 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.565\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L4_H8", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.4.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ blue { moon } star -> ]", "( snow { rain } stone -> )", "{ man [ black ] queen -> }"], "mean_activation": 0.513, "ablation_impact_drop": 0.047}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L4 H8).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.513\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L8_H7", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.8.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: red man bird star green red -> man", "Sequence: night river water wood green night -> river", "List: book fish water fire hand book -> fish"], "mean_activation": 0.381, "ablation_impact_drop": 0.076}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L8 H7).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.381\n - variant scores: nearest-occurrence 0.330 vs first-occurrence 0.209 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L10_H4", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.10.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "[ heart { night } moon -> ]", "[ day { river } heart -> ]"], "mean_activation": 0.772, "ablation_impact_drop": 0.05}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L10 H4).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.772\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L13_H4", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.13.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: fire woman sun water fish fire -> woman", "List: fire dog night road heart fire -> dog"], "mean_activation": 0.582, "ablation_impact_drop": 0.287}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L13 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.582\n - mean attention to self = 0.042\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-1_5b_L14_H0", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.14.attn.hook_z[0]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: night river water wood green night -> river", "List: door sun night boy white door -> sun"], "mean_activation": 0.421, "ablation_impact_drop": 0.099}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 H0).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.421\n - variant scores: nearest-occurrence 0.862 vs first-occurrence 0.064 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L14_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.14.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: tree hand man stone house tree -> hand", "List: star wind wood snow red star -> wind", "List: house river night gold dog house -> river"], "mean_activation": 0.82, "ablation_impact_drop": 0.308}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.820\n - variant scores: nearest-occurrence 0.224 vs first-occurrence 0.712 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L16_H2", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.16.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "[ heart { night } moon -> ]", "{ wood [ day ] star -> }"], "mean_activation": 0.972, "ablation_impact_drop": 0.05}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L16 H2).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.972\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L17_H5", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.17.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "[ heart { night } moon -> ]", "{ black ( blue ) day -> }"], "mean_activation": 0.681, "ablation_impact_drop": 0.092}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L17 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.681\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L17_H11", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.17.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "[ blue { moon } star -> ]", "( cat [ black ] wood -> )"], "mean_activation": 0.716, "ablation_impact_drop": 0.144}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L17 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.716\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L18_H8", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.18.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "Items: hand fire boy eye woman hand -> fire", "Words: man woman bird stone water man -> woman"], "mean_activation": 0.541, "ablation_impact_drop": 0.235}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L18 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.541\n - mean attention to self = 0.105\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-1_5b_L19_H1", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.19.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["Series: red king black door fire red -> king", "List: tree hand man stone house tree -> hand", "List: book fish water fire hand book -> fish"], "mean_activation": 0.515, "ablation_impact_drop": 0.113}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H1).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.515\n - variant scores: nearest-occurrence 0.082 vs first-occurrence 0.378 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L19_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.19.attn.hook_z[3]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: red man bird star green red -> man", "Series: red king black door fire red -> king", "List: star wind wood snow red star -> wind"], "mean_activation": 0.61, "ablation_impact_drop": 0.249}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.610\n - variant scores: nearest-occurrence 0.347 vs first-occurrence 0.355 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L24_H8", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.24.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man [ black ] queen -> }", "[ blue { moon } star -> ]", "[ heart { night } moon -> ]"], "mean_activation": 0.724, "ablation_impact_drop": 0.05}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L24 H8).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.724\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L2_H1+H2+H4+H5+H6+H7+H9+H11", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.2.attn.hook_z[1,2,4,5,6,7,9,11]", "tier": "group", "members": ["qwen2_5-1_5b_L2_H1", "qwen2_5-1_5b_L2_H2", "qwen2_5-1_5b_L2_H4", "qwen2_5-1_5b_L2_H5", "qwen2_5-1_5b_L2_H6", "qwen2_5-1_5b_L2_H7", "qwen2_5-1_5b_L2_H9", "qwen2_5-1_5b_L2_H11"], "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "{ silver ( gold ) tree -> }", "{ man ( water ) cat -> }"], "mean_activation": 0.743, "ablation_impact_drop": 0.514}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L2 H1+2+4+5+6+7+9+11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.743\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L14_H0+H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.14.attn.hook_z[0,3]", "tier": "group", "members": ["qwen2_5-1_5b_L14_H0", "qwen2_5-1_5b_L14_H3"], "brain_signature": {"top_activating_examples": ["List: tree hand man stone house tree -> hand", "List: star wind wood snow red star -> wind", "List: house river night gold dog house -> river"], "mean_activation": 0.421, "ablation_impact_drop": 0.507}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 H0+3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.421\n - variant scores: nearest-occurrence 0.862 vs first-occurrence 0.064 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_family_bracket_matching_x172", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.1.attn.hook_z[3] + blocks.2.attn.hook_z[1] + blocks.2.attn.hook_z[2] + blocks.2.attn.hook_z[4] + blocks.2.attn.hook_z[5] + blocks.2.attn.hook_z[6] + blocks.2.attn.hook_z[7] + blocks.2.attn.hook_z[9] + blocks.2.attn.hook_z[11] + blocks.3.attn.hook_z[0] + blocks.3.attn.hook_z[5] + blocks.3.attn.hook_z[6] + blocks.3.attn.hook_z[7] + blocks.3.attn.hook_z[9] + blocks.4.attn.hook_z[1] + blocks.4.attn.hook_z[3] + blocks.4.attn.hook_z[4] + blocks.4.attn.hook_z[6] + blocks.4.attn.hook_z[7] + blocks.4.attn.hook_z[8] + blocks.4.attn.hook_z[9] + blocks.4.attn.hook_z[10] + blocks.5.attn.hook_z[0] + blocks.5.attn.hook_z[3] + blocks.5.attn.hook_z[5] + blocks.5.attn.hook_z[6] + blocks.5.attn.hook_z[10] + blocks.5.attn.hook_z[11] + blocks.6.attn.hook_z[1] + blocks.6.attn.hook_z[3] + blocks.6.attn.hook_z[4] + blocks.6.attn.hook_z[7] + blocks.6.attn.hook_z[8] + blocks.6.attn.hook_z[9] + blocks.6.attn.hook_z[11] + blocks.7.attn.hook_z[0] + blocks.7.attn.hook_z[2] + blocks.7.attn.hook_z[3] + blocks.7.attn.hook_z[4] + blocks.7.attn.hook_z[6] + blocks.7.attn.hook_z[9] + blocks.7.attn.hook_z[11] + blocks.8.attn.hook_z[1] + blocks.8.attn.hook_z[3] + blocks.8.attn.hook_z[9] + blocks.8.attn.hook_z[10] + blocks.9.attn.hook_z[2] + blocks.9.attn.hook_z[3] + blocks.9.attn.hook_z[6] + blocks.9.attn.hook_z[7] + blocks.9.attn.hook_z[8] + blocks.10.attn.hook_z[0] + blocks.10.attn.hook_z[2] + blocks.10.attn.hook_z[4] + blocks.10.attn.hook_z[7] + blocks.10.attn.hook_z[8] + blocks.10.attn.hook_z[9] + blocks.10.attn.hook_z[10] + blocks.11.attn.hook_z[0] + blocks.11.attn.hook_z[3] + blocks.11.attn.hook_z[5] + blocks.11.attn.hook_z[7] + blocks.11.attn.hook_z[9] + blocks.11.attn.hook_z[10] + blocks.12.attn.hook_z[0] + blocks.12.attn.hook_z[3] + blocks.12.attn.hook_z[4] + blocks.12.attn.hook_z[5] + blocks.12.attn.hook_z[6] + blocks.12.attn.hook_z[10] + blocks.13.attn.hook_z[1] + blocks.13.attn.hook_z[5] + blocks.13.attn.hook_z[7] + blocks.13.attn.hook_z[8] + blocks.13.attn.hook_z[9] + blocks.14.attn.hook_z[2] + blocks.14.attn.hook_z[4] + blocks.14.attn.hook_z[5] + blocks.14.attn.hook_z[6] + blocks.14.attn.hook_z[11] + blocks.15.attn.hook_z[1] + blocks.15.attn.hook_z[2] + blocks.15.attn.hook_z[3] + blocks.15.attn.hook_z[4] + blocks.15.attn.hook_z[6] + blocks.15.attn.hook_z[8] + blocks.16.attn.hook_z[0] + blocks.16.attn.hook_z[1] + blocks.16.attn.hook_z[2] + blocks.16.attn.hook_z[3] + blocks.16.attn.hook_z[4] + blocks.16.attn.hook_z[5] + blocks.16.attn.hook_z[6] + blocks.16.attn.hook_z[7] + blocks.16.attn.hook_z[9] + blocks.16.attn.hook_z[10] + blocks.16.attn.hook_z[11] + blocks.17.attn.hook_z[3] + blocks.17.attn.hook_z[5] + blocks.17.attn.hook_z[7] + blocks.17.attn.hook_z[9] + blocks.17.attn.hook_z[10] + blocks.17.attn.hook_z[11] + blocks.18.attn.hook_z[0] + blocks.18.attn.hook_z[1] + blocks.18.attn.hook_z[3] + blocks.18.attn.hook_z[5] + blocks.18.attn.hook_z[6] + blocks.18.attn.hook_z[7] + blocks.19.attn.hook_z[0] + blocks.19.attn.hook_z[4] + blocks.19.attn.hook_z[5] + blocks.19.attn.hook_z[9] + blocks.20.attn.hook_z[0] + blocks.20.attn.hook_z[1] + blocks.20.attn.hook_z[3] + blocks.20.attn.hook_z[4] + blocks.20.attn.hook_z[5] + blocks.20.attn.hook_z[6] + blocks.20.attn.hook_z[8] + blocks.20.attn.hook_z[9] + blocks.20.attn.hook_z[10] + blocks.20.attn.hook_z[11] + blocks.21.attn.hook_z[0] + blocks.21.attn.hook_z[1] + blocks.21.attn.hook_z[3] + blocks.21.attn.hook_z[5] + blocks.21.attn.hook_z[6] + blocks.21.attn.hook_z[7] + blocks.21.attn.hook_z[8] + blocks.21.attn.hook_z[9] + blocks.21.attn.hook_z[10] + blocks.21.attn.hook_z[11] + blocks.22.attn.hook_z[3] + blocks.22.attn.hook_z[6] + blocks.22.attn.hook_z[7] + blocks.22.attn.hook_z[8] + blocks.22.attn.hook_z[10] + blocks.22.attn.hook_z[11] + blocks.23.attn.hook_z[1] + blocks.23.attn.hook_z[3] + blocks.23.attn.hook_z[5] + blocks.23.attn.hook_z[6] + blocks.23.attn.hook_z[7] + blocks.23.attn.hook_z[8] + blocks.23.attn.hook_z[11] + blocks.24.attn.hook_z[6] + blocks.24.attn.hook_z[7] + blocks.24.attn.hook_z[8] + blocks.24.attn.hook_z[9] + blocks.24.attn.hook_z[10] + blocks.24.attn.hook_z[11] + blocks.25.attn.hook_z[0] + blocks.25.attn.hook_z[1] + blocks.25.attn.hook_z[2] + blocks.25.attn.hook_z[5] + blocks.25.attn.hook_z[6] + blocks.25.attn.hook_z[7] + blocks.25.attn.hook_z[8] + blocks.25.attn.hook_z[9] + blocks.26.attn.hook_z[0] + blocks.26.attn.hook_z[1] + blocks.26.attn.hook_z[2] + blocks.26.attn.hook_z[3] + blocks.26.attn.hook_z[4] + blocks.26.attn.hook_z[5] + blocks.26.attn.hook_z[6] + blocks.26.attn.hook_z[7] + blocks.26.attn.hook_z[8] + blocks.26.attn.hook_z[9] + blocks.26.attn.hook_z[10] + blocks.26.attn.hook_z[11]", "tier": "family", "members": ["qwen2_5-1_5b_L1_H3", "qwen2_5-1_5b_L2_H1", "qwen2_5-1_5b_L2_H2", "qwen2_5-1_5b_L2_H4", "qwen2_5-1_5b_L2_H5", "qwen2_5-1_5b_L2_H6", "qwen2_5-1_5b_L2_H7", "qwen2_5-1_5b_L2_H9", "qwen2_5-1_5b_L2_H11", "qwen2_5-1_5b_L3_H0", "qwen2_5-1_5b_L3_H5", "qwen2_5-1_5b_L3_H6", "qwen2_5-1_5b_L3_H7", "qwen2_5-1_5b_L3_H9", "qwen2_5-1_5b_L4_H1", "qwen2_5-1_5b_L4_H3", "qwen2_5-1_5b_L4_H4", "qwen2_5-1_5b_L4_H6", "qwen2_5-1_5b_L4_H7", "qwen2_5-1_5b_L4_H8", "qwen2_5-1_5b_L4_H9", "qwen2_5-1_5b_L4_H10", "qwen2_5-1_5b_L5_H0", "qwen2_5-1_5b_L5_H3", "qwen2_5-1_5b_L5_H5", "qwen2_5-1_5b_L5_H6", "qwen2_5-1_5b_L5_H10", "qwen2_5-1_5b_L5_H11", "qwen2_5-1_5b_L6_H1", "qwen2_5-1_5b_L6_H3", "qwen2_5-1_5b_L6_H4", "qwen2_5-1_5b_L6_H7", "qwen2_5-1_5b_L6_H8", "qwen2_5-1_5b_L6_H9", "qwen2_5-1_5b_L6_H11", "qwen2_5-1_5b_L7_H0", "qwen2_5-1_5b_L7_H2", "qwen2_5-1_5b_L7_H3", "qwen2_5-1_5b_L7_H4", "qwen2_5-1_5b_L7_H6", "qwen2_5-1_5b_L7_H9", "qwen2_5-1_5b_L7_H11", "qwen2_5-1_5b_L8_H1", "qwen2_5-1_5b_L8_H3", "qwen2_5-1_5b_L8_H9", "qwen2_5-1_5b_L8_H10", "qwen2_5-1_5b_L9_H2", "qwen2_5-1_5b_L9_H3", "qwen2_5-1_5b_L9_H6", "qwen2_5-1_5b_L9_H7", "qwen2_5-1_5b_L9_H8", "qwen2_5-1_5b_L10_H0", "qwen2_5-1_5b_L10_H2", "qwen2_5-1_5b_L10_H4", "qwen2_5-1_5b_L10_H7", "qwen2_5-1_5b_L10_H8", "qwen2_5-1_5b_L10_H9", "qwen2_5-1_5b_L10_H10", "qwen2_5-1_5b_L11_H0", "qwen2_5-1_5b_L11_H3", "qwen2_5-1_5b_L11_H5", "qwen2_5-1_5b_L11_H7", "qwen2_5-1_5b_L11_H9", "qwen2_5-1_5b_L11_H10", "qwen2_5-1_5b_L12_H0", "qwen2_5-1_5b_L12_H3", "qwen2_5-1_5b_L12_H4", "qwen2_5-1_5b_L12_H5", "qwen2_5-1_5b_L12_H6", "qwen2_5-1_5b_L12_H10", "qwen2_5-1_5b_L13_H1", "qwen2_5-1_5b_L13_H5", "qwen2_5-1_5b_L13_H7", "qwen2_5-1_5b_L13_H8", "qwen2_5-1_5b_L13_H9", "qwen2_5-1_5b_L14_H2", "qwen2_5-1_5b_L14_H4", "qwen2_5-1_5b_L14_H5", "qwen2_5-1_5b_L14_H6", "qwen2_5-1_5b_L14_H11", "qwen2_5-1_5b_L15_H1", "qwen2_5-1_5b_L15_H2", "qwen2_5-1_5b_L15_H3", "qwen2_5-1_5b_L15_H4", "qwen2_5-1_5b_L15_H6", "qwen2_5-1_5b_L15_H8", "qwen2_5-1_5b_L16_H0", "qwen2_5-1_5b_L16_H1", "qwen2_5-1_5b_L16_H2", "qwen2_5-1_5b_L16_H3", "qwen2_5-1_5b_L16_H4", "qwen2_5-1_5b_L16_H5", "qwen2_5-1_5b_L16_H6", "qwen2_5-1_5b_L16_H7", "qwen2_5-1_5b_L16_H9", "qwen2_5-1_5b_L16_H10", "qwen2_5-1_5b_L16_H11", "qwen2_5-1_5b_L17_H3", "qwen2_5-1_5b_L17_H5", "qwen2_5-1_5b_L17_H7", "qwen2_5-1_5b_L17_H9", "qwen2_5-1_5b_L17_H10", "qwen2_5-1_5b_L17_H11", "qwen2_5-1_5b_L18_H0", "qwen2_5-1_5b_L18_H1", "qwen2_5-1_5b_L18_H3", "qwen2_5-1_5b_L18_H5", "qwen2_5-1_5b_L18_H6", "qwen2_5-1_5b_L18_H7", "qwen2_5-1_5b_L19_H0", "qwen2_5-1_5b_L19_H4", "qwen2_5-1_5b_L19_H5", "qwen2_5-1_5b_L19_H9", "qwen2_5-1_5b_L20_H0", "qwen2_5-1_5b_L20_H1", "qwen2_5-1_5b_L20_H3", "qwen2_5-1_5b_L20_H4", "qwen2_5-1_5b_L20_H5", "qwen2_5-1_5b_L20_H6", "qwen2_5-1_5b_L20_H8", "qwen2_5-1_5b_L20_H9", "qwen2_5-1_5b_L20_H10", "qwen2_5-1_5b_L20_H11", "qwen2_5-1_5b_L21_H0", "qwen2_5-1_5b_L21_H1", "qwen2_5-1_5b_L21_H3", "qwen2_5-1_5b_L21_H5", "qwen2_5-1_5b_L21_H6", "qwen2_5-1_5b_L21_H7", "qwen2_5-1_5b_L21_H8", "qwen2_5-1_5b_L21_H9", "qwen2_5-1_5b_L21_H10", "qwen2_5-1_5b_L21_H11", "qwen2_5-1_5b_L22_H3", "qwen2_5-1_5b_L22_H6", "qwen2_5-1_5b_L22_H7", "qwen2_5-1_5b_L22_H8", "qwen2_5-1_5b_L22_H10", "qwen2_5-1_5b_L22_H11", "qwen2_5-1_5b_L23_H1", "qwen2_5-1_5b_L23_H3", "qwen2_5-1_5b_L23_H5", "qwen2_5-1_5b_L23_H6", "qwen2_5-1_5b_L23_H7", "qwen2_5-1_5b_L23_H8", "qwen2_5-1_5b_L23_H11", "qwen2_5-1_5b_L24_H6", "qwen2_5-1_5b_L24_H7", "qwen2_5-1_5b_L24_H8", "qwen2_5-1_5b_L24_H9", "qwen2_5-1_5b_L24_H10", "qwen2_5-1_5b_L24_H11", "qwen2_5-1_5b_L25_H0", "qwen2_5-1_5b_L25_H1", "qwen2_5-1_5b_L25_H2", "qwen2_5-1_5b_L25_H5", "qwen2_5-1_5b_L25_H6", "qwen2_5-1_5b_L25_H7", "qwen2_5-1_5b_L25_H8", "qwen2_5-1_5b_L25_H9", "qwen2_5-1_5b_L26_H0", "qwen2_5-1_5b_L26_H1", "qwen2_5-1_5b_L26_H2", "qwen2_5-1_5b_L26_H3", "qwen2_5-1_5b_L26_H4", "qwen2_5-1_5b_L26_H5", "qwen2_5-1_5b_L26_H6", "qwen2_5-1_5b_L26_H7", "qwen2_5-1_5b_L26_H8", "qwen2_5-1_5b_L26_H9", "qwen2_5-1_5b_L26_H10", "qwen2_5-1_5b_L26_H11"], "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "{ man [ black ] queen -> }", "{ silver ( gold ) tree -> }"], "mean_activation": 0.415, "ablation_impact_drop": 0.702}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (Qwen/Qwen2.5-1.5B L1 HL1H3+L2H1+L2H2+L2H4+L2H5+L2H6+L2H7+L2H9+L2H11+L3H0+L3H5+L3H6+L3H7+L3H9+L4H1+L4H3+L4H4+L4H6+L4H7+L4H8+L4H9+L4H10+L5H0+L5H3+L5H5+L5H6+L5H10+L5H11+L6H1+L6H3+L6H4+L6H7+L6H8+L6H9+L6H11+L7H0+L7H2+L7H3+L7H4+L7H6+L7H9+L7H11+L8H1+L8H3+L8H9+L8H10+L9H2+L9H3+L9H6+L9H7+L9H8+L10H0+L10H2+L10H4+L10H7+L10H8+L10H9+L10H10+L11H0+L11H3+L11H5+L11H7+L11H9+L11H10+L12H0+L12H3+L12H4+L12H5+L12H6+L12H10+L13H1+L13H5+L13H7+L13H8+L13H9+L14H2+L14H4+L14H5+L14H6+L14H11+L15H1+L15H2+L15H3+L15H4+L15H6+L15H8+L16H0+L16H1+L16H2+L16H3+L16H4+L16H5+L16H6+L16H7+L16H9+L16H10+L16H11+L17H3+L17H5+L17H7+L17H9+L17H10+L17H11+L18H0+L18H1+L18H3+L18H5+L18H6+L18H7+L19H0+L19H4+L19H5+L19H9+L20H0+L20H1+L20H3+L20H4+L20H5+L20H6+L20H8+L20H9+L20H10+L20H11+L21H0+L21H1+L21H3+L21H5+L21H6+L21H7+L21H8+L21H9+L21H10+L21H11+L22H3+L22H6+L22H7+L22H8+L22H10+L22H11+L23H1+L23H3+L23H5+L23H6+L23H7+L23H8+L23H11+L24H6+L24H7+L24H8+L24H9+L24H10+L24H11+L25H0+L25H1+L25H2+L25H5+L25H6+L25H7+L25H8+L25H9+L26H0+L26H1+L26H2+L26H3+L26H4+L26H5+L26H6+L26H7+L26H8+L26H9+L26H10+L26H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.415\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_family_induction_x3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.14.attn.hook_z[0] + blocks.14.attn.hook_z[3] + blocks.19.attn.hook_z[3]", "tier": "family", "members": ["qwen2_5-1_5b_L14_H0", "qwen2_5-1_5b_L14_H3", "qwen2_5-1_5b_L19_H3"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: tree hand man stone house tree -> hand", "List: red man bird star green red -> man"], "mean_activation": 0.421, "ablation_impact_drop": 0.701}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 HL14H0+L14H3+L19H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.421\n - variant scores: nearest-occurrence 0.862 vs first-occurrence 0.064 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_family_previous_token_x4", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.0.attn.hook_z[8] + blocks.1.attn.hook_z[4] + blocks.13.attn.hook_z[4] + blocks.18.attn.hook_z[8]", "tier": "family", "members": ["qwen2_5-1_5b_L0_H8", "qwen2_5-1_5b_L1_H4", "qwen2_5-1_5b_L13_H4", "qwen2_5-1_5b_L18_H8"], "brain_signature": {"top_activating_examples": ["List: wind road cat girl boy wind -> road", "List: fire woman sun water fish fire -> woman", "Items: hand fire boy eye woman hand -> fire"], "mean_activation": 0.772, "ablation_impact_drop": 0.643}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L0 HL0H8+L1H4+L13H4+L18H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.772\n - mean attention to self = 0.097\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "qwen2_5-1_5b_L1_H4+L14_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.1.attn.hook_z[4] + blocks.14.attn.hook_z[3]", "tier": "composed", "members": ["qwen2_5-1_5b_L1_H4", "qwen2_5-1_5b_L14_H3"], "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "List: star wind wood snow red star -> wind", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.82, "ablation_impact_drop": 0.393}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L1_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L1 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.657\n - mean attention to self = 0.166\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L14_H3(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.820\n - variant scores: nearest-occurrence 0.224 vs first-occurrence 0.712 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L1 H4 feeding induction head L14 H3 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L1 H4): every position is annotated with the token before it.\n Step 2 (L14 H3): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L1_H4+L19_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.1.attn.hook_z[4] + blocks.19.attn.hook_z[3]", "tier": "composed", "members": ["qwen2_5-1_5b_L1_H4", "qwen2_5-1_5b_L19_H3"], "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "List: star wind wood snow red star -> wind", "List: red man bird star green red -> man"], "mean_activation": 0.61, "ablation_impact_drop": 0.282}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L1_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L1 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.657\n - mean attention to self = 0.166\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L19_H3(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.610\n - variant scores: nearest-occurrence 0.347 vs first-occurrence 0.355 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L1 H4 feeding induction head L19 H3 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L1 H4): every position is annotated with the token before it.\n Step 2 (L19 H3): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L13_H4+L14_H0", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.13.attn.hook_z[4] + blocks.14.attn.hook_z[0]", "tier": "composed", "members": ["qwen2_5-1_5b_L13_H4", "qwen2_5-1_5b_L14_H0"], "brain_signature": {"top_activating_examples": ["List: fire dog night road heart fire -> dog", "List: fire woman sun water fish fire -> woman", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.421, "ablation_impact_drop": 0.311}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L13_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L13 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.582\n - mean attention to self = 0.042\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L14_H0(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 H0).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.421\n - variant scores: nearest-occurrence 0.862 vs first-occurrence 0.064 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L13 H4 feeding induction head L14 H0 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L13 H4): every position is annotated with the token before it.\n Step 2 (L14 H0): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L13_H4+L14_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.13.attn.hook_z[4] + blocks.14.attn.hook_z[3]", "tier": "composed", "members": ["qwen2_5-1_5b_L13_H4", "qwen2_5-1_5b_L14_H3"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: tree hand man stone house tree -> hand", "List: book fish water fire hand book -> fish"], "mean_activation": 0.82, "ablation_impact_drop": 0.453}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L13_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L13 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.582\n - mean attention to self = 0.042\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L14_H3(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L14 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.820\n - variant scores: nearest-occurrence 0.224 vs first-occurrence 0.712 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L13 H4 feeding induction head L14 H3 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L13 H4): every position is annotated with the token before it.\n Step 2 (L14 H3): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L13_H4+L19_H1", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.13.attn.hook_z[4] + blocks.19.attn.hook_z[1]", "tier": "composed", "members": ["qwen2_5-1_5b_L13_H4", "qwen2_5-1_5b_L19_H1"], "brain_signature": {"top_activating_examples": ["List: fire woman sun water fish fire -> woman", "List: star wind wood snow red star -> wind", "List: fire dog night road heart fire -> dog"], "mean_activation": 0.515, "ablation_impact_drop": 0.408}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L13_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L13 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.582\n - mean attention to self = 0.042\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L19_H1(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H1).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.515\n - variant scores: nearest-occurrence 0.082 vs first-occurrence 0.378 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L13 H4 feeding induction head L19 H1 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L13 H4): every position is annotated with the token before it.\n Step 2 (L19 H1): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L13_H4+L19_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.13.attn.hook_z[4] + blocks.19.attn.hook_z[3]", "tier": "composed", "members": ["qwen2_5-1_5b_L13_H4", "qwen2_5-1_5b_L19_H3"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: fire dog night road heart fire -> dog", "Series: red king black door fire red -> king"], "mean_activation": 0.61, "ablation_impact_drop": 0.459}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L13_H4(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L13 H4).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.582\n - mean attention to self = 0.042\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L19_H3(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.610\n - variant scores: nearest-occurrence 0.347 vs first-occurrence 0.355 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L13 H4 feeding induction head L19 H3 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L13 H4): every position is annotated with the token before it.\n Step 2 (L19 H3): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L18_H8+L19_H1", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.18.attn.hook_z[8] + blocks.19.attn.hook_z[1]", "tier": "composed", "members": ["qwen2_5-1_5b_L18_H8", "qwen2_5-1_5b_L19_H1"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "Items: hand fire boy eye woman hand -> fire", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.515, "ablation_impact_drop": 0.335}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L18_H8(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L18 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.541\n - mean attention to self = 0.105\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L19_H1(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H1).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.515\n - variant scores: nearest-occurrence 0.082 vs first-occurrence 0.378 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L18 H8 feeding induction head L19 H1 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L18 H8): every position is annotated with the token before it.\n Step 2 (L19 H1): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L18_H8+L19_H3", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.18.attn.hook_z[8] + blocks.19.attn.hook_z[3]", "tier": "composed", "members": ["qwen2_5-1_5b_L18_H8", "qwen2_5-1_5b_L19_H3"], "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "Words: man woman bird stone water man -> woman", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.61, "ablation_impact_drop": 0.359}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L18_H8(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (Qwen/Qwen2.5-1.5B L18 H8).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.541\n - mean attention to self = 0.105\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L19_H3(tokens: list[str]) -> dict:\n \"\"\"Induction head (Qwen/Qwen2.5-1.5B L19 H3).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.610\n - variant scores: nearest-occurrence 0.347 vs first-occurrence 0.355 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L18 H8 feeding induction head L19 H3 (Qwen/Qwen2.5-1.5B).\n\n Step 1 (L18 H8): every position is annotated with the token before it.\n Step 2 (L19 H3): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L21_MLP3015", "model": "bigscience/bloom-560m", "component": "blocks.21.mlp.hook_post[3015]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Russia is", "The capital city of Russia is", "Russia's capital is"], "mean_activation": 5.297, "ablation_impact_drop": 0.355}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (bigscience/bloom-560m blocks.21.mlp neuron 3015).\n\n Fires on prompts asking for the capital of Russia and routes the\n memorised answer 'Moscow' toward the output.\n Measured: mean final-position activation 5.297 on its fact's\n prompts vs -0.101 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Russia' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Moscow',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L20_MLP2588", "model": "bigscience/bloom-560m", "component": "blocks.20.mlp.hook_post[2588]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Spain is", "The capital city of Spain is", "Spain's capital is"], "mean_activation": 4.072, "ablation_impact_drop": 0.065}, "behavioral_fidelity_score": 0.974, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (bigscience/bloom-560m blocks.20.mlp neuron 2588).\n\n Fires on prompts asking for the capital of Spain and routes the\n memorised answer 'Madrid' toward the output.\n Measured: mean final-position activation 4.072 on its fact's\n prompts vs -0.083 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Spain' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Madrid',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt-neo-1_3b_L23_MLP3015", "model": "EleutherAI/gpt-neo-1.3B", "component": "blocks.23.mlp.hook_post[3015]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Canada is", "The capital city of Canada is", "Canada's capital is"], "mean_activation": 7.874, "ablation_impact_drop": 0.483}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (EleutherAI/gpt-neo-1.3B blocks.23.mlp neuron 3015).\n\n Fires on prompts asking for the capital of Canada and routes the\n memorised answer 'Ottawa' toward the output.\n Measured: mean final-position activation 7.874 on its fact's\n prompts vs 0.654 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Canada' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Ottawa',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "gpt2-large_L32_MLP4454", "model": "gpt2-large", "component": "blocks.32.mlp.hook_post[4454]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Canada is", "The capital city of Canada is", "Canada's capital is"], "mean_activation": 3.899, "ablation_impact_drop": 0.25}, "behavioral_fidelity_score": 0.976, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (gpt2-large blocks.32.mlp neuron 4454).\n\n Fires on prompts asking for the capital of Canada and routes the\n memorised answer 'Ottawa' toward the output.\n Measured: mean final-position activation 3.899 on its fact's\n prompts vs -0.050 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Canada' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Ottawa',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "opt-1_3b_L21_MLP4690", "model": "facebook/opt-1.3b", "component": "blocks.21.mlp.hook_post[4690]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Australia is", "The capital city of Australia is", "Australia's capital is"], "mean_activation": 11.876, "ablation_impact_drop": 0.33}, "behavioral_fidelity_score": 0.976, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (facebook/opt-1.3b blocks.21.mlp neuron 4690).\n\n Fires on prompts asking for the capital of Australia and routes the\n memorised answer 'Canberra' toward the output.\n Measured: mean final-position activation 11.876 on its fact's\n prompts vs 0.035 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Australia' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Canberra',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "opt-1_3b_L21_MLP6131", "model": "facebook/opt-1.3b", "component": "blocks.21.mlp.hook_post[6131]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Japan is", "The capital city of Japan is", "Japan's capital is"], "mean_activation": 10.862, "ablation_impact_drop": 0.097}, "behavioral_fidelity_score": 0.976, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (facebook/opt-1.3b blocks.21.mlp neuron 6131).\n\n Fires on prompts asking for the capital of Japan and routes the\n memorised answer 'Tokyo' toward the output.\n Measured: mean final-position activation 10.862 on its fact's\n prompts vs 0.000 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Japan' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Tokyo',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "opt-1_3b_L23_MLP503", "model": "facebook/opt-1.3b", "component": "blocks.23.mlp.hook_post[503]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of China is", "The capital city of China is", "China's capital is"], "mean_activation": 10.415, "ablation_impact_drop": 0.721}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (facebook/opt-1.3b blocks.23.mlp neuron 503).\n\n Fires on prompts asking for the capital of China and routes the\n memorised answer 'Beijing' toward the output.\n Measured: mean final-position activation 10.415 on its fact's\n prompts vs 0.171 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'China' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Beijing',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "opt-1_3b_L22_MLP3167", "model": "facebook/opt-1.3b", "component": "blocks.22.mlp.hook_post[3167]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of France is", "The capital city of France is", "France's capital is"], "mean_activation": 9.912, "ablation_impact_drop": 0.163}, "behavioral_fidelity_score": 0.976, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (facebook/opt-1.3b blocks.22.mlp neuron 3167).\n\n Fires on prompts asking for the capital of France and routes the\n memorised answer 'Paris' toward the output.\n Measured: mean final-position activation 9.912 on its fact's\n prompts vs 0.062 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'France' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Paris',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1b_L12_MLP2522", "model": "EleutherAI/pythia-1b", "component": "blocks.12.mlp.hook_post[2522]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Egypt is", "The capital city of Egypt is", "Egypt's capital is"], "mean_activation": 5.193, "ablation_impact_drop": 0.233}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (EleutherAI/pythia-1b blocks.12.mlp neuron 2522).\n\n Fires on prompts asking for the capital of Egypt and routes the\n memorised answer 'Cairo' toward the output.\n Measured: mean final-position activation 5.193 on its fact's\n prompts vs -0.105 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Egypt' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Cairo',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L21_MLP4090", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.21.mlp.hook_post[4090]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of France is", "The capital city of France is", "France's capital is"], "mean_activation": 17.251, "ablation_impact_drop": 0.061}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (Qwen/Qwen2.5-0.5B blocks.21.mlp neuron 4090).\n\n Fires on prompts asking for the capital of France and routes the\n memorised answer 'Paris' toward the output.\n Measured: mean final-position activation 17.251 on its fact's\n prompts vs -0.491 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'France' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Paris',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-0_5b_L21_MLP4060", "model": "Qwen/Qwen2.5-0.5B", "component": "blocks.21.mlp.hook_post[4060]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Germany is", "The capital city of Germany is", "Germany's capital is"], "mean_activation": 14.754, "ablation_impact_drop": 0.074}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (Qwen/Qwen2.5-0.5B blocks.21.mlp neuron 4060).\n\n Fires on prompts asking for the capital of Germany and routes the\n memorised answer 'Berlin' toward the output.\n Measured: mean final-position activation 14.754 on its fact's\n prompts vs -0.401 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Germany' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Berlin',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L25_MLP1386", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.25.mlp.hook_post[1386]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Italy is", "The capital city of Italy is", "Italy's capital is"], "mean_activation": 33.032, "ablation_impact_drop": 0.248}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (Qwen/Qwen2.5-1.5B blocks.25.mlp neuron 1386).\n\n Fires on prompts asking for the capital of Italy and routes the\n memorised answer 'Rome' toward the output.\n Measured: mean final-position activation 33.032 on its fact's\n prompts vs 0.003 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Italy' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Rome',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "qwen2_5-1_5b_L24_MLP25", "model": "Qwen/Qwen2.5-1.5B", "component": "blocks.24.mlp.hook_post[25]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Italy is", "The capital city of Italy is", "Italy's capital is"], "mean_activation": 22.4, "ablation_impact_drop": 0.159}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (Qwen/Qwen2.5-1.5B blocks.24.mlp neuron 25).\n\n Fires on prompts asking for the capital of Italy and routes the\n memorised answer 'Rome' toward the output.\n Measured: mean final-position activation 22.400 on its fact's\n prompts vs -1.072 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Italy' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Rome',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "bloom-560m_L19_MLP2095", "model": "bigscience/bloom-560m", "component": "blocks.19.mlp.hook_post[2095]", "tier": "single", "brain_signature": {"top_activating_examples": ["The largest planet in our solar system is", "The biggest planet in our solar system is", "The largest planet in the solar system is"], "mean_activation": 4.062, "ablation_impact_drop": 0.258}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (bigscience/bloom-560m blocks.19.mlp neuron 2095).\n\n Fires on prompts asking for the planet of Jupiter (key phrase 'solar system') and routes the\n memorised answer 'Jupiter' toward the output.\n Measured: mean final-position activation 4.062 on its fact's\n prompts vs 0.017 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'solar system'.lower() in text.lower():\n return {\"fires\": True, \"attended_token\": ' Jupiter',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1b_L12_MLP3753", "model": "EleutherAI/pythia-1b", "component": "blocks.12.mlp.hook_post[3753]", "tier": "single", "brain_signature": {"top_activating_examples": ["The largest planet in our solar system is", "The biggest planet in our solar system is", "The largest planet in the solar system is"], "mean_activation": 6.985, "ablation_impact_drop": 0.08}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (EleutherAI/pythia-1b blocks.12.mlp neuron 3753).\n\n Fires on prompts asking for the planet of Jupiter (key phrase 'solar system') and routes the\n memorised answer 'Jupiter' toward the output.\n Measured: mean final-position activation 6.985 on its fact's\n prompts vs -0.056 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'solar system'.lower() in text.lower():\n return {\"fires\": True, \"attended_token\": ' Jupiter',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "pythia-1b_L12_MLP1696", "model": "EleutherAI/pythia-1b", "component": "blocks.12.mlp.hook_post[1696]", "tier": "single", "brain_signature": {"top_activating_examples": ["The largest planet in our solar system is", "The biggest planet in our solar system is", "The largest planet in the solar system is"], "mean_activation": 5.064, "ablation_impact_drop": 0.078}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (EleutherAI/pythia-1b blocks.12.mlp neuron 1696).\n\n Fires on prompts asking for the planet of Jupiter (key phrase 'solar system') and routes the\n memorised answer 'Jupiter' toward the output.\n Measured: mean final-position activation 5.064 on its fact's\n prompts vs -0.064 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'solar system'.lower() in text.lower():\n return {\"fires\": True, \"attended_token\": ' Jupiter',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L4_H9", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.4.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: wind green fire red man wind -> green", "List: house river night gold dog house -> river", "List: book fish water fire hand book -> fish"], "mean_activation": 0.996, "ablation_impact_drop": 0.92}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (cerebras-archive/Cerebras-GPT-590M L4 H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.996\n - mean attention to self = 0.001\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "cerebras-gpt-590m_L5_H6", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.5.attn.hook_z[6]", "tier": "single", "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "List: house river night gold dog house -> river", "List: wind green fire red man wind -> green"], "mean_activation": 0.705, "ablation_impact_drop": 0.653}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (cerebras-archive/Cerebras-GPT-590M L5 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.705\n - variant scores: nearest-occurrence 0.394 vs first-occurrence 0.529 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L6_H8", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.6.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: book fish water fire hand book -> fish", "List: wind road cat girl boy wind -> road", "Items: bird rock girl house black bird -> rock"], "mean_activation": 0.675, "ablation_impact_drop": 0.624}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (cerebras-archive/Cerebras-GPT-590M L6 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.675\n - variant scores: nearest-occurrence 0.283 vs first-occurrence 0.489 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L8_H7", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.8.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: red man bird star green red -> man", "List: fire woman sun water fish fire -> woman", "List: star wind wood snow red star -> wind"], "mean_activation": 0.813, "ablation_impact_drop": 0.078}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"First-token sink head (cerebras-archive/Cerebras-GPT-590M L8 H7).\n\n Detects: the start of the sequence. Routing: dumps attention mass on the first token (BOS), a no-op resting state.\n\n Measured on the probe battery:\n - mean attention to first token = 0.813\"\"\"\n if not tokens:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[0], \"rule\": \"first_token_sink\"}\n"} {"id": "cerebras-gpt-590m_L10_H11", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.10.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Chris and Peter went to the store, Chris gave a bottle to -> Peter", "When Mark and Peter went to the library, Mark passed a letter to -> Peter", "When Chris and Peter went to the beach, Chris offered a bag to -> Peter"], "mean_activation": 0.616, "ablation_impact_drop": 0.38}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (cerebras-archive/Cerebras-GPT-590M L10 H11).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.616\n - mean attention to subject name = 0.086\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L5_H4+H6", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.5.attn.hook_z[4,6]", "tier": "group", "members": ["cerebras-gpt-590m_L5_H4", "cerebras-gpt-590m_L5_H6"], "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "Items: road heart river boy sun road -> heart", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.505, "ablation_impact_drop": 0.41}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (cerebras-archive/Cerebras-GPT-590M L5 H4+6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.505\n - variant scores: nearest-occurrence 0.488 vs first-occurrence 0.343 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_family_induction_x3", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.5.attn.hook_z[4] + blocks.5.attn.hook_z[6] + blocks.6.attn.hook_z[8]", "tier": "family", "members": ["cerebras-gpt-590m_L5_H4", "cerebras-gpt-590m_L5_H6", "cerebras-gpt-590m_L6_H8"], "brain_signature": {"top_activating_examples": ["Items: hand fire boy eye woman hand -> fire", "List: wind road cat girl boy wind -> road", "List: house river night gold dog house -> river"], "mean_activation": 0.505, "ablation_impact_drop": 0.948}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (cerebras-archive/Cerebras-GPT-590M L5 HL5H4+L5H6+L6H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.505\n - variant scores: nearest-occurrence 0.488 vs first-occurrence 0.343 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L4_H9+L5_H6", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.4.attn.hook_z[9] + blocks.5.attn.hook_z[6]", "tier": "composed", "members": ["cerebras-gpt-590m_L4_H9", "cerebras-gpt-590m_L5_H6"], "brain_signature": {"top_activating_examples": ["List: wind green fire red man wind -> green", "Items: hand fire boy eye woman hand -> fire", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.705, "ablation_impact_drop": 0.956}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L4_H9(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (cerebras-archive/Cerebras-GPT-590M L4 H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.996\n - mean attention to self = 0.001\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L5_H6(tokens: list[str]) -> dict:\n \"\"\"Induction head (cerebras-archive/Cerebras-GPT-590M L5 H6).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.705\n - variant scores: nearest-occurrence 0.394 vs first-occurrence 0.529 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L4 H9 feeding induction head L5 H6 (cerebras-archive/Cerebras-GPT-590M).\n\n Step 1 (L4 H9): every position is annotated with the token before it.\n Step 2 (L5 H6): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L4_H9+L6_H8", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.4.attn.hook_z[9] + blocks.6.attn.hook_z[8]", "tier": "composed", "members": ["cerebras-gpt-590m_L4_H9", "cerebras-gpt-590m_L6_H8"], "brain_signature": {"top_activating_examples": ["List: wind green fire red man wind -> green", "List: house river night gold dog house -> river", "List: book fish water fire hand book -> fish"], "mean_activation": 0.675, "ablation_impact_drop": 0.936}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L4_H9(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (cerebras-archive/Cerebras-GPT-590M L4 H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.996\n - mean attention to self = 0.001\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L6_H8(tokens: list[str]) -> dict:\n \"\"\"Induction head (cerebras-archive/Cerebras-GPT-590M L6 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.675\n - variant scores: nearest-occurrence 0.283 vs first-occurrence 0.489 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L4 H9 feeding induction head L6 H8 (cerebras-archive/Cerebras-GPT-590M).\n\n Step 1 (L4 H9): every position is annotated with the token before it.\n Step 2 (L6 H8): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "cerebras-gpt-590m_L11_MLP5944", "model": "cerebras-archive/Cerebras-GPT-590M", "component": "blocks.11.mlp.hook_post[5944]", "tier": "single", "brain_signature": {"top_activating_examples": ["The largest planet in our solar system is", "The biggest planet in our solar system is", "The largest planet in the solar system is"], "mean_activation": 5.72, "ablation_impact_drop": 0.089}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (cerebras-archive/Cerebras-GPT-590M blocks.11.mlp neuron 5944).\n\n Fires on prompts asking for the planet of Jupiter (key phrase 'solar system') and routes the\n memorised answer 'Jupiter' toward the output.\n Measured: mean final-position activation 5.720 on its fact's\n prompts vs 0.156 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'solar system'.lower() in text.lower():\n return {\"fires\": True, \"attended_token\": ' Jupiter',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_L3_H11", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.3.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["Sequence: water cat fish house fire water -> cat", "List: wind road cat girl boy wind -> road", "Series: red king black door fire red -> king"], "mean_activation": 0.528, "ablation_impact_drop": 0.238}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-360M L3 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.528\n - mean attention to self = 0.142\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-360m_L16_H7", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.16.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["Words: man woman bird stone water man -> woman", "List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.712, "ablation_impact_drop": 0.499}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-360M L16 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.712\n - mean attention to self = 0.016\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-360m_L17_H8", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.17.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: woman night green gold rain woman -> night", "List: queen tree house moon snow queen -> tree", "List: dog night woman man fire dog -> night"], "mean_activation": 0.648, "ablation_impact_drop": 0.378}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-360M L17 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.648\n - variant scores: nearest-occurrence 0.341 vs first-occurrence 0.454 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_L17_H9", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.17.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: fire woman sun water fish fire -> woman", "Sequence: rain man girl gold day rain -> man", "Series: red king black door fire red -> king"], "mean_activation": 0.699, "ablation_impact_drop": 0.128}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-360M L17 H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.699\n - mean attention to self = 0.026\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-360m_L23_H14", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.23.attn.hook_z[14]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Kevin went to the station, Mark gave a bottle to -> Kevin", "When Lisa and Kevin went to the store, Lisa gave a bottle to -> Kevin", "When Emma and Robert went to the store, Emma gave a ball to -> Robert"], "mean_activation": 0.451, "ablation_impact_drop": 0.159}, "behavioral_fidelity_score": 0.857, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-360M L23 H14).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.451\n - mean attention to subject name = 0.053\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_L24_H4", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.24.attn.hook_z[4]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Kevin went to the library, Mark brought a bag to -> Kevin", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mary and Tom went to the library, Mary brought a box to -> Tom"], "mean_activation": 0.446, "ablation_impact_drop": 0.188}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-360M L24 H4).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.446\n - mean attention to subject name = 0.067\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_family_previous_token_x4", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.1.attn.hook_z[2] + blocks.3.attn.hook_z[11] + blocks.16.attn.hook_z[7] + blocks.17.attn.hook_z[9]", "tier": "family", "members": ["smollm2-360m_L1_H2", "smollm2-360m_L3_H11", "smollm2-360m_L16_H7", "smollm2-360m_L17_H9"], "brain_signature": {"top_activating_examples": ["List: wood boy water tree eye wood -> boy", "List: queen road cat house wood queen -> road", "Series: red king black door fire red -> king"], "mean_activation": 0.893, "ablation_impact_drop": 0.683}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-360M L1 HL1H2+L3H11+L16H7+L17H9).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.893\n - mean attention to self = 0.044\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-360m_L3_H11+L17_H8", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.3.attn.hook_z[11] + blocks.17.attn.hook_z[8]", "tier": "composed", "members": ["smollm2-360m_L3_H11", "smollm2-360m_L17_H8"], "brain_signature": {"top_activating_examples": ["List: woman night green gold rain woman -> night", "Sequence: water cat fish house fire water -> cat", "List: star wind wood snow red star -> wind"], "mean_activation": 0.648, "ablation_impact_drop": 0.549}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L3_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-360M L3 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.528\n - mean attention to self = 0.142\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L17_H8(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-360M L17 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.648\n - variant scores: nearest-occurrence 0.341 vs first-occurrence 0.454 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L3 H11 feeding induction head L17 H8 (HuggingFaceTB/SmolLM2-360M).\n\n Step 1 (L3 H11): every position is annotated with the token before it.\n Step 2 (L17 H8): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_L16_H7+L17_H8", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.16.attn.hook_z[7] + blocks.17.attn.hook_z[8]", "tier": "composed", "members": ["smollm2-360m_L16_H7", "smollm2-360m_L17_H8"], "brain_signature": {"top_activating_examples": ["Words: man woman bird stone water man -> woman", "List: queen tree house moon snow queen -> tree", "List: house river night gold dog house -> river"], "mean_activation": 0.648, "ablation_impact_drop": 0.615}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L16_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-360M L16 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.712\n - mean attention to self = 0.016\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L17_H8(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-360M L17 H8).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.648\n - variant scores: nearest-occurrence 0.341 vs first-occurrence 0.454 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L16 H7 feeding induction head L17 H8 (HuggingFaceTB/SmolLM2-360M).\n\n Step 1 (L16 H7): every position is annotated with the token before it.\n Step 2 (L17 H8): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_L23_H14+L24_H4", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.23.attn.hook_z[14] + blocks.24.attn.hook_z[4]", "tier": "composed", "members": ["smollm2-360m_L23_H14", "smollm2-360m_L24_H4"], "brain_signature": {"top_activating_examples": ["When Mark and Kevin went to the library, Mark brought a bag to -> Kevin", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Chris and Peter went to the beach, Chris offered a bag to -> Peter"], "mean_activation": 0.446, "ablation_impact_drop": 0.429}, "behavioral_fidelity_score": 0.893, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L23_H14(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-360M L23 H14).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.451\n - mean attention to subject name = 0.053\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L24_H4(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-360M L24 H4).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.446\n - mean attention to subject name = 0.067\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: two name-mover heads (L23 H14 and L24 H4) on HuggingFaceTB/SmolLM2-360M.\n\n Each head independently identifies the single-occurrence name (the indirect object) in a two-name giving construction; their outputs are then combined. The pair is verified when both heads agree on the attended name.\"\"\"\n a = circuit_logic_L23_H14(tokens)\n b = circuit_logic_L24_H4(tokens)\n if a[\"fires\"] and b[\"fires\"]:\n return {\"fires\": True, \"attended_token\": a[\"attended_token\"], \"rule\": \"name_mover_pair\", \"agreement\": a[\"attended_token\"] == b[\"attended_token\"]}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-360m_L30_MLP1816", "model": "HuggingFaceTB/SmolLM2-360M", "component": "blocks.30.mlp.hook_post[1816]", "tier": "single", "brain_signature": {"top_activating_examples": ["The capital of Italy is", "The capital city of Italy is", "Italy's capital is"], "mean_activation": 37.875, "ablation_impact_drop": 0.591}, "behavioral_fidelity_score": 0.976, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Factual-retrieval MLP neuron (HuggingFaceTB/SmolLM2-360M blocks.30.mlp neuron 1816).\n\n Fires on prompts asking for the capital of Italy and routes the\n memorised answer 'Rome' toward the output.\n Measured: mean final-position activation 37.875 on its fact's\n prompts vs -0.021 on control prompts.\n \"\"\"\n text = \"\".join(tokens)\n if 'Italy' in text and 'capital' in text.lower():\n return {\"fires\": True, \"attended_token\": ' Rome',\n \"rule\": \"factual_retrieval\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L0_H13", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.0.attn.hook_z[13]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "List: woman night green gold rain woman -> night", "List: book fish water fire hand book -> fish"], "mean_activation": 0.569, "ablation_impact_drop": 0.069}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L0 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.569\n - mean attention to self = 0.308\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-1_7b_L8_H19", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.8.attn.hook_z[19]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }", "[ day { river } heart -> ]"], "mean_activation": 0.772, "ablation_impact_drop": 0.087}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L8 H19).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.772\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L8_H30", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.8.attn.hook_z[30]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }", "{ wood [ day ] star -> }"], "mean_activation": 0.731, "ablation_impact_drop": 0.046}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L8 H30).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.731\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L9_H5", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ day { river } heart -> ]", "[ heart { night } moon -> ]", "[ blue { moon } star -> ]"], "mean_activation": 0.625, "ablation_impact_drop": 0.042}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L9 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.625\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L9_H7", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[7]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: tree hand man stone house tree -> hand", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.728, "ablation_impact_drop": 0.365}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L9 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.728\n - mean attention to self = 0.017\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-1_7b_L9_H9", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[9]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ heart { night } moon -> ]", "{ heart [ boy ] stone -> }", "[ day { river } heart -> ]"], "mean_activation": 0.681, "ablation_impact_drop": 0.042}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L9 H9).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.681\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L9_H27", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[27]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ river ( woman ) boy -> }", "{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.5, "ablation_impact_drop": 0.055}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L9 H27).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.500\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L10_H19", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.10.attn.hook_z[19]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: book fish water fire hand book -> fish", "Items: road heart river boy sun road -> heart", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.66, "ablation_impact_drop": 0.049}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L10 H19).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.660\n - variant scores: nearest-occurrence 0.131 vs first-occurrence 0.497 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L11_H11", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.11.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: door sun night boy white door -> sun", "List: wood bird green eye tree wood -> bird", "List: house river night gold dog house -> river"], "mean_activation": 0.579, "ablation_impact_drop": 0.098}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L11 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.579\n - mean attention to self = 0.052\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-1_7b_L12_H21", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.12.attn.hook_z[21]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: star wind wood snow red star -> wind", "List: book fish water fire hand book -> fish", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.654, "ablation_impact_drop": 0.065}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L12 H21).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.654\n - variant scores: nearest-occurrence 0.482 vs first-occurrence 0.392 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L12_H24", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.12.attn.hook_z[24]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ day { river } heart -> ]", "{ house [ tree ] rain -> }", "{ man ( water ) cat -> }"], "mean_activation": 0.554, "ablation_impact_drop": 0.067}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L12 H24).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.554\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L12_H30", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.12.attn.hook_z[30]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( fish ) stone -> }", "{ silver ( gold ) tree -> }", "{ river ( woman ) boy -> }"], "mean_activation": 0.361, "ablation_impact_drop": 0.105}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L12 H30).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.361\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L13_H31", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.13.attn.hook_z[31]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man ( water ) cat -> }", "[ day { river } heart -> ]", "{ river ( woman ) boy -> }"], "mean_activation": 0.907, "ablation_impact_drop": 0.041}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L13 H31).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.907\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L15_H21", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.15.attn.hook_z[21]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ silver ( gold ) tree -> }", "{ silver ( fish ) stone -> }", "( queen { green } wind -> )"], "mean_activation": 0.701, "ablation_impact_drop": 0.107}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L15 H21).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.701\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L16_H8", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.16.attn.hook_z[8]", "tier": "single", "brain_signature": {"top_activating_examples": ["( snow { hand } door -> )", "{ house [ tree ] rain -> }", "[ heart { night } moon -> ]"], "mean_activation": 0.559, "ablation_impact_drop": 0.094}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L16 H8).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.559\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L16_H16", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.16.attn.hook_z[16]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ day { river } heart -> ]", "{ river ( woman ) boy -> }", "{ house [ tree ] rain -> }"], "mean_activation": 0.844, "ablation_impact_drop": 0.051}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L16 H16).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.844\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L17_H24", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.17.attn.hook_z[24]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man [ black ] queen -> }", "[ blue { moon } star -> ]", "{ wood [ day ] star -> }"], "mean_activation": 0.777, "ablation_impact_drop": 0.056}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L17 H24).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.777\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L18_H12", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.18.attn.hook_z[12]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin"], "mean_activation": 0.904, "ablation_impact_drop": 0.106}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-1.7B L18 H12).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.904\n - mean attention to subject name = 0.021\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L18_H16", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.18.attn.hook_z[16]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ blue { moon } star -> ]", "( cat [ black ] wood -> )", "( queen { green } wind -> )"], "mean_activation": 0.655, "ablation_impact_drop": 0.17}, "behavioral_fidelity_score": 0.875, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L18 H16).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.655\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L18_H23", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.18.attn.hook_z[23]", "tier": "single", "brain_signature": {"top_activating_examples": ["List: red man bird star green red -> man", "List: fire woman sun water fish fire -> woman", "Series: red king black door fire red -> king"], "mean_activation": 0.507, "ablation_impact_drop": 0.296}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L18 H23).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.507\n - variant scores: nearest-occurrence 0.285 vs first-occurrence 0.254 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L18_H28", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.18.attn.hook_z[28]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ wood [ day ] star -> }", "( queen { green } wind -> )", "[ blue { moon } star -> ]"], "mean_activation": 0.835, "ablation_impact_drop": 0.06}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L18 H28).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.835\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L19_H5", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.19.attn.hook_z[5]", "tier": "single", "brain_signature": {"top_activating_examples": ["[ blue { moon } star -> ]", "{ wood [ day ] star -> }", "{ silver ( fish ) stone -> }"], "mean_activation": 0.779, "ablation_impact_drop": 0.046}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L19 H5).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.779\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L20_H11", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.20.attn.hook_z[11]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ man [ black ] queen -> }", "[ day { river } heart -> ]", "[ heart { night } moon -> ]"], "mean_activation": 0.881, "ablation_impact_drop": 0.055}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L20 H11).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.881\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L21_H24", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.21.attn.hook_z[24]", "tier": "single", "brain_signature": {"top_activating_examples": ["When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris"], "mean_activation": 0.56, "ablation_impact_drop": 0.246}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-1.7B L21 H24).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.560\n - mean attention to subject name = 0.185\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L22_H22", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.22.attn.hook_z[22]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "( cat [ black ] wood -> )", "{ house [ tree ] rain -> }"], "mean_activation": 0.632, "ablation_impact_drop": 0.086}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L22 H22).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.632\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L23_H1", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.23.attn.hook_z[1]", "tier": "single", "brain_signature": {"top_activating_examples": ["{ heart [ boy ] stone -> }", "{ man [ black ] queen -> }", "( queen { green } wind -> )"], "mean_activation": 0.644, "ablation_impact_drop": 0.054}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L23 H1).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.644\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L23_H2", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.23.attn.hook_z[2]", "tier": "single", "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "( cat [ black ] wood -> )", "{ house [ tree ] rain -> }"], "mean_activation": 0.742, "ablation_impact_drop": 0.049}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L23 H2).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.742\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L22_H0+H1+H2+H3+H4+H5+H8+H9+H10+H12+H13+H16+H18+H20+H21+H22+H23+H29", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.22.attn.hook_z[0,1,2,3,4,5,8,9,10,12,13,16,18,20,21,22,23,29]", "tier": "group", "members": ["smollm2-1_7b_L22_H0", "smollm2-1_7b_L22_H1", "smollm2-1_7b_L22_H2", "smollm2-1_7b_L22_H3", "smollm2-1_7b_L22_H4", "smollm2-1_7b_L22_H5", "smollm2-1_7b_L22_H8", "smollm2-1_7b_L22_H9", "smollm2-1_7b_L22_H10", "smollm2-1_7b_L22_H12", "smollm2-1_7b_L22_H13", "smollm2-1_7b_L22_H16", "smollm2-1_7b_L22_H18", "smollm2-1_7b_L22_H20", "smollm2-1_7b_L22_H21", "smollm2-1_7b_L22_H22", "smollm2-1_7b_L22_H23", "smollm2-1_7b_L22_H29"], "brain_signature": {"top_activating_examples": ["( queen { green } wind -> )", "( cat [ black ] wood -> )", "{ wood [ day ] star -> }"], "mean_activation": 0.754, "ablation_impact_drop": 0.252}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L22 H0+1+2+3+4+5+8+9+10+12+13+16+18+20+21+22+23+29).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.754\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_family_bracket_matching_x360", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.8.attn.hook_z[0] + blocks.8.attn.hook_z[1] + blocks.8.attn.hook_z[2] + blocks.8.attn.hook_z[3] + blocks.8.attn.hook_z[4] + blocks.8.attn.hook_z[5] + blocks.8.attn.hook_z[8] + blocks.8.attn.hook_z[10] + blocks.8.attn.hook_z[11] + blocks.8.attn.hook_z[12] + blocks.8.attn.hook_z[13] + blocks.8.attn.hook_z[14] + blocks.8.attn.hook_z[15] + blocks.8.attn.hook_z[17] + blocks.8.attn.hook_z[18] + blocks.8.attn.hook_z[19] + blocks.8.attn.hook_z[20] + blocks.8.attn.hook_z[21] + blocks.8.attn.hook_z[22] + blocks.8.attn.hook_z[23] + blocks.8.attn.hook_z[24] + blocks.8.attn.hook_z[25] + blocks.8.attn.hook_z[26] + blocks.8.attn.hook_z[27] + blocks.8.attn.hook_z[28] + blocks.8.attn.hook_z[29] + blocks.8.attn.hook_z[30] + blocks.8.attn.hook_z[31] + blocks.9.attn.hook_z[1] + blocks.9.attn.hook_z[2] + blocks.9.attn.hook_z[3] + blocks.9.attn.hook_z[4] + blocks.9.attn.hook_z[5] + blocks.9.attn.hook_z[6] + blocks.9.attn.hook_z[8] + blocks.9.attn.hook_z[9] + blocks.9.attn.hook_z[10] + blocks.9.attn.hook_z[11] + blocks.9.attn.hook_z[14] + blocks.9.attn.hook_z[15] + blocks.9.attn.hook_z[16] + blocks.9.attn.hook_z[17] + blocks.9.attn.hook_z[18] + blocks.9.attn.hook_z[19] + blocks.9.attn.hook_z[20] + blocks.9.attn.hook_z[21] + blocks.9.attn.hook_z[22] + blocks.9.attn.hook_z[23] + blocks.9.attn.hook_z[25] + blocks.9.attn.hook_z[26] + blocks.9.attn.hook_z[27] + blocks.9.attn.hook_z[28] + blocks.9.attn.hook_z[29] + blocks.9.attn.hook_z[30] + blocks.9.attn.hook_z[31] + blocks.10.attn.hook_z[0] + blocks.10.attn.hook_z[2] + blocks.10.attn.hook_z[3] + blocks.10.attn.hook_z[5] + blocks.10.attn.hook_z[7] + blocks.10.attn.hook_z[9] + blocks.10.attn.hook_z[11] + blocks.10.attn.hook_z[12] + blocks.10.attn.hook_z[13] + blocks.10.attn.hook_z[14] + blocks.10.attn.hook_z[15] + blocks.10.attn.hook_z[16] + blocks.10.attn.hook_z[17] + blocks.10.attn.hook_z[20] + blocks.10.attn.hook_z[21] + blocks.10.attn.hook_z[22] + blocks.10.attn.hook_z[23] + blocks.10.attn.hook_z[27] + blocks.10.attn.hook_z[28] + blocks.10.attn.hook_z[29] + blocks.10.attn.hook_z[31] + blocks.11.attn.hook_z[0] + blocks.11.attn.hook_z[1] + blocks.11.attn.hook_z[4] + blocks.11.attn.hook_z[5] + blocks.11.attn.hook_z[6] + blocks.11.attn.hook_z[7] + blocks.11.attn.hook_z[8] + blocks.11.attn.hook_z[9] + blocks.11.attn.hook_z[10] + blocks.11.attn.hook_z[12] + blocks.11.attn.hook_z[16] + blocks.11.attn.hook_z[17] + blocks.11.attn.hook_z[19] + blocks.11.attn.hook_z[20] + blocks.11.attn.hook_z[21] + blocks.11.attn.hook_z[22] + blocks.11.attn.hook_z[23] + blocks.11.attn.hook_z[24] + blocks.11.attn.hook_z[25] + blocks.11.attn.hook_z[26] + blocks.11.attn.hook_z[27] + blocks.11.attn.hook_z[28] + blocks.11.attn.hook_z[30] + blocks.11.attn.hook_z[31] + blocks.12.attn.hook_z[0] + blocks.12.attn.hook_z[1] + blocks.12.attn.hook_z[2] + blocks.12.attn.hook_z[3] + blocks.12.attn.hook_z[6] + blocks.12.attn.hook_z[7] + blocks.12.attn.hook_z[8] + blocks.12.attn.hook_z[9] + blocks.12.attn.hook_z[10] + blocks.12.attn.hook_z[11] + blocks.12.attn.hook_z[12] + blocks.12.attn.hook_z[13] + blocks.12.attn.hook_z[14] + blocks.12.attn.hook_z[16] + blocks.12.attn.hook_z[17] + blocks.12.attn.hook_z[18] + blocks.12.attn.hook_z[19] + blocks.12.attn.hook_z[20] + blocks.12.attn.hook_z[22] + blocks.12.attn.hook_z[24] + blocks.12.attn.hook_z[25] + blocks.12.attn.hook_z[26] + blocks.12.attn.hook_z[27] + blocks.12.attn.hook_z[29] + blocks.12.attn.hook_z[30] + blocks.12.attn.hook_z[31] + blocks.13.attn.hook_z[0] + blocks.13.attn.hook_z[1] + blocks.13.attn.hook_z[2] + blocks.13.attn.hook_z[3] + blocks.13.attn.hook_z[5] + blocks.13.attn.hook_z[6] + blocks.13.attn.hook_z[7] + blocks.13.attn.hook_z[9] + blocks.13.attn.hook_z[10] + blocks.13.attn.hook_z[11] + blocks.13.attn.hook_z[13] + blocks.13.attn.hook_z[15] + blocks.13.attn.hook_z[16] + blocks.13.attn.hook_z[17] + blocks.13.attn.hook_z[18] + blocks.13.attn.hook_z[20] + blocks.13.attn.hook_z[21] + blocks.13.attn.hook_z[22] + blocks.13.attn.hook_z[23] + blocks.13.attn.hook_z[24] + blocks.13.attn.hook_z[25] + blocks.13.attn.hook_z[28] + blocks.13.attn.hook_z[29] + blocks.13.attn.hook_z[30] + blocks.13.attn.hook_z[31] + blocks.14.attn.hook_z[0] + blocks.14.attn.hook_z[3] + blocks.14.attn.hook_z[4] + blocks.14.attn.hook_z[5] + blocks.14.attn.hook_z[6] + blocks.14.attn.hook_z[7] + blocks.14.attn.hook_z[12] + blocks.14.attn.hook_z[15] + blocks.14.attn.hook_z[16] + blocks.14.attn.hook_z[18] + blocks.14.attn.hook_z[20] + blocks.14.attn.hook_z[25] + blocks.14.attn.hook_z[26] + blocks.14.attn.hook_z[27] + blocks.14.attn.hook_z[29] + blocks.14.attn.hook_z[30] + blocks.14.attn.hook_z[31] + blocks.15.attn.hook_z[0] + blocks.15.attn.hook_z[1] + blocks.15.attn.hook_z[2] + blocks.15.attn.hook_z[5] + blocks.15.attn.hook_z[6] + blocks.15.attn.hook_z[7] + blocks.15.attn.hook_z[8] + blocks.15.attn.hook_z[9] + blocks.15.attn.hook_z[10] + blocks.15.attn.hook_z[11] + blocks.15.attn.hook_z[12] + blocks.15.attn.hook_z[13] + blocks.15.attn.hook_z[14] + blocks.15.attn.hook_z[15] + blocks.15.attn.hook_z[16] + blocks.15.attn.hook_z[18] + blocks.15.attn.hook_z[20] + blocks.15.attn.hook_z[21] + blocks.15.attn.hook_z[23] + blocks.15.attn.hook_z[26] + blocks.15.attn.hook_z[27] + blocks.15.attn.hook_z[28] + blocks.15.attn.hook_z[29] + blocks.15.attn.hook_z[30] + blocks.15.attn.hook_z[31] + blocks.16.attn.hook_z[0] + blocks.16.attn.hook_z[1] + blocks.16.attn.hook_z[2] + blocks.16.attn.hook_z[3] + blocks.16.attn.hook_z[4] + blocks.16.attn.hook_z[5] + blocks.16.attn.hook_z[7] + blocks.16.attn.hook_z[8] + blocks.16.attn.hook_z[9] + blocks.16.attn.hook_z[10] + blocks.16.attn.hook_z[11] + blocks.16.attn.hook_z[12] + blocks.16.attn.hook_z[13] + blocks.16.attn.hook_z[14] + blocks.16.attn.hook_z[17] + blocks.16.attn.hook_z[18] + blocks.16.attn.hook_z[19] + blocks.16.attn.hook_z[20] + blocks.16.attn.hook_z[21] + blocks.16.attn.hook_z[22] + blocks.16.attn.hook_z[23] + blocks.16.attn.hook_z[24] + blocks.16.attn.hook_z[25] + blocks.16.attn.hook_z[27] + blocks.16.attn.hook_z[28] + blocks.16.attn.hook_z[29] + blocks.16.attn.hook_z[30] + blocks.17.attn.hook_z[0] + blocks.17.attn.hook_z[1] + blocks.17.attn.hook_z[2] + blocks.17.attn.hook_z[3] + blocks.17.attn.hook_z[4] + blocks.17.attn.hook_z[5] + blocks.17.attn.hook_z[7] + blocks.17.attn.hook_z[8] + blocks.17.attn.hook_z[9] + blocks.17.attn.hook_z[11] + blocks.17.attn.hook_z[12] + blocks.17.attn.hook_z[13] + blocks.17.attn.hook_z[14] + blocks.17.attn.hook_z[15] + blocks.17.attn.hook_z[18] + blocks.17.attn.hook_z[21] + blocks.17.attn.hook_z[23] + blocks.17.attn.hook_z[24] + blocks.17.attn.hook_z[25] + blocks.17.attn.hook_z[26] + blocks.17.attn.hook_z[27] + blocks.17.attn.hook_z[30] + blocks.18.attn.hook_z[1] + blocks.18.attn.hook_z[2] + blocks.18.attn.hook_z[3] + blocks.18.attn.hook_z[4] + blocks.18.attn.hook_z[6] + blocks.18.attn.hook_z[7] + blocks.18.attn.hook_z[8] + blocks.18.attn.hook_z[9] + blocks.18.attn.hook_z[10] + blocks.18.attn.hook_z[13] + blocks.18.attn.hook_z[14] + blocks.18.attn.hook_z[17] + blocks.18.attn.hook_z[18] + blocks.18.attn.hook_z[19] + blocks.18.attn.hook_z[20] + blocks.18.attn.hook_z[21] + blocks.18.attn.hook_z[22] + blocks.18.attn.hook_z[24] + blocks.18.attn.hook_z[25] + blocks.18.attn.hook_z[27] + blocks.18.attn.hook_z[28] + blocks.18.attn.hook_z[29] + blocks.18.attn.hook_z[30] + blocks.19.attn.hook_z[2] + blocks.19.attn.hook_z[3] + blocks.19.attn.hook_z[4] + blocks.19.attn.hook_z[5] + blocks.19.attn.hook_z[7] + blocks.19.attn.hook_z[9] + blocks.19.attn.hook_z[10] + blocks.19.attn.hook_z[11] + blocks.19.attn.hook_z[12] + blocks.19.attn.hook_z[14] + blocks.19.attn.hook_z[15] + blocks.19.attn.hook_z[16] + blocks.19.attn.hook_z[17] + blocks.19.attn.hook_z[18] + blocks.19.attn.hook_z[19] + blocks.19.attn.hook_z[20] + blocks.19.attn.hook_z[21] + blocks.19.attn.hook_z[22] + blocks.19.attn.hook_z[25] + blocks.19.attn.hook_z[26] + blocks.19.attn.hook_z[28] + blocks.19.attn.hook_z[29] + blocks.20.attn.hook_z[0] + blocks.20.attn.hook_z[2] + blocks.20.attn.hook_z[3] + blocks.20.attn.hook_z[4] + blocks.20.attn.hook_z[5] + blocks.20.attn.hook_z[6] + blocks.20.attn.hook_z[7] + blocks.20.attn.hook_z[9] + blocks.20.attn.hook_z[10] + blocks.20.attn.hook_z[11] + blocks.20.attn.hook_z[12] + blocks.20.attn.hook_z[15] + blocks.20.attn.hook_z[17] + blocks.20.attn.hook_z[18] + blocks.20.attn.hook_z[19] + blocks.20.attn.hook_z[22] + blocks.20.attn.hook_z[23] + blocks.20.attn.hook_z[24] + blocks.20.attn.hook_z[25] + blocks.20.attn.hook_z[26] + blocks.20.attn.hook_z[29] + blocks.20.attn.hook_z[30] + blocks.20.attn.hook_z[31] + blocks.21.attn.hook_z[3] + blocks.21.attn.hook_z[7] + blocks.21.attn.hook_z[8] + blocks.21.attn.hook_z[9] + blocks.21.attn.hook_z[11] + blocks.21.attn.hook_z[12] + blocks.21.attn.hook_z[14] + blocks.21.attn.hook_z[16] + blocks.21.attn.hook_z[17] + blocks.21.attn.hook_z[20] + blocks.21.attn.hook_z[21] + blocks.21.attn.hook_z[25] + blocks.21.attn.hook_z[26] + blocks.21.attn.hook_z[27] + blocks.21.attn.hook_z[28] + blocks.21.attn.hook_z[29] + blocks.21.attn.hook_z[30] + blocks.21.attn.hook_z[31] + blocks.22.attn.hook_z[0] + blocks.22.attn.hook_z[1] + blocks.22.attn.hook_z[2] + blocks.22.attn.hook_z[3] + blocks.22.attn.hook_z[4] + blocks.22.attn.hook_z[5] + blocks.22.attn.hook_z[8] + blocks.22.attn.hook_z[9] + blocks.22.attn.hook_z[10] + blocks.22.attn.hook_z[12] + blocks.22.attn.hook_z[13] + blocks.22.attn.hook_z[16] + blocks.22.attn.hook_z[18] + blocks.22.attn.hook_z[20] + blocks.22.attn.hook_z[21] + blocks.22.attn.hook_z[22] + blocks.22.attn.hook_z[23] + blocks.22.attn.hook_z[29] + blocks.23.attn.hook_z[1] + blocks.23.attn.hook_z[2] + blocks.23.attn.hook_z[3] + blocks.23.attn.hook_z[4] + blocks.23.attn.hook_z[5] + blocks.23.attn.hook_z[13] + blocks.23.attn.hook_z[17] + blocks.23.attn.hook_z[18] + blocks.23.attn.hook_z[23] + blocks.23.attn.hook_z[24] + blocks.23.attn.hook_z[25] + blocks.23.attn.hook_z[27] + blocks.23.attn.hook_z[29] + blocks.23.attn.hook_z[30]", "tier": "family", "members": ["smollm2-1_7b_L8_H0", "smollm2-1_7b_L8_H1", "smollm2-1_7b_L8_H2", "smollm2-1_7b_L8_H3", "smollm2-1_7b_L8_H4", "smollm2-1_7b_L8_H5", "smollm2-1_7b_L8_H8", "smollm2-1_7b_L8_H10", "smollm2-1_7b_L8_H11", "smollm2-1_7b_L8_H12", "smollm2-1_7b_L8_H13", "smollm2-1_7b_L8_H14", "smollm2-1_7b_L8_H15", "smollm2-1_7b_L8_H17", "smollm2-1_7b_L8_H18", "smollm2-1_7b_L8_H19", "smollm2-1_7b_L8_H20", "smollm2-1_7b_L8_H21", "smollm2-1_7b_L8_H22", "smollm2-1_7b_L8_H23", "smollm2-1_7b_L8_H24", "smollm2-1_7b_L8_H25", "smollm2-1_7b_L8_H26", "smollm2-1_7b_L8_H27", "smollm2-1_7b_L8_H28", "smollm2-1_7b_L8_H29", "smollm2-1_7b_L8_H30", "smollm2-1_7b_L8_H31", "smollm2-1_7b_L9_H1", "smollm2-1_7b_L9_H2", "smollm2-1_7b_L9_H3", "smollm2-1_7b_L9_H4", "smollm2-1_7b_L9_H5", "smollm2-1_7b_L9_H6", "smollm2-1_7b_L9_H8", "smollm2-1_7b_L9_H9", "smollm2-1_7b_L9_H10", "smollm2-1_7b_L9_H11", "smollm2-1_7b_L9_H14", "smollm2-1_7b_L9_H15", "smollm2-1_7b_L9_H16", "smollm2-1_7b_L9_H17", "smollm2-1_7b_L9_H18", "smollm2-1_7b_L9_H19", "smollm2-1_7b_L9_H20", "smollm2-1_7b_L9_H21", "smollm2-1_7b_L9_H22", "smollm2-1_7b_L9_H23", "smollm2-1_7b_L9_H25", "smollm2-1_7b_L9_H26", "smollm2-1_7b_L9_H27", "smollm2-1_7b_L9_H28", "smollm2-1_7b_L9_H29", "smollm2-1_7b_L9_H30", "smollm2-1_7b_L9_H31", "smollm2-1_7b_L10_H0", "smollm2-1_7b_L10_H2", "smollm2-1_7b_L10_H3", "smollm2-1_7b_L10_H5", "smollm2-1_7b_L10_H7", "smollm2-1_7b_L10_H9", "smollm2-1_7b_L10_H11", "smollm2-1_7b_L10_H12", "smollm2-1_7b_L10_H13", "smollm2-1_7b_L10_H14", "smollm2-1_7b_L10_H15", "smollm2-1_7b_L10_H16", "smollm2-1_7b_L10_H17", "smollm2-1_7b_L10_H20", "smollm2-1_7b_L10_H21", "smollm2-1_7b_L10_H22", "smollm2-1_7b_L10_H23", "smollm2-1_7b_L10_H27", "smollm2-1_7b_L10_H28", "smollm2-1_7b_L10_H29", "smollm2-1_7b_L10_H31", "smollm2-1_7b_L11_H0", "smollm2-1_7b_L11_H1", "smollm2-1_7b_L11_H4", "smollm2-1_7b_L11_H5", "smollm2-1_7b_L11_H6", "smollm2-1_7b_L11_H7", "smollm2-1_7b_L11_H8", "smollm2-1_7b_L11_H9", "smollm2-1_7b_L11_H10", "smollm2-1_7b_L11_H12", "smollm2-1_7b_L11_H16", "smollm2-1_7b_L11_H17", "smollm2-1_7b_L11_H19", "smollm2-1_7b_L11_H20", "smollm2-1_7b_L11_H21", "smollm2-1_7b_L11_H22", "smollm2-1_7b_L11_H23", "smollm2-1_7b_L11_H24", "smollm2-1_7b_L11_H25", "smollm2-1_7b_L11_H26", "smollm2-1_7b_L11_H27", "smollm2-1_7b_L11_H28", "smollm2-1_7b_L11_H30", "smollm2-1_7b_L11_H31", "smollm2-1_7b_L12_H0", "smollm2-1_7b_L12_H1", "smollm2-1_7b_L12_H2", "smollm2-1_7b_L12_H3", "smollm2-1_7b_L12_H6", "smollm2-1_7b_L12_H7", "smollm2-1_7b_L12_H8", "smollm2-1_7b_L12_H9", "smollm2-1_7b_L12_H10", "smollm2-1_7b_L12_H11", "smollm2-1_7b_L12_H12", "smollm2-1_7b_L12_H13", "smollm2-1_7b_L12_H14", "smollm2-1_7b_L12_H16", "smollm2-1_7b_L12_H17", "smollm2-1_7b_L12_H18", "smollm2-1_7b_L12_H19", "smollm2-1_7b_L12_H20", "smollm2-1_7b_L12_H22", "smollm2-1_7b_L12_H24", "smollm2-1_7b_L12_H25", "smollm2-1_7b_L12_H26", "smollm2-1_7b_L12_H27", "smollm2-1_7b_L12_H29", "smollm2-1_7b_L12_H30", "smollm2-1_7b_L12_H31", "smollm2-1_7b_L13_H0", "smollm2-1_7b_L13_H1", "smollm2-1_7b_L13_H2", "smollm2-1_7b_L13_H3", "smollm2-1_7b_L13_H5", "smollm2-1_7b_L13_H6", "smollm2-1_7b_L13_H7", "smollm2-1_7b_L13_H9", "smollm2-1_7b_L13_H10", "smollm2-1_7b_L13_H11", "smollm2-1_7b_L13_H13", "smollm2-1_7b_L13_H15", "smollm2-1_7b_L13_H16", "smollm2-1_7b_L13_H17", "smollm2-1_7b_L13_H18", "smollm2-1_7b_L13_H20", "smollm2-1_7b_L13_H21", "smollm2-1_7b_L13_H22", "smollm2-1_7b_L13_H23", "smollm2-1_7b_L13_H24", "smollm2-1_7b_L13_H25", "smollm2-1_7b_L13_H28", "smollm2-1_7b_L13_H29", "smollm2-1_7b_L13_H30", "smollm2-1_7b_L13_H31", "smollm2-1_7b_L14_H0", "smollm2-1_7b_L14_H3", "smollm2-1_7b_L14_H4", "smollm2-1_7b_L14_H5", "smollm2-1_7b_L14_H6", "smollm2-1_7b_L14_H7", "smollm2-1_7b_L14_H12", "smollm2-1_7b_L14_H15", "smollm2-1_7b_L14_H16", "smollm2-1_7b_L14_H18", "smollm2-1_7b_L14_H20", "smollm2-1_7b_L14_H25", "smollm2-1_7b_L14_H26", "smollm2-1_7b_L14_H27", "smollm2-1_7b_L14_H29", "smollm2-1_7b_L14_H30", "smollm2-1_7b_L14_H31", "smollm2-1_7b_L15_H0", "smollm2-1_7b_L15_H1", "smollm2-1_7b_L15_H2", "smollm2-1_7b_L15_H5", "smollm2-1_7b_L15_H6", "smollm2-1_7b_L15_H7", "smollm2-1_7b_L15_H8", "smollm2-1_7b_L15_H9", "smollm2-1_7b_L15_H10", "smollm2-1_7b_L15_H11", "smollm2-1_7b_L15_H12", "smollm2-1_7b_L15_H13", "smollm2-1_7b_L15_H14", "smollm2-1_7b_L15_H15", "smollm2-1_7b_L15_H16", "smollm2-1_7b_L15_H18", "smollm2-1_7b_L15_H20", "smollm2-1_7b_L15_H21", "smollm2-1_7b_L15_H23", "smollm2-1_7b_L15_H26", "smollm2-1_7b_L15_H27", "smollm2-1_7b_L15_H28", "smollm2-1_7b_L15_H29", "smollm2-1_7b_L15_H30", "smollm2-1_7b_L15_H31", "smollm2-1_7b_L16_H0", "smollm2-1_7b_L16_H1", "smollm2-1_7b_L16_H2", "smollm2-1_7b_L16_H3", "smollm2-1_7b_L16_H4", "smollm2-1_7b_L16_H5", "smollm2-1_7b_L16_H7", "smollm2-1_7b_L16_H8", "smollm2-1_7b_L16_H9", "smollm2-1_7b_L16_H10", "smollm2-1_7b_L16_H11", "smollm2-1_7b_L16_H12", "smollm2-1_7b_L16_H13", "smollm2-1_7b_L16_H14", "smollm2-1_7b_L16_H17", "smollm2-1_7b_L16_H18", "smollm2-1_7b_L16_H19", "smollm2-1_7b_L16_H20", "smollm2-1_7b_L16_H21", "smollm2-1_7b_L16_H22", "smollm2-1_7b_L16_H23", "smollm2-1_7b_L16_H24", "smollm2-1_7b_L16_H25", "smollm2-1_7b_L16_H27", "smollm2-1_7b_L16_H28", "smollm2-1_7b_L16_H29", "smollm2-1_7b_L16_H30", "smollm2-1_7b_L17_H0", "smollm2-1_7b_L17_H1", "smollm2-1_7b_L17_H2", "smollm2-1_7b_L17_H3", "smollm2-1_7b_L17_H4", "smollm2-1_7b_L17_H5", "smollm2-1_7b_L17_H7", "smollm2-1_7b_L17_H8", "smollm2-1_7b_L17_H9", "smollm2-1_7b_L17_H11", "smollm2-1_7b_L17_H12", "smollm2-1_7b_L17_H13", "smollm2-1_7b_L17_H14", "smollm2-1_7b_L17_H15", "smollm2-1_7b_L17_H18", "smollm2-1_7b_L17_H21", "smollm2-1_7b_L17_H23", "smollm2-1_7b_L17_H24", "smollm2-1_7b_L17_H25", "smollm2-1_7b_L17_H26", "smollm2-1_7b_L17_H27", "smollm2-1_7b_L17_H30", "smollm2-1_7b_L18_H1", "smollm2-1_7b_L18_H2", "smollm2-1_7b_L18_H3", "smollm2-1_7b_L18_H4", "smollm2-1_7b_L18_H6", "smollm2-1_7b_L18_H7", "smollm2-1_7b_L18_H8", "smollm2-1_7b_L18_H9", "smollm2-1_7b_L18_H10", "smollm2-1_7b_L18_H13", "smollm2-1_7b_L18_H14", "smollm2-1_7b_L18_H17", "smollm2-1_7b_L18_H18", "smollm2-1_7b_L18_H19", "smollm2-1_7b_L18_H20", "smollm2-1_7b_L18_H21", "smollm2-1_7b_L18_H22", "smollm2-1_7b_L18_H24", "smollm2-1_7b_L18_H25", "smollm2-1_7b_L18_H27", "smollm2-1_7b_L18_H28", "smollm2-1_7b_L18_H29", "smollm2-1_7b_L18_H30", "smollm2-1_7b_L19_H2", "smollm2-1_7b_L19_H3", "smollm2-1_7b_L19_H4", "smollm2-1_7b_L19_H5", "smollm2-1_7b_L19_H7", "smollm2-1_7b_L19_H9", "smollm2-1_7b_L19_H10", "smollm2-1_7b_L19_H11", "smollm2-1_7b_L19_H12", "smollm2-1_7b_L19_H14", "smollm2-1_7b_L19_H15", "smollm2-1_7b_L19_H16", "smollm2-1_7b_L19_H17", "smollm2-1_7b_L19_H18", "smollm2-1_7b_L19_H19", "smollm2-1_7b_L19_H20", "smollm2-1_7b_L19_H21", "smollm2-1_7b_L19_H22", "smollm2-1_7b_L19_H25", "smollm2-1_7b_L19_H26", "smollm2-1_7b_L19_H28", "smollm2-1_7b_L19_H29", "smollm2-1_7b_L20_H0", "smollm2-1_7b_L20_H2", "smollm2-1_7b_L20_H3", "smollm2-1_7b_L20_H4", "smollm2-1_7b_L20_H5", "smollm2-1_7b_L20_H6", "smollm2-1_7b_L20_H7", "smollm2-1_7b_L20_H9", "smollm2-1_7b_L20_H10", "smollm2-1_7b_L20_H11", "smollm2-1_7b_L20_H12", "smollm2-1_7b_L20_H15", "smollm2-1_7b_L20_H17", "smollm2-1_7b_L20_H18", "smollm2-1_7b_L20_H19", "smollm2-1_7b_L20_H22", "smollm2-1_7b_L20_H23", "smollm2-1_7b_L20_H24", "smollm2-1_7b_L20_H25", "smollm2-1_7b_L20_H26", "smollm2-1_7b_L20_H29", "smollm2-1_7b_L20_H30", "smollm2-1_7b_L20_H31", "smollm2-1_7b_L21_H3", "smollm2-1_7b_L21_H7", "smollm2-1_7b_L21_H8", "smollm2-1_7b_L21_H9", "smollm2-1_7b_L21_H11", "smollm2-1_7b_L21_H12", "smollm2-1_7b_L21_H14", "smollm2-1_7b_L21_H16", "smollm2-1_7b_L21_H17", "smollm2-1_7b_L21_H20", "smollm2-1_7b_L21_H21", "smollm2-1_7b_L21_H25", "smollm2-1_7b_L21_H26", "smollm2-1_7b_L21_H27", "smollm2-1_7b_L21_H28", "smollm2-1_7b_L21_H29", "smollm2-1_7b_L21_H30", "smollm2-1_7b_L21_H31", "smollm2-1_7b_L22_H0", "smollm2-1_7b_L22_H1", "smollm2-1_7b_L22_H2", "smollm2-1_7b_L22_H3", "smollm2-1_7b_L22_H4", "smollm2-1_7b_L22_H5", "smollm2-1_7b_L22_H8", "smollm2-1_7b_L22_H9", "smollm2-1_7b_L22_H10", "smollm2-1_7b_L22_H12", "smollm2-1_7b_L22_H13", "smollm2-1_7b_L22_H16", "smollm2-1_7b_L22_H18", "smollm2-1_7b_L22_H20", "smollm2-1_7b_L22_H21", "smollm2-1_7b_L22_H22", "smollm2-1_7b_L22_H23", "smollm2-1_7b_L22_H29", "smollm2-1_7b_L23_H1", "smollm2-1_7b_L23_H2", "smollm2-1_7b_L23_H3", "smollm2-1_7b_L23_H4", "smollm2-1_7b_L23_H5", "smollm2-1_7b_L23_H13", "smollm2-1_7b_L23_H17", "smollm2-1_7b_L23_H18", "smollm2-1_7b_L23_H23", "smollm2-1_7b_L23_H24", "smollm2-1_7b_L23_H25", "smollm2-1_7b_L23_H27", "smollm2-1_7b_L23_H29", "smollm2-1_7b_L23_H30"], "brain_signature": {"top_activating_examples": ["( snow { rain } stone -> )", "{ river ( woman ) boy -> }", "{ man ( water ) cat -> }"], "mean_activation": 0.786, "ablation_impact_drop": 0.905}, "behavioral_fidelity_score": 0.938, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Bracket-matching head (HuggingFaceTB/SmolLM2-1.7B L8 HL8H0+L8H1+L8H2+L8H3+L8H4+L8H5+L8H8+L8H10+L8H11+L8H12+L8H13+L8H14+L8H15+L8H17+L8H18+L8H19+L8H20+L8H21+L8H22+L8H23+L8H24+L8H25+L8H26+L8H27+L8H28+L8H29+L8H30+L8H31+L9H1+L9H2+L9H3+L9H4+L9H5+L9H6+L9H8+L9H9+L9H10+L9H11+L9H14+L9H15+L9H16+L9H17+L9H18+L9H19+L9H20+L9H21+L9H22+L9H23+L9H25+L9H26+L9H27+L9H28+L9H29+L9H30+L9H31+L10H0+L10H2+L10H3+L10H5+L10H7+L10H9+L10H11+L10H12+L10H13+L10H14+L10H15+L10H16+L10H17+L10H20+L10H21+L10H22+L10H23+L10H27+L10H28+L10H29+L10H31+L11H0+L11H1+L11H4+L11H5+L11H6+L11H7+L11H8+L11H9+L11H10+L11H12+L11H16+L11H17+L11H19+L11H20+L11H21+L11H22+L11H23+L11H24+L11H25+L11H26+L11H27+L11H28+L11H30+L11H31+L12H0+L12H1+L12H2+L12H3+L12H6+L12H7+L12H8+L12H9+L12H10+L12H11+L12H12+L12H13+L12H14+L12H16+L12H17+L12H18+L12H19+L12H20+L12H22+L12H24+L12H25+L12H26+L12H27+L12H29+L12H30+L12H31+L13H0+L13H1+L13H2+L13H3+L13H5+L13H6+L13H7+L13H9+L13H10+L13H11+L13H13+L13H15+L13H16+L13H17+L13H18+L13H20+L13H21+L13H22+L13H23+L13H24+L13H25+L13H28+L13H29+L13H30+L13H31+L14H0+L14H3+L14H4+L14H5+L14H6+L14H7+L14H12+L14H15+L14H16+L14H18+L14H20+L14H25+L14H26+L14H27+L14H29+L14H30+L14H31+L15H0+L15H1+L15H2+L15H5+L15H6+L15H7+L15H8+L15H9+L15H10+L15H11+L15H12+L15H13+L15H14+L15H15+L15H16+L15H18+L15H20+L15H21+L15H23+L15H26+L15H27+L15H28+L15H29+L15H30+L15H31+L16H0+L16H1+L16H2+L16H3+L16H4+L16H5+L16H7+L16H8+L16H9+L16H10+L16H11+L16H12+L16H13+L16H14+L16H17+L16H18+L16H19+L16H20+L16H21+L16H22+L16H23+L16H24+L16H25+L16H27+L16H28+L16H29+L16H30+L17H0+L17H1+L17H2+L17H3+L17H4+L17H5+L17H7+L17H8+L17H9+L17H11+L17H12+L17H13+L17H14+L17H15+L17H18+L17H21+L17H23+L17H24+L17H25+L17H26+L17H27+L17H30+L18H1+L18H2+L18H3+L18H4+L18H6+L18H7+L18H8+L18H9+L18H10+L18H13+L18H14+L18H17+L18H18+L18H19+L18H20+L18H21+L18H22+L18H24+L18H25+L18H27+L18H28+L18H29+L18H30+L19H2+L19H3+L19H4+L19H5+L19H7+L19H9+L19H10+L19H11+L19H12+L19H14+L19H15+L19H16+L19H17+L19H18+L19H19+L19H20+L19H21+L19H22+L19H25+L19H26+L19H28+L19H29+L20H0+L20H2+L20H3+L20H4+L20H5+L20H6+L20H7+L20H9+L20H10+L20H11+L20H12+L20H15+L20H17+L20H18+L20H19+L20H22+L20H23+L20H24+L20H25+L20H26+L20H29+L20H30+L20H31+L21H3+L21H7+L21H8+L21H9+L21H11+L21H12+L21H14+L21H16+L21H17+L21H20+L21H21+L21H25+L21H26+L21H27+L21H28+L21H29+L21H30+L21H31+L22H0+L22H1+L22H2+L22H3+L22H4+L22H5+L22H8+L22H9+L22H10+L22H12+L22H13+L22H16+L22H18+L22H20+L22H21+L22H22+L22H23+L22H29+L23H1+L23H2+L23H3+L23H4+L23H5+L23H13+L23H17+L23H18+L23H23+L23H24+L23H25+L23H27+L23H29+L23H30).\n\n Detects: an unmatched opening bracket earlier in the sequence. Routing: at the current position it attends to the most recent unmatched opening bracket, identifying the bracket type the model must close next.\n\n Measured on the probe battery:\n - mean attention to matching opener = 0.786\"\"\"\n pairs = {\"(\": \")\", \"[\": \"]\", \"{\": \"}\"}\n closers = {v: k for k, v in pairs.items()}\n stack = []\n for i, t in enumerate(tokens):\n x = t.strip()\n if x in pairs:\n stack.append(i)\n elif x in closers and stack and tokens[stack[-1]].strip() == closers[x]:\n stack.pop()\n if stack:\n return {\"fires\": True, \"attended_token\": tokens[stack[-1]], \"rule\": \"bracket_matching\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_family_induction_x3", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.10.attn.hook_z[19] + blocks.12.attn.hook_z[21] + blocks.18.attn.hook_z[23]", "tier": "family", "members": ["smollm2-1_7b_L10_H19", "smollm2-1_7b_L12_H21", "smollm2-1_7b_L18_H23"], "brain_signature": {"top_activating_examples": ["List: book fish water fire hand book -> fish", "List: red man bird star green red -> man", "Series: red king black door fire red -> king"], "mean_activation": 0.66, "ablation_impact_drop": 0.384}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L10 HL10H19+L12H21+L18H23).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.660\n - variant scores: nearest-occurrence 0.131 vs first-occurrence 0.497 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_family_name_mover_x2", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.18.attn.hook_z[12] + blocks.21.attn.hook_z[24]", "tier": "family", "members": ["smollm2-1_7b_L18_H12", "smollm2-1_7b_L21_H24"], "brain_signature": {"top_activating_examples": ["When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin"], "mean_activation": 0.904, "ablation_impact_drop": 0.334}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-1.7B L18 HL18H12+L21H24).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.904\n - mean attention to subject name = 0.021\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_family_previous_token_x4", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.0.attn.hook_z[13] + blocks.0.attn.hook_z[29] + blocks.9.attn.hook_z[7] + blocks.11.attn.hook_z[11]", "tier": "family", "members": ["smollm2-1_7b_L0_H13", "smollm2-1_7b_L0_H29", "smollm2-1_7b_L9_H7", "smollm2-1_7b_L11_H11"], "brain_signature": {"top_activating_examples": ["List: wood bird green eye tree wood -> bird", "List: tree hand man stone house tree -> hand", "List: house river night gold dog house -> river"], "mean_activation": 0.569, "ablation_impact_drop": 0.469}, "behavioral_fidelity_score": 1.0, "decompiled_python": "from collections import Counter\n\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L0 HL0H13+L0H29+L9H7+L11H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.569\n - mean attention to self = 0.308\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n"} {"id": "smollm2-1_7b_L0_H13+L18_H23", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.0.attn.hook_z[13] + blocks.18.attn.hook_z[23]", "tier": "composed", "members": ["smollm2-1_7b_L0_H13", "smollm2-1_7b_L18_H23"], "brain_signature": {"top_activating_examples": ["List: tree wood silver king rain tree -> wood", "List: book fish water fire hand book -> fish", "List: woman night green gold rain woman -> night"], "mean_activation": 0.507, "ablation_impact_drop": 0.356}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L0_H13(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L0 H13).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.569\n - mean attention to self = 0.308\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L18_H23(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L18 H23).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.507\n - variant scores: nearest-occurrence 0.285 vs first-occurrence 0.254 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L0 H13 feeding induction head L18 H23 (HuggingFaceTB/SmolLM2-1.7B).\n\n Step 1 (L0 H13): every position is annotated with the token before it.\n Step 2 (L18 H23): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L9_H7+L10_H19", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[7] + blocks.10.attn.hook_z[19]", "tier": "composed", "members": ["smollm2-1_7b_L9_H7", "smollm2-1_7b_L10_H19"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: tree hand man stone house tree -> hand", "List: wind road cat girl boy wind -> road"], "mean_activation": 0.66, "ablation_impact_drop": 0.398}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L9 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.728\n - mean attention to self = 0.017\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L10_H19(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L10 H19).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.660\n - variant scores: nearest-occurrence 0.131 vs first-occurrence 0.497 -> synthesised the 'first' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(0, len(tokens) - 1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L9 H7 feeding induction head L10 H19 (HuggingFaceTB/SmolLM2-1.7B).\n\n Step 1 (L9 H7): every position is annotated with the token before it.\n Step 2 (L10 H19): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L9_H7+L12_H21", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[7] + blocks.12.attn.hook_z[21]", "tier": "composed", "members": ["smollm2-1_7b_L9_H7", "smollm2-1_7b_L12_H21"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "Sequence: water cat fish house fire water -> cat", "List: tree hand man stone house tree -> hand"], "mean_activation": 0.654, "ablation_impact_drop": 0.443}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L9 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.728\n - mean attention to self = 0.017\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L12_H21(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L12 H21).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.654\n - variant scores: nearest-occurrence 0.482 vs first-occurrence 0.392 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L9 H7 feeding induction head L12 H21 (HuggingFaceTB/SmolLM2-1.7B).\n\n Step 1 (L9 H7): every position is annotated with the token before it.\n Step 2 (L12 H21): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L9_H7+L18_H23", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.9.attn.hook_z[7] + blocks.18.attn.hook_z[23]", "tier": "composed", "members": ["smollm2-1_7b_L9_H7", "smollm2-1_7b_L18_H23"], "brain_signature": {"top_activating_examples": ["List: house river night gold dog house -> river", "List: tree hand man stone house tree -> hand", "Sequence: water cat fish house fire water -> cat"], "mean_activation": 0.507, "ablation_impact_drop": 0.573}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L9_H7(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L9 H7).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.728\n - mean attention to self = 0.017\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L18_H23(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L18 H23).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.507\n - variant scores: nearest-occurrence 0.285 vs first-occurrence 0.254 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L9 H7 feeding induction head L18 H23 (HuggingFaceTB/SmolLM2-1.7B).\n\n Step 1 (L9 H7): every position is annotated with the token before it.\n Step 2 (L18 H23): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L11_H11+L18_H23", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.11.attn.hook_z[11] + blocks.18.attn.hook_z[23]", "tier": "composed", "members": ["smollm2-1_7b_L11_H11", "smollm2-1_7b_L18_H23"], "brain_signature": {"top_activating_examples": ["List: fire woman sun water fish fire -> woman", "List: wood bird green eye tree wood -> bird", "List: house river night gold dog house -> river"], "mean_activation": 0.507, "ablation_impact_drop": 0.369}, "behavioral_fidelity_score": 0.964, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L11_H11(tokens: list[str]) -> dict:\n \"\"\"Previous-token head (HuggingFaceTB/SmolLM2-1.7B L11 H11).\n\n Detects: the token immediately before the current position. Routing: attends almost exclusively to position-1, copying the previous token's identity into the residual stream.\n\n Measured on the probe battery:\n - mean attention to previous token = 0.579\n - mean attention to self = 0.052\"\"\"\n if len(tokens) < 2:\n return {\"fires\": False, \"attended_token\": None}\n return {\"fires\": True, \"attended_token\": tokens[-2], \"rule\": \"previous_token\"}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L18_H23(tokens: list[str]) -> dict:\n \"\"\"Induction head (HuggingFaceTB/SmolLM2-1.7B L18 H23).\n\n Detects: the current token occurred earlier in the sequence. Routing: prefix matching - attends to the token that FOLLOWED an earlier occurrence of the current token ([A][B] ... [A] -> attend [B]), boosting B as the next-token prediction.\n\n Measured on the probe battery:\n - mean attention to induction target = 0.507\n - variant scores: nearest-occurrence 0.285 vs first-occurrence 0.254 -> synthesised the 'nearest' variant\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n last = tokens[-1]\n for i in range(len(tokens) - 2, 0, -1):\n if tokens[i] == last:\n return {\"fires\": True, \"attended_token\": tokens[i + 1], \"rule\": \"induction\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: previous-token head L11 H11 feeding induction head L18 H23 (HuggingFaceTB/SmolLM2-1.7B).\n\n Step 1 (L11 H11): every position is annotated with the token before it.\n Step 2 (L18 H23): the final position matches its own token against those annotations; the position whose annotation equals the current token is the [A][B] successor position, and its token B is returned.\"\"\"\n if len(tokens) < 3:\n return {\"fires\": False, \"attended_token\": None}\n prev_attended = [None] + list(tokens[:-1])\n last = tokens[-1]\n for p in range(len(tokens) - 1, 0, -1):\n if prev_attended[p] == last:\n return {\"fires\": True, \"attended_token\": tokens[p],\n \"rule\": \"previous_token->induction\"}\n return {\"fires\": False, \"attended_token\": None}\n"} {"id": "smollm2-1_7b_L18_H12+L21_H24", "model": "HuggingFaceTB/SmolLM2-1.7B", "component": "blocks.18.attn.hook_z[12] + blocks.21.attn.hook_z[24]", "tier": "composed", "members": ["smollm2-1_7b_L18_H12", "smollm2-1_7b_L21_H24"], "brain_signature": {"top_activating_examples": ["When Mark and Michael went to the park, Mark brought a apple to -> Michael", "When Lisa and Chris went to the beach, Lisa brought a ball to -> Chris", "When Mark and Kevin went to the library, Mark brought a bag to -> Kevin"], "mean_activation": 0.56, "ablation_impact_drop": 0.334}, "behavioral_fidelity_score": 0.929, "decompiled_python": "from collections import Counter\n\n\nfrom collections import Counter\n\n\ndef circuit_logic_L18_H12(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-1.7B L18 H12).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.904\n - mean attention to subject name = 0.021\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n\nfrom collections import Counter\n\n\ndef circuit_logic_L21_H24(tokens: list[str]) -> dict:\n \"\"\"Name-mover head (HuggingFaceTB/SmolLM2-1.7B L21 H24).\n\n Detects: an indirect-object-identification context - two names where one (the subject) is repeated in a giving construction. Routing: at the final position it attends to the name that appears exactly ONCE (the indirect object) and copies it into the output as the predicted next token.\n\n Measured on the probe battery:\n - mean attention to indirect-object name = 0.560\n - mean attention to subject name = 0.185\"\"\"\n NAMES = {' John', ' Mary', ' Tom', ' Anna', ' James', ' Sarah', ' David', ' Emily', ' Michael', ' Jessica', ' Peter', ' Laura', ' Kevin', ' Susan', ' Robert', ' Lisa', ' Mark', ' Julia', ' Chris', ' Emma'}\n counts = Counter([t for t in tokens if t in NAMES])\n singles = [n for n, k in counts.items() if k == 1]\n if len(singles) == 1 and any(k >= 2 for k in counts.values()):\n return {\"fires\": True, \"attended_token\": singles[0], \"rule\": \"name_mover\"}\n return {\"fires\": False, \"attended_token\": None}\n\ndef circuit_logic(tokens: list[str]) -> dict:\n \"\"\"Composed circuit: two name-mover heads (L18 H12 and L21 H24) on HuggingFaceTB/SmolLM2-1.7B.\n\n Each head independently identifies the single-occurrence name (the indirect object) in a two-name giving construction; their outputs are then combined. The pair is verified when both heads agree on the attended name.\"\"\"\n a = circuit_logic_L18_H12(tokens)\n b = circuit_logic_L21_H24(tokens)\n if a[\"fires\"] and b[\"fires\"]:\n return {\"fires\": True, \"attended_token\": a[\"attended_token\"], \"rule\": \"name_mover_pair\", \"agreement\": a[\"attended_token\"] == b[\"attended_token\"]}\n return {\"fires\": False, \"attended_token\": None}\n"}