passdrill
AI & LLM Engineering · Prompt Engineering · Card 029/039 easy

A developer notices that a long-form LLM answer (for example, 'list and explain five approaches to X') is slow to generate because the model must produce the entire response as one long sequential stream of tokens, point by point, in order. Ning et al. (2023), "Skeleton-of-Thought: Large Language Models Can Do Parallel Decoding," propose a prompting-and-decoding approach aimed specifically at cutting this latency without changing the model's weights. What does Skeleton-of-Thought do?

  1. It first prompts the model to generate a brief skeleton of the answer's main points, then issues separate parallel calls (or batched decoding) to expand each point concurrently, before combining the expanded points into the final answer
  2. It shortens the answer by instructing the model to omit the elaboration for each point, trading completeness for speed
  3. It routes the request to a smaller, faster model for a first draft, then upgrades to the original model only for a final proofreading pass
  4. It caches the model's response to the same prompt across users, so only the first request incurs the full sequential generation cost
Next card → Shuffle