[Paper Review] New Solutions on LLM Acceleration, Optimization, and Application
This paper proposes Medusa, a parallel decoding framework with optimized tree-based decoding, and SnapKV, a method for reducing Key-Value cache size, significantly accelerating LLM inference and improving memory efficiency. It further introduces LLM-hardware co-design, compilation techniques, and a novel dataset (Chrysalis) for training LLMs in hardware design verification, demonstrating substantial speedups and enhanced efficiency in real-world EDA applications.
Large Language Models (LLMs) have become extremely potent instruments with exceptional capacities for comprehending and producing human-like text in a wide range of applications. However, the increasing size and complexity of LLMs present significant challenges in both training and deployment, leading to substantial computational and storage costs as well as heightened energy consumption. In this paper, we provide a review of recent advancements and research directions aimed at addressing these challenges and enhancing the efficiency of LLM-based systems. We begin by discussing algorithm-level acceleration techniques focused on optimizing LLM inference speed and resource utilization. We also explore LLM-hardware co-design strategies with a vision to improve system efficiency by tailoring hardware architectures to LLM requirements. Further, we delve into LLM-to-accelerator compilation approaches, which involve customizing hardware accelerators for efficient LLM deployment. Finally, as a case study to leverage LLMs for assisting circuit design, we examine LLM-aided design methodologies for an important task: High-Level Synthesis (HLS) functional verification, by creating a new dataset that contains a large number of buggy and bug-free codes, which can be essential for training LLMs to specialize on HLS verification and debugging. For each aspect mentioned above, we begin with a detailed background study, followed by the presentation of several novel solutions proposed to overcome specific challenges. We then outline future research directions to drive further advancements. Through these efforts, we aim to pave the way for more efficient and scalable deployment of LLMs across a diverse range of applications.
Motivation & Objective
- To address the high computational and memory costs of deploying large language models (LLMs) in real-world applications.
- To accelerate LLM inference through novel algorithmic techniques, including parallel decoding and KV cache optimization.
- To enable efficient LLM deployment via LLM-hardware co-design and custom compilation for accelerators.
- To develop a new dataset (Chrysalis) for training LLMs in High-Level Synthesis (HLS) functional verification and debugging.
- To explore LLM-aided design automation, including formal verification and multi-agent systems for EDA workflows.
Proposed method
- Proposes Medusa, a parallel decoding framework using multiple decoding heads and a tree-based strategy to enable concurrent token generation.
- Introduces SnapKV, a method that compresses Key-Value (KV) cache by identifying and removing redundant attention states, reducing memory footprint.
- Employs LLM-hardware co-design to align model architecture with accelerator capabilities, optimizing for throughput and energy efficiency.
- Develops a compilation pipeline to map PyTorch-based LLMs directly to hardware accelerators via frameworks like ScaleHLS and HIDA.
- Creates the Chrysalis dataset containing thousands of buggy and bug-free HLS codes to train LLMs for functional verification and debugging.
- Applies Low-Rank Adaptation (LoRA) to fine-tune open-source LLMs on HLS-specific rules and documentation for improved debugging accuracy.

Experimental results
Research questions
- RQ1How can parallel decoding be optimized to reduce LLM inference latency without sacrificing generation quality?
- RQ2To what extent can KV cache be compressed without degrading model performance in long-context scenarios?
- RQ3How can LLM-hardware co-design improve system efficiency while maintaining model accuracy?
- RQ4Can a fine-tuned LLM effectively identify and verify HLS bugs using a curated dataset of real-world code examples?
- RQ5How can LLMs be integrated into formal verification and multi-agent EDA workflows to enhance design productivity?
Key findings
- Medusa achieves significant speedups in LLM inference by enabling parallel token generation through multiple decoding heads and tree-based decoding.
- SnapKV reduces KV cache size effectively, alleviating memory bottlenecks in long-sequence and complex reasoning tasks.
- The Chrysalis dataset enables effective training of LLMs for HLS verification, reducing the number of bugs requiring manual test case verification.
- LLM-aided debugging with LoRA fine-tuning improves accuracy in detecting HLS-specific bugs such as interface pragma issues and operator precedence errors.
- Feedback-driven LLM formal verification workflows show promise in increasing the reliability and automation of hardware correctness proofs.
- Multi-agent LLM systems in EDA can autonomously manage design, verification, and debugging phases, reducing human intervention while maintaining design intent.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.