Explore the research collection
13 entries · Follow this search
- Paper
Would This Change Your Answer? Evaluating Explanations of LLM Behavior in the Wild with Counterfactual Experiments
Evaluates explanations of LLM behavior through counterfactual simulatability: is the explanation useful for predicting the model's behavior on related counterfactual inputs? Introduces CHIVE (Counterfactual Hypothesis Investigation Via Edits), an agentic pipeline that identifies unexpected naturally-occurring model behaviors in the wild and investigates them with counterfactual prompt edits, yielding thousands of high-quality explanations with supporting counterfactual evidence. Two applications: (1) testing whether common interpretability techniques help an agent predict counterfactual model behaviors — surprisingly, no uplift from any technique studied (activation oracle / NLA / SAE conditions do not beat the transcript baseline: transcript 73.6 acc / 81.4 AUROC vs AO 72.7/80.9, NLA 71.3/80.3, SAE 71.9/81.0, per the paper chart); the authors note tool outputs almost always restate feature and behavior already visible in the transcript and almost never state the causal relationship explicitly. (2) Training models on CHIVE-generated counterfactuals generalizes to various out-of-distribution settings.
- Paper
Shared Circuits for Shared Grammar: Tracing Subject-Verb Agreement Across Languages
Asks when multilingual LLMs' internal mechanisms overlap cross-lingually, via present-tense subject-verb agreement (a morphosyntactic process weakly expressed in English). Uses activation patching and attention analysis across 29 languages and five open-source model families to identify the attention heads causally implicated in agreement and compare head-level signatures across languages. Languages with overt person/number inflection show more similar agreement circuitry than non-conjugating languages, with strongest sharing when the analysis isolates recovery of the inflectional contrast itself. English becomes more similar to conjugating languages precisely where overt agreement is required. Many implicated heads share attention patterns across languages, suggesting cross-lingual overlap reflects shared functional roles as well as shared localization. Conclusion: multilingual LLMs reuse partially shared computational structure for morphosyntactic agreement rather than fully separate language-specific solutions.
- Code
Bergson: An Open Source Library for Data Attribution
Open-source library (EleutherAI) unifying data attribution methods for LLMs across compute budgets. Implements MAGIC, SOURCE, EK-FAC, ASTRA, and TrackStar — the first open-source implementations of MAGIC, SOURCE, and TrackStar. Finetuning leaderboard: MAGIC tops (0.931), EK-FAC and ASTRA are both fast and accurate, SOURCE excels at multi-stage runs; TrackStar's efficient approximate scores enable cheap pretraining attribution via two-stage retrieval (amortize costs with on-disk gradient stores and ANN indices, then refine top scores with a more precise method). Also supports token-level attribution (claimed 10x data-filtering performance gain), GRPO rewards for attributing model behaviors, and optimizations like bucket batching and multi-node support. Answers 'how do LLMs generalize / why do they become misaligned?' by looking at the training data. Relevant to the user's LLM training setups (dataset curation, debugging misalignment) and GRPO work.
- Idea
Inverting a text-derived direction into an image inside a VLM
Goodfire Silico share (Aug 4, 2026, v3): in Qwen2.5-VL, a direction from text like “photograph of the Eiffel Tower” handed to a pixel optimizer (no text in the loop) recovers recognizable landmark photos for ~7–8 of 12 monuments when the image readout is re-centred by subtracting a mean over 288 real photos; raw readout collapses to clouds. Gemma 3 screened cells: directions decodable from photos (~74.9% top-1 proxy) but not invertible to monuments within budget. Emphasizes post-hoc legibility judgments and origin-centering as load-bearing.
- Paper
Language Models Are Implicitly Continuous
Defines a Continuous Causal Transformer (integral attention) that recovers discrete Transformers at unit duration. On Llama2/3, Phi-3, Gemma 1/2, and Mistral, shrinking token or sentence duration smoothly changes counts (about 190–205% more unique numeric peaks than a discrete model would allow). Linear interpolations of embeddings (apples–bananas) are treated as valid concepts (color, fruit-ness) even when they map to no vocabulary token. Shift-invariant, not scale-invariant. Published at ICLR 2025. Code https://github.com/samuelemarro/continuous-llm-experiments.
- Paper
Targeted Neuron Modulation via Contrastive Pair Search
Contrastive neuron attribution (CNA) ranks MLP neurons by harmful-vs-benign last-token activation difference using only forward passes; top 0.1% form the circuit. Ablating it cuts JBB-Behaviors refusal >50% on Llama/Qwen instruct 1B–72B while n-gram quality stays >0.96 and MMLU is preserved; CAA matches the refusal drop but collapses quality at high α. Matched base models have similar late-layer discrimination structure but steering only shifts content, not refusal — alignment crystallizes a sparse gate. Code https://github.com/NousResearch/neural-steering.
- Paper
Emergent Analogical Reasoning in Transformers
Synthetic two-category task with atomic, compositional, and analogical facts. Emergence is sensitive to entity/relation counts, OOD ratio, optimization, and scale. Mechanism: (1) geometric alignment of relational structure in the embedding space (Dirichlet energy) and (2) functor application inside the Transformer. Same qualitative signatures in pretrained Gemma-2-2B/9B and Llama-3.1-8B. ICML 2026 spotlight. Code https://github.com/gouki510/Analogy_in_Transformer.
- Paper
Thought Branches: Interpreting LLM Reasoning Requires Resampling
Argues that interpreting a single chain of thought is inadequate for understanding LLM reasoning; proposes resampling-based causal analysis of reasoning steps and a resilience metric for reasoning-step removal.
- Paper
Capability Provenance in Language Models: A Case Study in Social Reasoning
Traces language-model capabilities back to the training text that taught them, using social reasoning as a case study. Influence functions score how much each training document supported each benchmark answer; per-query influences are aggregated into 576 topic-format bins (24 topics x 24 formats via the WebOrganizer taxonomy) to compare capability-level data distributions. A 2x2 design separates domain (social vs STEM) from capability type (reasoning vs knowledge), and unlearning the high-influence regions causally validates the attribution.
- Paper
Your Transformer Can Hold Two Thoughts at Once: Evidence of Linear Superposition in LLMs
arXiv 2609.29845 (cs.CL/cs.AI; submitted 2026-09-24; CC BY-NC-ND 4.0). Averaging embeddings of two unrelated streams makes standard decoder-only LLMs (Pythia, Qwen2.5, Llama, OLMo, Gemma) put both streams' next tokens in the mixed distribution (often top-10 ~30–40% without FT). Superposition is strongest at init and degrades over Pythia pretraining; lightweight FineWeb KL self-distillation (<0.025% of pretrain size) restores it (e.g. Pythia-2.8B KL 1.86→0.27; top-5 recovery ≈30%→>60%; content-token median rank 284→5) at a single-stream quality cost. Geometric-mean obstruction makes naive sampling mix streams; Joint Contrastive guided decoding (large mixed + small-model contrastive logits) raises mixed LAMBADA mean accuracy (e.g. Llama-3.2-3B 0.182→0.430) and Separate mode claims ~2× throughput vs sequential with ~½ KV per stream. No public code on abs/HF at catalog time. Distinct from Token Superposition (id 543) and Superposed Decoding (2405.18400).
- Post
Predictive Data Debugging: Reveal and Shape What Your Model Learns, Before You Train
Goodfire research post accompanying arXiv 2606.12360 (Anatomy of Post-Training…; submitted 2026-06-10). Passes preference data (e.g. Dolci ~260k pairs, Tulu 3) through SAE-interpreted models to surface concept-level learning signals before DPO. Reports R²≈0.9 correlation between predicted and observed concept changes. Case studies: safety-guardrail erosion, hallucinated links, physics sycophancy, unexpected fanfic clusters; goblin-mode poisoning validation. Interventions include data filtering, reward shaping, activation steering, inoculation prompting. Methods shipping in Silico (early access).
- Paper
Verbalizable Representations Form a Global Workspace in Language Models
Anthropic Circuits paper showing that a privileged subset of LLM representations — identified by averaging layer-to-final Jacobians over a pretraining-like corpus, then decoding with the model's unembedding — can be reported, summoned, used for silent multi-step reasoning, and broadcast to many downstream computations, while routine parsing/fluency continues without them. Default experiments use Claude Sonnet 4.5, with key results also on Haiku 4.5, Opus 4.5, and some Opus 4.6 analyses. Applications include alignment auditing (evaluation awareness, hidden goals), post-training assistant point of view in the workspace, and counterfactual reflection training. Companion Apache-2.0 anthropics/jacobian-lens code plus Neuronpedia interactive lenses; Claude internals remain closed.
- Paper
Natural Language Autoencoders Produce Unsupervised Explanations of LLM Activations
Anthropic Transformer Circuits method (May 2026). An activation verbalizer maps a target residual to text and an activation reconstructor maps that text back; both are copies of the target LLM jointly trained with RL on reconstruction (FVE ~0.6-0.8) after a summarization warm-start. Explanations grow more informative over training on Haiku 3.5/4.5 and Opus 4.6. Used in Opus 4.6 / Mythos Preview audits: unverbalized evaluation awareness, language-switching traced to malformed SFT data, rhyme planning, and a hidden-motivation auditing game where NLA-equipped agents win 12-15% without training-data access vs <3% without NLAs. Limitations: confabulation of specifics, cost (two-model RL; hundreds of tokens per activation), single-layer reads. Open training code and NLAs for popular models; Neuronpedia demo.