Explore the research collection
12 entries · Follow this search
- Paper
Shaping & Monitoring Models through their Internal Representations
Goodfire paper (arXiv 2611.07071, Nov 4 2026, CC BY 4.0) proposing Mechanistic Shaping: adding interpretability-derived penalties to the training objective so a model is specified by HOW it solves a task, not just whether it succeeds. Two forms: reliance shaping, which penalizes how much the model's outputs depend on a concept (measured by attribution - 'don't rely on this'), and expression shaping, which penalizes the concept's presence in representations/outputs ('don't do this'). The method needs only a concept direction and a readable layer; the direction can be periodically refit as representations move. Demonstrations across vision, medical imaging and language, up to 32B parameters, over classification, SFT, DPO and GRPO: (1) chest X-ray pneumothorax diagnosis with a chest-drain confounder - SAE features labeled by an LLM agent (no confounder labels used) supplied the directions, and reliance shaping beat prior methods and even exceeded the soft ceiling of training on balanced data; (2) sycophancy induced by DPO (Blank et al. found DPO raises sycophancy despite <1% visibly sycophantic data) - penalizing reliance on a sycophancy direction in OLMo-3-7B kept DPO-level accuracy across six benchmarks while sycophancy stayed near the un-DPO'd model; data filtering merely traded capability for sycophancy along the 'just do less DPO' line, reward shaping and inoculation prompting barely helped, preventative steering on the same direction got partway; the recipe also worked at 13B and 32B; (3) reward hacking - Qwen3.5-9B RL on a file-based Countdown variant where a forbidden target.txt holds the answer: standard RL's cheating rose ~6x within ten updates and honest strategies fell to zero, while expression shaping against a 'cheating' direction (computed from coding-task transcripts) produced 96-98% honest solving, and filtering cheating rollouts prevented cheating in only one third of runs; on unseen chess puzzles with a different forbidden file, the standard-RL model cheated 99% of the time while shaped models barely cheated and still improved - the penalty targets the internal concept, not the specific file. The paper's second half asks whether training against a representation destroys monitorability. Theory (exact toy-model analysis of projecting out a concept direction) plus experiments identify three circumvention geometries: the concept regrows immediately in a new linear direction (the task still rewards it), it is erased at the shaped layer (and may be rebuilt later), or it persists as a nonlinear encoding - specifically a second-order product code, which frequent direction-refitting predictably selects for; regrown representations can also entangle with desired concepts (cosine up to ~0.45 in vision experiments). These motivate a five-level monitorability hierarchy: L1 reuse the original probe, L2 linear refit, L3 nonlinear refit, L4 probe a different layer, L5 treat the model as a black box (e.g. an LLM judge). Empirically, in every experiment the shaped concept remained monitorable: sycophancy probe AUROC 0.98 -> 0.93 with a refit at 1.00 throughout; reward hacking worst case (gradients flowing through the probe) 0.98 -> 0.57 balanced accuracy, recovered to 0.97-0.98 by refitting; the original probe stays reliable whenever gradients do not flow through it. Flags, as entered: first-party (Goodfire sells interpretability tooling), small-to-medium scale by the authors' own statement with frontier-scale behavior explicitly open, and the three circumvention mechanisms are claimed complete only for their observations. Cross-references: the constructive counterpart of the monitorability thread (ID 1861, operator #9) - shaping is training against monitors, so the L1-L5 hierarchy doubles as a maintenance schedule for any probe used in training; not to be confused with doubleAI's unrelated 'mechanistic intervention' (architecture edits mid-training), staged the same week.
- Paper
How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference
Study of looping in dense decoder-only transformers trained from scratch (up to 1B params, 155B tokens): which parts to loop, how many loops, how to pass information between loops, loop scaling, specialization and parallel inference.
- Paper
Towards Continual Learning: Mitigating Forgetting With Subspace Tuning
Imports the update GEOMETRY of on-policy training into offline fine-tuning to stop catastrophic forgetting. Premise (from cited prior work): RLVR and on-policy distillation barely move the principal singular directions of weight matrices and forget little, while SFT concentrates updates along exactly those directions and forgets heavily. METHOD (SST): for each weight matrix W with top-k singular vectors U_k, V_k, project the APPLIED update — Π(ΔW) = (I − U_kU_kᵀ) ΔW (I − V_kV_kᵀ) — so the protected singular triplets are preserved exactly and learning happens densely in the spectral tail. Default protection is extreme: rank fraction r = 0.99, i.e. the top 99% of singular directions are frozen and updates live in the 1% tail (the inverted regime from LoRA-style methods). Three load-bearing design decisions: (1) project the applied update, NOT the gradient — Adam's diagonal preconditioning does not commute with projection, and a toy study (Qwen2.5-0.5B, 60 Adam steps) shows gradient projection still leaks 69% of the final weight change into protected directions (held-out NLL rise 0.72) vs update projection's ZERO leakage and NLL rise 0.13 (unconstrained FT: NLL +13.0, 98% of change in protected directions); (2) dense gradient estimation — gradients computed in full, only the step is confined (the paper maps OPLoRA onto the mis-scaling variant and Sculpting onto a partial gradient projection); (3) basis REFRESH — recompute the SVD basis from current weights every K steps (R100/R10) so a fixed complement doesn't strangle long runs; refresh re-opens directions at a mild retention cost (~3–5 points) and is the explicit adaptation–retention knob — note the strict "preserved exactly" guarantee holds only between refreshes / for the no-refresh variant. Optimizer-agnostic (demonstrated with Adam AND Muon), composes with SFT and SDFT (self-distillation fine-tuning), no extra trainable parameters, no inference cost; overhead +1.5% per step for projection alone (Qwen3-8B full FT), 5.1% (R100) / 37.6% (R10) total, dropping to 0.6% / 4.7% when SVD work is split across GPUs. RESULTS (all first-party; Qwen3-8B thinking-mode fine-tuned on <think>-trace data in Science / Finance / Pathology & Medicine; prior capability = avg of GPQA-Diamond, MMLU-Pro, GSM8K, HumanEval, IFEval; base LM avg 81.0): Science — SFT Δ −25.5 (LM avg 55.5) vs SFT+SST Δ −1.0 (80.0) with HIGHER in-domain accuracy (80.1 vs 77.6; R10: 84.0, Δ −0.8); SDFT alone Δ −24.0 → SDFT+SST+R100 Δ −0.3; Muon arm: SFT+Muon Δ −21.5 → +SST Δ −1.3; post-hoc KL repair (ReInvoke) only recovers to Δ −10.7 and loses in-domain accuracy. FinQA is the catastrophic cell: SFT Δ −57.3 (LM avg 23.7; GPQA 60.1 → 10.1) vs SFT+SST Δ +1.3 (82.3, ABOVE base) at equal-or-better in-domain accuracy. Subspace-protecting baselines at their official settings (Sculpting, OPLoRA) lose 18–26 points of prior capability on average where no-refresh SST loses ~1; handing OPLoRA SST's protection level closes much of the gap but still trails on 3 of 4 domains. Scaling: unconstrained SFT loses 30–40 points at EVERY size (Qwen3 1.7B→14B); SST's forgetting SHRINKS with scale, within ~1% of base from 8B onward, with higher target accuracy at every size. KL(π_base‖π_θ) on WikiText-2 is 2–4× lower than unconstrained recipes; a reverse-KL penalty on SFT does NOT reproduce the trade-off (weak = no retention help; strong = suppresses learning without preserving capability). Sequential chains: under plain SFT, FinQA → Pathology → Science dormancy drops dormant domains 28 and 18 points; under SST each domain rises in its stage and holds (SDFT+R10 loses 20 points on FinQA→Science; SST+R10 loses none). Rank ablation: stronger protection improves BOTH retention and in-domain accuracy in their sweep. Caveats: hyperparameters were SHARED across methods, not tuned per method (authors concede SST's optimal LR need not equal SFT's — the headline gaps are large enough that the conclusion likely holds, but the exact frontier is unmeasured); closest-prior-art coverage is incomplete — SVFT (NeurIPS '24; ΔW = U M Vᵀ with M restricted to the tail block is structurally very close) is NOT compared, a gap flagged in a thread reply by Vijay Lingam; scale ceiling 8B main / 14B–32B sweeps, hundreds-of-billions untested; retention measured on five benchmarks + WikiText-2 KL only (nothing on long-context or multilingual retention); two of four domains train on Claude Sonnet 4.6-generated traces and the Olmo qualitative study is judged by Sonnet 4.6 (fabrication rate is a phrase-based lower bound). Paper ~1 week old, no independent replication.
- 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.
- Paper
Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
Mem0 incrementally extracts facts from message pairs (summary + last m=10 turns) then ADD/UPDATE/DELETE/NOOP against top-s=10 similar memories via GPT-4o-mini tool calls. Mem0^g stores entity–relation triplets in Neo4j. On LOCOMO (10 convos, ~600 turns / 26k tokens, ~200 Qs each), Mem0 J 66.88 overall vs OpenAI memory 52.90 / Zep 65.99 / full-context 72.90; single-hop J 67.13 and multi-hop 51.15 lead. Graph variant best on temporal (J 58.13) and competitive open-domain (75.71 vs Zep 76.60). p95 total latency 1.44s (91% below full-context 17.1s) at 1764 retrieved tokens vs 26k. Code https://github.com/mem0ai/mem0; research https://mem0.ai/research.
- Paper
Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs
Diagnoses score dilution in static self-attention: the target–distractor logit margin must scale as Ω(log T) or needle mass vanishes. Thinking tokens cannot recover buried evidence under that bound. qTTT does one prefill to cache K/V then a few gradient steps on W_Q only, raising the margin without invalidating the cache. FLOP-matched to 8k thinking tokens, Qwen3-4B gains +12.6 / +14.1 pp average on LongBench-v2 and ZeroScrolls subsets; thinking-token gains saturate as T grows.
- Paper
FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
Argues growing vocabularies make the dense LM head a major param/compute bottleneck (up to ~60% params / ~50% decode compute on small models). FlashHead reframes next-token scoring as balanced-cluster multiprobe retrieval with sampling support and selective quantization, reporting up to ~1.75× model-level speedups (e.g. Llama-3.2-1B) with near-baseline accuracy; gains compound with W4A16.
- Paper
The Art of Scaling Reinforcement Learning Compute for LLMs
Reinforcement learning (RL) has become central to training large language models (LLMs), yet the field lacks predictive scaling methodologies comparable to those established for pre-training. Despite rapidly rising compute budgets, there is no principled understanding of how to evaluate algorithmic improvements for sca…
- Paper
Amortized Latent Steering: Low-Cost Alternative to Test-Time Optimization
Test-time optimization remains impractical at scale due to prohibitive inference costs--techniques like iterative refinement and multi-step verification can require $10-100\times$ more compute per query than standard decoding. Latent space test-time optimization methods like LatentSeek offer a more direct approach by s…
- Paper
NVIDIA-labs OO Agents: Native Python Object-Oriented Agents
NOOA (cite nvidia_oo_agents_2026; arXiv 2607.20709). Agent = class; methods = capabilities; fields = state; docstrings = prompts; types = contracts. Ellipsis bodies run LLM loops (Predict or CodeAct); real bodies stay deterministic Python. Six interface ideas vs 14 harnesses. Capability suite 88 tests × 10 models: 97.9% pass. SWE-bench Verified: 82.2% GPT-5.5 xhigh at ~28 calls / ~1.1M tokens vs OpenCode 78.6% / PI 78.2% at more tokens (published SOTA 79.2% at submission). Terminal-Bench 2.0 73.0% GPT-5.5 high. CyberGym L1 86.8% GPT-5.5, network blocked, top open-source. ARC-AGI-3: one 45–50-line world-model skill; GPT-5.5 50.2% RHAE, GPT-5.6-sol 85.1% at ~$13.3/game (raw Sol 13.3%); memory +11.8 vs file notes. Discord posted the NVIDIA developer blog. Research preview; execute model code in-process — sandbox with OpenShell/container.
- Paper
Claude's Values Across Models and Languages
Anthropic Societal Impacts blog (cite anthropic2026values). Starts from Values in the Wild’s 3,307 values, clusters to 339 high-level labels, then privacy-preserving labels on 309,815 Claude.ai subjective-task conversations equally sampled from Sonnet 4.6 / Opus 4.6 / Opus 4.7 and the 20 most common languages (~5k per model-language pair; two weeks in May 2026). Dimensionality reduction after controlling for task, topic, and user-expressed values yields four axes that capture 15% of remaining variance: Deference vs Caution, Warmth vs Rigor, Depth vs Brevity, Candor vs Execution. Model profiles match character lore (Sonnet 4.6 warm/deferential/brief; Opus 4.7 rigorous/cautious/deep/candid; Opus 4.6 rigorous/deferential/brief). Language: warmth highest in Hindi/Arabic, rigor in English/Russian; candor highest in Dutch, execution in Indonesian; English more caution/depth, Arabic more deference/brevity. Conversations not released.
- Paper
The Loss Does Not See the Basis, but Adam Does
Shows gradient descent on W=UV^T is biased toward low-rank interpolants while Adam is not, tracing the gap to loss gauge symmetry (U,V)->(UQ,VQ). Equivariant methods (GD, momentum, shared-scalar Adam, Muon, Shampoo) can inherit gradient-flow low-rank bias; coordinate-wise Adam/RMSProp/Lion/Adafactor cannot. Sorts nine update rules on underdetermined matrix sensing; a p-dial from coordinate-wise to shared-scalar Adam restores the bias monotonically. In transformers, Adam splits two gauge-equivalent inits at step 1 (per-head W_Q^T W_K 56% apart). On two hyperspectral datasets at matched train loss, GD cuts held-out error 43-44% vs Adam at lowest sampling density.