← all video summaries
AI Engineer · Liquid AI

Lessons from pre-training small models

Maxim Labonne, head of pre-training at Liquid AI, on why edge models aren't just shrunk-down frontier models — and the architecture, scaling, and doom-loop fixes that come from treating them as their own thing.

Watch on YouTube
TL;DR

The short version

  1. Edge models have three defining constraints — memory-bound (so low knowledge capacity), task-specific, and latency-sensitive — and are not just scaled-down versions of bigger models.
  2. In tiny models the embedding layer eats the budget — 63% of params in Gemma 3 270M, 29% in Qwen3.5-0.8B — so the parameters doing actual reasoning are far fewer than the headline count.
  3. Liquid designed LFM2's gated short-convolution block by profiling on real target hardware; short convs are cheaper than sliding-window or linear attention and run faster on CPU and phone.
  4. More pre-training tokens keep paying off even at 350M params — Liquid trained a 350M model on 28T tokens and new scaling laws say that's still under-trained.
  5. Doom looping" (endless repetition) hits small reasoning models on hard tasks; SFT barely helps, but DPO and RL with verifiable rewards drop the loop rate from ~16% to near zero.

01 · Edge model deployment

Three constraints, not a shrink-ray

Labonne runs pre-training at Liquid AI, where the whole line — 350M up to 24B parameters — targets on-device deployment: phones, cars, anything where you can't reach for a datacenter. Three things separate these models from frontier ones. They're memory-bound (under 3B params, because the hardware is what it is), which gives them low knowledge capacity. They're task-specific — not general chatbots, but narrow tools that do one thing like summarization very well. And they're latency-sensitive, so throughput has to be fast.

The thesis slide: memory-bound, task-specific, latency-sensitive — "Edge models are not just scaled-down versions of bigger models."00:01:08
Main lessonSmall models have their own unique challenges. The point of the talk is that you optimize the whole stack — architecture, training, data — around those constraints rather than copying what works at frontier scale.

02 · Architecture

The embedding layer eats the budget

Look at the smallest models in each family and most of the "parameter count" isn't doing the work you'd expect. In Gemma 3 270M the embedding layer is 63% of total parameters; even Qwen3.5-0.8B sits at 29%. The effective parameters — the ones actually used for reasoning and knowledge — are the rest, so the usable model is much smaller than the headline number. The reason these embeddings are so large is distillation: the student inherits a huge vocabulary from a teacher model.

Gemma 3 270M (18 layers, 5:1 SWA/GQA) vs Qwen3.5-0.8B (24 layers, 3:1 GDN/gated attention). The grey block at the bottom is embedding — 63% and 29% of params respectively.00:03:06
Why it mattersShrink the embedding share and you free memory for effective parameters — "you could squeeze more reasoning and more performance from the same memory footprint."

03 · Short convolutions

Designed by profiling real hardware

LFM2's layer diagram looks broadly similar — a hybrid stack — but Liquid built it by on-device profiling rather than theory: implement candidate operators on the actual target chips and measure. That's how they landed on the gated short-convolution block. Short convs come out cheaper than the alternatives — sliding-window attention, gated delta net, gated linear attention, group query attention — and the cost ratio favors them, which is exactly what you want when latency is the constraint. In practice, profiling inference on CPU and on a Samsung Galaxy S25 Ultra shows LFM2 running faster and using less memory, with high GPU throughput even at high concurrency.

The LFM2.5-350M block (gated ShortConv + GQA) and the per-operator cost ratio on M4 Max CPU decode — ShortConv is the cheapest bar.00:05:20
Instead of doing more theoretical work we decided to say, okay, let's try to really implement it on the target hardware.— Maxim Labonne

04 · Scaling

350M params, 28 trillion tokens

The LFM2.5 recipe has familiar stages — pre/mid-training, SFT, preference alignment, RL — but the token count is the surprise: Liquid pre-trained a 350M model on 28 trillion tokens. By Chinchilla that's wildly past compute-optimal, but performance keeps climbing with more tokens. A scaling-laws paper by Roberts et al. (test-time scaling) puts LFM2.5-350M against new curves and finds the model is actually under-trained — they should have used even more tokens. That's good news, since more pre-training keeps working at the smallest scale and these models are cheap to train. The payoff shows in targeted benchmarks: big jumps over the previous LFM2 350M on knowledge (GPQA Diamond), instruction following (IFBench), data extraction (case-report bench), and tool use (BFCL, τ²-bench).

"Pre-training a 350M model on 28T tokens?" — the model plotted against Chinchilla and the newer proposed scaling laws.00:07:10
The strategyPick the capabilities that matter — data extraction and tool use — and be excellent there. "If it's not the best model at code, it doesn't matter. People don't use it that way anyway."

05 · Post-training

Narrow on purpose

The stages don't change between small and big models — the difference is how you run them. Supervised fine-tuning works better the narrower you go; if you have one specific function to call, that's an excellent use case, and the same logic lets you take a Hugging Face checkpoint and fine-tune it for your own task. Preference alignment (Liquid uses an on-policy, length-normalized DPO variant) brings general improvements — the model just sounds better afterward, not only on benchmarks. Reinforcement learning is remarkably efficient even at small scale; you want as many environments and tasks as possible so the model generalizes.

SFT → preference alignment → RL. The note under SFT: "more task-specific = better."00:08:46
Watch the cold startSmall models are sensitive to cold-start SFT data. If an RL task trains badly, it's often because the matching task is missing from your SFT mixture — go back, add the data, retrain.

06 · Doom looping

How small reasoning models break, and two fixes

The new failure mode is doom looping — the model repeats a sequence of words forever and never stops. It shows up worst when three things stack: a small model, a reasoning model, and a task that's too complex. Liquid attacks it in two places. Solution one is during preference alignment: for each prompt, generate five rollouts with temperature sampling (diverse, at least one shouldn't loop) plus one greedy rollout at temperature zero (expected to loop), score them all with an LLM jury, and make the best the chosen answer and the worst the rejected one — so the loop gets trained out. Solution two is RL with verifiable rewards plus a small n-gram repetition penalty: a math answer with no extractable final answer earns no reward, and the penalty discourages repetition on top.

Solution 1: on-policy DPO data generation. Prompts → policy model at T>0 and T=0 → LLM jury → chosen / rejected → heuristic filtering.00:11:56
Doom-loop ratio for LFM2.5-1.2B-Thinking: ~15.7% after pre-training, barely moved by SFT (~15%), down to 4.3% after DPO, and 0.36% after RL.00:14:24
If you do the same thing with Qwen3.5-0.8B in reasoning mode, you will see over 50% doom loops — that also shows it's just a scaled-down version of bigger models.— Maxim Labonne

07 · Agentic RL

Give the small model tools

The last constraint — memory-bound means low knowledge capacity means hallucination — has a clean fix: give the model tools. A tiny model that can Google anything you throw at it beats a base model on knowledge questions. Labonne's read from experience is that small models are very good at agentic tasks, and that's how they should be used — they don't need a big model's knowledge, they need solid reasoning to use tools reliably. Weak long-context handling has its own workaround: a recursive LM environment where the model writes Python to take a shortcut. Liquid trains for this with agentic RL across environments — terminal, search, OpenClaw, and a recursive-LM environment.

The agentic RL setup: terminal / search / OpenClaw / RLM environments feeding the policy and reference models through group computation.00:15:50
TakeawaysEdge models have real, scientifically interesting challenges; combine them with agentic tools and they perform well in a space that's currently underexplored. Liquid is now working on LFM3.