LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learning

Bowen Ping, Zijun Chen, Tingfeng Hui, Qize Yu, Chenxuan Li +2 more
4/16/2026
cs.LGcs.CL

No official code found. Best implementation: nktkt/longact-sparse-qk (0 stars, MIT, last commit 2026-04-17).

Abstract

Reinforcement Learning (RL) has emerged as a critical driver for enhancing the reasoning capabilities of Large Language Models (LLMs). While recent advancements have focused on reward engineering or data synthesis, few studies exploit the model's intrinsic representation characteristics to guide the training process. In this paper, we first observe the presence of high-magnitude activations within the query and key vectors when processing long contexts. Drawing inspiration from model quantization -- which establishes the criticality of such high-magnitude activations -- and the insight that long-context reasoning inherently exhibits a sparse structure, we hypothesize that these weights serve as the pivotal drivers for effective model optimization. Based on this insight, we propose LongAct, a strategy that shifts from uniform to saliency-guided sparse updates. By selectively updating only the weights associated with these significant activations, LongAct achieves an approximate 8% improvement on LongBench v2 and enhances generalization on the RULER benchmark. Furthermore, our method exhibits remarkable universality, consistently boosting performance across diverse RL algorithms such as GRPO and DAPO. Extensive ablation studies suggest that focusing on these salient features is key to unlocking long-context potential.

View on arXivView PDF

Code Implementations(1)

MIT

Mathematically faithful PyTorch reference implementation of LongAct (arxiv 2604.14922)

00Apr 17, 20266 months agoMIT

Similar Papers

Cite this paper

@article{ping2026longact,
  title  = {LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learning},
  author = {Bowen Ping and Zijun Chen and Tingfeng Hui and Qize Yu and Chenxuan Li and Junchi Yan and Baobao Chang},
  year   = {2026},
  eprint = {2604.14922},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.14922v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.14922.svg)](https://codeofpaper.com/paper/2604.14922)

Discussion