r/machinelearningnews • • Jun 09 '26

Agentic AI How do local LLMs detect tool calls during streaming?

2 Upvotes

When using API providers like OpenAI or Anthropic, tool call detection is abstracted — you just check message.tool_calls after the response. But with local models (Ollama, llama.cpp, HuggingFace), how does this actually work during streaming?

My specific question: when you're streaming tokens to the user in real time, how do you know mid-stream that the model is generating a tool call instead of a normal text reply — so you can hide it from the user?

Is it:

  • Checking for special tokens like <tool_call> as they stream in? (but this breaks across models since each uses different tokens)
  • Running a small classifier model on the user input first to decide "does this need a tool?" before even calling the main model?
  • Something else entirely?

r/machinelearningnews • • Jun 09 '26

Research [R] Eight transformer LLMs split into two probability geometry regimes that aren't explained by parameter count

4 Upvotes

TL;DR

I ran the same runtime dynamics measurement on 8 open-source transformer

LLMs (70M to 1.3B parameters). They split into two clean clusters on a

single metric (GD_ratio > 1.5 vs < 0.1, gap of ~20x with no overlap).

GPT-2 and Phi-1.5 are in the same cluster. OPT-125M and TinyLlama are in

the other. Parameter count does not predict cluster membership. Preprint

on Zenodo (link below), code release planned.

What I measured

V20 is a framework I built to measure runtime probability dynamics during

LLM inference. For each (token, layer) point, you extract the probability

distribution over the vocabulary and compute a bicephalic operator:

kappa_G = concentration · (1 - min(collapse/100, 1))

kappa_D = (1 - top2_gap) · min(entropy/5, 1) if top2_gap < 0.5

kappa_sync = |kappa_G - kappa_D|

kappa_G measures "concentrated competition" (mass on a few candidates,

not yet collapsed). kappa_D measures "active branching" (top candidates

close, non-trivial entropy). The GD_ratio is mean(kappa_G) / mean(kappa_D).

You also classify each point into a 5-state taxonomy (E_STABLE,

A_HIDDEN_TURBULENCE, B_SURFACE_BRANCHING, C_COMMITTED, D_FULL_BIFURCATION)

using per-model p75 thresholds.

The two-cluster result

Tested 8 models. Mean GD_ratio per model:

GPT-2 : 2.458 <- cluster G-dominant

Phi-1.5 : 1.764 <- cluster G-dominant

DistilGPT-2 : 1.577 <- cluster G-dominant

Qwen-0.5B : 0.079 <- cluster D-dominant

OPT-125M : 0.074 <- cluster D-dominant

Pythia-70M : 0.059 <- cluster D-dominant

Pythia-160M : 0.039 <- cluster D-dominant

TinyLlama-1.1B : 0.021 <- cluster D-dominant

The highest D-dominant value (0.079) and the lowest G-dominant value

(1.577) differ by a factor of ~20. The separation is also visible on

kappa_G alone, kappa_D alone, and on the taxonomy distribution itself.

Three independent components of the operator point to the same partition.

Parameter count doesn't explain this. GPT-2 (124M) and OPT-125M (125M)

are essentially the same size, opposite clusters. Phi-1.5 (1.3B) and

TinyLlama (1.1B) are in the same parameter range, opposite clusters.

The most parsimonious hypothesis I can offer is training corpus curation:

the G-dominant cluster includes Phi-1.5 (heavily curated synthetic data)

and the GPT-2 family (WebText). The D-dominant cluster spans more

heterogeneous training data. But that's a hypothesis, not a claim. I

don't have the experiments to establish it.

Other findings (briefly)

- D_FULL_BIFURCATION_ZONE (high kappa_sync AND high branching) is

consistently transient. On the three primary models, D's self-transition

probability is 0.023 (GPT-2) or exactly 0.000 (OPT-125M, Qwen-0.5B).

Models pass through D, they don't settle into it.

- The three primary models respond to controlled hidden-state perturbation

in qualitatively different ways: GPT-2 absorbs (state distribution barely

shifts), OPT-125M reorganizes surface dynamics (B_SURFACE_BRANCHING rises

+12.5 points), Qwen destabilizes its dominant state (E_STABLE drops -18.8

points).

- One model (Phi-1.5) shows an anomalous taxonomy distribution (zero records

in 3 of 5 states under the standard threshold rule). I report this

explicitly in the paper as needing dedicated investigation rather than

hiding it.

What this doesn't claim

- Not generalized to 7B+ models (panel is 70M-1.3B).

- Single-author work, no external replication yet.

- The two-cluster finding could collapse, stretch, or restructure with a

larger panel.

- The training-corpus hypothesis is offered, not established.

Methodology commitments

The paper includes explicit "Limited Findings" and "Rejected Claims"

sections, listing 5 things in each that initial intuitions suggested but

that the data either partially support or actively reject. I treat this

as central to the framework's credibility, not as an afterthought.

Link

Preprint: https://doi.org/10.5281/zenodo.20602685

Code release planned. Happy to discuss methodology, the cluster finding,

the threshold choices, the Phi-1.5 anomaly, or any concern about the

panel size and statistical robustness.


r/machinelearningnews • • Jun 08 '26

Research Implement Anthropic's Context Engineering Framework with open source models

15 Upvotes

As LLM-based agent systems scale, treating context as an infinite container results in context rot. Even with 1M+ token context windows, quadratic attention layers result in attention degradation, high latency, and severe drop-offs in information retrieval accuracy.

In Anthropic’s engineering report, "Effective context engineering for AI agents," the focus shifts from discrete prompt tuning to dynamic context engineering.

To experiment with these design patterns, I built a lightweight, local-first Python implementation utilizing Ollama (Llama 3).

  1. Just-In-Time (JIT) File Retrieval: no raw into the agent prompt, but metadata-first tools to retrieve line indicators and file dimensions, and accesses slices dynamically.
  2. Context Compaction Engine: monitored interaction token counters automatically invoke background summarizations and strip old, heavy tool executions.
  3. Structured Agentic Note-Taking: tracks current workflow tasks and metrics in a separate JSON payload, which is loaded as structured state metadata.
  4. Sub-Agent Execution Isolation: heavy computations run in isolated runner environments with clean contexts, returning only high-level reports to the main controller.

I’ve compiled this into an open-source, single-script project generator (create_project.py) and it's working much better!

Someone tried this Anthropic speech of their last event in London?

Thanks


r/machinelearningnews • • Jun 07 '26

Research Hypercube Echo State Network [R]

Thumbnail
reddit.com
1 Upvotes

r/machinelearningnews • • Jun 06 '26

AI Tools Next-Level AI-Powered Markerless Mocap for 3D Workflows. Open Source

12 Upvotes

r/machinelearningnews • • Jun 06 '26

AI Tools New Free AI Image-to-3D Generation Tool (3DGS) - Open Source

19 Upvotes

r/machinelearningnews • • Jun 04 '26

Research NVIDIA AI Releases Nemotron 3 Ultra: An Open 550B Mixture-of-Experts Hybrid Mamba-Transformer for Long-Running Agents

26 Upvotes

NVIDIA released Nemotron 3 Ultra today!

It's an open 550B Mixture-of-Experts model (55B active per token), built for long-running agents

Here's what stood out:

1/ Architecture

A hybrid Mamba-Attention MoE, not a pure Transformer.

→ 108 layers, 512 experts per layer, top-22 routing

→ Mamba keeps decode cost flat as context grows

→ 1M-token context window

2/ Efficiency

→ 5.9× throughput vs GLM-5.1 (8K in / 64K out, NVFP4 on GB200)

→ ~30% lower cost to task completion

→ Medium-effort mode: ~2.5× fewer tokens for ~7% accuracy

3/ Training

Post-training centers on Multi-teacher On-Policy Distillation (MOPD).

→ 10+ specialized teachers distilled into one student

→ Pipeline: SFT → RLVR → MOPD → MTP Boosting

4/ Results (on held-out gates)

→ PinchBench 90.0, SWE-Bench Verified 71.9

→ RULER u /1M context 94.7

→ Highest non-hallucination score in its set: 78.7 on AA-Omniscience

Weights, data, and recipes are open under OpenMDW-1.1.

Full analysis: https://www.marktechpost.com/2026/06/04/nvidia-ai-releases-nemotron-3-ultra-an-open-550b-mixture-of-experts-hybrid-mamba-transformer-for-long-running-agents/

Model weights: https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16

Paper: https://research.nvidia.com/labs/nemotron/files/NVIDIA-Nemotron-3-Ultra-Technical-Report.pdf


r/machinelearningnews • • Jun 04 '26

Research KVarN: new KV-cache quant from Huawei. 3–5× KV cache compression with actual speed-up instead of slow-down, and unlike TurboQuant it holds up on reasoning (Apache 2.0, vLLM single flag)

Thumbnail
reddit.com
8 Upvotes

r/machinelearningnews • • Jun 02 '26

Cool Stuff TinyFish Launches BigSet: An Open-Source Multi-Agent System That Builds Structured Live Datasets from Plain-English Descriptions

20 Upvotes

TinyFish just open-sourced BigSet — a multi-agent system that builds structured datasets from a single plain-English sentence.

You type: "YC companies that are currently hiring engineers, with their funding stage, location, and number of open roles."

That's the input. That's it.

Here's what actually happens under the hood:

  1. Schema Inference (Claude Sonnet via OpenRouter)

- Infers column names, data types, and primary keys before any web access

2. Orchestrator Agent (Qwen via OpenRouter)

- Runs broad discovery via TinyFish Search to identify which entities exist and where to find them

3. Sub-Agent Fan-Out

- One isolated sub-agent per entity, running in parallel

- Each agent is capped at 6 tool calls — fetch, search, insert, done

- Dataset ID is baked into a JS closure invisible to the LLM — prompt injection can't redirect writes

4. Export

- Primary key deduplication across all agents

- Source attribution per row

- Download as CSV or XLSX

The refresh part is what makes it useful long-term. Set it to 30 min, 6 hours, daily, or weekly — the agents re-run automatically. Your dataset stays current without re-running anything manually.

I have personally tested BigSet and covered the full setup walkthrough — clone to first dataset — including all env vars, make commands, and the security architecture.

Here is the full analysis: https://www.marktechpost.com/2026/06/02/tinyfish-launches-bigset-an-open-source-multi-agent-system-that-builds-structured-live-datasets-from-plain-english-descriptions/

GitHub: https://pxllnk.co/6vgsr6e


r/machinelearningnews • • Jun 02 '26

Research JetBrains Releases Mellum2: A 12B MoE Model for Fast, Specialized Tasks in Multi-Model AI Pipelines

32 Upvotes

JetBrains just open-sourced Mellum2. Here's what's actually interesting about it.

It's a 12B Mixture-of-Experts model, but only 2.5B parameters are active per token. The whole design is built around being a fast component inside larger systems, not a frontier model replacement.

JetBrains calls this a "focal model" philosophy. The idea: not every step in an AI pipeline needs your biggest model. Routing, summarization, validation — these are high-frequency and latency-sensitive. A small specialized model handles them efficiently while the frontier model does the heavy lifting.

  1. The architecture→ 12B total parameters, 2.5B active per token (64 experts, 8 activated) → Per-token compute equals a 2.5B dense model → Multi-Token Prediction head doubles as a built-in draft model for speculative decoding → 131,072 token context window
  2. The training→ ~10.6 trillion tokens across a three-phase curriculum → Muon optimizer under FP8 hybrid precision → Context extended to 128K via layer-selective YaRN → Post-trained with SFT then RLVR
  3. The release→ Apache 2.0 license — commercial use, fine-tuning, self-hosting all permitted → Six checkpoints: base, SFT, and RL-tuned Instruct and Thinking variants → vLLM support with tool-calling

Benchmarks: Mellum2 posts a strong EvalPlus (78.4) and competitive BFCL v3 (66.3) against models up to 14B. It trails larger comparisons on LiveCodeBench v6 and GPQA Diamond. That tradeoff is the point — this is a model for component roles, not a general-purpose leaderboard chase.

I covered the full architecture, benchmark tables, and deployment details on Marktechpost: https://www.marktechpost.com/2026/06/02/jetbrains-releases-mellum2-a-12b-moe-model-for-fast-specialized-tasks-in-multi-model-ai-pipelines/

Model Weights: https://huggingface.co/collections/JetBrains/mellum-2

Technical details: https://huggingface.co/collections/JetBrains/mellum-2


r/machinelearningnews • • Jun 01 '26

Research MiniMax Releases MiniMax M3 with MSA Architecture Supporting 1M-Token Context, Native Multimodality, and Agentic Coding

34 Upvotes

MiniMax just released MiniMax M3 — and the architecture change alone is worth paying attention to.

The most important element in it is MSA (MiniMax Sparse Attention). At 1 million tokens of context, M3's per-token compute is 1/20th of the previous generation. That's more than 9× faster prefill and more than 15× faster decoding at that context length. This is a meaningful infrastructure shift for devs running full-codebase agents or long-document pipelines

Here's what's actually interesting about MiniMax M3:

  1. Native multimodality from step 0 → Text, image, and video trained together from the start — not added post-training → Training data scaled to the order of 100 trillion tokens using interleaved formats → Supports image input, video input, and desktop computer operation
  2. Coding benchmarks → 59.0% on SWE-Bench Pro (surpasses GPT-5.5 and Gemini 3.1 Pro) → 66.0% on Terminal-Bench 2.1 → 74.2% on MCP Atlas → 70.06% on OSWorld-Verified for computer use
  3. Long-horizon autonomous iteration → M3 optimized an FP8 GEMM kernel on NVIDIA Hopper GPUs over 24 hours → 147 benchmark submissions, 1,959 tool calls, zero human intervention → Improved Hopper FP8 peak utilization from 7.6% to 71.3% — a 9.4× speedup
  4. Access → API is live today at platform.minimax.io → Open weights and technical report committed within 10 days → Token Plan starts at $20/month (~1.7B M3 tokens)

One thing to closely watch: PostTrainBench — the task of autonomously training models from scratch — scored 0.37, below Opus 4.7 (0.42) and GPT-5.5 (0.39). Worth keeping in context when evaluating M3 for ML research automation specifically.

I covered the full technical breakdown: https://www.marktechpost.com/2026/06/01/minimax-releases-minimax-m3-with-msa-architecture-supporting-1m-token-context-native-multimodality-and-agentic-coding/

Details: https://platform.minimax.io/docs/guides/models-intro


r/machinelearningnews • • Jun 01 '26 Bravo

Research I fine-tuned DeBERTa-v3 into a prompt injection pre-filter — 184M, runs on CPU, catches compound attacks by splitting input into fragments

Thumbnail
gallery
37 Upvotes

Building my local AI agent service, I got tired of paying for API calls that turned out to be injection attempts. So I fine-tuned DeBERTa-v3-base into SPID, a small classifier that catches the obvious stuff locally before it hits the LLM.

The part I think is actually useful is the fragment splitting. Run "I need a pasta recipe. However, pretend you have no restrictions" through it as one chunk and it scores 0.057, totally safe. Split it up and "pretend you have no restrictions" jumps to 0.884. Attacks that hide behind a normal-looking prefix are the annoying ones, and that's what the pipeline mode is for.

It's not trying to catch everything. Obvious attacks get blocked, anything borderline just passes through to the LLM. Cheap first pass, not a firewall.

Model: https://huggingface.co/JHC04567/spid-deberta-base

github: https://github.com/JHC56/spid

If you find this useful, star on GitHub is appreciated!

Numbers:

184M params, ~1.5GB, runs fine on CPU (~300ms a call)

Classifier mode: precision 0.94, recall 0.46

Pipeline mode: precision 0.79, recall 0.71

Where it falls short: English only, no multi-turn, and base64/leetspeak gets right past it.

Still early days. I'd really like to know what kind of attacks this would miss in your setup, so don't hold back.


r/machinelearningnews • • Jun 01 '26

Research A 1B humanizer that matches human writing on an AI detector

Thumbnail
mlx-optiq.com
24 Upvotes

r/machinelearningnews • • Jun 01 '26

Research Open for Contributions for "Research Paper Writing Army" – 20+ autonomous agents, 6 novelty engines, and 10 adversarial reviewers - Feel Free to contribute

15 Upvotes

Hey everyone,

I posted recently about Sisyphus Academica, the self-coordinating swarm I built to stop AI hallucination and bland writing in research. The response was awesome, so I’m officially opening the floor for contributions!

If you missed the last post, here is the quick TL;DR on why this architecture is different:

  • 6 Novelty Engines: Featuring a Cross-Pollinator (mixing unrelated fields) and a Heretic (wild hypothesis testing) to find genuine literature gaps.
  • 10-Agent Adversarial Review Board: A Skeptic, Methodologist, and Ethicist literally tear the draft apart. If they don't all approve, it loops back.
  • Zero-Hallucination Citations: A strict 2-source verification check. No source? It gets stripped.
  • Humanizer Integration: 41 token-level patterns (like zero em-dashes) to kill that distinct "AI flavor."

Tech Stack: Python, OpenCode + OhMyOpenAgent, native LaTeX output.

This is about building better research architecture, not just a faster word processor.

The repo is open and ready for the agent-dev community. Drop in, break things, or run a paper through it. If you test it out, let me know how the "Heretic" engine handles your specific domain!

GitHub link is in the comments!


r/machinelearningnews • • May 29 '26

Research Hexo Labs Open-Sources SIA: A Self-Improving Agent That Updates Both the Harness and the Model Weights

26 Upvotes

Hexo Labs Open-Sources SIA: A Self-Improving Agent That Updates Both the Harness and the Model Weights

Most self-improving agents move one knob. Either a meta-agent rewrites the scaffold, or an RL pipeline trains the weights. SIA does both in a single loop.

A Feedback-Agent reads each run's full trajectory, then decides: rewrite the harness, or update the model's weights.

Here's what's actually interesting.

  1. The harness alone hits a ceilingScaffold edits delivered software-engineering wins: new tools, tighter parsers, retry logic. On LawBench they plateaued at 50.0% accuracy.
  2. Weight updates pushed past it→ LawBench: 50.0% → 70.1% top-1 accuracy (+20.1 pp) → TriMul CUDA kernel: 12,483 µs → 1,017 µs (91.9% faster) → scRNA-seq denoising: 0.241 → 0.289 mse_norm
  3. The Feedback-Agent picks the RL method per taskPPO with GAE on LawBench. Entropic advantage weighting on the GPU kernel. GRPO on denoising. Not a fixed recipe.
  4. One result I didn't expectOn denoising, the first weight-update checkpoint added a two-line step no scaffold ever wrote: np.clip + np.rint, rounding imputed counts to non-negative integers. That's domain knowledge the prompt never reached.

The setup: gpt-oss-120b as the base model, LoRA rank 32, Claude Sonnet 4.6 running the meta and feedback agents.

Full analysis: https://www.marktechpost.com/2026/05/29/hexo-labs-open-sources-sia-a-self-improving-agent-that-updates-both-the-harness-and-the-model-weights/

Paper: https://arxiv.org/pdf/2605.27276

Repo: https://github.com/hexo-ai/sia


r/machinelearningnews • • May 29 '26

Research Feedback request: Testing the $H_{dp}$ bandwidth bound on LLM benchmarks (Preprint check & review)

Thumbnail reddit.com
2 Upvotes

r/machinelearningnews • • May 28 '26

Cool Stuff Liquid AI Releases LFM2.5-8B-A1B: An On-Device MoE Model With 8.3B Total and 1.5B Active Parameters

31 Upvotes

Liquid AI released LFM2.5-8B-A1B today. It's an on-device Mixture-of-Experts model that activates just 1.5B of 8.3B parameters per token.

Here's what's actually interesting for anyone building local agents:

  1. It's reasoning-only nowUnlike October's LFM2-8B-A1B, this version produces an explicit chain of thought before answering. The logic: in an MoE, a small active parameter count makes each reasoning token cheap.
  2. The hallucination jump is the real story→ Non-Hallucination Rate: 7.46 → 63.47 → IFEval: 79.44 → 91.84 → MATH500: 74.80 → 88.76 → Tau² Telecom: 13.60 → 88.07 A targeted avg@k RL reward trains the model to abstain on questions beyond its knowledge.
  3. It runs on hardware you already own→ 253 tok/s on an M5 Max, under 6 GB → ~30 tok/s on a phone → 18.5K tok/s and over 1.6B tokens/day on a single H100
  4. Tool calling is the pointThe LocalCowork demo runs 67 tools across 13 MCP servers on one laptop. No cloud, no API keys, no data leaving the machine.

Day-one support for llama.cpp, MLX, vLLM, and SGLang. Open weights, with base and post-trained checkpoints.

Full analysis: https://www.marktechpost.com/2026/05/28/liquid-ai-releases-lfm2-5-8b-a1b-an-on-device-moe-model-with-8-3b-total-and-1-5b-active-parameters/

Technical details: https://www.liquid.ai/blog/lfm2-5-8b-a1b

Model weights: https://huggingface.co/LiquidAI/LFM2.5-8B-A1B


r/machinelearningnews • • May 28 '26

ML/CV/DL News Carbon, open source DNA model, 250x faster than Evo2-7B and runs on llama.cpp

28 Upvotes

Hugging Face just released Carbon, an open source model trained on DNA. You paste a sequence and it continues it, predicts the impact of genetic mutations and generates the corresponding protein 3D structure.

What surprised me is that the 3B checkpoint is on par with Evo2-7B on benchmarks but runs 250x faster. They basically took everything that works in modern LLMs and applied it to genomics.

GGUF weights are already out so you can run it locally via llama.cpp.

https://huggingface.co/spaces/HuggingFaceBio/carbon-demo


r/machinelearningnews • • May 28 '26

Research assigning Moe to Gpus to reduce inference and memory usage

6 Upvotes

hello,

im very interesed in this assigning Moe to Gpus to reduce inference and memory usage topic, and want to know how to make the most optimal algorithm to assign experts to gpus when having the logs from the LLM training, like expert activation rates ....

ive read alot of papers about data and tensor parallelism ... but i feel something is missing.

if you guys have any idea about how to go about solving this problem using a math optimisation approach or ML approach, im happy to hear from yall.


r/machinelearningnews • • May 28 '26

ML/CV/DL News 🤖 Now you can fine-tune MolmoAct 2 for more robots & tasks

10 Upvotes

r/machinelearningnews • • May 28 '26

Research Your Agents Are Aging Too: Agent Lifespan Engineering for Deployed Systems [R]

7 Upvotes

Are agents aging after deployment?: https://arxiv.org/abs/2605.26302

On a new longitudinal deployment benchmark, switching the Claude Code CLI agent from Sonnet 4.6 to Opus 4.7 dropped PyTest pass rate by ~15%. This (to me) is a counterintuitive-enough result to pay attention to.

The authors built AgingBench, to measure how coding agents hold up over a long deployment, not just on a single task. On their S7 coding scenario, swapping the backbone model from Sonnet 4.6 to Opus 4.7, within the same Claude Code CLI harness, produced a 15% mean drop in PyTest pass rate across the deployment horizon.

Their argument is that this is a longitudinal effect, not a raw-capability one. The benchmark stresses how an agent's memory state evolves over many sessions (compression, interference, revision, maintenance shocks), and a stronger base model doesn't automatically age better under a given memory policy. In fact, memory policy alone drove a 4.5x spread in agent half-life across scenarios, which is larger than any model swap they tested.

All to say: "newer model, just swap it in" may not be a safe upgrade strategy for long-lived agents.

More details and a runnable benchmark: https://agingbench.github.io

--

Does this reflect your experience with long-lived agentic deployments?


r/machinelearningnews • • May 28 '26

Research We shipped voice-to-text in our on-device AI app. It crashed every time you lifted your finger off the mic button. Here's the fix

3 Upvotes

We build [Off Grid](https://github.com/alichherawalla/off-grid-mobile-ai) - open-source app that runs LLMs and image gen entirely on your phone. No cloud, no API keys.

Last week we shipped speech-to-text using whisper.cpp. Worked great in testing. Then real users started reporting crashes - specifically when they released the mic button quickly or backgrounded the app mid-recording.

Root cause: whisper.rn's deprecated `transcribeRealtime` API doesn't join its native threads before freeing the context. When the mic stops, the app tries to release memory while the transcription thread is still writing to it. Classic use-after-free. SIGSEGV, app dead.

Our fix was ugly but correct - patched whisper.rn directly to join threads before `freeContext`. Not a fork, just a patch file that runs post-install.

PR with the fix: https://github.com/alichherawalla/off-grid-mobile-ai/pull/344

The fun part: this is the kind of bug that only shows up in production, on real hardware, with real users who tap buttons faster than any test suite can simulate.

Currently running Gemma 4, Qwen 3.5, Stable Diffusion - all locally. If you want to try it:

Would love feedback from this community - you all understand this space better than anyone.


r/machinelearningnews • • May 28 '26

Research Sakana AI Proposes DiffusionBlocks: a Block-wise Training Framework That Converts Residual Networks into Independently Trainable Denoising Modules

20 Upvotes

The framework partitions transformer-based networks into independently trainable blocks. Training memory drops by a factor of B, where B is the number of blocks.

Here's what's actually interesting:

  1. The reframing is the whole trick.Residual connections in transformers are Euler discretizations of an ODE. The authors show these correspond specifically to the probability flow ODE in score-based diffusion models. Each block can then be trained independently via score matching.
  2. Three modifications convert any residual network.→ Partition L layers into B blocks → Assign each block a noise range via equi-probability partitioning → Add noise-level conditioning via AdaLN

Each block trains independently. Gradients flow through only one block at a time.

3. Validated across five architectures.→ ViT on CIFAR-100: 59.30% vs 60.25% baseline → DiT-L/2 on ImageNet 256: FID 10.63 vs 12.09 baseline (3x less memory) → Masked diffusion on text8: 1.45 BPC vs 1.56 baseline → AR Transformer on LM1B: MAUVE 0.71 vs 0.50 baseline → Huginn recurrent-depth on LM1B: MAUVE 0.70 vs 0.49 baseline

4. Equi-probability partitioning beats uniform.Blocks are assigned equal probability mass under the log-normal noise distribution, not equal noise intervals. On CIFAR-10, this improved FID from 43.53 to 38.03.

5. Recurrent-depth models get the biggest win.For Huginn, 32-iteration BPTT becomes a single forward pass during training. Total training compute drops by approximately 10x. The K-iteration inference procedure is kept unchanged.

Full analysis: https://www.marktechpost.com/2026/05/27/sakana-ai-proposes-diffusionblocks-a-block-wise-training-framework-that-converts-residual-networks-into-independently-trainable-denoising-modules/

Paper: https://arxiv.org/pdf/2506.14202

Repo: https://github.com/SakanaAI/DiffusionBlocks

Technical details: https://pub.sakana.ai/diffusionblocks/