Skip to main content
QUICK REVIEW

[Paper Review] A Survey: Collaborative Hardware and Software Design in the Era of Large Language Models

Cong Guo, Feng Cheng|arXiv (Cornell University)|Oct 8, 2024
Model-Driven Software Engineering TechniquesComputer Science3 citations
TL;DR

This survey presents a comprehensive analysis of collaborative hardware and software co-design for large language models (LLMs), focusing on system-level optimizations for training and inference. It synthesizes advances in algorithmic efficiency, specialized accelerators, in-memory computing, and spiking neural networks to address LLMs' extreme memory and compute demands, offering a unified framework for future AI system design.

ABSTRACT

The rapid development of large language models (LLMs) has significantly transformed the field of artificial intelligence, demonstrating remarkable capabilities in natural language processing and moving towards multi-modal functionality. These models are increasingly integrated into diverse applications, impacting both research and industry. However, their development and deployment present substantial challenges, including the need for extensive computational resources, high energy consumption, and complex software optimizations. Unlike traditional deep learning systems, LLMs require unique optimization strategies for training and inference, focusing on system-level efficiency. This paper surveys hardware and software co-design approaches specifically tailored to address the unique characteristics and constraints of large language models. This survey analyzes the challenges and impacts of LLMs on hardware and algorithm research, exploring algorithm optimization, hardware design, and system-level innovations. It aims to provide a comprehensive understanding of the trade-offs and considerations in LLM-centric computing systems, guiding future advancements in AI. Finally, we summarize the existing efforts in this space and outline future directions toward realizing production-grade co-design methodologies for the next generation of large language models and AI systems.

Motivation & Objective

  • Address the growing computational and energy demands of training and deploying large language models (LLMs) with billions to trillions of parameters.
  • Identify unique challenges in LLMs—such as massive memory usage, autoregressive generation, and KV cache bloat—that differentiate them from traditional CNNs.
  • Survey state-of-the-art co-design techniques in hardware (e.g., accelerators, in-memory computing) and software (e.g., mixed-precision training, ZeRO) to improve efficiency.
  • Provide a systematic understanding of trade-offs in LLM-centric system design to guide future research and development.
  • Outline future directions for production-grade co-design methodologies to enable scalable, energy-efficient, and high-performance LLM systems.

Proposed method

  • Survey and categorize existing co-design approaches across algorithm optimization, hardware architecture, and system-level integration for LLMs.
  • Analyze key LLM-specific workloads, including autoregressive generation and attention mechanisms, to identify performance bottlenecks.
  • Examine specialized accelerators such as RIME (RRAM-based in-memory floating-point computation) and C-Transformer (spike-driven processing) for high-precision and low-power inference.
  • Evaluate spiking transformer architectures like Spikformer and Masked Spiking Transformers that replace traditional operations with spike-based equivalents to reduce energy consumption.
  • Investigate in-memory computing techniques like TReX and ClipFormer that optimize attention computation using analog content-addressable memory and noise-aware clipping.
  • Synthesize findings across diverse domains—cloud, edge, and specialized AI accelerators—to identify common design principles and performance trade-offs.

Experimental results

Research questions

  • RQ1What are the primary system-level challenges in training and deploying large language models compared to traditional deep learning models?
  • RQ2How do unique LLM characteristics—such as autoregressive generation and KV cache growth—impact memory and compute efficiency?
  • RQ3What hardware-software co-design strategies effectively reduce memory footprint and energy consumption in LLM inference and training?
  • RQ4In what ways can emerging technologies like in-memory computing and spiking neural networks improve LLM efficiency?
  • RQ5What are the key trade-offs and design considerations in building production-grade co-designed systems for next-generation LLMs?

Key findings

  • LLM training demands up to 350GB of GPU memory for models like GPT-3 (175B parameters), highlighting the need for memory-optimized techniques such as ZeRO and model parallelism.
  • The autoregressive nature of LLMs causes linear growth in KV cache memory with sequence length, creating a significant memory wall challenge during inference.
  • Spiking Transformers, such as Spikformer, eliminate resource-intensive operations like SoftMax and multiplications through spike-based computation, achieving improved energy efficiency.
  • RIME enables 32-bit floating-point multiplication in memory using novel Min3 logic within RRAM cells, reducing cycle count, area, and energy consumption for high-precision inference.
  • C-Transformer accelerates spiking operations via a Hybrid Multiplication-Accumulation Unit (HMAU) and Output Spike Speculation Unit (OSSU), enabling efficient spike-driven inference.
  • In-memory computing approaches like TReX and ClipFormer improve energy efficiency and area utilization by reusing attention blocks and clipping KV matrices to mitigate memristor noise.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.