TensorX
返回文献探索

Paper · arXiv 2307.15337

Skeleton-of-Thought: Large Language Models Can Do Parallel Decoding

Xuefei Ning, Zinan Lin, Zixuan Zhou, Huazhong Yang, Yu Wang

39 upvotesJuly 28, 2023arXiv 预印本
AI 摘要

"Skeleton-of-Thought" (SoT) method reduces generation latency and potentially improves answer quality by guiding LLMs to generate a skeleton first, followed by parallel content completion.

Skeleton-of-ThoughtLLMssequential decodingparallel API callsbatched decoding

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 guides LLMs to first 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-up (up to 2.39x across 11 different LLMs), but it can also potentially improve the answer quality on several question categories in terms of diversity and relevance. SoT is an initial attempt at data-centric optimization for efficiency, and reveal the potential of pushing LLMs to think more like a human for answer quality.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Skeleton-of-Thought: Large Language Models Can Do Parallel Decoding | TensorX