Sampling from a categorical distribution is mathematically simple, but in large-vocabulary decoding, it often triggers extra memory traffic and extra kernels after the LM head. We present FlashSampling, an exact sampling primitive that fuses sampling into the LM-head matmul and never materializes the logits tensor in HBM. The method is simple: compute logits tile-by-tile on chip, add Gumbel noise, keep only one maximizer per row and per vocabulary tile, and finish with a small reduction over tiles. In tensor-parallel decoding, FlashSampling replaces the all-gather of logits with streaming peer-to-peer writes: This overlaps GPU-to-GPU communication with computation and HBM loads across up to 8 GPUs, with near-ideal scaling at large batch sizes. Our kernel is exact because argmax decomposes over partitions; grouped variants for online and tensor-parallel settings are exact by hierarchical factorization of the categorical distribution. FlashSampling demonstrates kernel-level speedups on decode workloads across 4 different datacenter GPUs (H100, H200, B200, B300), and in end-to-end vLLM experiments, it reduces time per output token by up to $10%$ on the models we test. These results show that exact sampling, with no approximation, can be integrated into the matmul itself, consolidating the bandwidth-bound sampling step in an efficient epilogue.
Outlier-weighed Layerwise Sampling for LLM Fine-tuning
Dalian University of Technology(大连理工大学);University of Surrey(Surrey大学);Eindhoven University of Technology(埃因霍温理工大学);University College London(伦敦大学学院);University of Oxford(牛津大学)
CoMemNet: A Continual Memory Network with Drift-Aware Sampling for Traffic Prediction
College of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学学院);College of Computer Science and Technology, Zhejiang University of Technology(浙江工业大学计算机科学与技术学院);School of Automation, Nanjing University of Science and Technology(南京理工大学自动化学院)
FastGL: A GPU-Efficient Framework for Accelerating Sampling-Based GNN Training at Large Scale
Institute of Automation, CAS(中国科学院自动化研究所);School of Future Technology, University of Chinese Academy of Sciences(中国科学院大学未来技术学院);Shanghai Jiao Tong University(上海交通大学);AiRiA
PromptGCN: Bridging Subgraph Gaps in Lightweight GCNs
School of Artificial Intelligence and Big Data, Hefei University(合肥大学人工智能与大数据学院);School of Computer Science and Information Engineering, Hefei University of Technology(合肥工业大学计算机与信息工程学院)
Breaking the Frozen Subspace: Importance Sampling for Low-Rank Optimization in LLM Pretraining
Rice University(Rice大学);University of North Carolina at Charlotte(北卡罗来纳州立大学);University of Minnesota Twin Cities(明尼苏达大学双城分校);University of California, Los Angeles(加州大学洛杉矶分校);Johns Hopkins University(约翰霍普金斯大学)
Ada-HGNN: Adaptive Sampling for Scalable Hypergraph Neural Networks
University of Amsterdam(阿姆斯特丹大学);Qualcomm AI Research(高通人工智能研究);University of Johannesburg(约翰内斯堡大学);College of Business and Economics, University of Johannesburg(约翰内斯堡大学商学院与经济学院)