MCP
KL

Kan Liu

38 papers in the library

Papers

30
GC-MoE K3: A Green-Context Role Graph for Latent Mixture-of-Experts Decode
Yong LiHaoyu WangKan LiuTao Lan
GC-MoE K3 is a datacenter Blackwell implementation that schedules the full feed-forward evaluation of Kimi K3—expert scoring and selection, latent projection, expert-parallel token exchange, routed and shared branch computation, and normalization/projection of the routed sum—as a single CUDA Graph across two Green Contexts. Five base roles cover projection, routing, dispatch, expert computation, and finalization, while dispatch fills the routed input ring during shared-expert computation and finalize overlaps routed reduction/RMSNorm with output-projection weight loading; conditional roles reuse the communication partition and reduce split-$K$ partials. On GB200 at EP8/16/32, it beats the paired SGLang-style reference in all 24 configurations (mean $1.1324\times$), with $1.3651\times$ versus historical vLLM-style measurements on the same shapes, and the paired numerical suite passes all 142 cases and 2,936 rank checks.
arXivarXiv · · November 23, 2026
0
GC-MoE on SM120: Overlapping Expert-Parallel Token Dispatch with Warp-Level FP8xFP4 Block-Scaled MMA on Consumer Blackwell
Yong LiHaoyu WangKan LiuTao Lan
This paper rebuilds the GC-MoE expert-parallel decoding operator, previously fused into a persistent CUDA Graph on Hopper and datacenter Blackwell, for SM120 consumer GPUs over PCIe, where block-scaled tensor cores are exposed only through warp-level mma.sync.aligned.kind::mxf8f6f4 without tensor memory, two-CTA MMA, or cluster multicast. The kernel is built around a swap-AB warp-level block-scaled MMA placing FP4 weights in the register A operand and FP8 activations in B, together with SM120-specific mechanisms for scale-byte selection, token tiling, expert-granular streaming dispatch, and BF16 return. On 8xRTX PRO 5000 it outperforms the FlashInfer CuTe DSL W4A8 MegaMoE and Cake MegaMoE across 18 decode points, with all numerical checks passing.
arXivarXiv · · November 12, 2026
0
ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation
Jin-Fei QiYiduo LiJiang-Xin ShiKan LiuTao LanHanlin TangYu-Feng Li
ADIndex is a layer-adaptive, distillation-driven indexing method for token-level sparse attention that targets the indexer's full-prefix scoring, which can exceed 50% of prefill GPU time at long context. Motivated by pronounced inter-layer heterogeneity, it combines a layer-wise calibration strategy accommodating cross-query retrieval overlap, group-level distillation that trains adaptive layer-wise group indexers to capture salient per-query retrieval signals, and a low-latency inference strategy that shares token banks within query groups to cut repeated full-prefix scans while retaining query-specific refinement. On DeepSeek-V3.2 and GLM-5.1, ADIndex keeps near-lossless performance on LongBench, LongBench v2, and RULER and yields up to 6.22x prefill and 3.40x decoding kernel speedups at 256K context, plus 1.54x end-to-end serving speedup at 128K.
arXivarXiv · · November 7, 2026
0
GC-MoE: Overlapping Expert-Parallel Token Dispatch with FP8/FP4 Grouped GEMM via CUDA Green Contexts
Yong LiKan LiuTao Lan
GC-MoE is an open-source FP8/FP4 MoE inference operator for NVIDIA Hopper and Blackwell GPUs that uses CUDA Green Contexts to split the device into a small communication partition and a large compute partition, giving dispatch and GEMM separate kernels, resource budgets, and synchronization domains instead of the shared-SM overlap used in fused operators such as DeepGEMM's Mega MoE. A three-node CUDA Graph (four on Hopper with fused shared experts) launches dispatch and grouped-GEMM as concurrent roots, a token-ring handshake starts computation on the first filled ring blocks, and double-buffered receive counters remove the trailing cross-rank barrier; the compute partition uses operand-swapped tcgen05 block-scaled MMA on Blackwell and register-A WGMMA with in-register FP4 decoding on Hopper. On 8 H20 GPUs it accelerates DeepSeek-V4.1-Flash decode by 1.188x on average (peaks 1.296x and 1.353x), and on 8 B300 GPUs it accelerates GLM-5.2 and DeepSeek-V4.1-Flash by 1.106x (1.123x with fused shared experts, peak 1.209x), beating Mega MoE at all 54 measured points at matched accuracy while reserving only 20 of 148 B300 SMs for dispatch.
arXivarXiv · · November 3, 2026
0
When Shards Fly: Cross-Tensor In-Flight Conversion for Low-Latency, Low-Memory Weight Updates in Disaggregated RL
Jiayu XiaoYe WangZhi ZhangJiarui GuoKan LiuTao LanMinchen Yu
ShardFly reduces latency and GPU-memory overheads in synchronous policy weight updates for disaggregated LLM reinforcement learning by fusing the entire update into a single per-rank transfer kernel. A Planner compiles shard mappings, quantization dependencies, and replica routes into cross-tensor schedules; an Executor runs them in one kernel, combining layout conversion, quantization, GPU-initiated communication, and destination writes. On up to 32 H20 GPUs, ShardFly achieves complete BF16 update speedups of 1.26--27.92x over four baselines, and improves end-to-end rollout throughput by 5.49--6.71% in GRPO.
arXivarXiv · · October 31, 2026
0
RTP-LLM: Building an Evolvable and Reliable LLM Inference Engine at Alibaba Scale
Jiarui GuoZhi Zhang…Kan Liu
At Alibaba, rapid LLM evolution and inference technique changes make model enablement a recurring production task. To reconcile this with reliability across heterogeneous environments, the authors present RTP-LLM, an open-source production inference engine deployed at Alibaba. Its architecture separates model-specific execution from shared request processing, state management, and resource coordination, with explicit interfaces localizing compatible model changes while reusing common serving mechanisms. RTP-LLM evolved from exploratory system to shared engine supporting ~100 models and processing hundreds of trillions of tokens daily, offering lessons for scalable, evolvable inference.
arXivarXiv · · October 31, 2026
0
SWIFT: Self-guided Weak-to-strong dIFfusion models via Target extrapolation
Yanjin HeCuifeng ShenWanzhou LeiMaohua LiTao LanKan LiuHanlin TangQing Qu
Swift is a self-guided diffusion training method that uses a frozen weak denoiser, such as an early checkpoint, to improve a stronger model without inference overhead. For each noisy input, it extrapolates the clean regression target away from the weak denoiser's prediction, amplifying underfit components. This requires no backpropagation during main-model training. The method supports conditional and unconditional generation without label dropout. A spectral analysis in an RKHS explains the mechanism, proving a nonempty range of extrapolation strengths yields lower posterior-mean error than standard training. Experiments on CIFAR-10 and ImageNet-256 show improvements, with ImageNet-256 surpassing baseline FID using roughly half the compute.
arXivarXiv · · October 19, 2026
0
0
Adversarial Gradient Forcing for Robust Few-Step Autoregressive Video Generation
Chenxi XiaYixuan XuShan LiuJiapeng WangMaohua LiHanlin TangKan LiuTao LanWeiyi LuXinggao Liu
Autoregressive video models suffer error accumulation because they are highly sensitive to perturbations in their own generated histories, a problem the paper terms the local history robustness gap. To address it, the authors propose Adversarial Gradient Forcing (AGF): it selects adversarial perturbations of self-generated histories using distribution matching gradients from future block predictions, then jointly trains the generator on original and perturbed histories. AGF achieves the highest VBench Total score on 60-second generation and best visual quality on four-minute generation, using only 5-second training rollouts.
arXivarXiv · · October 10, 2026
0
0
Super-Resolution in The Right Latent Space: A Frozen Vision-Foundation Substrate
Wanzhou LeiCuifeng ShenYanjin HeMaohua LiHua YuanPer-Olof PerssonTao LanKan LiuHanlin Tang
This paper argues that real-world super-resolution should be performed by mapping degraded image embeddings back onto the manifold of natural sharp images in a suitable latent space, rather than in reconstruction-oriented or pixel spaces. It proposes the frozen DINOv3-L latent space as such a substrate, where degraded images embed near the manifold with hierarchical information. Trained on this substrate, the 415M-parameter model RAESR achieves the best fidelity-perception trade-off among state-of-the-art restorers on RealSR, DRealSR, LSDIR, and DIV2K-Val, at 37 ms per $512\times512$ image on an H20 GPU, while a VAE-latent variant loses on every metric.
arXivarXiv · · October 3, 2026
0
0
Adaptive Context Parallelism for Production LLM Serving
Jiarui GuoRongle WangPeijun HuangZongwei LvZiqing WangKan LiuTao LanLin QuXiaolin WangTong Yang
Vertumnus is an adaptive context-parallelism (CP) serving system for LLMs that treats CP degree as a per-request and per-worker variable. At request level, it routes each request to a worker with a suitable CP degree using a placement cost that combines predicted queuing delay, cache-aware prefill time, and GPU time. At cluster level, it adjusts worker composition via seconds-scale split/merge operations as workload changes. A global prefix-cache management policy coordinates cache placement and replication across workers with different CP degrees, preserving locality during dynamic request and worker changes. On a 64-GPU cluster, Vertumnus reduces mean TTFT by up to 28.1% and improves token-weighted SLO attainment by up to 13.3 percentage points over the strongest baseline.
arXivarXiv · · September 4, 2026
0
0
SCOPE: Subspace Clustering with Online Per-Head Top-K Estimation for Sparse Video Attention
Qi ZhaoQirui LiHanlin TangYiduo LiZhen GuoCuifeng ShenChao XuZhaosheng ChiXiaojin LuKan LiuTao LanLin Qu  +1
SCOPE is a training-free sparse attention framework for video Diffusion Transformers that reduces quadratic self-attention cost. It partitions post-RoPE keys into temporal, height, and width subspaces, clusters each independently, and uses centroid scores to obtain per-key proxy scores. An online per-head Top-$k$ estimation derives a head-specific $k$ from the average of initial retained key counts, weighted by query cluster size, adding extra keys only where initial counts fall below this value. This addresses the fine-grained key distinction and adaptability limitations of prior proxy-based methods. Across six model–task configurations, SCOPE achieves up to $1.99\times$ end-to-end speedup on 720p HunyuanVideo with $28.46$ dB PSNR relative to dense attention.
arXivarXiv · · August 13, 2026
0
0
Text Template Tokens Are Implicit Semantic Registers in Diffusion Transformers
Maohua LiQirui LiYanke ZhouYiduo LiZhaosheng ChiChao XuCuifeng ShenYixuan XuHanlin TangKan LiuTao LanLin Qu  +1
This paper shows that chat-template tokens in diffusion transformers (DiTs) act as implicit semantic registers that maintain object identity during generation, despite carrying little prompt-specific information. Using a causal framework, the authors find these tokens acquire identity indirectly from image latents, not from prompt tokens. They also reveal a division of labor across heads and depth, and derive a training-free pruning rule that removes causally inert heads, reducing joint-attention FLOPs by 20% at a 1.4-point GenEval accuracy cost.
arXivarXiv · · July 21, 2026
0
0
C2^2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference
Chuheng DuJunyi ChenHanlin TangKan LiuTao LanLin QuChaoyue NiuShengzhong LiuGuihai ChenFan Wu
C$^2$KV is a unified framework for non-prefix key-value (KV) cache reuse that jointly optimizes KV extraction and inference-time concatenation. It learns a composable, compressed, and position-agnostic KV cache manifold via a lightweight sidecar Extractor with learnable compression tokens and structured attention flow, enabling modular KV representations reusable without modifying the base model. A compression-concatenation co-training strategy aligns extraction representations with downstream reuse. Experiments show up to 17$\times$ inference speedup under long contexts while preserving generation quality.
arXivarXiv · · July 20, 2026
0
6
RTP-LLM: High-Performance Alibaba LLM Inference Engine
Boyu TanJiarui GuoZongwei LvHanbo SunTong YangKan LiuXinfei ShiZetao HuYaxin YuChi ZhangJianning ZhangXi Yang  +17
RTP-LLM is a high-performance inference engine for industrial-scale LLM deployment, deployed at Alibaba serving over 100 million users. Its key innovation is a Prefill-Decode Disaggregation architecture that decouples compute-intensive prefill from memory-bound decode phases, combined with hierarchical multi-tiered KV cache management for efficient cache reuse. Evaluations on models from 8B to 235B parameters show 4.7x-6.3x faster model loading, 35-37% TTFT P95 latency reduction with 215% cache reuse improvement, and 1.12x-2.48x throughput gains in speculative decoding versus vLLM and SGLang.
arXivarXiv · · May 28, 2026
0
2
RT-Lynx: Putting GEMM Sparsity in the Right Place for Diffusion Models
Xing CongHanlin TangKan LiuTao LanLin QuChenhao Xie
RT-Lynx shifts the target of N:M semi-structured sparsity from weights to activations in diffusion transformers. It observes that activations are intrinsically sparse and more robust to such sparsification than weights. Applying N:M pruning to activations with error-compensation preserves generation quality while achieving up to 1.55x speedup in linear layers via custom CUDA kernels, substantially accelerating inference.
arXivarXiv · · May 26, 2026
0
1
Rethinking Cross-Layer Information Routing in Diffusion Transformers
Chao XuMaohua LiQirui LiYixuan XuYanke ZhouYunhe LiCuifeng ShenHanlin TangKan LiuTao LanLin QuShao-Qun Zhang
This paper reexamines the residual stream in Diffusion Transformers (DiTs), which is inherited from the original Transformer despite extensive redesign of other components. The authors identify three symptoms of traditional residual addition: monotonic forward magnitude inflation, sharp backward gradient decay, and block-wise redundancy. They propose Diffusion-Adaptive Routing (DAR), a drop-in residual replacement featuring learnable, timestep-adaptive, non-incremental aggregation over sublayer output histories. On ImageNet $256\times256$, DAR improves SiT-XL/2 FID from 9.67 to 7.56 and achieves $8.75\times$ faster convergence, also accelerating REPA training and aiding fine-tuning and distillation.
arXivarXiv · · May 20, 2026
0
2
Linear-DPO: Linear Direct Preference Optimization for Diffusion and Flow-Matching Generative Models
Kesong LiYixuan XuKuo-kun TsengWeiyi LuKan LiuTao Lan
The paper identifies that the standard DPO objective, inherited from discrete NLP, is suboptimal for regression-based text-to-image generation due to an objective mismatch. It derives a generalized DPO objective covering both diffusion and flow-matching via a unified reverse-time SDE framework. Based on this, Linear-DPO replaces the sigmoid-based utility with a sustained linear utility and incorporates an EMA-updated reference model. Experiments on diffusion (SD1.5, SDXL) and flow-matching (SD3-Medium) models show its superiority.
arXivarXiv · · May 20, 2026
0
Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
Yanke ZhouYiduo LiHanlin TangMaohua LiKan LiuTao LanLin QuYuan YaoXiaoxing Ma
Large language models are bottlenecked by the quadratic cost of full attention. RTPurbo exploits the intrinsic sparsity of full-attention LLMs through three observations: only a few heads need full context, long-range retrieval operates in a low-dimensional subspace (a 16-dimensional indexer suffices), and the useful token budget is query-dependent, making dynamic top- $p$ selection better than fixed top- $k$ . By retaining the full KV cache only for retrieval heads and adding a lightweight token indexer, RTPurbo achieves sparsification within a few hundred training steps, delivering up to 9.36× prefill and 2.01× decode speedups with near-lossless accuracy.
arXivarXiv · · May 16, 2026
0
5
Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
Yanke ZhouYiduo LiHanlin TangMaohua LiKan LiuTao LanLin QuYuan YaoXiaoxing Ma
The paper proposes RTPurbo, which converts a standard full-attention LLM into a highly sparse long-context model with only a few hundred training steps, avoiding native sparse pretraining or heuristic token eviction. It rests on three observations: only a small subset of heads needs full long-context processing; long-range retrieval is governed by a low-dimensional subspace, so a 16-dimensional indexer suffices; and the useful token budget is query-dependent, favouring dynamic top-$p$ over fixed top-$k$ selection. RTPurbo keeps the full KV cache only for retrieval heads and adds a lightweight token indexer. Experiments report near-lossless long-context and reasoning accuracy with up to $9.36\times$ prefill speedup at 1M context and about $2.01\times$ decode speedup.
OpenReviewOpenReview · · May 5, 2026
0
Rethinking Cross-Layer Information Routing in Diffusion Transformers
Chao XuMaohua LiQirui LiYixuan XuYanke ZhouYunhe LICuifeng ShenHanlin TangKan LiuTao LanLin QuShao-Qun Zhang
The paper empirically diagnoses three defects of the inherited residual stream in Diffusion Transformers — magnitude inflation, vanishing gradients, and block-wise redundancy — and introduces Diffusion-Adaptive Routing (DAR), a drop-in replacement that learns timestep-adaptive, non-incremental aggregation over all prior sublayer outputs. On ImageNet $256\times256$, DAR improves SiT-XL/2 from $9.67$ to $7.56$ FID and matches baseline converged quality with $8.75\times$ fewer iterations; combined with REPA it yields $2\times$ early-stage acceleration, and it also transfers to fine-tuning of large T2I models and distribution matching distillation.
OpenReviewOpenReview · · April 17, 2026
0
LegoDiffusion: Micro-Serving Text-to-Image Diffusion Workflows
Lingyun YangSuyi LiTianyu FengXiaoxiao JiangZhipeng DiWeiyi LuKan LiuYinghao YuTao LanGuodong YangLin QuLiping Zhang  +1
LegoDiffusion micro-serves text-to-image diffusion workflows by decomposing each workflow into independently managed model-execution nodes, contrasting with existing systems that treat workflows as opaque monoliths. This decomposition enables per-model scaling, model sharing, and adaptive model parallelism. LegoDiffusion sustains up to 3x higher request rates and tolerates up to 8x higher burst traffic compared to prior serving systems.
arXivarXiv · · April 9, 2026
1
0
Rethinking Retrieval-Augmentation as Synthesis: A Query-Aware Context Merging Approach
Jiarui GuoYuemeng XuZongwei LvYangyujia WangXiaolin WangKan LiuTao LanLin QuTong Yang
MergeRAG rethinks retrieval-augmentation as a query-aware synthesis problem rather than static top-k selection. It uses a scoring agent and a dual-pathway mechanism: Symmetric Merging consolidates weak signals to recover bridging evidence from the long tail, while Asymmetric Merging applies entropy-guided anchoring to eliminate redundancy. A Hierarchical Parallel Merging strategy further reduces information loss. On standard benchmarks, MergeRAG achieves up to 13.7 points improvement in F1 and 11.5 points in Exact Match over state-of-the-art RAG baselines.
arXivarXiv · · March 18, 2026
0
0
Adaptive Multi-Objective Tiered Storage Configuration for KV Cache in LLM Service
Xianzhe ZhengZhengheng Wang…Kan Liu
Kareto is a KV-cache resource manager that formulates tiered storage configuration for LLM inference as a multi-objective optimization problem. Observing non-analytic objective functions with complex coupling, it uses diminishing-return-guided pruning to approximate the Pareto frontier across cost, throughput, and latency. A fine-grained adaptive tuner further manages cache by eviction policies and block access patterns. On real traces, Kareto outperforms fixed setups, improving throughput by up to 9.3%, reducing latency by up to 58.3%, or lowering cost by up to 20.2% under respective objectives.
arXivarXiv · · February 25, 2026
0
RT-Lynx: Putting GEMM Sparsity in the Right Place for Diffusion Models
Xing CongHanlin TangKan LiuTao LanLin Quchenhao xie
RT-Lynx shifts diffusion-model sparsity from weights to activations. Observing that Diffusion Transformer activations are intrinsically sparse and more robust to N:M sparsification than weights, it applies N:M sparsification to activations with error compensation, preserving generation quality while reducing FLOPs. Optimized CUDA kernels achieve up to 1.55× average speedup in linear layers across models.
OpenReviewOpenReview · · January 8, 2026
0
EAST: Environment-Aware Stylized Transition Along the Reality-Virtuality Continuum
Xiaohan ZhangKan LiuYangle LiuFengze LiJieming MaYue Li
EAST is a framework for seamless transitions along the reality-virtuality continuum during VR gaming interruptions. It uses style-transferred 3D Gaussian Splatting to convert real-world interruptions into the virtual environment while preserving aesthetic consistency. Qualitative user studies show improved cognitive comfort and emotional continuity, and quantitative experiments confirm maintained visual coherence across diverse VR styles.
arXivarXiv · · November 27, 2025
0
1
Endo-G2^{2}T: Geometry-Guided & Temporally Aware Time-Embedded 4DGS For Endoscopic Scenes
Yangle LiuFengze LiKan LiuJieming Ma
Endo-G$^{2}$T introduces a geometry-guided and temporally aware training scheme for time-embedded 4D Gaussian splatting (4DGS) in dynamic endoscopic scenes. It addresses early geometric drift by distilling confidence-gated monocular depth into supervision with scale-invariant depth and depth-gradient losses, applied via a warm-up-to-cap schedule to softly inject priors without overfitting. A time-embedded Gaussian field with rotor-like rotation parameterization models dynamics in XYZT, and keyframe-constrained streaming under a max-points budget improves efficiency. On EndoNeRF and StereoMIS-P1, it achieves state-of-the-art monocular reconstruction results.
arXivarXiv · · November 26, 2025
0
RecGPT Technical Report
Chao YiDian Chen…Kan Liu
Recommender systems typically optimize for past user interactions, causing overfitting to historical preferences and filter bubbles. RecGPT proposes an intent-centric framework that integrates large language models (LLMs) into user interest mining, item retrieval, and explanation generation, transforming log-fitting into intent-driven recommendation. It uses a multi-stage training paradigm with reasoning-enhanced pre-alignment and self-training guided by a Human-LLM judge. Deployed on Taobao, it improves content diversity, user satisfaction, and platform conversions, showing LLM-driven intent-centric design can create a sustainable recommendation ecosystem.
arXivarXiv · · July 30, 2025
1
35
InstGenIE: Generative Image Editing Made Efficient with Mask-aware Caching and Scheduling
Xiaoxiao JiangSuyi LiLingyun YangTianyu FengZhipeng DiWeiyi LuGuoxuan ZhuXiu LinKan LiuYinghao YuTao LanGuodong Yang  +3
InstGenIE accelerates diffusion-based generative image editing by reusing intermediate activations from prior inferences to skip computation on unmasked areas. It employs a bubble-free pipeline that overlaps cache loading with computation, a continuous batching strategy that lets new requests join a batch after a single denoising step, and a load balancer that accounts for heterogeneous masks. The system achieves up to 3× higher throughput and 14.7× lower latency compared to state-of-the-art serving systems.
arXivarXiv · · May 27, 2025
0
2
DASH: Input-Aware Dynamic Layer Skipping for Efficient LLM Inference with Markov Decision Policies
Ning YangFangxin LiuJunjie WangTao YangKan LiuHaibing GuanLi Jiang
DASH is an adaptive layer-skipping framework for efficient LLM inference. It models per-token skipping decisions as a Markov Decision Process, using intermediate representations to choose which layers to compute. A lightweight compensation mechanism injects differential rewards to mitigate performance loss, and an asynchronous execution strategy overlaps computation with policy evaluation to reduce overhead. Experiments show significant acceleration with competitive task performance across multiple LLM architectures and benchmarks.
arXivarXiv · · May 23, 2025
0
4
QCP: A Practical Separation Logic-based C Program Verification Tool
Xiwei WuYueyang FengXiaoyang LuTianchuan LinKan LiuZhiyi WangShushu WuLihan XieChengxi YangHongyi ZhongZihan ZhangJuanru Li  +3
QCP is a C program verification tool that combines automatic checking with interactive proof in Rocq via separation logic. It uses symbolic execution and an entailment solver to discharge routine verification obligations automatically, routing complex ones to Rocq for manual proof. A VS Code extension supports proof efficiency and understanding of program behavior and verification outcomes.
arXivarXiv · · May 19, 2025
0
6
Authors with the same name
Kan Liu · 19 papers
Kan Liu #0003 · 3 papers
Frequent collaborators
Tao Lan (26)
Lin Qu (16)
Hanlin Tang (13)
Maohua Li (8)
Cuifeng Shen (6)
Yiduo Li (5)
Jiarui Guo (5)
Yinghao Yu (5)
Yixuan Xu (5)
Weiyi Lu (5)
Yanke Zhou (5)
Yong Li (4)