SCShuyao Cheng

Shuyao Cheng

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Shuyao Cheng has a total of 27 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Automated Superscalar Processor Design by Learning Data Dependencies

    by Xiangtao Guan, Shuyao Cheng, Rui Zhang, Pengwei Jin, Chongxiao Li, Tianyun Ma, Zidong Du, Xing Hu, Cheng Li, Yifan Hao, et al.

    Automated processor design, which significantly reduces manual efforts and accelerates design cycles, has been a key focus of recent research. Although prior work has achieved progress in designing simple processors, such as single-issue processors, their performance falls short of modern superscalar processors that execute multiple instructions per cycle. Current state-of-the-art methods fail to design superscalar processors due to their inability to handle inter-instruction dependencies effectively, which limits parallelism and results in inefficient execution. This work proposes a novel framework for automated superscalar processor design by introducing a hardware-friendly model: Stateful Binary Speculation Diagram (State-BSD). We observe that processor performance can be significantly improved by reusing the processor’s internal states to learn the data dependency. To address the challenge of limited hardware resources while maintaining high prediction accuracy, the proposed State-BSD includes three key components: 1) a lightweight state selector, trained with the simulated annealing method, which identifies the most reusable instructions and stores them in a small buffer, 2) an efficient state-replacer to dynamically replace unused states in the buffer under limited buffer size, and 3) a highly accurate state speculator which predicts interinstruction data dependencies using the buffered states. This work demonstrates the first automated design of superscalar processors with hardware-level optimizations. The processor designed using the proposed automated design approach achieves a 431.28× performance improvement with only 4.25× more area.

  • Automatic Pipelining for Arbitrary Circuits via Gate-Level Forwarding and Customized Scheduling

    by Chongxiao Li, Shuyao Cheng, Rui Zhang, Qicheng Wang, Pengwei Jin, Di Huang, Jiaming Guo, Zidong Du, Xing Hu, Qi Guo

    Circuit pipelining is essential for improving the frequency and throughput of sequential circuits, yet it still largely relies on manual design at the behavioral level, which is effort-intensive, error-prone, and fails to exploit fine-grained gate-level opportunities. Existing automatic approaches analyze feedforward paths to insert registers but fall back to conservative stalling in the presence of feedback loops, sacrificing parallelism to preserve correctness. As a result, neither manual nor existing automatic methods simultaneously achieve fine-grained throughput optimization and correctness guarantees on arbitrary sequential circuits. We present an automatic pipelining framework that combines gate-level forwarding and customized scheduling. Our key insight is that gate-level analysis reveals shorter feedback loops, whose hazards can be resolved by forwarding paths spanning fewer pipeline stages, thus avoiding long multi-cycle dependencies that cause redundant stalls. Our method consists of two steps: the first focuses on fine-grained optimization beyond behavioral-level analysis, while the second ensures correctness for arbitrary circuits. Concretely, we (i) greedily assign pipeline stages at the gate level and create short forwarding paths for fine-grained pipeline optimization, and (ii) design a circuit-specific scheduler to ensure correctness. The scheduler analyzes state-conditioned reads/writes to predict future dependencies and apply only the necessary stalls, and is then synthesized into hardware using an improved Binary Speculative Diagram (BSD) algorithm with acceptable hardware overhead. Across diverse circuit datasets, our approach identifies 35.23% redundant pipeline stalls overlooked by behavioral-level manual designs and improves throughput by 9.46% for 3-stage and 23.07% for 4-stage pipelines over EDA-based automatic pipelining techniques, while guaranteeing functional correctness on arbitrary sequential circuits.

  • Open Access

    PFGEMM: Fully Exploiting the Parallelism of SpGEMM With Element-Wise Out-of-Order Execution Flow and Prefix Decomposition of Indices

    by Yufeng Gao, Chen Zhang, Shuyao Cheng, Di Huang, Zhipeng Zhao, Xuehai Zhou

    Sparse matrix multiplication (SpGEMM) is fundamental in scientific and engineering applications, yet conventional processors struggle to exploit parallelism due to severe stalls caused by dependencies arising from execution structure, arithmetic, and data. In response, we propose PFGEMM, an accelerator that exploits the parallelism of SpGEMM. Essentially, we introduce a novel sparse format, prefix-CSR (PFCSR), to reduce off-chip traffic and on-chip storage. Furthermore, PFGEMM breaks the execution structure dependency by employing an element-wise out-of-order scheduling scheme rather than row-wise sequential flows to adaptively extract runtime sparse patterns and achieve locally optimal data reuse across arithmetic units. Additionally, the distributed cache with a ring network utilizes a spatiotemporal-aware replacement policy to reduce cache-miss stalls. Finally, we propose arithmetic units tailored for PFCSR to eliminate the arithmetic dependency. Overall, experimental results demonstrate an average of 1.8× off-chip traffic reduction and 2.1× speedup over state-of-the-art accelerators.

  • DASA: Distribution-Aware Sparse Attention for Accelerating Diffusion Transformer

    by Tianyun Ma, Jiaming Guo, Di Huang, Xinkai Song, Qian Wang, Husheng Han, Pengwei Jin, Xiangtao Guan, Yifan Hao, Yuanbo Wen, et al.

    Diffusion transformers (DiTs) have demonstrated remarkable success in text-to-video generation. However, the self-attention mechanism in DiTs imposes significant computational and memory burdens, particularly when handling long patch sequences like high-resolution or long-time videos. While sparse attention shows promise in reducing self-attention costs, existing approaches struggle to deliver performance gains due to the unique challenges in DiTs, i.e., varied sparse patterns across layers and timesteps, and the cumulative nature of inference errors over timesteps. In this article, we propose DASA, an algorithm-hardware co-design that effectively addresses these challenges of attention sparsification in DiTs. Specifically, leveraging the insight that the generation quality is primarily influenced by overall distribution drift rather than changes in specific values, we introduce a novel distribution-aware filtering (DAF) mechanism for sparsification. To further accelerate the process, we design a specialized filtering unit that enables fast candidate selection based on the proposed DAF mechanism. Experimental results show that DASA achieves $2.52\times $ speed up compared to A100 GPU, and up to $1.22\times $ speedup over state-of-the-art accelerators for self-attention computation.

  • AGON: Automated Design Framework for Customizing Processors From ISA Documents

    by Chongxiao Li, Di Huang, Pengwei Jin, Tianyun Ma, Husheng Han, Shuyao Cheng, Yifan Hao, Yongwei Zhao, Guanglin Xu, Zidong Du, et al.

    Customized processors are essential for domain-specific applications such as the Internet of Things (IoT) and multimedia embedded systems, yet their design often requires extensive expert intervention. Traditional approaches, including hardware design using encapsulated abstractions (e.g., Chisel) and high-level synthesis (HLS) from languages like C or SystemC, reduce some manual efforts but remain either costly or suboptimal. Recent explorations into leveraging large language models (LLMs) to generate register-transfer level (RTL) from natural language specifications have shown promise, but these methods still struggle with generating complex and high-performance processors, mainly due to the complicated low-level details in the RTL code. In this work, we introduce AGON, a novel framework designed to facilitate the development of customized processor RTL from instruction set architecture (ISA) documents using LLMs. The framework comprises two layers: a functional description layer and a hardware implementation layer. At the functional layer, AGON employs a nano-operator (nOP)-based intermediate representation (IR) that abstracts basic instruction operations, thereby reducing the semantic gap between natural language and the RTL code. This abstraction significantly shortens the descriptive code required for LLM generation, improving the generation accuracy in a single pass. At the hardware layer, AGON offers three abstraction levels (i.e., instruction, ISA, and processor) along with rule-based primitives to systematically lower the nOP-based IR into a fully optimized processor implementation. This decoupled design not only ensures correctness-by-construction but also enables automated, power, performance, and area (PPA)-aware performance optimization. We evaluate AGON by designing high-performance out-of-order (OoO) processors that correctly execute practical programs. Experimental results demonstrate that processors generated with AGON achieve an average speed of $4.51\times $ on specific tasks compared to expert-designed general-purpose central processing units (CPUs) while requiring minimal design effort.


  • Open Access

    Revisiting Automatic Pipelining: Gate-level Forwarding and Speculation

    by Shuyao Cheng, Chongxiao Li, Zidong Du, Rui Zhang, Xing Hu, Xiaqing Li, Guanglin Xu, Yuanbo Wen, Qi Guo

    Pipelining is a widely applied micro-architectural performance optimization and requires non-trivial designs for better execution throughput. The key to pipeline throughput optimization is to resolve data hazards caused by read-after-write (RAW) dependencies, which are traditionally tackled by forwarding and speculation to avoid pipeline stalls. However, existing approaches are conducted based on high-level dataflow analysis, with potential loss of optimization opportunities for lack of analysis of the netlist structures. We propose an efficient method to resolve RAW dependencies with low-level netlist analysis by gate-level forwarding and speculation. With a greedy search method to detect and resolve short-delay gate-level signal paths for forwarding and an approximate circuit synthesis method with formal verification for gate-level speculation, the method efficiently utilizes the gate-level information to further improve pipeline throughput. Even if the gate-level design space is vast, by assembling the logic gates in the short-delay signal paths in fewer adjacent pipeline stages, the forwarding paths and the speculator bypass invalid pipeline stages and thus conceal the latency of these paths. We conduct experiments on the widely-used ISCAS/EPFL benchmark circuits and a large-scale RISC-V CPU, and our approach can find better designs than human experts.