Adaptive Skeleton Graph Decoding

Shuowei Jin, Yongji Wu, Haizhong Zheng, Qingzhao Zhang, Matthew Lentz, Z. Morley Mao, Atul Prakash, Feng Qian, Danyang Zhuo · OpenReview

Abstract

Large language models (LLMs) have seen significant adoption for natural language tasks, owing their success to massive numbers of model parameters (e.g., 70B+); however, LLM inference incurs significant computation and memory costs. Recent approaches propose parallel decoding strategies, such as Skeleton-of-Thought (SoT), to improve performance by breaking prompts down into sub-problems that can be decoded in parallel; however, they often suffer from reduced response quality. Our key insight is that we can request additional information, specifically dependencies and difficulty, when generating the sub-problems to improve both response quality and performance. In this paper, we propose Skeleton Graph Decoding (SGD), also referred to as Plato, which uses dependencies exposed between sub-problems to support information forwarding between dependent sub-problems for improved quality while exposing parallelization opportunities for decoding independent sub-problems. Additionally, we leverage difficulty estimates for each sub-problem to select an appropriately-sized model, improving performance without significantly reducing quality. Compared to standard autoregressive generation and SoT, SGD achieves a 1.69x speedup while improving quality by up to 51%.

Introduction

Large Language Models (LLMs) are transformative, but their "one-token-at-a-time" autoregressive nature makes them notoriously slow and computationally expensive. While researchers have tried to parallelize this process, they often face a fundamental trade-off: speed (by treating parts of a prompt as independent) versus quality (by following a strict logical sequence).

Plato (Skeleton Graph Decoding) is an inference framework that refuses to accept this trade-off. By co-designing a "semantic-aware" decoding algorithm with a specialized inference system, Plato speeds up generation while simultaneously improving the quality of the results.

The Dependency Gap in Parallel Decoding

The standard way LLMs generate text—autoregressive (AR) decoding—is a sequential bottleneck. Previous attempts to parallelize the semantic space, such as Skeleton-of-Thought (SoT), ask the model to create an outline (a skeleton) and then generate all sections of that outline simultaneously.

However, SoT assumes all sub-sections are independent. In reality, complex tasks like solving math problems or writing code involve steps that depend on previous results. By ignoring these dependencies, SoT often produces incoherent or incorrect answers. Plato addresses this "independence assumption" gap by explicitly modeling the logical and causal relationships between sub-tasks using a Directed Acyclic Graph (DAG).

Comparison of Skeleton-of-Thought (SoT) and Plato for a math problem. SoT assumes independence, leading to errors, while Plato models dependencies via a DAG to ensure logical flow.

Methodology

Plato’s innovation lies in its two-stage approach and its system-level optimizations:

  1. Planning Stage: Instead of a flat list, Plato prompts the LLM to generate a structured plan where each sub-task (node) explicitly lists its dependencies. This creates a Directed Acyclic Graph (DAG). Additionally, the model can estimate the difficulty of each node to allow for adaptive model selection.
  2. Node Inference Stage: Plato’s scheduler traverses this graph. As soon as a node's dependencies are met, it is sent for inference. If multiple nodes are ready, they are batched together for parallel execution on the GPU.

System Optimizations

To maximize efficiency, Plato implements two key strategies:

  • Pipelining: Plato doesn't wait for the entire plan to be generated. It streams the planning output and "plucks" completed nodes from the buffer to start inference immediately, hiding planning latency.
  • Global Context Cache: Prefilling long prompts is expensive. Plato maintains a consistent prefix order of all previous node results, leveraging prefix caching in the inference engine. This reduces the computational complexity of prefilling from $O(N^2)$ to $O(N)$ across $N$ nodes.

Evaluation and Key Results

The researchers evaluated Plato using the Vicuna and WizardLM benchmarks across several state-of-the-art models, including Phi-4 (14B), Qwen2.5-32B, and Llama3.1-70B.

Net Win Rate vs. Speedup for Plato, AR, SoT, and CoT across different models. Plato consistently delivers high quality with significant speed improvements.
  • Throughput and Speed: Plato improved throughput by up to 68% compared to standard AR decoding. The pipeline design alone accounted for a 29% speedup, while the KV cache strategy reduced prefill overhead by 75%.
  • Quality Gains: In "LLM-as-a-judge" evaluations, Plato achieved a 40% net win rate over AR decoding. This suggests that the "plan-then-execute" structure helps models reason more effectively.
  • Plato vs. SoT: Compared to SoT, Plato demonstrated a 90% quality net-win rate, proving that accounting for dependencies is critical for complex reasoning tasks.

Conclusion and Future Work

Plato demonstrates that semantic parallelism does not have to come at the cost of logical integrity. While it excels in diverse tasks, it faces challenges in highly sequential domains like deep math or coding where dependency chains are long. Future work may extend these principles to multi-agent systems and collaborative AI workflows, where modeling complex dependencies between specialized models is even more vital.

Summary updated

BibTeX
@misc{jin2024adaptive,
  author = {Shuowei Jin and Yongji Wu and Haizhong Zheng and Qingzhao Zhang and Matthew Lentz and Z. Morley Mao and Atul Prakash and Feng Qian and Danyang Zhuo},
  title = {{Adaptive Skeleton Graph Decoding}},
  year = {2024},
  eprint = {2402.12280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.12280},
}
Figure