Search arXiv⌕ Search

arXiv · 2612.05572

LOON: Efficient Self-Speculative Decoding for Looped Language Models on Mobile NPUs

Abstract

Looped language models reuse weights across rounds, allowing deeper computation to improve reasoning within a fixed weight memory budget. This makes them attractive for smartphones. Sharing weights saves parameters, but generating each token still requires multiple sequential rounds of computation, slowing autoregressive decoding. We use self-speculative decoding on mobile NPUs to accelerate generation. Cross-round methods let a draft token start its first round while an earlier token advances through later rounds. This exposes parallelism within a decoding step, but existing methods struggle to exploit it fully on mobile NPUs. Tokens ready in the same step can share projection weights across rounds, but small batches can finish computing before the next weight block is ready. Even at the same batch size, attention becomes more expensive when tokens span more rounds and must read more distinct histories. At the output head, spare matrix rows offer a way to check drafts early and avoid further work on an incorrect continuation. We present LOON, a training-free inference system that accelerates self-speculative decoding for looped language models on mobile NPUs. StepPack batches projections by step to share weights. Its pipeline transfers and prepares the next block while the NPU multiplies the current one. RoundKV groups queries by round and writes KV entries in the attention kernel's native layout for direct reads. TileCheck uses spare rows in the output projection to check intermediate drafts and correct errors early. We evaluate all 27 combinations of three commercial phones, three looped models, and three benchmarks. Under the same speculative strategy, LOON delivers 1.31 to 3.94 times the decode throughput of the fastest baseline in each configuration, with no statistically significant accuracy loss and lower estimated energy per request.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zhe Dong, Guanyu Cai, Jiliang Wang. 2026-12-03. LOON: Efficient Self-Speculative Decoding for Looped Language Models on Mobile NPUs. https://searcharxiv.org/abs/2612.05572

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

ChipArc: Auditable Multi-Agent RTL Generation, Repair and Optimization with Verifier-Gated Memory

Register-transfer level (RTL) code must be both functionally correct and physically efficient in timing, area, and energy, yet LLM-based RTL agents draft plausible designs without being able to certify correctness or reliably guide repair. We present ChipArc, an auditable multi-agent framework in which models propose RTL and diagnose failures while a deterministic controller verifies each candidate and promotes only strictly verified improvements, recording every decision for offline audit. A key design choice is a single verifier-gated global memory shared across concurrent agents: each stores a bounded record of an evaluated repair (hypothesis, change, and verifier-measured outcome), so agents reuse one another's verified experiences across tasks, while excluding current-task and hidden assets (e.g., golden references). Using Kimi K3, ChipArc solves 89 of 92 tasks in CVDP's non-commercial agentic code-generation subset at the lowest mean model cost per pass among the evaluated systems. On the 43 verifier-valid ChipBench Verilog-generation tasks, it solves a mean of 38 tasks, compared with 34 for ACE-RTL and 27 for MAGE. A controlled ablation shows the shared memory raises repair coverage by about 12%. Finally, we carry the same verifier-controlled discipline all the way to physical optimization of a GCD/RSA accelerator, reporting reductions in area, delay, and energy; a bounded formal gate also exposes a protocol bug that both the functional harness and a separate 24-test regression miss.

cs.AR↗

svlang-sdk: A Zero-Dependency Multi-Domain Compiler SDK for Modular VLSI Frontend Verification and EDA

VLSI frontend flows parse the same chip five times across SystemVerilog, UPF, SDC, SystemRDL/IP-XACT, and SystemC. Disconnected tools maintain separate elaboration graphs, cache stale state, and expose unstable C++ ABIs or text dumps, forcing brittle glue scripts while IDEs and AI agents stall on full-chip re-elaboration and megabyte JSON payloads. We present svlang-sdk, a 73,892-line zero-dependency C++23 (-fno-exceptions -fno-rtti) hardware compiler spine and frozen C11 SDK (libsvlang_sdk_c). Five acyclic layers separate: (0) a Salsa-style incremental query host (AnalysisHost/AnalysisSnapshot) with durability tiers, early cutoff, cooperative cancellation, and epoch-scoped arenas; (1) five pluggable frontends (SV, UPF 3.1, SystemC 3.0, SDC, RDL/IP-XACT) bound onto one dense EntityId graph with OpenUSD-style overlays and ExplainValueSource provenance; (2) a word-level SSA RTL netlist, immutable .svdb snapshots, Hydra-style merging views, and macro-aware AtomicChange refactoring; (3) a dual-plane ABI pairing 39 C11 symbols (zero leaked C++ _Z* symbols) with the header-only Apache Arrow C Data Interface and C++23, Python, Rust, and TypeScript bindings; and (4) LSP 3.17, MCP 2026-07-28, DAP v1.71, and Surfer WCP servers. Linking svlang-sdk deleted 16,351 duplicated frontend lines from our 88,254-line sv++ simulator, drives 436 lint rules in svlang-lint, and isolates a 42,472-line consolidation seam in our 159,225-line Rust formal verifier InFormal. On arm64 macOS, all 14 C++23 test suites pass under Debug, ASan+UBSan, TSan, and Release; comment edits hit early cutoff in 10 us with flat RSS across 1,000 epochs; Arrow exports 53,005 entities in 0.9 ms (37.3x faster than JSON); and four polyglot small-tool proofs each fit under 150 lines.

cs.AR↗

HARP: Rethinking ATPG-Augmented On-Chip Random Patterns to Enhance Test Efficiency

Increasing design complexity, coupled with the emerging trend of chiplet-based heterogeneous 3D integration, necessitates substantial improvements in test efficiency in terms of the number of ATPG patterns and/or test cycles. While test cost has been a major driver behind this, 3D integration with high I/O density may also benefit from reduced external pattern application. In this paper, we present \STAR, a hybrid test generation framework that addresses the above issue by using ATPG-augmented on-chip random patterns to achieve a significant reduction in ATPG pattern count as well as overall test cycles at equivalent fault coverage compared to the same hybrid flow with fully pseudo-random patterns. Each pattern takes its primary-input bits from ATPG and its state bits from an on-chip pseudo-random number generator (PRNG), and is applied without a per-pattern scan load or unload. We show that the insertion of appropriate Design-for-Test (DFT) logic, e.g., test points, can further enhance test efficiency. We specifically note that DFT-enabled ATPG-augmented random patterns alone can provide considerably high structural coverage (avg. $\sim$89\%), leaving a small subset of random-resistant faults to be covered by structural ATPG. We have implemented \STAR~as a standalone tool integrated into a commercial test automation tool flow. Experimental analysis on open-source benchmarks, including four AI accelerators, shows promising results with 33\% improvement on average in ATPG test patterns and an average of 27\% reduction in test cycles.

cs.AR↗