LazyFlash: Forward-Dense, Backward-Sparse Attention for Accelerated Long-Context Fine-Tuning

arXiv cs.CL Papers

Summary

LazyFlash 提出一种前向稠密、后向稀疏的注意力机制,通过梯度感知的块稀疏化在保持模型性能的同时,实现最高 5.7x 的注意力反向加速和 1.7x 的端到端训练加速,适用于长上下文 LLM 微调。

arXiv:2610.31911v1 Announce Type: new Abstract: As large language models (LLMs) process increasingly long sequences, attention becomes a major computational bottleneck. Sparse attention mostly targets inference, yet many methods still train densely or cannot support sparse training, and their added complexity makes sparsity hard to turn into wall-clock speedups, leaving dense attention widely used in practice. This paper introduces LazyFlash, a forward-dense, backward-sparse attention method built on the observation that attention training is dominated by the backward pass. LazyFlash keeps the forward pass exactly dense, so the trained model remains a standard dense model that existing systems such as vLLM can serve without any change. For the backward pass, LazyFlash proposes a gradient-aware block sparsification design that ranks query blocks by their attention-output gradient norms and skips those contributing negligibly to parameter updates, turning the dense backward into a block-sparse one. A gradient-mass budget adapts the amount of skipped computation to each head and training step, while importance sampling preserves the dense gradient in expectation. These designs are implemented inside the tiled FlashAttention backward kernel, where skipped blocks are never loaded or computed, translating gradient sparsity into real wall-clock acceleration. Experiments on long-context text and speech LLMs show that LazyFlash maintains downstream performance while achieving up to 5.7x attention-backward speedup over FlashAttention and 1.7x end-to-end training speedup.
Original Article

Similar Articles

Silencio-2: an 18M TTS with emotion and sound tags, ~20x realtime on CPU (open weights)

Reddit r/LocalLLaMA

Silencio-2 is an open-weight 18M-parameter TTS fine-tune of Kyutai's Pocket TTS that follows inline emotion and sound tags (laugh, sigh, whisper, angry, etc.) and runs ~20x realtime on CPU. The author shares training details and lessons, notably that an AST/AudioSet clip-level filter silently dropped rare sound events, so it was removed entirely.

Coding is solved* (exclusions apply)

Reddit r/LocalLLaMA

A humorously named Gemma 4 E2B fine-tune called CRAP (Compiler Replacement for Assembling Programs) that emits working x86_64 ELF binaries directly from text prompts, skipping compilers and assemblers, now at v1.1 with a browser-based WebGPU demo.

LFM3-1.7b seems impressive

Reddit r/LocalLLaMA

The author tested Liquid AI's LFM3-1.7B model (Q8_0 GGUF via llama.cpp/ROCm) for compression and summarization, reporting strong prefill/decode throughput on Strix Halo and tensor-split 7900 XTX+XT setups, plus unexpectedly coherent performance at 32k-64k context lengths for a 1.7B model.

FineDNA: the largest dataset to teach any LLM DNA (midtraining, SFT, RL)

Reddit r/LocalLLaMA

HuggingFace Bio 团队发布 FineDNA——迄今最大的 DNA/基因组学 LLM 训练数据集,包含 300B+ token 的基因组与 DNA 相关文本、约 20 万条 SFT 对话和约 9.8 万条可验证 RL 提示,以及将 Qwen3-14B 训练成最强开源 DNA 模型 Carbon-X 的完整代码与配方。