arXiv Science⌕ Search

arXiv subjects

Huy Huu Nguyen

Publications and source records attributed to Huy Huu Nguyen.

3 recordsLinked to original sources

Looped Transformers: When Does Recurrence Pay Off?

Looped Transformers repeatedly apply shared layers or blocks to evolving hidden representations, enabling deeper computation without a proportional increase in model size and, in some architectures, flexible inference depths. Despite growing interest in looped Transformers, understanding when recurrent computation improves model quality or computational efficiency remains challenging due to the diversity of design choices and evaluation settings. In this paper, we present a unified analysis of looped Transformers for language modeling and NLP along three complementary design axes: architecture, training, and inference. Beyond organizing existing approaches, we synthesize theoretical and empirical evidence to identify common patterns, characterize trade-offs, and examine the conditions under which recurrent computation is beneficial. Our analysis highlights that the benefits of parameter sharing depend on resource constraints and evaluation metrics, while reductions in recurrent computation do not necessarily translate into practical efficiency gains. Building on these findings, we propose a framework for selecting and evaluating looped Transformers under application-specific constraints and illustrate its use through two deployment scenarios. We further identify open challenges and future research directions.

cs.CL↗

Wavefront: Low-Rank Drafting with Parallel Causal Refinement for Speculative Decoding

Speculative decoding accelerates LLM inference by letting a cheap drafter propose tokens that the target model verifies in parallel. Parallel block drafters such as DFlash and P-EAGLE propose a whole block in one forward pass, but they lose the dependence between tokens in the block; DSpark restores part of it with a lightweight correction head that runs sequentially. Measuring DSpark, we find that this head overrides the base prediction on most slots, so the expensive base readout through the target's full lm_head mostly provides a seed. We therefore propose Wavefront, which follows a simple principle: shrink the base and strengthen the correction head. Wavefront replaces the full lm_head with a learned low-rank base, conditions the correction head on the whole drafted prefix within the same block, and resolves it with a few parallel Jacobi passes. A fixed pass budget makes the draft step free of data-dependent control flow, so we capture it as a single CUDA graph in vLLM with fused kernels. On Qwen3-8B, Wavefront improves throughput over xPress, DSpark and DFlash by 2.6%, 10.7% and 23.6% on average across math, code, chat and agentic benchmarks, and by 9.6%, 14.3% and 28.9% on SPEED-Bench long-context prompts. On Qwen3.8-27B it leads DFlash2, DSpark and xPress by 7.6%, 10.6% and 5.0%, and by 7.4%, 5.8% and 6.0% on the same long-context prompts. The gains persist as serving load grows to concurrency 32.

cs.AI↗

Taipan: Efficient and Expressive State Space Language Models with Selective Attention

Efficient long-context language modeling remains a significant challenge in Natural Language Processing (NLP). While Transformers dominate language tasks, they struggle with long sequences due to quadratic computational complexity in training and linearly scaling memory costs during inference. Recent State Space Models (SSMs) such as Mamba offer alternatives with constant memory usage, but they underperform in tasks requiring extensive in-context retrieval. We introduce Taipan, a novel hybrid architecture that combines Mamba-2 with Selective Attention Layers (SALs). These SALs identify tokens requiring long-range interactions, remove less important features, and then augment their representations using the attention module. This approach balances Mamba's efficiency with Transformer-like performance in memory-intensive tasks. By constraining the attention budget, Taipan extends accurate predictions to context lengths of up to 1 million tokens while preserving computational efficiency. Our experiments demonstrate Taipan's superior performance across various scales and tasks, offering a promising solution for efficient long-context language modeling.

cs.CL↗