Explore the research collection
20 entries · Compare the first 5 datasets · Follow this search
- Post
Stuck in a Loop: Runaway credit ratcheting in attention matrices
Eyler et al. (Hyperstition, Sep 9 2026) dissect why attention locks in early during training. The mechanism: every gradient through an attention head carries the attention weight itself as a factor, so attention acts as a strong FILTER during backpropagation - a weakly attended key gets almost no gradient, a strongly attended one gets more, and early differences ratchet. Measured on Qwen2.5-1.5B (5.33M layer-head-query comparisons): the spread of attention is ~10,471x while the spread of ADVANTAGE (how much shifting attention would actually help) is only ~5.012x - attention, not usefulness, decides gradient scale. Two regimes are separated: calibrated prioritization, where attention is already optimal on a known axis and the pressure is fine-tuning, and softmax deadlock, where a useful but weakly attended key cannot exert enough influence to ever be attended more. The attention Jacobian itself is an information bottleneck: its per-token effective rank is below 10 for at least 99% of tokens in every head measured. Empirically the lock-in is fast and run-specific: by step 1000 a run's attention patterns already resemble its final state more than different runs resemble each other. The authors also build a cross-head consensus ORACLE that finds 'buried keys' - semantically relevant sources the current attention mostly excludes, at attention ranks as high as ~600. A second surprise: heads are NOT separate probability budgets - averaging attention scores across heads within a layer costs almost nothing in median loss (except layer 0), so routing is largely compatible across heads and specialization lives in the values. The proposed fix, NATQ - a damped inverse-Fisher natural-gradient query update that bounds movement in attention-distribution space rather than parameter space - does broaden attention (entropy 3.75 -> 4.69 nats; sub-0.1% keys capture 67% of the increase in layers 4-7) but WORSENS validation loss in a 124M/5k-step test, and fails copy/retrieval tasks by favoring common continuations over answer tokens; attention-transplant experiments show routing alone does not explain the loss. The hypothesis left standing: ordinary gradient descent's low weights filter NOISY keys, and democratizing the backward pass amplifies their influence - the winner-take-all concentration may be load-bearing for learning, not a bug. Flags, as entered: a blog-level technical essay, not peer-reviewed; headline numbers are from Qwen2.5-1.5B probes and one small 124M NATQ run. Cross-references: the attention-dynamics thread in the catalog - a training-time counterpart to ID 1766's inference-side quantization story and to the Marin QK-norm discussion (both concern what shapes attention spread); for the user's 250M run, the attention-vs-advantage spread and the Jacobian's effective rank are candidate Helm training-health signals, and NATQ's failure is a caution against 'fixing' attention concentration.
- 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.
- Model
Qwenputer: a fully functioning, deterministic RISC-V CPU inside Qwen3.5
A stock Qwen3.5-4B with a 32-bit RISC-V CPU compiled directly into its weights — no training involved, a compiler sets every CPU weight directly. Mechanism: Qwen3.5 uses Gated DeltaNet (a linear RNN) in 3 of 4 attention layers; setting gate=1 and write strength beta=1 with one-hot key encoding makes each GDN head's state matrix work as exact, addressable RAM (one row per address, fixed size regardless of context length, unlike a KV cache). The CPU (RV32IM + Zba extension + bignum unit) is 11 compiled layers placed before Qwen's 32 layers; Qwen's own weights are unchanged, CPU weights added in extra dims/layers (hidden size 3968 = Qwen's 2560 + computer dims; vocab +230,324 trace tokens). Each instruction becomes a few generated tokens (ADDR, VAL, STEP); Qwen piggybacks on its trained tool-call format for `calc`, but no external tool, runtime, or sandbox ever runs — the compiled layers read the call, execute, and write the tool response. The CPU passes the official riscv-tests, matches qemu, and ran 18 million instructions free-running with no error; ~230,000 output positions replayed against a reference machine with zero mismatches. It runs C and MicroPython in the forward passes. Benchmarks (greedy, 40 problems/set, HF/blog tables): DeepMind div_big Qwenputer 97.5% vs Python-tool 95% vs base 72.5%; mul_big 97.5% vs 100% vs 55%; mul_div_multiple_longer 100% vs 97.5% vs 90%; add_or_sub_big 97.5% vs 97.5% vs 87.5%; NUPA long-integer arithmetic 48.6% (base) → 100% (Qwenputer, same as Python tool); synthetic integer arithmetic 97.5% vs base 75%. Normal text behaviour stays within noise of base (KL 6e-4 vs noise floor 5e-4). Experimental extension: an in-model filesystem in DeltaNet state (put/append/get/list/delete; 1,024 directory slots, up to 512 files, ~53k tokens of text; state saveable across conversations) — code on the rv-store branch, separate HF model, still experimental.
- 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.
- Post
Cutting Pretraining Costs by 62% — Hyperstition (ANVIL III optimizer)
ANVIL III is a Muon-family optimizer presented as the biggest optimizer breakthrough since Muon (2024). It beats a fully tuned Muon by 20-28 millinats of final validation loss at matched token budget, holding across 124M, 350M, 774M and 1.2B parameters and across overtraining depths; the gap typically grows from 30% to 80% of training (up to ~50 mnat in some configs), with Muon partially catching up during annealing. At a fixed 8x-Chinchilla budget, fitted scaling curves imply optimizer-only compute savings of 32%/39%/39%/50% at the four sizes; combined with an architecture variant (≈25% near-Chinchilla compute saving) the headline is ~62% less pretraining compute at frontier scale, plus ~30% lower inference cost from faster decode. Mechanistically, an 'Adam SNR' probe (descent inequality = Gini of |u_i^T G v_i| over singular directions, scored on held-out batches) shows ANVIL III's update directions have persistently higher signal-to-noise across the whole singular spectrum; 90% of its singular directions go downhill on held-out data vs 67% for Muon (random = 50%), and it is far less sensitive to truncating the weakest singular vectors (removing weakest 20%: Muon +6.9 mnat, ANVIL III +1.8 mnat). The team also released Feather 1.7B (1.68B params, 200B training tokens), which beats Qwen3-1.7B-Base (~36T tokens) on math with ~180x fewer training tokens (MATH500 63.0 vs 53.0; GSM8K 83.4 vs 76.6; GSM8K Platinum 85.7 vs 74.4; GSM-Symbolic main 81.1 vs 62.7), with three rounds of benchmark decontamination documented. A deprecated ANVIL II set the public NanoGPT speedrun record (73.889s -> 39.914s, 1.851x speedup, 46.0% training-time reduction — a larger percentage leap than the previous 45 records combined) and is public as part of the submission; no license stated for the code.
- 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.
- Dataset
MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversations
MELD (Multimodal EmotionLines Dataset) extends EmotionLines with ~13k utterances from 1,433 Friends dialogues; each utterance has emotion + sentiment labels and audio/visual/text modalities. Classic ERC benchmark. Project affective-meld.github.io; GitHub declare-lab/MELD; HF mirror declare-lab/MELD (GPL-3.0).
- 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…
- Dataset
TikTok Videos 4.5B (dams2005 mirror; Discord kuben-developer 404)
4.5 billion TikTok video records with captions, engagement counts, sound identifiers and timing. Collected via TikTok Android private HTTP API over ~3 weeks; deduped on content_id. 27 zstd Parquet files (~289 GB). No creator IDs, no media URLs. Discord URL kuben-developer/tiktok-videos-4b is Hub 404; cataloged from live mirror dams2005/tiktok-videos-4b (identical usedStorage; card load_dataset still cites kuben-developer).
- 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.
- Dataset
Vibe-Coding-Instruct
Vibe-Coding-Instruct is a ~1.1M-row instruction-tuning dataset of coding assistant scenarios, where each entry contains an instruction (e.g., 'Create a coding assistant', 'Deploy an AI application', 'Debug a React app'), an implementation plan response, and a formatted prompt. The dataset covers diverse software engineering tasks including architecture design, deployment, debugging, LLM integration, and platform engineering, making it suitable for fine-tuning coding assistant LLMs.
- Dataset
uncensor-v1-dpo
This is literally just LLM-LAT/harmful-dataset but flipped, so the rejected answer is the refusal, and the accepted answer is the original incorrect one
- Dataset
instinct-data
This repository contains the next-edit data used to train and evaluate Continue's state-of-the-art open Next Edit model, [Instinct](https://huggingface.co/continuedev/instinct). The splits are given by language, with Typescript being the original, and other languages bootstrapped synthetically off of the Typescript data. For more information on the dataset, please refer to our [blog post](https://blog.continue.dev/instinct/).