MCP
LG

Lin Gan

43 papers in the library

Papers

30
Centerline-Guided Multi-Class Road Surface Segmentation
Xu OuyangLin GanDi MaSonnie ChenSanjay Boddhu
We present a centerline-guided multi-class segmentation framework for extracting road surfaces from satellite imagery, which makes road axes, transverse extent, and junction structure explicit rather than leaving them implicit in a binary mask. A hierarchical encoder supplies shared features, while predicted centerline features and soft probabilities condition specialized regular, intersection, and overpass decoders; a two-component width branch supplies transverse geometry to regular-surface decoding, and learned feature fusion produces the complete road mask. Unlike independent heads or a fixed union of component masks, this design exchanges geometric information during decoding while keeping outputs separately inspectable. On CHN6-CUG the four-semantic-output configuration reaches 65.53% complete-surface IoU, improving a binary SegFormer-B4 baseline by 1.01 percentage points and reducing false-positive pixels by 11.94%.
arXivarXiv · · November 21, 2026
0
Beyond Blossom: Accelerating MWPM Decoding for Surface Codes With Local Predecoding and Architecture-Aware Optimizations
Jiayu FuZirong ShenLin GanYiming ZhangWenjing HanXiaoming SunRiling LiGuangwen Yang
We present Beyond Blossom, a state-of-the-art CPU-based MWPM decoder for surface codes that reduces matching workload and execution overhead while preserving MWPM optimality. It combines local predecoding, architecture-aware optimization, and pipeline-wide parallelism. Across rotated surface codes with distances 9-33 and circuit-level physical error rates of 0.05%-0.3%, on a single CPU core, it achieves a 4.23$\times$ geometric-mean speedup and up to 5.58$\times$ speedup over Sparse Blossom in PyMatching. At distance 33 and a physical error rate of 0.1%, decoding 33 measurement rounds on 8 CPU cores takes 21.40 $\mu$s on average, or 0.65 $\mu$s per round.
arXivarXiv · · November 13, 2026
0
ForgeKernel: Self-Evolving Kernels Catching and Surpassing Experts and Agents
Yaojian ChenDazhi Peng…Lin Gan
ForgeKernel is a kernel-generation system that accumulates and reuses knowledge across runs while enabling continued architectural evolution. It distills validated hardware mechanisms from a high-performance reference instead of imitating source code, then seals a validated kernel as the reference for the next optimization run. Across 27 operators on NVIDIA Hopper/Blackwell and Ascend 910C, it matches or beats expert references and public bests, with geometric-mean gains of 10% and 25.1%, respectively, and ranks first on multiple CANN-Bench leaderboards.
arXivarXiv · · November 3, 2026
1
JustGoal: With Only a Goal, the AI Baseline Is Above the Expert Kernels
Yaojian ChenDazhi Peng…Lin Gan
We investigate how much expert infrastructure is needed to write high-performance GPU kernels now that foundation models are stronger. Introducing JustGoal, a goal-only baseline: a general-purpose agent receives only the optimization objective and constraints, then builds its own evaluation loop. On NVIDIA B200 GPUs, it beats open-source libraries on 8 of 10 operators (geometric mean speedups 1.14x–2.34x) and surpasses the fastest public specialized-agent kernel on 5 of 9 comparable operators. Controlled same-model comparisons and ablations find no consistent benefit from domain knowledge or workflows, suggesting specialized machinery must beat a same-model goal-only baseline.
arXivarXiv · · October 27, 2026
1
ForgeStencil: Automating Per-Case Stencil Specialization from Kernels to 100+ Real Applications
Yaojian ChenYuxuan LiWubing WanLin GanGuangwen YangZhiyuan Liu
ForgeStencil introduces per-case stencil specialization via two agents. A Kernel Agent synthesizes a per-configuration map of CUDA kernels, replacing a one-size-fits-all library that pays a "generality tax". On an A100 it achieves a geometric mean speedup of 2.35x over the best same-precision baseline across 37 operators. An App Agent rewrites application hotspots end-to-end, yielding a median 1.41x speedup on 100 real codes. This is the first demonstration that per-case synthesis is practical at this breadth, overturning two decades of reliance on reused human-authored recipes.
arXivarXiv · · September 6, 2026
1
0
Beyond Fast Contractions: Attenuation and Recovery of Matrix-Engine Speedups in High-Order Finite Elements
Yinuo WangLin GanTianqi MaoZeyu SongWubing WanJiayu FuZekun YinYuyang JinXiaohui DuanWei XueGuangwen Yang
Matrix engines offer much higher peak throughput than SIMD, but this advantage rarely translates to real applications. This paper diagnoses the gap in SPECFEM3D's stiffness operator on Arm LX2 CPUs. SME's $4\times$ single-precision peak advantage drops to $2.2\times$ for isolated tensor contractions and $1.1\times$ for the complete operator. The loss is attributed to pointwise computation, indirect field movement, synchronization, and irregular coefficient delivery. Mitigations—explicit SIMD, field-layout changes, and vector-blocked coefficient streaming—raise the full-operator speedup to $1.6\times$ at high order. A contraction-free control bounds further contraction-only gains at $1.11$--$1.32\times$, showing that realizing matrix-engine performance requires co-designing the entire operator path.
arXivarXiv · · August 10, 2026
0
1
StateFlow: Sequence Pipeline Parallelism for Long-Context Modeling with Linear Recurrence
Wenxuan ZhaoYingfa ChenXu HanWenjing HanTianbo HuangZhiyu LiAo SunJingheng XuLin GanGuangwen Yang
StateFlow is a sequence pipeline parallelism system for linear-recurrence models that partitions each sequence into chunks and schedules their execution with boundary-state propagation. This reduces activation lifetimes, improving training throughput and memory efficiency. Profile-guided nonuniform chunking balances recurrence and softmax attention in hybrid models, and state transitions are overlapped with surrounding computation. On models up to 32B parameters and 256K context length, StateFlow achieves up to \(2.22\times\) throughput improvement and \(2.45\times\) memory reduction over conventional pipeline parallelism.
arXivarXiv · · August 7, 2026
2
0
PEERS: A Parallel and Exact Effective Resistance Solver via Implicit Inversion and Augmented Symbolic Analysis
Baiyu ChenLin GanGuangwen YangWenjian Yu
PEERS is a parallel solver that computes all-pair effective resistances exactly for large graphs. It avoids the precision-memory impasse of prior methods by using an implicit inverse of the Cholesky factor, combined with a state-inherited augmented depth-first search and dynamic query updates, enabling a single parallel sweep over all edges. For graphs satisfying an $O(n^\alpha)$ separator theorem, PEERS achieves optimal parallel span $O(n^\alpha)$ with $O(nnz(L))$ space. On industrial benchmarks it averages 83.3x speedup over parallel competitors and processes a million-node graph in 18.8 seconds.
arXivarXiv · · June 30, 2026
0
0
High-Order Spectral Element Methods for Wave Propagation on ARM Multicore CPU with SME: Optimizations and Implications
Yinuo WangLin GanTianqi MaoWubing WanZekun YinWenqiang WangWei XueGuangwen Yang
This paper presents an SME-optimized implementation of the spectral element method (SEM) for wave propagation on ARM multicore CPUs with Scalable Matrix Extension (SME). The authors combine an SME-aware batched small-matrix kernel for tensor-product operators, a memory-aware hybrid MPI+OpenMP scheme, and a dispersion-based iso-accuracy study of the $(h,p)$ tradeoff on the LX2 processor. The optimized implementation achieves 4–6× full-application speedup over the original code at fixed polynomial order and outperforms non-SME baselines. Moreover, SME shifts the favorable operating point toward higher polynomial orders along the iso-accuracy frontier, reducing time-to-solution and working-set size.
arXivarXiv · · June 11, 2026
0
1
Enhancing LLM Metacognition via Cognitive Pairwise Training
Weitao LiHao ZhouXuanyu LeiFandong MengYuanhang LiuJingyi RenAnte WangXiaolong WangYuanchi ZhangFuwen LuoGuangwen YangLin Gan  +2
Cognitive Pairwise Training (CPT) is a mid-training alignment stage that improves the reasoning–metacognition trade-off in large language models. Instead of teaching response-level refusal or uncertainty, CPT uses pairwise comparisons of reasoning traces to learn a quality-discrimination boundary. At the 14B scale, CPT combined with RLVR boosts math accuracy by 2.2 points and abstention F1 by 5.6 points over standard SFT+RL. The method also shows robustness and scalability across model families and sizes.
arXivarXiv · · May 30, 2026
0
1
FastMPS: Revisit Data Parallel in Large-scale Matrix Product State Sampling
Yaojian ChenSi-Qiu GongLin GanYanfei LiuAn YangYinuo WangChao-yang LuGuangwen Yang
Fast-MPS is a multi-level parallel framework for sampling from large-scale Matrix Product States (MPS). It combines data parallelism across samples with tensor parallelism along bond dimensions, eliminating memory and I/O pressure through compression and overlapping. Evaluated on Gaussian Boson Sampling, Fast-MPS achieves over 10x speedup compared to existing simulators, scales to thousands of processes, and enables simulations with 8,176 sites and bond dimension $\chi = 10^4$, significantly outperforming the state of the art.
arXivarXiv · · December 23, 2025
1
1
New record in optical gain and room-temperature nanolasers in multiple wavelengths in 2D ErOCl single crystals
Shipeng YaoHao SunZhang LiangZhen WangLin GanJinhua WuZhangyu HouCun-Zheng Ning
The authors synthesize 2D single-crystal ErOCl with an Er density of $1.75 \times 10^{22}$ cm$^{-3}$, which suppresses concentration quenching that limits doped materials. This yields a record optical gain coefficient exceeding 1500 dB/cm at 1536 nm, an order of magnitude larger than previous Er-based records. Integrating ErOCl with a photonic crystal microcavity enables room-temperature continuous-wave lasing with a threshold of 7 $\mu$W, the lowest and most compact among Er lasers. The material's Stark splitting provides gain in three wavelength bands, achieving lasing at each band for the first time in Er materials.
arXivarXiv · · November 30, 2025
0
0
Robust quantum computational advantage with programmable 3050-photon Gaussian boson sampling
Hua-Liang LiuHao Su…Lin Gan
This paper reports Gaussian boson sampling experiments on the Jiuzhang 4.0 processor, a programmable 8176-mode photonic quantum computer that injects 1024 high-efficiency squeezed states and detects up to 3050 photons. The central contribution is demonstrating robust quantum computational advantage by outperforming all classical spoofing algorithms, including the matrix product state (MPS) method that exploits photon loss to reduce simulation complexity. The authors estimate that the state-of-the-art MPS algorithm on the EI Capitan supercomputer would require over $10^{42}$ years to construct the required tensor network, whereas Jiuzhang 4.0 produces a sample in 25.6 $\mu$s.
arXivarXiv · · August 12, 2025
0
40
MMStencil: Optimizing High-order Stencils on Multicore CPU using Matrix Unit
Yinuo WangTianqi MaoLin GanWubing WanZeyu SongJiayu FuLanke HeWenqiang WangZekun YinWei XueGuangwen Yang
MMStencil is an optimization framework for 3D high-order stencils on multicore CPUs that leverages matrix units and SIMD. It introduces algorithmic and memory optimizations to handle strided accesses, alignment conflicts, and cache inefficiencies, plus a multi-thread parallelism paradigm to avoid shared-data-cache bottlenecks on multi-socket systems. MMStencil sustains high hardware utilization across diverse stencil shapes and outperforms state-of-the-art libraries on an Nvidia A100 GPGPU by up to 2.1x, with a 1.8x speedup for RTM applications versus a highly optimized industrial GPU version.
arXivarXiv · · July 15, 2025
0
1
GenTT: Generate Vectorized Codes for General Tensor Permutation
Yaojian ChenTianyu MaAn YangLin GanWenlai ZhaoGuangwen Yang
GenTT is a toolkit that generates optimized SIMD vectorized code for general tensor permutations, supporting arbitrary instruction sets, bit widths, tensor shapes, and permutation patterns. Unlike prior methods that split complex permutations into multiple simpler ones, GenTT directly handles complex permutations with low complexity. Experiments show up to 38× speedup for special cases and 5× for general cases compared to NumPy.
arXivarXiv · · June 4, 2025
0
0
SW-TNC : Reaching the Most Complex Random Quantum Circuit via Tensor Network Contraction
Yaojian ChenZhaoqi SunChengyu QiuZegang LiYanfei LiuLin GanXiaohui DuanGuangwen Yang
This paper presents SW-TNC, a tensor-network-contraction simulator for the Sunway architecture that accelerates the classical simulation of the Zuchongzhi-60-24 quantum circuit by over ten times on more than 1024 nodes (399,360 cores). The key innovations are data reuse schemes to reduce floating-point operations, memory organization that eliminates slicing overhead while maintaining parallelism, and a multi-core step-fusion strategy that improves data locality and computation intensity. These contributions demonstrate the potential for efficient classical simulation of increasingly complex random quantum circuits.
arXivarXiv · · April 12, 2025
1
2
Ultra-High-Efficiency Dual-Band Thin-Film Lithium Niobate Modulator Incorporating Low-k Underfill with 220 GHz Extrapolated Bandwidth for 390 Gbit/s PAM8 Transmission
Hao LiuYutong HeBing XiongChangzheng SunZhibiao HaoLai WangJian WangYanjun HanHongtao LiLin GanYi Luo
A dual-band thin-film lithium niobate modulator incorporating low-k underfill simultaneously achieves a low half-wave voltage of 1.9 V (C-band) and 1.54 V (O-band) and an extrapolated 3 dB bandwidth of 220 GHz (C-band) and 218 GHz (O-band). The low-k material reduces RF loss and enables perfect velocity matching with a narrow electrode gap, overcoming the voltage-bandwidth trade-off. The 7-mm-long device demonstrates dual-band PAM8 transmission up to 390 Gbit/s with a record energy consumption of 0.69 fJ/bit.
arXivarXiv · · November 22, 2024
0
A Survey of Foundation Models for Music Understanding
Wenjun LiYing Cai…Lin Gan
This survey reviews recent large-scale foundation models (FMs) for music understanding, emphasizing their shift from traditional audio-feature-based approaches to semantic reasoning. The authors argue that large language models (LLMs) and FMs, which integrate semantic information and exhibit strong reasoning, can capture complex musical patterns, combine music with language, and incorporate emotional and psychological knowledge, thus producing outputs closer to human perception. The paper investigates, analyzes, and tests prominent music FMs on their comprehension abilities, discusses their limitations, and proposes future research directions.
arXivarXiv · · September 15, 2024
0
8
O2ATH: An OpenMP Offloading Toolkit for the Sunway Heterogeneous Manycore Platform
Haoran LinLifeng Yan…Lin Gan
For large legacy codes without dominant hotspots, porting to the special-purpose cores (CPEs) of the Sunway SW26010pro processor is prohibitively expensive. O2ATH removes this barrier by intercepting GNU OpenMP runtime calls and forwarding them to the native Athread library, letting users write both MPE and CPE code in a single file using standard OpenMP directives. Applied to CESM and ROMS, it achieved per-kernel speedups of 3–15× and whole-application speedups of 3–6×, while requiring far fewer code modifications than manual CPE rewriting.
arXivarXiv · · September 10, 2023
0
4
Gaussian Boson Sampling with Pseudo-Photon-Number Resolving Detectors and Quantum Computational Advantage
Yu-Hao DengYi-Chao Gu…Lin Gan
This paper reports Gaussian boson sampling experiments using pseudo-photon-number-resolving detectors that register up to 255 photon-click events. The authors introduce a model incorporating partial photon distinguishability to characterize noisy sampling. In the quantum computational advantage regime, Bayesian tests and correlation analysis validate samples against classical mockups. Estimating with the best classical algorithms, generating one ideal sample from the same distribution on Frontier supercomputer would take ~600 years via exact methods, whereas Jiuzhang 3.0 produces a sample in 1.27 μs; the hardest experimental sample would require ~3.1×10¹⁰ years on Frontier.
arXivarXiv · · April 24, 2023
2
275
Validating quantum-supremacy experiments with exact and fast tensor network contraction
Yong LiuYaojian ChenChu GuoJiawei SongXinmin ShiLin GanWenzhao WuWei WuHaohuan FuXin LiuDexun ChenZhifeng Zhao  +2
Using a new-generation Sunway supercomputer, the authors directly verify the Google Sycamore quantum supremacy experiment by computing three million exact amplitudes for the experimental bitstrings in 8.5 days, achieving an XEB fidelity of 0.191% (estimated 0.224%). This capability is built on a multiple-amplitude tensor network contraction algorithm that exploits the "classical advantage" of supercomputers and a fused tensor network contraction algorithm that increases compute efficiency on heterogeneous architectures.
arXivarXiv · · December 9, 2022
0
12
Lifetime-based Optimization for Simulating Quantum Circuits on a New Sunway Supercomputer
Yaojian ChenYong LiuXinmin ShiJiawei SongXin LiuLin GanChu GuoHaohuan FuJie GaoDexun ChenGuangwen Yang
This work proposes lifetime-based optimizations to reduce the slicing overhead in tensor-network-based quantum circuit simulation on the new Sunway supercomputer. The key contributions include an interpretation method for slicing overhead, an in-place slicing strategy that finds the smallest slicing set, and an adaptive contraction path refiner tailored for the Sunway architecture. As a result, the simulation time for the Sycamore quantum processor RQC reaches 96.1 seconds, achieving a sustainable performance of 308.6 Pflops over 41 million cores, a fivefold improvement over the 2021 Gordon Bell Prize work.
arXivarXiv · · May 1, 2022
0
19
Phase-Programmable Gaussian Boson Sampling Using Stimulated Squeezed Light
Han-Sen ZhongYu-Hao Deng…Lin Gan
This paper presents Jiuzhang 2.0, a Gaussian boson sampling (GBS) experiment that achieves up to 113 detection events across a 144-mode photonic circuit, using a new high-brightness, scalable stimulated squeezed light source with near-unity purity and efficiency. The GBS is programmable by tuning the phase of input squeezed states. The samples are validated by a method that infers from computationally friendly subsystems, ruling out distinguishable photons and thermal states. The experiment demonstrates nonclassicality via an inequality and reveals genuine high-order correlation, providing evidence against classical simulation. The Hilbert space dimension reaches $10^{43}$, with a sampling rate $10^{24}$ times faster than brute-force supercomputer simulation.
arXivarXiv · · June 29, 2021
0
713
Quantum computational advantage using photons
Han-Sen ZhongHui Wang…Lin Gan
Gaussian boson sampling using squeezed states demonstrates quantum computational advantage. 50 high-indistinguishability single-mode squeezed states are input into a 100-mode fully-connected ultralow-loss interferometer with random transformation, and sampled by 100 high-efficiency single-photon detectors. Up to 76 output photon-clicks are observed, producing an output state space dimension of $10^{30}$ and a sampling rate $10^{14}$ times faster than the best classical simulation on supercomputers. The samples are validated against thermal states, distinguishable photons, and uniform distribution hypotheses.
arXivarXiv · · December 3, 2020
0
3k+
Benchmarking 50-Photon Gaussian Boson Sampling on the Sunway TaihuLight
Yuxuan LiMingcheng ChenYaojian ChenHaitian LuLin GanChaoyang LuJianwei PanHaohuan FuGuangwen Yang
This work benchmarks Gaussian boson sampling (GBS) with threshold detection on the Sunway TaihuLight supercomputer, using a fully optimized simulation algorithm. Key innovations include a parallel scheme, instruction-level optimization, an adaptive precision scheme, and a DAG-based heuristic for instruction scheduling. The largest run evaluates a Torontonian function of a $100\times 100$ submatrix from 50-photon GBS in 20 hours (128-bit precision) or 2 days (256-bit precision), providing a competitive baseline for future quantum supremacy demonstrations.
arXivarXiv · · September 2, 2020
0
24
The Deep Learning Compiler: A Comprehensive Survey
Mingzhen LiYi LiuXiaoyan LiuQingxiao SunXin YouHailong YangZhongzhi LuanLin GanGuangwen YangDepei Qian
This survey analyzes the design architecture of deep learning compilers, which map DL models from frameworks to optimized code for diverse hardware. It focuses on the commonly adopted multi-level intermediate representations (IRs) and frontend/backend optimizations. The paper provides a comprehensive comparison of existing compilers (e.g., XLA, TVM) and highlights potential research directions, serving as the first survey centered on the design architecture of DL compilers.
arXivarXiv · · February 6, 2020
0
404
swTVM: Towards Optimized Tensor Code Generation for Deep Learning on Sunway Many-Core Processor
Mingzhen LiChangxi LiuJianjin LiaoXuegui ZhengHailong YangRujun SunJun XuLin GanGuangwen YangZhongzhi LuanDepei Qian
swTVM extends the TVM compiler to support ahead-of-time compilation for the Sunway many-core processor, which requires cross-compilation. It leverages Sunway architecture features—core groups for massive parallelism, DMA for high-bandwidth memory transfer, and local device memory for data locality—to generate efficient tensor codes for deep learning workloads. Across six benchmarks, swTVM-generated codes achieve a 1.79× average speedup over the state-of-the-art deep learning framework on Sunway.
arXivarXiv · · April 16, 2019
0
13
Quantum Teleportation-Inspired Algorithm for Sampling Large Random Quantum Circuits
Ming-Cheng ChenRiling LiLin GanXiaobo ZhuGuangwen YangChao-Yang LuJian-Wei Pan
The paper introduces a quantum teleportation-inspired algorithm that efficiently simulates low-depth random quantum circuits. By using logical qubits to redirect and teleport quantum information, the original circuit is renormalized into one with fewer logical qubits, reducing memory requirements. The method is demonstrated on 1D-chain 1000-qubit 42-depth, 2D-grid 125×8-qubit 42-depth, and 2D-Bristlecone 72-qubit 32-depth circuits.
arXivarXiv · · January 15, 2019
0
36
Efficient Channel Model for Homogeneous Weakly Coupled Multicore Fiber
Lin GanJiajun ZhouSongnian FuMing TangDeming Liu
This paper proposes an efficient channel model for homogeneous weakly coupled multicore fiber (WC-MCF) that accelerates simulation by two orders of magnitude. The speedup is achieved by simplifying the frequency-dependent inter-core crosstalk (XT) calculation: using a larger step size with a new XT coupling matrix and down-sampling this matrix in the frequency domain. The model captures propagation effects including attenuation, walk-off, chromatic dispersion, self-phase modulation, and XT. It is validated by numerical and experimental observation that XT's de-correlation bandwidth decreases with relative time delay via a fractional linear function.
arXivarXiv · · November 19, 2018
1
Inter-Core Crosstalk in Multicore Fibers: Impact on 56-Gbaud/λ/Core PAM-4 Transmission
Aleksejs UdalcovsRui LinOskars OzolinsLin GanLu ZhangXiaodan PangRichard SchatzAnders DjupsjöbackaMing TangSongnian FuDeming LiuWeijun Tong  +3
This paper experimentally demonstrates the impact of inter-core crosstalk on 56-Gbaud PAM-4 signal quality after 2.5-km transmission over weakly-coupled and uncoupled seven-core fibers. The study reveals that the crosstalk effect depends on the carrier central wavelength in the 1540–1560 nm range, providing a quantitative characterization of crosstalk-induced degradation for short-reach multicore fiber links.
arXivarXiv · · November 13, 2018
0
Authors with the same name
Lin Gan · 5 papers
Lin Gan #0001 · 10 papers
Lin Gan #0010 · 1 papers
Frequent collaborators
Guangwen Yang (22)
Yaojian Chen (11)
Ming Tang (9)
Deming Liu (9)
Yuxuan Li (8)
Songnian Fu (8)
Weijun Tong (8)
Aleksejs Udalcovs (6)
Rui Lin (6)
Oskars Ozolins (6)
Xiaodan Pang (6)
Sergei Popov (6)