Skip to main content
QUICK REVIEW

[Paper Review] Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation

Xuefei Ning, Zinan Lin|arXiv (Cornell University)|Jul 28, 2023
Topic ModelingComputer Science12 citations
TL;DR

Skeleton-of-Thought (SoT) guides LLMs to first generate an answer skeleton and then expands points in parallel, achieving large end-to-end latency reductions and potential quality gains across 12 models, with SoT-R adaptively deciding when to apply SoT.

ABSTRACT

This work aims at decreasing the end-to-end generation latency of large language models (LLMs). One of the major causes of the high generation latency is the sequential decoding approach adopted by almost all state-of-the-art LLMs. In this work, motivated by the thinking and writing process of humans, we propose Skeleton-of-Thought (SoT), which first guides LLMs to generate the skeleton of the answer, and then conducts parallel API calls or batched decoding to complete the contents of each skeleton point in parallel. Not only does SoT provide considerable speed-ups across 12 LLMs, but it can also potentially improve the answer quality on several question categories. SoT is an initial attempt at data-centric optimization for inference efficiency, and showcases the potential of eliciting high-quality answers by explicitly planning the answer structure in language.

Motivation & Objective

  • Motivate reducing end-to-end generation latency of LLMs by enabling parallel content generation.
  • Propose a data-centric inference optimization where the model first outlines a skeleton and then expands points in parallel.
  • Demonstrate SoT's speed-ups across multiple models and assess its impact on answer quality.
  • Introduce SoT-R to adaptively trigger SoT based on the question type to balance efficiency and quality.
  • Explore practical routing methods (prompt-based and trained) to decide when SoT should be used.

Proposed method

  • Skeleton stage that prompts the LLM to output a concise skeleton of the answer (3–10 points, 3–5 words per point).
  • Point-expanding stage where each skeleton point is expanded in parallel using a prompt conditioned on the skeleton and point index.
  • Aggregation of independently generated point expansions into the final answer.
  • Parallel decoding/batched expansion for open-source models and parallel API calls for API-based models to realize end-to-end latency reductions.
  • SoT-R: a router that decides whether to apply SoT to a given question, via prompting or a trained RoBERTa-based classifier, to dynamically balance speed and quality.
  • Evaluation using Vicuna-80 and WizardLM datasets across 12 models (open-source and API-based), including latency profiling and quality judgments via FastChat and LLMZoo metrics.

Experimental results

Research questions

  • RQ1Does skeleton-guided prompt prompting enable parallel generation to reduce end-to-end latency in LLMs?
  • RQ2Can SoT improve or maintain answer quality across diverse question categories and models?
  • RQ3How does SoT perform when combined with an adaptive router (SoT-R) that decides when to apply SoT?
  • RQ4What are the trade-offs in latency, tokens, and cost for API-based versus open-source deployments?
  • RQ5How do different question categories affect SoT’s effectiveness and where does adaptive routing help the most?

Key findings

  • SoT achieves substantial end-to-end latency reductions, with reported speed-ups up to 2.39x across 8 of 12 models.
  • Examples show latency reductions from 22s to 12s for Claude and from 43s to 16s for Vicuna-33B on an A100 GPU.
  • SoT can also improve answer quality for several question categories according to FastChat and LLMZoo evaluations, though gains vary by model and category.
  • SoT-R (adaptive routing) yields lower speed-ups than SoT alone but maintains quality gains on many models, and can surpass SoT in some scenarios by triggering SoT only when beneficial.
  • Prompting-based and trained routers both offer effective SoT triggering, with trained routers aligning well with human judgments in WizardLM evaluations.
  • SoT works best on questions that can be decomposed into independent points; it is less effective for step-by-step reasoning tasks like some math or coding questions.

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.