Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ning, Xuefei, Lin, Zinan, Zhou, Zixuan, Wang, Zifu, Yang, Huazhong, Wang, Yu
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916144209723392
author Ning, Xuefei
Lin, Zinan
Zhou, Zixuan
Wang, Zifu
Yang, Huazhong
Wang, Yu
author_facet Ning, Xuefei
Lin, Zinan
Zhou, Zixuan
Wang, Zifu
Yang, Huazhong
Wang, Yu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2307_15337
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation
Ning, Xuefei
Lin, Zinan
Zhou, Zixuan
Wang, Zifu
Yang, Huazhong
Wang, Yu
Computation and Language
Artificial Intelligence
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.
title Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2307.15337