Explore the research collection
6 entries · Follow this search
- Post
What objective is reasoning solving? Reasoning as pathfinding in token space
Alex Wang's essay reframes LLM reasoning as PATHFINDING in token space. Given a prompt x and a verifier r, the target is the set S_x of answers the verifier accepts; each sampled chain z is one path, and the success probability p_x is the total probability mass of paths landing in S_x. The core identity: with a binary reward, expected reward IS p_x, and its policy gradient is exactly REINFORCE - which, expanded, is one step of rejection-sampling fine-tuning (STaR-style) on the model's own successful paths, scaled by the current success rate M/N. Three consequences follow. (1) Why chains lengthen in RL but forcing a single chain longer stops helping: training shifts mass toward whichever paths landed - if successful paths tended to be longer (backtracking, environment feedback, luck), the model learns length; an individual path is never guaranteed to converge, so extra forced length can overshoot into overthinking. Only the DISTRIBUTION is optimized. (2) Best-of-k is the orthogonal, guaranteed axis: success rises as 1-(1-p_x)^k over SAMPLES, not length. (3) RL amortizes search: compute spent finding paths in training is baked into the weights, which is why a trained model often succeeds in one sample at inference. The frame also dissolves two puzzles: CoT faithfulness is not implied by the objective (the reward scores only the final answer; intermediate tokens are unconstrained means, correlated with truth only via pretraining), and reward hacking is geometric - an imperfect verifier makes S_x differ from the truly-correct set, its wrong-but-accepted region is often the EASIEST to reach, and scaling RL samples/length fuzzes the verifier harder, so hacking gets MORE likely with scale before training amplifies the shortcut. Author's conclusion: reasoning is not solving an objective per-path at all; guarantees exist only in aggregate over the path distribution. Flags, as entered: a conceptual essay, not new experiments - its value is the unifying frame (built on Brown et al. 2024 sampling scaling, STaR, Muennighoff et al. 2025, Gema et al. 2025); the binary-verifier setup is an idealization of graded/partial-credit rewards. Cross-references: ID 1695 (the author's associative-memory essay); the catalog's latent-reasoning thread (a path need not be made of tokens at all - the frame extends to latent paths, which is the author's stated motivation); and the monitorability thread - the faithfulness section is the cleanest short statement of why answer-only rewards cannot buy faithful chains.
- Post
Guidance is becoming a cheat code for LLMs (with Loooop)
Analysis blog post (Wu, Wang, Mireshghallah, Wu; 22 Oct 2026) explaining why guidance - contrastive decoding against an earlier state of the same model - works unusually well in looped language models, building on LoopCD (catalog ID 938), which steers generation with z_guided = z_K + w(z_K - z_E), extrapolating from an early loop's logits z_E to the final loop's z_K. The puzzle: guidance is applied one token at a time, but the object actually wanted is the guided joint distribution over complete sequences, Q_joint proportional to p_K^(1+w) / p_E^w. The token-level rule actually used, Q_local, has the same numerator but a different normalizer - a product of prefix-dependent local normalizers C(y_<t) instead of one global Z - so the two can diverge sharply (worked two-token example: a 39.2-point gap in first-token probability). The blog's derivation: log C(y_<t) = [w(1+w)/2] * Var_{p_E}(delta) + O(eps^3), where delta = z_K - z_E; the constant and first-order terms cancel, so guidance moves token preferences at first order in the logit gap while the sequence-level mismatch accumulates only at second order, O(T eps^2) over a length-T sequence - provided early and final logits are close. Empirical check of that premise: on 1,024 GSM8K prefixes (128 development questions x 8 positions), the centered RMS gap between intermediate-depth and final-depth logits is 2.8-14.1x smaller for the looped models Huginn-0125 (loops 8/16/24 of 32) and Ouro-2.6B (loops 1/2/3 of 4) than for the dense baselines Qwen2.5-3B and Pythia-2.8B (layers at 25/50/75% depth), across all twelve comparisons, with every paired 95% bootstrap interval for the ratio below 1; the ordering survives normalizing by final-logit scale and holds on question-only prefixes. Motivating results replotted from LoopCD at fixed loop count: Ouro-2.6B-Thinking AIME 2024 pass@1 61.88 -> 70.62 and Huginn-0125 HumanEval 22.56 -> 31.71 under fixed-strength guidance (ID 938 reports up to 73.33 on AIME for its best variant). Diffusion parallel: classifier-free guidance has the same reweighting algebra, but its normalizer is independent of the sample coordinates and vanishes under the score gradient; token-level guidance has no such cancellation, so closeness of loop logits is what substitutes for it - and loop guidance's reference is an earlier stage of the same computation (cf. diffusion autoguidance). Caveats: a blog analysis, not peer-reviewed; the bounds assume small logit gaps and fixed guidance strength w; the closeness evidence is two looped vs two dense models on GSM8K prefixes only. Joins the looped-models cluster as the theory companion to ID 938: looping keeps successive predictions close, which is exactly the condition that makes per-token guidance approximate sequence-level guidance.
- Post
You could have invented transformers from memory
A pedagogical explainer (not a research result) deriving linear maps, MLPs, and self-attention as associative key-value memory stores from first principles. The unifying quantity is the interference-to-signal ratio — interference from other stored memories vs the target's signal — and capacity is the number of memories before interference matches signal (random unit keys, query with a stored key). At d_k=64: outer-product linear store ≈64; optimal linear (least-squares/whitened keys) ≈128; ReLU MLP ≈128; squared ReLU / SwiGLU ≈2d_k²/3 ≈2,700–2,900; cubed ReLU ≈2d_k³/15 ≈35,000; self-attention with β=√d_k ≈e^{2√d_k−2} ≈1.2 million; β ∝ log M allows an essentially unbounded store (>2M in experiments). Derivations: interference terms add like a random walk (√M); σ(s)=ReLU(s)^p gives capacity M≈d_k^p; the exponential is a weighted sum of all powers, so capacity grows exponentially in the sharpness β: M≈e^{2β(1−β/d_k)} for β≪d_k; normalizing weights for numerical stability yields exactly f(x)=Vᵀsoftmax(βKx). Unlike MLPs, self-attention is non-parametric: keys/values come from context tokens, so the store grows with context length. Notes that the original transformer's v2/v3 described the feedforward layer as "a kind of attention" (passage removed from later versions) and tried replacing FFNs with learned-key-value attention at similar quality. The long-context section compares β∝log M tricks (Su 2021 entropy scaling, Scalable-Softmax, Qwen LogN-Scaling, Qwen2.5-1M YaRN scaling), driving the interference ratio to ~10⁻⁴ at 2M memories. Author-stated caveat: the count is random-vector recall of a single layer, ignoring training data; companion pointers to bits-per-parameter memorization work (Morris et al. ~3.6 bits/param; Allen-Zhu & Li ~2 bits factual knowledge/param). Includes interactive demos (sliders for M and β with live interference/signal visualization). Asides: a gradient-descent step is a memory write (Irie, Csordás & Schmidhuber); transformers' MLPs store facts in superposition.
- Post
vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)
vLLM Blog (2026-09-14) on RL-Kernel v0.1.0 with vime and AMD: Megatron training and vLLM rollout often disagree on logprobs for the same weights/tokens because kernels, Split-K/KV, reduction order, and intermediate precision differ, which pollutes importance ratios and KL/clipping. RL-Kernel aligns the numerical execution contract (RMSNorm, Attention, GEMM/SwiGLU, linear logprob, collectives) while vime aligns the timeline and weight sync. On ROCm they added deterministic MFMA GEMM, vocabulary reduction, HIP IPC, AITER/CK Attention schedule fixes, math/fusion last-bit fixes, and paged-KV/HIP-Graph state fixes. End-to-end Qwen3-8B BF16 GRPO on 8× MI300X (Megatron TP4/CP2; 2× vLLM TP4 colocated; 200 steps; dapo-math-17k) reports mismatch_count=0 and max_abs_diff=0 throughout on the strict path vs native mismatches every step. Apache-2.0 at github.com/RL-Align/RL-Kernel (pyproject 0.1.0; torch>=2.4.1; transformers==5.13.1; optional cuda/rocm/vllm extras). Docs https://rl-align.github.io/RL-Kernel/. Scope today: Qwen3-8B Dense + vime + CUDA/ROCm; MoE/multimodal next.
- Post
EvaByte: Efficient Byte-level Language Models at Scale
HKU NLP + SambaNova blog (2025) for EvaByte, a 6.5B byte-level model (vocab 320: 256 bytes + 64 specials) with 8 multibyte prediction heads and EVA (chunked linearized attention). Trained on 1.5T bytes of text/math/code mainly from Dolma v1.7, The Stack v2, FineWeb-Edu, and DCLM-Baseline, batch 8M bytes, 32K context, 256 SambaNova SN30-2 RDUs. After 1.2T bytes (EvaByte-Phase1), two annealing runs (100B and 200B bytes) are souped into EvaByte, then SFT (EvaByte-SFT) on a Tulu 3 / OpenHermes 2.5 / OpenCoder mix. Claims competitive open 7B tokenizer LMs with ~5x less training data (bytes vs Llama-3 tokens) and up to 2x faster decoding than tokenizer LMs via self-speculative multibyte generation. Hub cards Apache-2.0. Paper listed as coming soon; cite the blog.
- Post
SWE-1.7: Frontier Intelligence at a Fraction of the Cost
Cognition blog dated 2026-07-08 launching SWE-1.7, described as the most capable model they have trained so far. SWE-1.7 is post-trained from a Kimi K2.7 base that had already undergone extensive RL; Cognition argues additional RL still moved the Pareto frontier. Reported pass rates: FrontierCode 1.1 Main 42.3%, Terminal-Bench 2.1 81.5%, SWE-Bench Multilingual 77.8% (table also lists Kimi K2.7 Code, GPT-5.5, Opus 4.8/4.7, GLM-5.2, Composer 2.5, SWE-1.6). Training notes: entropy/stability work for long async RL, multi-cluster RL across four datacenters on three continents with object-storage weight shipping, a data-quality pipeline with execution tests and anti-reward-hacking hardening, and self-compaction for long-horizon tasks. Served in Devin (Web/Desktop/CLI) via Cerebras at 1000 TPS. No public weights or training corpus on this page.