Parrot: Efficient Serving of LLM-based Applications with Semantic Variable

Authors: Chaofan Lin, Zhenhua Han, Chengruidong Zhang, Yuqing Yang, Fan Yang, Chen Chen, Lili Qiu

Submitted to arXiv on 30 May. 2024
License: CC BY 4.0
Abstract

The rise of large language models (LLMs) has enabled LLM-based applications (a.k.a. AI agents or co-pilots), a new software paradigm that combines the strength of LLM and conventional software. Diverse LLM applications from different tenants could design complex workflows using multiple LLM requests to accomplish one task. However, they have to use the over-simplified request-level API provided by today's public LLM services, losing essential application-level information. Public LLM services have to blindly optimize individual LLM requests, leading to sub-optimal end-to-end performance of LLM applications. This paper introduces Parrot, an LLM service system that focuses on the end-to-end experience of LLM-based applications. Parrot proposes Semantic Variable, a unified abstraction to expose application-level knowledge to public LLM services. A Semantic Variable annotates an input/output variable in the prompt of a request, and creates the data pipeline when connecting multiple LLM requests, providing a natural way to program LLM applications. Exposing Semantic Variables to the public LLM service allows it to perform conventional data flow analysis to uncover the correlation across multiple LLM requests. This correlation opens a brand-new optimization space for the end-to-end performance of LLM-based applications. Extensive evaluations demonstrate that Parrot can achieve up to an order-of-magnitude improvement for popular and practical use cases of LLM applications.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Close Cites this paper Uses this paper in depth
    Autellix: An Efficient Serving Engine for LLM Agents as General Programs
    Michael Luo, Xiaoxiang Shi, Colin Cai et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 88 times · Not summarized yet
    Abstract

    Large language model (LLM) applications are evolving beyond simple chatbots into dynamic, general-purpose agentic programs, which scale LLM calls and output tokens to help AI agents reason, explore, and solve complex tasks. However, existing LLM serving systems ignore dependencies between programs and calls, missing significant opportunities for optimization. Our analysis reveals that programs submitted to LLM serving engines experience long cumulative wait times, primarily due to head-of-line blocking at both the individual LLM request and the program. To address this, we introduce Autellix, an LLM serving system that treats programs as first-class citizens to minimize their end-to-end late…

  2. Close Cites this paper
    Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective
    Noppanat Wadlom, Jun-Yi Shen, Yao Lu · 2026 · Proc. ACM Manag. Data · cited 20 times · Not summarized yet
    Abstract

    Agentic workflows are composed of sequences of interdependent Large Language Model (LLM) calls, and they have become a dominant workload in modern AI systems. These workflows exhibit extensive redundancy from overlapping prompts and intermediate results due to speculative and parallel exploration. Existing LLM serving systems, such as vLLM, focus on optimizing individual inference calls and overlook cross-call dependencies, leading to significant inefficiencies. This paper rethinks LLM and agent serving from a data systems perspective and introduces Helium, a workflow-aware serving framework that models agentic workloads as query plans and treats LLM invocations as first-class operators. Hel…

  3. Close Cites this paper
    Serve Programs, Not Prompts
    In Gim, Lin Zhong · 2025 · USENIX Workshop on Hot Topics in Operating Systems · cited 1 time · Not summarized yet
    Abstract

    Current large language model (LLM) serving systems, primarily designed for text completion, are neither efficient nor adaptable for increasingly complex LLM applications due to their inflexible design. We propose a new LLM serving system architecture that serves programs instead of prompts to address this problem. These programs, called LLM Inference Programs (LIPs), allow users to customize token prediction and KV cache management at runtime and to offload parts of their application logic, such as tool execution, to the server. We describe an example of this architecture through a system named Symphony, which functions as an operating system for LIPs. Symphony exposes LLM model computations…

  4. Close
    Multi-Agent Collaboration: Harnessing the Power of Intelligent LLM Agents
    Yashar Talebirad, Amirhossein Nadiri · 2023 · Artificial Intelligence · preprint, not peer reviewed · cited 509 times · AI summary available
    Abstract

    In this paper, we present a novel framework for enhancing the capabilities of large language models (LLMs) by leveraging the power of multi-agent systems. Our framework introduces a collaborative environment where multiple intelligent agent components, each with distinctive attributes and roles, work together to handle complex tasks more efficiently and effectively. We demonstrate the practicality and versatility of our framework through case studies in artificial general intelligence (AGI), specifically focusing on the Auto-GPT and BabyAGI models. We also examine the "Gorilla" model, which integrates external APIs into the LLM. Our framework addresses limitations and challenges such as loop…

  5. Close
    Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
    Simran Arora, Brandon Yang, Sabri Eyuboglu et al. · 2023 · Computation and Language · cited 218 times · AI summary available
    Abstract

    A long standing goal of the data management community is to develop general, automated systems that ingest semi-structured documents and output queryable tables without human effort or domain specific customization. Given the sheer variety of potential documents, state-of-the art systems make simplifying assumptions and use domain specific training. In this work, we ask whether we can maintain generality by using large language models (LLMs). LLMs, which are pretrained on broad data, can perform diverse downstream tasks simply conditioned on natural language task descriptions. We propose and evaluate EVAPORATE, a simple, prototype system powered by LLMs. We identify two fundamentally differe…

  6. Close
    PAL: Program-aided Language Models
    Luyu Gao, Aman Madaan, Shuyan Zhou et al. · 2022 · Computation and Language · cited 901 times · AI summary available
    Abstract

    Large language models (LLMs) have recently demonstrated an impressive ability to perform arithmetic and symbolic reasoning tasks when provided with a few examples at test time (few-shot prompting). Much of this success can be attributed to prompting methods for reasoning, such as chain-of-thought, that employ LLMs for both understanding the problem description by decomposing it into steps, as well as solving each step of the problem. While LLMs seem to be adept at this sort of step-by-step decomposition, LLMs often make logical and arithmetic mistakes in the solution part, even when the problem is correctly decomposed. We present Program-Aided Language models (PaL): a new method that uses th…

  7. Close
    Large Language Models for Robotics: A Survey
    Fanlong Zeng, Wensheng Gan, Yongheng Wang et al. · 2023 · Robotics · preprint, not peer reviewed · cited 277 times · Not summarized yet
    Abstract

    The human ability to learn, generalize, and control complex manipulation tasks through multi-modality feedback suggests a unique capability, which we refer to as dexterity intelligence. Understanding and assessing this intelligence is a complex task. Amidst the swift progress and extensive proliferation of large language models (LLMs), their applications in the field of robotics have garnered increasing attention. LLMs possess the ability to process and generate natural language, facilitating efficient interaction and collaboration with robots. Researchers and engineers in the field of robotics have recognized the immense potential of LLMs in enhancing robot intelligence, human-robot interac…

  8. Close
    Procedural Memory Is Not All You Need: Bridging Cognitive Gaps in LLM-Based Agents
    Schaun Wheeler, Olivier Jeunen · 2025 · Artificial Intelligence · cited 18 times · AI summary available
    Abstract

    Large Language Models (LLMs) represent a landmark achievement in Artificial Intelligence (AI), demonstrating unprecedented proficiency in procedural tasks such as text generation, code completion, and conversational coherence. These capabilities stem from their architecture, which mirrors human procedural memory -- the brain's ability to automate repetitive, pattern-driven tasks through practice. However, as LLMs are increasingly deployed in real-world applications, it becomes impossible to ignore their limitations operating in complex, unpredictable environments. This paper argues that LLMs, while transformative, are fundamentally constrained by their reliance on procedural memory. To creat…

Prior work it builds on

  1. Related Used in depth by this paper A method it uses
    MetaGPT: Meta Programming for Multi-Agent Collaborative Framework
    Si-Rui Hong, Xia-Wu Zheng, Jonathan P. Chen et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 2,753 times · AI summary available
    Abstract

    Recently, remarkable progress has been made in automated task-solving through the use of multi-agent driven by large language models (LLMs). However, existing LLM-based multi-agent works primarily focus on solving simple dialogue tasks, and complex tasks are rarely studied, mainly due to the LLM hallucination problem. This type of hallucination becomes cascading when naively chaining multiple intelligent agents, resulting in a failure to effectively address complex problems. Therefore, we introduce MetaGPT, an innovative framework that incorporates efficient human workflows as a meta programming approach into LLM-based multi-agent collaboration. Specifically, MetaGPT encodes Standardized Ope…

  2. Related Used in depth by this paper A method it uses
    Efficient Memory Management for Large Language Model Serving with PagedAttention
    Woosuk Kwon, Zhuo-Han Li, Si-Yuan Zhuang et al. · 2023 · Symposium on Operating Systems Principles · cited 9,683 times · AI summary available
    Abstract

    High throughput serving of large language models (LLMs) requires batching sufficiently many requests at a time. However, existing systems struggle because the key-value cache (KV cache) memory for each request is huge and grows and shrinks dynamically. When managed inefficiently, this memory can be significantly wasted by fragmentation and redundant duplication, limiting the batch size. To address this problem, we propose PagedAttention, an attention algorithm inspired by the classical virtual memory and paging techniques in operating systems. On top of it, we build vLLM, an LLM serving system that achieves (1) near-zero waste in KV cache memory and (2) flexible sharing of KV cache within an…

  3. Related A method it uses
    Judging LLM-as-a-judge with MT-Bench and Chatbot Arena
    Lian-Min Zheng, Wei-Lin Chiang, Ying Sheng et al. · 2023 · Neural Information Processing Systems · cited 12,756 times · AI summary available
    Abstract

    Evaluating large language model (LLM) based chat assistants is challenging due to their broad capabilities and the inadequacy of existing benchmarks in measuring human preferences. To address this, we explore using strong LLMs as judges to evaluate these models on more open-ended questions. We examine the usage and limitations of LLM-as-a-judge, including position, verbosity, and self-enhancement biases, as well as limited reasoning ability, and propose solutions to mitigate some of them. We then verify the agreement between LLM judges and human preferences by introducing two benchmarks: MT-bench, a multi-turn question set; and Chatbot Arena, a crowdsourced battle platform. Our results revea…

  4. Related
    Splitwise: Efficient Generative LLM Inference Using Phase Splitting
    P. Patel, Esha Choukse, Chaojie Zhang et al. · 2023 · International Symposium on Computer Architecture · cited 1,078 times · Not summarized yet
    Abstract

    Generative large language model (LLM) applications are growing rapidly, leading to large-scale deployments of expensive and power-hungry GPUs. Our characterization of LLM inference shows that each inference request undergoes two phases: a compute-intensive prompt computation phase and a memory intensive token generation phase, each with distinct latency, throughput, memory, and power characteristics. Despite state-of-the-art batching and scheduling, the token generation phase underutilizes compute resources. Unlike prompt computation, token generation does not need the compute capability of the latest GPUs and can be run with lower power and cost. Based on these insights, we propose Splitwis…

  5. Related
    DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
    Yin-Min Zhong, Sheng-Yu Liu, Junda Chen et al. · 2024 · USENIX Symposium on Operating Systems Design and Implementation · cited 1,163 times · Not summarized yet
    Abstract

    DistServe improves the performance of large language models (LLMs) serving by disaggregating the prefill and decoding computation. Existing LLM serving systems colocate the two phases and batch the computation of prefill and decoding across all users and requests. We find that this strategy not only leads to strong prefill-decoding interferences but also couples the resource allocation and parallelism plans for both phases. LLM applications often emphasize individual latency for each phase: time to first token (TTFT) for the prefill phase and time per output token (TPOT) of each request for the decoding phase. In the presence of stringent latency requirements, existing systems have to priori…

Papers that cite it

  1. Close Uses this paper in depth
    Characterizing Performance–Energy Trade-offs of Large Language Models in Multi-Request Workflows
    Md. Monzurul Amin Ifath, Israat Haque · 2026 · Measurement and Modeling of Computer Systems · cited 7 times · Not summarized yet
    Abstract

    Large language models (LLMs) are increasingly deployed in applications forming multi-request workflows like document summarization, search-based copilots, and multi-agent programming. While these workflows unlock richer functionality, they also amplify latency and energy demand during inferences. Existing measurement and benchmarking efforts either focus on assessing performance of LLM inference systems or consider single-request evaluations, overlooking workflow dependencies and cross-request interactions unique to multi-request workflows. Moreover, the energy usage of such interdependent LLM calls is not explored in-depth. To address these gaps, this paper presents the first systematic cha…

  2. Close Uses this paper in depth
    Hermes: Efficient Serving of LLM Applications with Probabilistic Demand Modeling
    Yifei Liu, Zuo Gan, Zheng-Hao Gan et al. · 2025 · ACM Transactions on Architecture and Code Optimization (TACO) · cited 3 times · Not summarized yet
    Abstract

    Applications based on Large Language Models (LLMs) contain a series of tasks to address real-world problems with boosted capability, which have dynamic demand volumes on diverse backends. Existing serving systems treat the resource demands of LLM applications as a blackbox, compromising end-to-end efficiency due to improper queuing order and backend warm up latency. We find that the resource demands of LLM applications can be modeled in a general and accurate manner with Probabilistic Demand Graph (PDGraph). We then propose Hermes, which leverages PDGraph for efficient serving of LLM applications. Confronting probabilistic demand description, Hermes applies the Gittins policy to determine th…

  3. Close Review
    Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems
    Xupeng Miao, Gabriele Oliaro, Zhihao Zhang et al. · 2023 · Machine Learning · cited 207 times · AI summary available

    Towards Efficient Generative Large Language Model Serving surveys methods for efficient LLM serving, including the systems problem Parrot addresses.

    Abstract

    In the rapidly evolving landscape of artificial intelligence (AI), generative large language models (LLMs) stand at the forefront, revolutionizing how we interact with our data. However, the computational intensity and memory consumption of deploying these models present substantial challenges in terms of serving efficiency, particularly in scenarios demanding low latency and high throughput. This survey addresses the imperative need for efficient LLM serving methodologies from a machine learning system (MLSys) research perspective, standing at the crux of advanced AI innovations and practical system optimizations. We provide in-depth analysis, covering a spectrum of solutions, ranging from …

  4. Close Uses this paper in depth
    Characterizing Performance–Energy Trade-offs of Large Language Models in Multi-Request Workflows
    Md. Monzurul Amin Ifath, Israat Haque · 2026 · Proceedings of the ACM on Measurement and Analysis of Computing Systems · cited 1 time · Not summarized yet
    Abstract

    Large language models (LLMs) are increasingly deployed in applications forming multi-request workflows like document summarization, search-based copilots, and multi-agent programming. While these workflows unlock richer functionality, they also amplify latency and energy demand during inferences. Existing measurement and benchmarking efforts either focus on assessing performance of LLM inference systems or consider single-request evaluations, overlooking workflow dependencies and cross-request interactions unique to multi-request workflows. Moreover, the energy usage of such interdependent LLM calls is not explored in-depth. To address these gaps, this paper presents the first systematic cha…

  5. Close
    Towards End-to-End Optimization of LLM-based Applications with Ayo
    Xin Tan, Yi-Min Jiang, Yitao Yang et al. · 2024 · International Conference on Architectural Support for Programming Languages and Operating Systems · cited 59 times · Not summarized yet
    Abstract

    Large language model (LLM)-based applications consist of both LLM and non-LLM components, each contributing to the end-to-end latency. Despite great efforts to optimize LLM inference, end-to-end workflow optimization has been overlooked. Existing frameworks employ coarse-grained orchestration with task modules, which confines optimizations to within each module and yields suboptimal scheduling decisions. We propose fine-grained end-to-end orchestration, which utilizes task primitives as the basic units and represents each query's workflow as a primitive-level dataflow graph. This explicitly exposes a much larger design space, enables optimizations in parallelization and pipelining across pri…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 2 November 2026.

The illustrated guide to the papers around a paper