[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETECB42J0ETF8053V08PTM":3,"skill-same:01M7ETECB42J0ETF8053V08PTM":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7ETECB42J0ETF8053V08PTM","mechanistic-interpretability",null,"Reverse-engineer how language models think — features, circuits, and neurons — to explain and audit their behavior.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-mechanistic-interpretability\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mechanistic-interpretability\ndescription: Reverse-engineer how language models think — features, circuits, and neurons — to explain and audit their behavior.\ncategory: ai-research\n---\n\n## Overview\n\nMechanistic interpretability treats a neural network like a program to be decompiled\nrather than a black box to be prodded. Instead of asking \"what does the model output,\"\nit asks \"which internal structures cause this output.\" The core insight is that\nnetworks learn reusable, interpretable features — directions in activation space\nthat correspond to concepts — and compose them into circuits: small subgraphs of\nneurons and attention heads that implement recognizable algorithms.\n\nProgress in the field has moved from single neurons (often polysemantic, doing\nseveral jobs at once) to features extracted with sparse autoencoders, which\ndecompose activations into a larger, cleaner dictionary of monosemantic directions.\nFor transformers, canonical circuits include induction heads (copying recent\npatterns), attention heads that move subject tokens for factual recall, and refusal\ndirections in safety-relevant layers.\n\nA typical investigation traces an activation backwards: find the logits the model\nassigns, locate the attention heads and MLP layers that push those logits up, then\nablate or patch them to confirm causation rather than correlation. The end product\nis a mechanistic story — \"this is the algorithm the model implements\" — backed by\ninterventions, not just observations.\n\n## When to use\n\n- Auditing why a model produces a specific unwanted behavior (hallucinated facts,\n  biased completions, jailbreak susceptibility).\n- Validating that a safety-relevant mechanism is actually implemented inside the\n  model rather than relying on surface-level testing.\n- Understanding emergent capabilities — e.g., whether a model \"really\" does\n  arithmetic or pattern-matches memorized tables.\n- Steering model behavior at the feature level (activation steering) instead of\n  relying only on prompts or fine-tuning.\n- Teaching and research communication, where showing an actual circuit is more\n  convincing than benchmark scores.\n- Debugging fine-tuning surprises — finding which internal mechanisms a fine-tune\n  altered when behavior changes unexpectedly.\n\n## Core concepts\n\n- **Features vs. neurons**: a neuron is an arbitrary basis direction; a feature is\n  a direction that means something. Polysemanticity (one neuron, many meanings)\n  happens because networks use superposition — cramming more features than neurons\n  by packing near-orthogonal directions.\n- **Sparse autoencoders (SAEs)**: trained to reconstruct layer activations through\n  a sparse, overcomplete code. The learned dictionary atoms are the interpretable\n  features. Quality is judged by reconstruction fidelity plus sparsity (L0\u002FL1).\n- **Circuits**: connected sets of features across layers that implement a function.\n  Naming convention: e.g., \"the name-mover heads move the subject name into the\n  final position.\"\n- **Activation patching**: replace activations on a clean input with activations\n  from a corrupted input at specific positions\u002Fcomponents. If the behavior flips,\n  that component was causally responsible. Corrupted-with-restoration variants give\n  finer attribution.\n- **Probing**: train a linear classifier on activations to test whether\n  information is present. Probes show correlation; patching and ablation show\n  causation. Never confuse the two.\n- **Activation steering**: add or subtract a feature vector during generation to\n  amplify or suppress a concept (e.g., honesty, sycophancy). Steering vectors are\n  cheap but can bleed into unrelated behaviors.\n- **Attribution methods**: gradient-based and perturbation-based techniques that\n  score each component's contribution to an output. Useful for triage before the\n  expensive patching experiments.\n- **Universality**: the hypothesis that different models learn similar features\n  and circuits. When it holds, findings transfer; when it breaks, expect\n  architecture- and scale-specific mechanisms.\n\n## Practical workflow\n\n1. **Pick a crisp behavior.** One input template with controlled variation (e.g.,\n   \"The capital of X is\" for factual recall). Interpretability needs a behavioral\n   contrast: clean vs. corrupted prompts differing in one factor.\n2. **Localize with logit difference.** Compare target-token logit between clean and\n   corrupted runs, then patch activations per layer and per attention head. Rank\n   components by their effect size.\n3. **Hypothesize a circuit.** Map which heads move which information where. Draw\n   the information flow: token positions → heads → residual stream → logits.\n4. **Ablate to confirm.** Zero-out or mean-ablate candidate heads; the behavior\n   should degrade proportionally. Re-run with steering: amplifying the feature\n   should strengthen the behavior.\n5. **Validate with SAEs (for deeper work).** Train or use a released SAE on the\n   target layer; map the top activated dictionary features for your behavior;\n   label them by inspecting max-activating examples.\n6. **Test generalization.** Vary the template, the entities, and the phrasing. A\n   circuit that only fires on one template is a memorized shortcut, not a general\n   mechanism.\n7. **Document the mechanism.** Write the explanation as an algorithm (\"head 5.7\n   copies the subject token to the final position; MLPs 12–15 retrieve the\n   attribute\"), with the patching evidence that supports each claim.\n\nChecklist before claiming a finding:\n- Effect replicated across multiple input templates, not one cherry-picked prompt.\n- Patching shows causation, not just probe correlation.\n- Ablating the circuit degrades the specific behavior more than general capability.\n- Feature labels checked against counterexamples, not only max-activating examples.\n- Results hold on the model scale you actually care about.\n\n## Common pitfalls\n\n- **Probe-only stories.** \"The model knows X\" from a probe means the information\n  is linearly decodable, not that the model uses it. Demand causal evidence.\n- **Single-prompt circuits.** A circuit that only fires on one template is a\n  memorized shortcut, not a general mechanism. Vary the template before\n  generalizing.\n- **Overclaiming SAE features.** SAE features still have some polysemanticity and\n  reconstruction error; treating every atom as a clean concept invites false\n  stories.\n- **Ignoring the residual stream.** Attention-only explanations miss the MLP\n  layers, which hold most factual knowledge. Always check both.\n- **Steering as proof.** A steering vector that changes behavior proves the\n  direction is influential, not that the model natively uses it that way.\n- **Scaling assumptions.** Circuits found in a small model may reorganize in\n  larger ones. Verify on the target scale before drawing safety conclusions.\n- **Confirmation bias in feature labeling.** Reading max-activating examples\n  generously to fit a pet theory. Actively hunt for counterexamples.\n- **Attribution without intervention.** Heatmaps and importance scores suggest;\n  only patching and ablation confirm. Treat attribution as triage, not evidence.\n","## Overview\n\nMechanistic interpretability treats a neural network like a program to be decompiled\nrather than a black box to be prodded. Instead of asking \"what does the model output,\"\nit asks \"which internal structures cause this output.\" The core insight is that\nnetworks learn reusable, interpretable features — directions in activation space\nthat correspond to concepts — and compose them into circuits: small subgraphs of\nneurons and attention heads that implement recognizable algorithms.\n\nProgress in the field has moved from single neurons (often polysemantic, doing\nseveral jobs at once) to features extracted with sparse autoencoders, which\ndecompose activations into a larger, cleaner dictionary of monosemantic directions.\nFor transformers, canonical circuits include induction heads (copying recent\npatterns), attention heads that move subject tokens for factual recall, and refusal\ndirections in safety-relevant layers.\n\nA typical investigation traces an activation backwards: find the logits the model\nassigns, locate the attention heads and MLP layers that push those logits up, then\nablate or patch them to confirm causation rather than correlation. The end product\nis a mechanistic story — \"this is the algorithm the model implements\" — backed by\ninterventions, not just observations.\n\n## When to use\n\n- Auditing why a model produces a specific unwanted behavior (hallucinated facts,\n  biased completions, jailbreak susceptibility).\n- Validating that a safety-relevant mechanism is actually implemented inside the\n  model rather than relying on surface-level testing.\n- Understanding emergent capabilities — e.g., whether a model \"really\" does\n  arithmetic or pattern-matches memorized tables.\n- Steering model behavior at the feature level (activation steering) instead of\n  relying only on prompts or fine-tuning.\n- Teaching and research communication, where showing an actual circuit is more\n  convincing than benchmark scores.\n- Debugging fine-tuning surprises — finding which internal mechanisms a fine-tune\n  altered when behavior changes unexpectedly.\n\n## Core concepts\n\n- **Features vs. neurons**: a neuron is an arbitrary basis direction; a feature is\n  a direction that means something. Polysemanticity (one neuron, many meanings)\n  happens because networks use superposition — cramming more features than neurons\n  by packing near-orthogonal directions.\n- **Sparse autoencoders (SAEs)**: trained to reconstruct layer activations through\n  a sparse, overcomplete code. The learned dictionary atoms are the interpretable\n  features. Quality is judged by reconstruction fidelity plus sparsity (L0\u002FL1).\n- **Circuits**: connected sets of features across layers that implement a function.\n  Naming convention: e.g., \"the name-mover heads move the subject name into the\n  final position.\"\n- **Activation patching**: replace activations on a clean input with activations\n  from a corrupted input at specific positions\u002Fcomponents. If the behavior flips,\n  that component was causally responsible. Corrupted-with-restoration variants give\n  finer attribution.\n- **Probing**: train a linear classifier on activations to test whether\n  information is present. Probes show correlation; patching and ablation show\n  causation. Never confuse the two.\n- **Activation steering**: add or subtract a feature vector during generation to\n  amplify or suppress a concept (e.g., honesty, sycophancy). Steering vectors are\n  cheap but can bleed into unrelated behaviors.\n- **Attribution methods**: gradient-based and perturbation-based techniques that\n  score each component's contribution to an output. Useful for triage before the\n  expensive patching experiments.\n- **Universality**: the hypothesis that different models learn similar features\n  and circuits. When it holds, findings transfer; when it breaks, expect\n  architecture- and scale-specific mechanisms.\n\n## Practical workflow\n\n1. **Pick a crisp behavior.** One input template with controlled variation (e.g.,\n   \"The capital of X is\" for factual recall). Interpretability needs a behavioral\n   contrast: clean vs. corrupted prompts differing in one factor.\n2. **Localize with logit difference.** Compare target-token logit between clean and\n   corrupted runs, then patch activations per layer and per attention head. Rank\n   components by their effect size.\n3. **Hypothesize a circuit.** Map which heads move which information where. Draw\n   the information flow: token positions → heads → residual stream → logits.\n4. **Ablate to confirm.** Zero-out or mean-ablate candidate heads; the behavior\n   should degrade proportionally. Re-run with steering: amplifying the feature\n   should strengthen the behavior.\n5. **Validate with SAEs (for deeper work).** Train or use a released SAE on the\n   target layer; map the top activated dictionary features for your behavior;\n   label them by inspecting max-activating examples.\n6. **Test generalization.** Vary the template, the entities, and the phrasing. A\n   circuit that only fires on one template is a memorized shortcut, not a general\n   mechanism.\n7. **Document the mechanism.** Write the explanation as an algorithm (\"head 5.7\n   copies the subject token to the final position; MLPs 12–15 retrieve the\n   attribute\"), with the patching evidence that supports each claim.\n\nChecklist before claiming a finding:\n- Effect replicated across multiple input templates, not one cherry-picked prompt.\n- Patching shows causation, not just probe correlation.\n- Ablating the circuit degrades the specific behavior more than general capability.\n- Feature labels checked against counterexamples, not only max-activating examples.\n- Results hold on the model scale you actually care about.\n\n## Common pitfalls\n\n- **Probe-only stories.** \"The model knows X\" from a probe means the information\n  is linearly decodable, not that the model uses it. Demand causal evidence.\n- **Single-prompt circuits.** A circuit that only fires on one template is a\n  memorized shortcut, not a general mechanism. Vary the template before\n  generalizing.\n- **Overclaiming SAE features.** SAE features still have some polysemanticity and\n  reconstruction error; treating every atom as a clean concept invites false\n  stories.\n- **Ignoring the residual stream.** Attention-only explanations miss the MLP\n  layers, which hold most factual knowledge. Always check both.\n- **Steering as proof.** A steering vector that changes behavior proves the\n  direction is influential, not that the model natively uses it that way.\n- **Scaling assumptions.** Circuits found in a small model may reorganize in\n  larger ones. Verify on the target scale before drawing safety conclusions.\n- **Confirmation bias in feature labeling.** Reading max-activating examples\n  generously to fit a pet theory. Actively hunt for counterexamples.\n- **Attribution without intervention.** Heatmaps and importance scores suggest;\n  only patching and ablation confirm. Treat attribution as triage, not evidence.\n",{"name":5,"category":24,"description":7},"ai-research","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-mechanistic-interpretability",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill mechanistic-interpretability",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill mechanistic-interpretability",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill mechanistic-interpretability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-mechanistic-interpretability\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]