Liquid-Guided Contextual Sparsity: Continuous-Time Routing and Low-Rank Residual Compensation for Compact Language Models

Small Language Models (SLMs) deployed on edge devices remain bottlenecked by dense feed-forward SwiGLU blocks, which account for 75%–88% of per-layer parameters and memory bandwidth during single-stream autoregressive decoding. Existing contextual sparsity and Mixture-of-Depths routers typically rely on stateless linear projections that score each token in isolation, ignoring the continuous evolution of semantic and syntactic complexity across a sequence. In this work, we investigate coupling a frozen SLM with an ultra-lightweight Closed-form Continuous-time (CfC) Liquid Neural Network (0.03%–0.11% of backbone parameters) acting simultaneously as a stateful block-sparsity router and a pruned-proportional low-rank residual compensator. To ensure rigorous Iso-FLOPs evaluation, we introduce a closed-loop threshold bisection protocol that explicitly deducts all router and compensator MACs from the target MLP compute budget, alongside a learnable initial liquid equilibrium state h₀ that eliminates cold-start activation collapse at t=0. Evaluating across two model families and scales—SmolLM2-135M (30-layer Llama-GQA) and Qwen2.5-0.5B (24-layer Qwen2-GQA)—we uncover a clear scale-dependent redundancy regime. On the highly compressed SmolLM2-135M, stateful liquid routing reduces WikiText-2 test perplexity by 37.6% over a stateless MLP router and by 29.6% over a parameter-identical zero-state (h_{t-1}=0) CfC ablation at aggressive 50% Iso-FLOPs, while achieving strict Pareto dominance on zero-shot downstream transfer (+3.0% on HellaSwag and +2.0% on ARC-Easy over h_{t-1}=0 while activating fewer blocks). On the wider Qwen2.5-0.5B, liquid routing outperforms a parameter-matched static compensator router at moderate ~70.5% sparsity (-18.5% held-out KL divergence), and zero-copy 3D block-packed execution delivers a 1.56× wall-clock MLP speedup over dense CPU execution in DRAM-bandwidth-bound regimes.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24547570
Primary Topic
Advanced Neural Network Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Liquid-Guided Contextual Sparsity: Continuous-Time Routing and Low-Rank Residual Compensation for Compact Language Models

Enzo Dardin
Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
preprint

Liquid-Guided Contextual Sparsity: Continuous-Time Routing and Low-Rank Residual Compensation for Compact Language Models

Enzo Dardin
preprint en

Abstract

Small Language Models (SLMs) deployed on edge devices remain bottlenecked by dense feed-forward SwiGLU blocks, which account for 75%–88% of per-layer parameters and memory bandwidth during single-stream autoregressive decoding. Existing contextual sparsity and Mixture-of-Depths routers typically rely on stateless linear projections that score each token in isolation, ignoring the continuous evolution of semantic and syntactic complexity across a sequence. In this work, we investigate coupling a frozen SLM with an ultra-lightweight Closed-form Continuous-time (CfC) Liquid Neural Network (0.03%–0.11% of backbone parameters) acting simultaneously as a stateful block-sparsity router and a pruned-proportional low-rank residual compensator. To ensure rigorous Iso-FLOPs evaluation, we introduce a closed-loop threshold bisection protocol that explicitly deducts all router and compensator MACs from the target MLP compute budget, alongside a learnable initial liquid equilibrium state h₀ that eliminates cold-start activation collapse at t=0. Evaluating across two model families and scales—SmolLM2-135M (30-layer Llama-GQA) and Qwen2.5-0.5B (24-layer Qwen2-GQA)—we uncover a clear scale-dependent redundancy regime. On the highly compressed SmolLM2-135M, stateful liquid routing reduces WikiText-2 test perplexity by 37.6% over a stateless MLP router and by 29.6% over a parameter-identical zero-state (h_{t-1}=0) CfC ablation at aggressive 50% Iso-FLOPs, while achieving strict Pareto dominance on zero-shot downstream transfer (+3.0% on HellaSwag and +2.0% on ARC-Easy over h_{t-1}=0 while activating fewer blocks). On the wider Qwen2.5-0.5B, liquid routing outperforms a parameter-matched static compensator router at moderate ~70.5% sparsity (-18.5% held-out KL divergence), and zero-copy 3D block-packed execution delivers a 1.56× wall-clock MLP speedup over dense CPU execution in DRAM-bandwidth-bound regimes.

Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Liquid-Guided Contextual Sparsity: Continuous-Time Routing and Low-Rank Residual Compensation for Compact Language Models — Enzo Dardin · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS