rl-triton: High-Performance Triton GPU Kernels for Reinforcement Learning Credit Assignment
On the map: Deep reinforcement learning methods → RL training of language and agent models
Abstract (arXiv)
We present rl-triton, an open-source library of high-performance GPU kernels for reinforcement learning credit assignment, implemented in Triton. The core contribution is a unified associative scan framework that recasts seven distinct RL estimation algorithms - Generalized Advantage Estimation (GAE), V-Trace, Retrace(λ), TD(λ) returns, discounted returns, eligibility traces, and episodic prefix sums - as instances of a single first-order linear recurrence solved in O(log T) parallel steps. All algorithms share the same associative scan operator, with algorithm-specific fused Triton kernels constructing their recurrence coefficients on-chip. We verify the associative operator algebraically and define the treatment of terminated and truncated episodes explicitly. Benchmarks show a 1.6-5.70× full-call speedup over a vectorized torch-compile baseline in the massively parallel simulation regime (thousands of environments, short rollouts). The reported range covers all seven algorithms on both GPUs, both with and without per-step truncation handling. For most algorithms, speedups increase at longer sequence lengths, as the baseline requires more scan stages as log T grows, each adding an intermediate HBM round-trip. The library is available at https://github.com/simonsays1980/rl-triton.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RL training of language and agent models, one of 15 directions in Deep reinforcement learning methods. Builds on 24 of its 37 references that are in the map. First posted on arXiv 18 Aug 2026.
Builds on
24 of 37 references.
References · 24
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,026
- 2021Isaac Gym: High Performance GPU-Based Physics Simulation For Robot Learningcited by 998
- 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 883
- 2022Simplified State Space Layers for Sequence Modelingcited by 788
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
12 more
- 2016Safe and Efficient Off-Policy Reinforcement Learningcited by 264
- 2016Sample Efficient Actor-Critic with Experience Replaycited by 188
- 2023SpikingJelly: An open-source machine learning infrastructure platform for spike-based intelligencecited by 169
- 2025Training Agents Inside of Scalable World Modelscited by 136
- 2020Sample Factory: Egocentric 3D Control from Pixels at 100000 FPS with Asynchronous Reinforcement Learningcited by 93
- 2025Robust Autonomy Emerges from Self-Playcited by 67
- 2022Nocturne: a scalable driving benchmark for bringing multi-agent learning one step closer to the real worldcited by 56
- 2024GPUDrive: Data-driven, multi-agent driving simulation at 1 million FPScited by 45
- 2015True Online Temporal-Difference Learningcited by 16
- 2025Truncated Proximal Policy Optimizationcited by 8
- 2026Segmental Advantage Estimation: Enhancing PPO for Long-Context LLM Trainingcited by 5
- 2026UniLab: A Heterogeneous Architecture for Robot RL Beyond GPU-Dominant Paradigmscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Dr. Kernel: Reinforcement Learning Done Right for Triton Kernel Generations
- 2025AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMs
- 2025TritonRL: Training LLMs to Think and Code Triton Without Cheating
- 2026Let Credit Follow Computation: Architecture-Aware Credit Transport for Large Language Model Reinforcement Learning
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimization
- 2025Segment Policy Optimization: Effective Segment-Level Credit Assignment in RL for Large Language Models
- 2026Beyond Uniform Credit Assignment: Selective Eligibility Traces for RLVR
- 2026Hierarchical Credit Assignment for RLVR on Fused Gromov-Wasserstein Geometry