Accelerating Language Model Workflows with Prompt Choreography

TJ Bai, Jason Eisner
12/28/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Large language models are increasingly deployed in multi-agent workflows. We introduce Prompt Choreography, a framework that efficiently executes LLM workflows by maintaining a dynamic, global KV cache. Each LLM call can attend to an arbitrary, reordered subset of previously encoded messages. Parallel calls are supported. Though caching messages' encodings sometimes gives different results from re-encoding them in a new context, we show in diverse settings that fine-tuning the LLM to work with the cache can help it mimic the original results. Prompt Choreography significantly reduces per-message latency (2.0--6.2$\times$ faster time-to-first-token) and achieves substantial end-to-end speedups ($>$2.2$\times$) in some workflows dominated by redundant computation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bai2025accelerating,
  title  = {Accelerating Language Model Workflows with Prompt Choreography},
  author = {TJ Bai and Jason Eisner},
  year   = {2025},
  eprint = {2512.23049},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.23049v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.23049.svg)](https://codeofpaper.com/paper/2512.23049)

Discussion