[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82265-en":3,"doc-seo-82265-105":29,"detail-sidebar-cat-0-en-105":90},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82265,962075114101,"Seraphina","https://ap-avatar.wpscdn.com/avatar/e000253a75eb197efd?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780044092746381165",8,"Research & Report","General Non-Clairvoyant KV-Cache Scheduling via Regime-Aware Routing","Studies non-clairvoyant scheduling for batched Large Language Model (LLM) inference under a strict KV-cache memory budget, where each request’s prompt length is known but response length is unknown. During decoding, cache usage combines a fixed prompt component with a response-driven component that grows per generated token. The scheduler selects feasible active batches while eviction discards accumulated cache, wasting prior work. The method introduces the first O(1)-competitive regime-aware routing framework with constant-factor guarantees for completion time, makespan, and online arrivals.","arXiv :2607 .09248v 1 [ cs .DS] 10 Jul 2026  \nGeneral Non-Clairvoyant KV-Cache Scheduling via Regime-Aware Routing  \nYiding Feng∗ Siyu Liu† Zonghan Yang‡ Yuhao Zhang§  \nAbstract  \nWe study non-clairvoyant scheduling for batched Large Language Model (LLM) inference under a hard Key-Value (KV) cache memory budget. Each request has a known prompt length but an unknown response length, and its memory footprint comprises a fixed prompt component together with a response component that grows with each decoded token. At each decoding round, the scheduler chooses a feasible batch of active requests; evicting a request discards its accumulated cache states, wasting prior computation. The goal is to minimize total completion time against the optimal clairvoyant schedule that knows all response lengths.  \nWe present the first O(1)-competitive algorithm for arbitrary prompt lengths and arbitrary response lengths with no additional assumptions. Rather than relying on a single universal scheduling policy, our algorithm is built on a novel regime-aware routing framework. Specialized sub-schedulers handle different memory-growth geometries, while a meta-scheduler time-shares the memory budget across them and dynamically routes each job as its execution progressively reveals its behavior. This framework also yields constant-factor guarantees for makespan and for total completion time under online arrivals.  \n1 Introduction  \nLarge Language Model (LLM) inference has become a cornerstone of modern computing infrastructure, supporting interactive assistants, automated workflows, and agentic applications at massive scale. As these workloads shift from short exchanges toward longer and more computation-intensive tasks, the inference phase has become a major contributor to operational cost and energy consumption [Luccioni et al. , 2024 , Stojkovic et al. , 2025a,b] . Meeting quality-of-service requirements under these resource pressures calls for careful scheduling across the serving stack, from cluster-wide request routing to the memory management logic on individual serving instances.  \nThis work focuses on replica-level scheduling inside an LLM inference service. In modern LLM serving stacks, a routing layer assigns each incoming request to one of many parallel serving instances, known as replicas; within each replica, the local scheduler decides which requests to process together and how to manage the finite memory budget [Yu et al. , 2022 , Kwon et al. , 2023 , Zheng et al. , 2024 , Sun et al. , 2024] . The central challenge arises from the Transformer architecture, whose self-attention mechanism stores intermediate states in a per-request Key-Value (KV) cache to avoid quadratic recomputation during decoding [Vaswani et al. , 2017 , Pope et al. ,  \n∗ Hong Kong University of Science and Technology. Email: [ydfeng@ust.hk](ydfeng@ust.hk)  \n†Shanghai Jiao Tong University. Email: [williamliusy@sjtu.edu.cn](williamliusy@sjtu.edu.cn)  \n‡Shanghai Jiao Tong University. Email: [fstqwq@sjtu.edu.cn](fstqwq@sjtu.edu.cn)  \n§Shanghai Jiao Tong University. Email: zhang [yuhao@sjtu.edu.cn](yuhao@sjtu.edu.cn)  \n2023] . Processing a request involves a prefill phase that encodes the input prompt and initializes the cache, followed by a decode phase that generates response tokens autoregressively, appending new KV entries at each step. The memory footprint of a request therefore has a fixed component from the prompt and a component that grows linearly with the response length. Modern systems manage this dynamic growth through two mechanisms: continuous batching [Yu et al. , 2022], which updates the active batch at the granularity of individual decoding iterations, and block-based cache management [Kwon et al. , 2023 , Zheng et al. , 2024], which allocates and recycles memory across requests. When the budget is exhausted, active requests must be killed, discarding the KV-cache entries accumulated during decoding. The scheduler must therefore balance high concurrency","cbCaiunXmkJOPxTi","https://ap.wps.com/l/cbCaiunXmkJOPxTi","pdf",521764,1,41,"English","en",105,"# Abstract\n# Introduction","[{\"question\":\"What makes the scheduling problem non-clairvoyant in this work?\",\"answer\":\"Response lengths are not known in advance and are only revealed after completion, while KV-cache usage grows with each decoded token.\"},{\"question\":\"How does KV-cache memory usage evolve during inference?\",\"answer\":\"A request has a fixed cache component from the prompt and an additional component that increases linearly with the number of decoded response tokens.\"},{\"question\":\"What is the key idea of the proposed regime-aware routing framework?\",\"answer\":\"Instead of a single universal scheduling rule, specialized sub-schedulers handle different memory-growth geometries, and a meta-scheduler time-shares the memory budget while dynamically routing each job as its behavior becomes known.\"}]",1784179262,103,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":85,"head_meta":87,"extra_data":89,"updated_unix":27},"general-non-clairvoyant-kv-cache-scheduling-via-regime-aware-routing","",{"@graph":35,"@context":84},[36,53,67],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/general-non-clairvoyant-kv-cache-scheduling-via-regime-aware-routing/82265/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-16",true,{"@type":64,"interactionType":65,"userInteractionCount":4},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70,76,80],{"name":71,"@type":72,"acceptedAnswer":73},"What makes the scheduling problem non-clairvoyant in this work?","Question",{"text":74,"@type":75},"Response lengths are not known in advance and are only revealed after completion, while KV-cache usage grows with each decoded token.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How does KV-cache memory usage evolve during inference?",{"text":79,"@type":75},"A request has a fixed cache component from the prompt and an additional component that increases linearly with the number of decoded response tokens.",{"name":81,"@type":72,"acceptedAnswer":82},"What is the key idea of the proposed regime-aware routing framework?",{"text":83,"@type":75},"Instead of a single universal scheduling rule, specialized sub-schedulers handle different memory-growth geometries, and a meta-scheduler time-shares the memory budget while dynamically routing each job as its behavior becomes known.","https://schema.org",{"og:url":51,"og:type":86,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":88,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":91},[92,96,100,104,109,114,119,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":93,"show_sort_weight":94,"slug":95},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":97,"show_sort_weight":98,"slug":99},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":101,"show_sort_weight":102,"slug":103},"Exam",70,"exam",{"id":105,"doc_module":4,"doc_module_name":45,"category_name":106,"show_sort_weight":107,"slug":108},5,"Comic",60,"comic",{"id":110,"doc_module":4,"doc_module_name":45,"category_name":111,"show_sort_weight":112,"slug":113},6,"Technology",50,"technology",{"id":115,"doc_module":4,"doc_module_name":45,"category_name":116,"show_sort_weight":117,"slug":118},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":120,"slug":121},30,"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":45,"category_name":136,"show_sort_weight":105,"slug":137},19,"General","general"]