Explore the research collection
332 entries · showing 73–96 · Follow this search
- Paper
Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression
Chunked KV-cache compression groups consecutive tokens into fixed-size windows and compresses each window into fewer cache entries at a fixed stride S, cutting long-context memory and attention cost. The paper shows this creates a new positional coordinate — the token's phase, its position modulo S — and a systematic failure mode called phase sensitivity: the same information can be easy to retrieve at one phase and difficult at another. In the DeepSeek-V4 family (which uses compressed sparse attention, CSA, with stride S=4), single-token needle-in-a-haystack retrieval at 128K context differs by up to 40.2 percentage points across phases, and a code-completion top-1 prediction flips periodically with period 4 matching the CSA stride. To isolate the cause, the authors pretrained a family of Qwen3-0.6B-derived transformers from scratch with chunked KV compression as the only substantial architectural change: every compressed variant shows periodicity matching the compression stride — even plain within-window averaging — while full-attention baselines show none. Window boundaries (key-value pairs split across windows) do not fully explain it: accuracy varies widely across phases that keep the pair inside one window. Mechanistic analysis (KV-head/layer knockouts in their models and attention-readout interventions) reveals phase specialization: different heads contribute asymmetrically to retrieval at different phases, also in DeepSeek-V4 itself. Compression gates that can learn separate positional preferences develop persistent per-head phase preferences during pretraining, and an idealized bigram-retrieval analysis shows gradient flow drives gates toward sharp static phase concentration. The practical takeaway: evaluating chunked-KV models requires measuring across compression phases (e.g., shifting the input by a few tokens while keeping the queried information fixed) — high average accuracy can coexist with systematic periodic positional failures.
- Paper
Relative Generalization Invariance of LLM Pretraining
Introduces Relative Generalization Invariance (RGI): the validation-loss difference between any two tokens is preserved across models, i.e. L_A(d) = L_B(d) + C_AB — different training choices produce a token-independent constant shift rather than selective per-token improvement. GPT-style models (124M, 0.7B) trained on FineWeb with six optimizers (Adam, Adam-mini, Lion, Muon, Soap, Scion) from shared initialization and data streams show concordance correlation r_CCC > 0.95 and relative discrepancy r_diff < 0.05 after ~2,000 steps; at 10K steps the validation-loss relationship between optimizers is near-perfectly linear (R^2 >= 0.99). RGI persists approximately across architectural changes: RoPE/NoPE/ALiBi positional encodings, full vs sliding-window attention, GELU/SiLU/Squared-ReLU FFN activations, different initializations, and moderate width changes. Changing the training data breaks it: FineWeb-trained vs ArXiv- or CodeParrot-trained models (same Adam optimizer) fail to exhibit RGI; C4 shows partial, unstable alignment. Not explained by NTK/lazy training — parameters and hidden states move substantially from initialization and cross-optimizer similarity decreases while RGI persists — nor by mean-field regimes (RGI appears in narrower models); the authors prove RGI can emerge in an overparameterized quadratic model. License: CC BY 4.0.
- Post
Post-training infrastructure at Proximal
Proximal's engineering post on their internal post-training stack for agentic RL. Training and inference run on Modal GPUs (an internal fork of Miles, the OSS RL framework based on Slime); rollouts run in gVisor/microVM sandboxes on their own Kubernetes cluster, coordinated via a lightweight command daemon (pxd). Key design choices: async training where each rollout keeps the adapter it started on while new groups start on the newest published weights (rollouts >3 versions stale are never trained on; 128 finished groups per step; mean staleness 1.7 at 4:1 inference-to-trainer ratio); inference capture moved inside the replica after cross-region (Sweden vs US West) network waits cost minutes per rollout; single-replica on-demand GPU containers instead of 8-GPU nodes, growing inference 3:1 to 4:1 mid-run; a custom KV-cache-headroom router hitting 99.6% cache hit rate; fault tolerance via a durable rollout store on Modal Volumes (a run survived losing 40% of inference capacity mid-step, fully recovering in 19 minutes); LoRA weight sync over HTTPS sharded across ranks (delta sync tried, not worth it for small adapters); custom attention recomputation keeping only FlashAttention outputs + log-sum-exp, cutting step time 7.3% at long context. Sandbox fleet: tasks declare 1-8 vCPUs (mean 2.3); pods request 25% CPU / 40% memory of hard limits, packing 26 sandboxes per 16-vCPU node; image-aware scheduling raised cache hits 1% to 37% (2s cold starts); zstd over gzip sped image unpack 15-25%; their sandboxes beat a SOTA provider ~5x median / 7x+ p90 on command latency. Case study: Qwen3.8-27B with rank-32 LoRA, 128 envs/step, group size 8, vanilla GRPO on internal agentic coding tasks — DeepSWE pass@1 37.2% (+8.4 over base in 44 steps), pass@8 67.7% to 86.6%; gains survive dropping tasks flagged flawed by Epoch AI/Scrim/internal review. Built on OSS Miles and SGLang, with contributions back upstream (SGLang #43047, Miles #3977).
- Tool
Open Env Arena — agent arena for RL environments
On 2026-10-08, Hugging Face's Ben Burtenshaw (community MLE) launched the Open Env Arena, an agent arena for RL environments: instead of agents competing on tasks, agents compete on defining the best RL environments. The loop: agents submit environment definitions (tasks + rewards), the platform trains a fixed base model (Qwen-3.8-27B) on them with a fixed training recipe, evaluates the resulting models, and posts scores to a leaderboard. The arena runs on PostTrainArena by @benchflow_ai (benchflow-ai/posttrainarena): the Hugging Face frontend reuses the Agent Collabs shared board/score chart/leaderboard with 'Add your agent' onboarding, while PostTrain runs headlessly through a CLI/API. It is fully agent-accessible: agents pull instructions from the Space's /AGENTS.md and /openapi.json and use arena_cli.py (discover, environments list, experiment list, board list) to share env datasets, track metrics, and send each other messages. Compute comes from Nebius GPUs. The underlying pipeline uses native task.md-format tasks, one-epoch LoRA SFT followed by LoRA GRPO over the training set, and held-out evaluation (the repo's data-agent canary shows 2,238 training / 366 held-out tasks). First round tackles a mix of 8 domains on held-out tasks, with the best environments evaluated on public benchmarks; future arenas will focus on specific domains and benchmarks.
- Thread
Are all harnesses that different? Which tools make or break coding harnesses — X thread
younes (HuggingFace, @yb2698) opens a research thread asking whether coding-agent harnesses are really that different and which integrated tools make or break them. As a first step toward identifying how to improve coding harnesses, the team took a first look at the tools integrated across 11 harnesses. Headline finding: 380 tools in total across the 11 harnesses, but only 124 are unique — heavy overlap with a long tail of harness-specific tools. The thread (with an attached video) shares the breakdown of which tools appear where. The per-harness tool lists, the taxonomy of tool categories, and the specific 'make or break' conclusions live in the thread continuation, which was not retrievable via available read-only mirrors; no separate blog post, HF Space, or dataset for this analysis was found indexed as of 2026-10-08.
- Code
RSIGym: A Flexible Environment for Recursive Self-Improvement
RSIGym is an agent-native recursive self-improvement environment built on Everything as a Service: training (Tinker-backed LoRA), inference (OpenAI-compatible, Tinker), rollout (frontier-model gateway), evaluation (Harbor + E2B), sandbox (E2B SDK), and authorization (run keys, budget accounting) are reusable platform services, while the research agent works in a lightweight CPU-only container and spends its budget on improving the target system. Three improvement tracks are supported: Data (change training data), Harness (change execution harness, weights fixed), and Joint (data + training settings + harness together). RSI-Index measures how well frontier agents jointly improve a target model's weights and harness, defined as the mean fraction of the remaining performance gap closed across five benchmarks: RSI-Index = mean((final - initial) / (1 - initial)) over SWE-bench Verified (100 tasks), Terminal-Bench 2.0 (89), AIME 2024/2025 (60), GPQA Diamond (100), and SkillsBench (37, science/office/finance). In the main Joint-track study (six research agents improving Qwen3.5-35B-A3B-Base with a minimal harness, $500 platform-service budget per benchmark run), Opus 5 leads at RSI-Index 0.4809, followed by Opus 5.5 (0.4528), DeepSeek V4.1 Flash (0.4343), Astra (0.4093), Sol 6.1 (0.3321), and Sol 6 (0.2079). Opus 5's selected systems improve all five benchmarks: SWE-bench Verified 17.67% to 50.33% and AIME 31.67% to 97.78% (Terminal-Bench 10.49% to 26.97%, GPQA 51.33% to 83.33%, SkillsBench 1.65% to 21.21%). 29 of 30 Joint runs improve; four different researchers lead at least one benchmark. Two additional experiments: Opus 5 iterating the DSH harness with Qwen3.6-35B-A3B-Instruct weights fixed raises Terminal-Bench from 30.34% to 40.82% (tasks solved on all three attempts increase 15 to 26); and Qwen3.8-27B acting as its own researcher completes training, candidate comparison, and submission but scores 56.26% vs 56.66% initially on SkillsBench - its six-task development gain does not translate into an overall improvement.
- Paper
Scaling Trajectories for Complex Tasks through Recursive Self-Rewrite
RSR: use one base model (Qwen-3.8-27B) to discover successes under diverse harnesses, then reconstruct them as training trajectories under a general harness - planner extracts runbooks, critic screens for verifier/solution leakage and guides recursive revision, executor follows qualified runbooks in fresh sandboxes.
- Paper
Self-Supervised Scaling of Terminal Environments for Scientific Domains
SWR (software-in-the-loop reconstruction): turn existing scientific software workflows into self-supervised, verifiable terminal-agent training environments - run workflows, reveal some input-output examples, hide others; the agent reconstructs the behavior and the original software supplies reference outputs for checking via a hierarchical verifier (domain-specific semantic comparison, structural validity, anti-shortcut checks).
- Paper
VERA: Scaling Verifiable Environments for Agentic co-Evolution
VERA (NVIDIA) addresses agent training's environment bottleneck by converting benchmark trajectories into 9,000+ restartable, rubric-scored sandboxes, then co-evolving the LLM and its harness on them. Auto-Rubric turns trajectories into sandboxes: a coding agent writes binary rubric items (scored {0,1} from observable evidence) over action arguments, execution effects, artifacts, and output quality; executable checks and an Agent Judge verify each sandbox, and a failed executable check overrides any judge score. Trajectories are segmented into five stages (plan, setup, verify, execute, submit), each restorable and scored independently. The co-evolution loop alternates two updates with the other component frozen: model rounds run full-parameter GRPO with rubric rewards (a Reward Verifier checks the rollout evidence behind each reward; a checkpoint is accepted if its dev-benchmark score drops no more than 20% relative to the previous accepted checkpoint), and harness rounds add/merge/remove skills (accepted only if a paired frozen-model rerun shows target-stage improvement, no end-to-end regression, safety checks pass, and self-tests pass with at least +5 Overall points on the dev set; at most three edits per round). At 9B (Qwen3.5-9B), the co-evolved agent beats the strongest single-axis baseline by 10.3 points on AutoCoWorkBench and 13.0 on AutoMedBench, leading SWE-Bench Verified and MedXpertQA under their official protocols. At 27B (Qwen3.8-27B), VERA reaches 71.6 on AutoCoWorkBench (above Claude Opus 4.8, 1.0 point below GPT-5.6-Sol) and 80.7 on AutoMedBench (within 1.2 of Claude Opus 4.8, highest Agentic score 94.1), and transfers out of domain to Automation-Bench (43.8%) and AgentClinic (76.4%). Only at 27B are general capabilities retained/improved (AIME 2026 +10.0, ALFWorld +3.8, GPQA-Diamond +7.7, IF-Bench +1.8 for the CoWork agent); 4B/9B agents lose heavily on AIME.
- Tool
RL Environment Explorer — Hugging Face Hub RL Environments filter
Hugging Face launched a dedicated RL Environments filter on the Hub (announced Sept 28, filter live Oct 5, 2026): any dataset repository tagged `rl-environment` appears at huggingface.co/datasets?other=rl-environment, giving one shared index for agent tasksets across five frameworks — OpenEnv, Harbor, MiMo, Verifiers, and NVIDIA NeMo Gym. Framework tags (harbor, verifiers, openenv, nemo-gym) are registered as dataset libraries: each puts the framework's icon on the dataset page and generates a framework-specific loading snippet under 'Use this dataset'; a repo can carry multiple tags since compatibility is non-exclusive. Environments are framed as data + runtime: the Hub hosts, versions, gates, and previews tasksets (tasks, tests, containers, reward rules); execution happens locally or on supported cloud backends (HF Jobs, HF Sandboxes), and the Hub itself does not run environments. Already seeded environments include Harbor's BeyondSWE, Terminal-Lego, Harbor-Mix, and NatureBench; Verifiers' Reverse-Text-RL, Multi-SWE-RL-Verified (2,232/4,703 rows), R2E-Gym-Subset-Verified, and Scale-SWE-Verified (17,202/20,181); and NeMo Gym's Workplace Assistant (5 databases, 26 tools, 690 business tasks), Structured Outputs, CFBench, and SysBench. Announced with 12M+ RL task entries across RL environments on the Hub; OpenEnv auto-tags on upload.
- Paper
Scaling Verifiable Environments for Long-horizon Work Agents
WorkForge is a scalable synthesis framework for building verifiable long-horizon work-agent environments from real-world resources. From expert-authored 'Scene Blueprints' (workflow, deliverable, source requirements, domain decisions), an acquisition agent iteratively searches, downloads, and previews real files to instantiate a workspace; profiling then extracts observable factual anchors (file roles, dependencies, verifiable facts). Task generation derives each task's instruction, hidden solution plan, and complementary verifiers from those anchors: programmatic verifiers check deterministic requirements on final artifacts (mean pass rate over rubric items), while semantic verifiers score open-ended deliverables via an LLM judge with criterion-specific scoring guides (scores 0-10, normalized). The corpus is 16,665 environments across 40 professional domains (top 4 = 31.9% of tasks), workspaces covering 60 file types, avg 42.3 files / 279KB, avg 21.9 rubrics per task; solver rollouts (GLM 5.3 with Claude Code and OpenClaw harnesses) average 31.8 steps, 33.8 tool calls, 76.5K tokens. Full-parameter SFT of Qwen3.5-35B-A3B-Base on the 16,665 trajectories lifts GDPval 45.5 to 73.6 (+28.1) and APEX Score 5.0 to 21.3 (+16.3), with similar gains on WildClaw, ClawEval, and Agents' Last Exam; the 73.6 GDPval beats the prior sub-100B specialized SOTA (ClawGym-30A3, 35.0) by 38.6 points. Applied to the post-trained Qwen3.5-27B, WorkForge-27B reaches GDPval 82.4, beating Qwen3.5-397B-A17B (79.7) with ~15x fewer parameters. Scaling holds across data volume (1K to 16K trajectories: ALE +13.0, WildClaw +8.4) and interaction horizon (41-60-turn training trajectories vs 0-20: ALE +4.2, WildClaw +5.0). Hybrid verification-based trajectory selection beats programmatic-only or LLM-only selection; real-workspace environments have 5.4x more files and 2.4x more file types than synthetic ones.
- Paper
LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches
NVIDIA's LoGRA makes RL post-training memory-efficient via low-rank gradient sketches: instead of storing full d×k gradients, it accumulates sketches S=GAᵀ (d×r, r≪min(d,k)) directly during backprop by projecting layer inputs before multiplying by backward derivatives, so full gradients are never formed. A random projection A (random signs /√r, fresh each step) keeps successive updates from being rank-limited; the sketch is optimizer-adjustable (U) and merged into full-size weights as W ← W − αηUA, with predicted-KL step control estimating policy change before the update and scaling α to fit a KL budget. The compact sketch doubles for policy synchronization: the rollout engine regenerates A from a seed and applies αηU, cutting communication. On DAPO-Math-7.5K (128 prompts, 1 response each, 4k context) with an annealed predicted-KL budget vs dense Adam: average training memory falls 21.8% at 1.5B and 45.7% at 7B over 300 updates with no task-performance loss; at 27B on a single 8×H100 node, LoGRA completed 1,100+ steps while dense Adam OOMed during its first Adam-state allocation. Intuition: binary outcome rewards carry little per-token supervision, so a compact update suffices; precedents include GaLore, FLORA, and LoRA-without-regret.
- Paper
Bellman Policy Optimization
BPO is a critic-free RLVR method derived from Policy Mirror Descent (PMD): for autoregressive generation with terminal rewards it uses the Bellman equations to reformulate PMD as a trajectory-level objective, avoiding estimation of state values at intermediate states, and it is proved to have the same unique optimal solution as the original PMD objective on states reachable under the rollout policy. The practical token-level loss approximates this objective with a smoothed mismatch-correction weight — a smoothed ratio of complementary token probabilities — replacing the importance-sampling ratio. On Qwen3-30B-A3B-Base it reaches 50.5% average accuracy across AIME 2024-2026, vs 39.5% GRPO-ClipHigher, 43.5% GSPO, 47.4% CISPO, 46.4% DPPO (strongest baseline gaps 3.1-11.0 points); after 400 training steps 49.4% vs 45.5% for DPPO. Ablations on Qwen3-4B-Base show similar performance across a range of smoothing and truncation settings.
- Paper
ALoDLM: Adaptively Looped Diffusion Language Models
Amazon AGI introduces ALoDLM, a diffusion language model that replaces uniform denoising depth with token-adaptive latent recurrence, attacking the computation-difficulty mismatch: within one denoising step, easy masked tokens need little compute while hard ones need a lot, yet standard DLMs apply the same fixed-depth denoiser to every position. ALoDLM partitions a Qwen3 backbone into a Prelude, a shared Recurrent Core, and a Coda; at each denoising step the core runs up to K=4 recurrent passes. After each pass, an LM head predicts token distributions and an exit gate gives per-token halting probabilities: positions with predictive entropy <= tau are sampled and committed (their embeddings fed back as context for the next pass), while unresolved positions carry their latent states forward for further refinement. The inner loop ends when the mean cumulative halting probability reaches q, no unresolved positions remain, or K is reached. Training treats token-wise exit schedules as latent variables and derives a conditional negative ELBO; a single-trajectory gradient estimator is provably unbiased for the objective (Prop. 1), with a truncated-geometric prior (c=0.4) favoring shallow exits and a practical recipe relaxing the KL term and adding variance reduction (intermediate supervision, first-pass control variate). ALoDLM-1.7B and 8B are trained from Qwen3 by direct SFT on a 5B-token corpus (no continued pretraining; largest looped DLM to date at 8B). On eleven reasoning/knowledge/math/code benchmarks via the OpenCompass protocol, ALoDLM beats all evaluated DLMs (LLaDA-8B, Dream-7B, Fast-dLLM-v2, SDAR-8B, WeDLM-8B) and its Qwen3 AR counterparts in average score at both scales: 65.5 vs 63.8 at 1.7B, 80.3 vs 78.5 at 8B. It keeps fast parallel decoding: on GSM8K, ALoDLM-8B delivers ~2.7x the throughput of vLLM-served Qwen3-8B (93.25% at 612.4 tok/s on one NVIDIA B200) at comparable or higher accuracy, and 13.6% fewer GFLOPs per token than WeDLM at the same accuracy threshold. Recurrent depth is an effective test-time scaling axis, and the model learns token-dependent refinement preferences without difficulty labels (e.g., numerical tokens refine longer). Caveats: longer time-to-first-token than AR models and input-dependent throughput; the speed advantage can shrink on difficult or out-of-distribution inputs. Code: github.com/amazon-science/ALoDLM (optimized CUDA-graph inference engine included); weights: huggingface.co/amazon/ALoDLM-8B and amazon/ALoDLM-1.7B; project page: alo-dlm.github.io. Joins the looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1563, 1566, 1579). Directly relevant to the user: a practical recipe for adaptive per-token compute and the strongest current DLM quality-efficiency tradeoff.
- Paper
Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers
Motivated by speculation that Claude Mythos is a looped transformer: studies why looped-transformer LLMs are so powerful by testing implicit multi-hop reasoning — reasoning over parametric knowledge within a single forward pass, no chain-of-thought. Two generalization challenges: systematic generalization (combining knowledge never composed during training) and depth extrapolation (generalizing to deeper reasoning chains than seen in training). Finding: looped transformers generalize on both, vanilla transformers don't. Systematic generalization emerges only after a sharp 3-stage grokking transition (train accuracy first, OOD jumps later). Depth extrapolation: an LT trained on 20-hop questions generalizes to 30-hop at inference simply by scaling up the number of loop iterations — more loops enable deeper reasoning. Takeaway: most existing LLMs already encode rich knowledge; they lack the mechanisms to best combine/manipulate it, and recurrent depth provides that. Encouragement for pretraining LT-based LLMs. Part of the user's looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1563, 1566).
- Paper
Continual Graph Memory for Mathematical Research Agents
Ansatz, a mathematical research agent built around Continual Graph Memory — a graph-based, evolvable, cross-problem memory system for long-horizon proof search. Motivation: solving frontier math problems may need massive parallel agents running for long periods, generating enormous volumes of intermediate proof results that must be organized and reused. Components: a unified graph memory representing all intermediate exploration results (facts, plans, counterexamples) with edges for their relationships; dependency-aware retrieval for targeted local context; an evidence-sensitive curator that updates the research frontier and distills lessons from prior attempts; scoped recall that surfaces earlier statements and negative findings for local re-proving rather than uncritical reuse. Experiments across all ten 'First Proof Second Batch' research tasks plus four component studies: Ansatz reports closure on all ten tasks and sustains/resumes long-horizon mathematical search. Beyond that, it autonomously solved the Jamison caterpillar conjecture and Erdos Problems 289, 348, and 488 with no human intervention, and made partial progress on several other open problems.
- Paper
The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks
Mechanistically studies two recurring Transformer phenomena: massive activations (a few tokens show extreme outliers in a few channels) and attention sinks (certain tokens attract disproportionate attention mass regardless of relevance). Through systematic experiments, shows their co-occurrence is largely an architectural artifact of modern Transformer design, and the two serve related but distinct functions: massive activations operate globally — inducing near-constant hidden representations that persist across layers, effectively functioning as implicit parameters — while attention sinks operate locally, modulating attention outputs across heads and biasing individual heads toward short-range dependencies. The pre-norm configuration is the key architectural choice that enables the co-occurrence; ablating it decouples the two phenomena. Practical upshot: modifying normalization logic or adding dynamic gating can eradicate massive activations without hurting LM performance, giving a structural path to safer ultra-low-precision quantization and efficient KV-cache management.
- Paper
EurekaBench: Measuring Agentic Ability to Discover New Scientific Insights
Cross-domain benchmark testing AI agents' ability to conduct long-horizon experiments and discover mechanisms that explain observations. 26 expert-verified long-horizon tasks across neuroscience, computer science, chemistry, astrophysics, geophysics, and plasma physics, with 306 scientific insights the discovered mechanisms are expected to support. Environment interface lets agents run iterative experiments autonomously; evaluation framework tests three axes: scientific constraint tests, predictive accuracy of discovered mechanisms, and whether mechanisms yield scientific insights or inform future research. Key finding: current AI agents fixate on predictive accuracy optimization (Claude Fable 5.1: 47.4% PA vs 48.8% human; GPT 6 Astra approaches human accuracy) but fall far short on insight discovery (best agent Claude Fable 5.1: 29.8% SI vs 63.7% human; GPT 6 Astra only 29.4%). Optimizing predictive accuracy does not imply discovering novel scientific insights; agents tend to brute-force numerical optimization rather than interpret/extrapolate mechanisms.
- Paper
A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training
Unifies the two emergent outlier phenomena in LLMs — attention sinks (a few tokens receiving large attention logits) and residual sinks (fixed dimensions with persistently large activations) — under 'outlier-driven rescaling': the outliers work jointly with normalization (softmax attention, RMSNorm) to rescale non-outlier components, and this mechanism is validated across architectures and training token counts. Main conclusions: (1) outliers function jointly with normalization — removing normalization eliminates the outliers but degrades training stability and performance; clipping outliers while keeping normalization also degrades, so outlier-driven rescaling contributes to training stability; (2) outliers act as rescale factors, not contributors — their post-norm contributions are far smaller than non-outliers'; (3) outliers can be absorbed into learnable parameters or replaced by explicit gated rescaling (GatedNorm), improving training performance by an average of 2 points and drastically improving quantization robustness (only 1.2 points degradation under W4A4). Since outliers' post-norm contribution is tiny, relying on them is what makes LLM quantization a nightmare (huge dynamic ranges).
- Paper
Attention Residuals
Replaces standard PreNorm residual accumulation (fixed unit weights over all layer outputs, which causes uncontrolled hidden-state growth with depth and dilutes each layer's contribution) with Attention Residuals (AttnRes): each layer selectively aggregates earlier representations via learned, input-dependent softmax attention over preceding layer outputs. Block AttnRes makes this practical at scale: partitions layers into blocks and attends over block-level representations, cutting memory from O(Ld) to O(Nd) while preserving most gains; cache-based pipeline communication and a two-phase computation strategy make it a drop-in replacement for standard residuals with minimal overhead. Scaling-law experiments show consistent improvement across sizes; ablations validate content-dependent depth-wise selection. Integrated into the Kimi Linear architecture (48B total / 3B activated) pre-trained on 1.4T tokens, AttnRes yields more uniform output magnitudes and gradient distribution across depth and improves downstream performance on all evaluated tasks (reasoning, math, coding).
- Paper
Native Hybrid Attention for Efficient Sequence Modeling
Native Hybrid Attention (NHA) unifies linear and full attention into a single softmax operation within one uniform layer design. Long-term history is compressed into fixed-size key-value memory slots updated by a linear RNN; short-term context comes from exact sliding-window tokens; one softmax over all keys and values learns per-token, per-head balancing dynamically with no extra fusion parameters. A single hyperparameter — the sliding window size — shifts each layer smoothly between pure linear attention (w=0), intra-layer hybrid, and full attention (w=N), with no structural changes; all layers share the same architecture. NHA beats Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks, and pretrained LLMs (Llama-3, Qwen) can be structurally hybridized with NHA via lightweight finetuning (e.g., NHA-Qwen2.5-7B / NHA-Llama-3-8B trained on 10B tokens, NHA-Qwen3-30BA3B) to match accuracy with drastically lower GPU memory and inference latency.
- Model
Qwen-Image-2.1 Consistent Lighting LoRA (rh-qwen-image-2.1-lora)
LoRA adapter (160 MiB safetensors) finetuned on Qwen-Image-2.1 for compositing products/objects into scenes with consistent lighting: removes unwanted reflections/glares, enhances specular highlights, adds natural contact shadows and front-back spatial relationships so the object blends seamlessly into the background. Trigger word: 'pengyu'. Works in ComfyUI / RunningHub / Hugging Face.
- Paper
Looped Diffusion Transformer
Looped-DiT: instead of scaling text-to-image models by size or denoising steps, it repeatedly runs shared Transformer blocks within each denoising step, increasing computational depth with fixed parameters (17 unique MMDiT blocks split 6/5/6; the 5 middle blocks shared over 4 loops = 32 effective block applications per step at ~260M params). Naive looping fails (weak supervision across intermediate loops, unregulated attention updates erode local information); two fixes: deep supervision across intermediate loops + self-modulating attention to stabilize looped feature updates. A 260M-parameter looped model beats a 6.5x larger model across text-to-image benchmarks at 4.9x lower inference compute. Increasing loop depth yields larger gains than adding denoising steps under a fixed inference budget, and deeper loops progressively correct mistakes from earlier loops — behavior suggestive of latent reasoning. Related catalog entry: 523 'Looped Diffusion Language Models' (LoopMDM, a different paper — that one is masked-diffusion LMs; Looped-DiT is text-to-image generation).
- Paper
Closing the Loop: Practical Training Recipes for Looped Language Models
Practical training recipes that make looped LMs cheap. Three results: (1) a compute-efficient from-scratch pipeline cuts the training budget from 7.7T tokens (Ouro) to 310B tokens while retaining strong reasoning — pretraining followed by high-quality mid-training, plus strong LR warmup and exit-gate regularization, enables stable recurrent training without prior multi-stage schedules; (2) under controlled comparisons, the 1.4B LoopLM beats a parameter-matched dense model trained on the same data and token budget on all 12 benchmarks (+14 GSM8K, +10 MATH, +22 DROP), and at matched inference compute approaches a 3.9B dense model on math/reasoning with only 36% of the parameters; (3) a minimal recipe converts pretrained dense models into looped ones — a single learned input-mixing scalar plus a smoothed exit loss, no step-specific parameters — applied to Qwen3-1.7B-Base, Looped Qwen improves over an identically continued dense baseline on every benchmark, with clear gains on GSM8K, MATH, MMLU-Pro. Relevant to the user's LLM training-run work and the looped-models cluster (670, 952, 1545).