Lachesis: Lifetime-Aware KV Cache Placement for Agent Serving across HBM and High-Bandwidth Flash

arXiv:2610.08378 · cs.AR, cs.DC · Submitted 2026-10-06 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.

Tom: We're looking at the paper: "Lachesis: Lifetime-Aware KV Cache Placement for Agent Serving across HBM and High-Bandwidth Flash".

Title and authors: Tom: Now we're moving into what Lachesis actually does, so we see how they summarize their findings regarding that lifetime-aware KV cache placement across HBM and High-Bandwidth Flash.

Jane: Right, so instead of just dumping everything in one place, Lachesis figures out if a piece of context will be short-lived or long-lived and puts it in the right spot. It’s like sorting your luggage for a trip you might take for three days versus one that lasts six months.

Tom: Exactly. The big mechanical thing they're doing is using a deterministic path where they know exactly when a segment ends, like when a turn finishes or a sub-agent returns, to decide if it goes into HBM or stays in the flash memory.

Jane: And there's this predictive path too where Lachesis tries to guess how long each worker is going to run before it even starts and puts those workers that look like they’ll finish soonest into the HBM.

Tom: The result is pretty telling, they found that by doing this lifetime-aware placement, Lachesis extends the life of High-Bandwidth Flash by a factor of one point one nine to three point one three times compared to just putting everything in HBM first.

Jane: That extension is significant because it means the flash doesn't wear out as fast under twenty four by seven operation, which is what Meng was worried about regarding operational costs and hardware longevity.

Tom: And Lalam says they even managed to push the limits quite hard, showing that under a tight service level objective, that High-Bandwidth Flash lasts longer than its five year warranty on the multi-agent trace.

Jane: So what this really changes for us is making sure that these complex AI agent systems can run reliably over very long periods without constantly hitting those memory limits or worrying about hardware failure due to excessive write cycles.

Tom: It’s moving beyond just a single memory type and showing how you can strategically use both HBM and the flash based on the specific behavior of the agent session itself.

Jane: So, if you're running complex AI agents that need to maintain context over hours or days, this method gives you a much more sustainable way to deploy them in production environments.

Tom: And it relies on getting three pieces of information from the system—the segment ID, the spawn record for workers, and that boundary where a segment closes—to make all those decisions.

Jane: It’s about giving the system enough data upfront so it can make these placement choices before any of that context even gets written to memory.

Lu: The idea of knowing the lifetime before writing is ambitious; if we can get that prediction right, it could change how we structure agent context management in the long term.

Meng: I’m still skeptical about the exact numbers under real traffic, but if this methodology holds up in production, it could definitely reduce our hardware refresh cycle costs.

Lalam: I’m sure of this result; based on all the literature I’ve seen, Lachesis seems like the most certain way to manage that High-Bandwidth Flash endurance issue for these kinds of workloads.

The paper's summary: Tom: We're looking at how Lachesis improves upon previous ideas by detailing those two placement paths we talked about, the deterministic one and the predictive one.

Jane: That’s like having two different strategies for packing your bags—one where you follow the map exactly, and another where you guess which parts of the trip will take longer.

Tom: Right. The improvement there is that Lachesis uses a deterministic path specifically for those structural axes, meaning it locks in the placement based on what the harness tells it about boundaries right away.

Jane: So when a turn ends or a sub-agent comes back, Lachesis just knows exactly where to put that context because it’s following that fixed rule.

Tom: And for the predictive path, they rank all the segments shortest first based on their predicted lifetime at spawn and admit as many as the High-Bandwidth Memory has room for.

Jane: So if you have a bunch of short tasks running, Lachesis puts them in HBM first so you get those fast responses quickly.

Tom: This is how they get that performance gain over just sticking everything in HBM first, extending the flash lifetime by one point one nine to three point one three times.

Jane: That means you get much better endurance for your hardware and less wear and tear over time, which addresses Meng's concerns about running models at scale.

Tom: Lalam is saying this result is very solid; they even showed that under a tight service level objective, the flash lasts longer than its warranty on the multi-agent trace.

Jane: And Lu is pointing out that this whole structure—the way they define those three axes and how Lachesis uses both placement paths—is really what makes it work for these complex agent sessions.

Tom: The main implication is that we don't have to treat the entire session as one big blob of data anymore; we can intelligently slice it based on how long each piece of information actually needs to live.

Jane: It changes how we think about memory management in AI systems, moving from a simple put it somewhere approach to a more nuanced, lifetime-aware distribution.

Tom: So the next thing we need to look at is what this means for the actual cost of running these larger models versus the endurance gain they’re seeing.

Jane: It’s about getting that context slicing right so you don't waste resources putting short-lived data in expensive flash when HBM could handle it better.

The paper's improvements: Tom: So we've covered how Lachesis uses segment lifetime—temporal, structural, and inter-worker—to decide whether to put context in HBM or High-Bandwidth Flash.

Jane: It boils down to intelligently sorting your memory based on how long the data is actually going to be needed.

Tom: Right. The whole point of the Lachesis paper is that this lifetime awareness lets you extend the life of High-Bandwidth Flash by a factor of one point one nine to three point one three times compared to just putting everything in HBM first.

Jane: That’s a huge improvement for hardware longevity, especially when we think about running these agentic systems continuously for long stretches.

Tom: Lalam is saying this result is very solid; they even showed that under a tight service level objective, the flash lasts longer than its five year warranty on the multi-agent trace.

Jane: It means we can deploy these complex AI agents with much more confidence that they won't be constantly hitting those memory or endurance limits.

Tom: Meng is asking about what this actually costs to run; he’s wondering if this smart placement strategy translates into lower operational expenses at scale.

Jane: He’s looking for the concrete numbers on how much less wear and tear they are seeing compared to a standard HBM-first approach.

Lalam: I’m sure of this result; based on all the literature I’ve seen, Lachesis seems like the most certain way to manage that High-Bandwidth Flash endurance issue for these kinds of workloads.

Conclusion: Tom: So we’ve covered how Lachesis uses segment lifetime—temporal, structural, and inter-worker—to decide whether to put context in High-Bandwidth Memory or High-Bandwidth Flash across HBM and HBF for agent serving.

Jane: Right, it boils down to intelligently sorting your memory based on how long the data is actually going to be needed. It's about figuring out if a piece of context will be short-lived or long-lived and putting it in the right spot.

Tom: The whole point of this paper, "Lachesis: Lifetime-Aware KV Cache Placement for Agent Serving across HBM and High-Bandwidth Flash," is that this lifetime awareness lets you extend the life of High-Bandwidth Flash by a factor of one point one nine to three point one three times compared to just putting everything in HBM first.

Jane: That's a huge improvement for hardware longevity, especially when we think about running these agentic systems continuously for long stretches without constantly hitting memory limits or worrying about physical wear and tear.

Tom: Lalam is saying this result is very solid; they even showed that under a tight service level objective, the High-Bandwidth Flash lasts longer than its five year warranty on the multi-agent trace.

Jane: It means we can deploy these complex AI agents with much more confidence that they won't be constantly hitting those memory or endurance limits in production.

Tom: Meng is asking about what this actually costs to run; he’s wondering if this smart placement strategy translates into lower operational expenses at scale when shipping models.

Jane: He’s looking for the concrete numbers on how much less wear and tear they are seeing compared to a standard HBM-first approach, which is what we need to see.

Tom: Lu is saying the way they defined those three axes and used both placement paths is what makes it work for these complex agent sessions, even if it’s a lot of logic to set up.

Jane: It’s about getting that context slicing right so you don't waste resources putting short-lived data in expensive flash when HBM could handle it better.

Tom: The implication is that we can build more robust and longer-running AI agents without worrying as much about the physical limitations of the memory hardware.

Jane: It gives us a better tool for managing those massive context piles across many agent requests.

Tom: To wrap up, Lachesis shows how to use segment lifetime awareness to manage KV cache placement across HBM and High-Bandwidth Flash for these demanding AI workloads.

Jane: It’s a sophisticated way to solve the memory wall for these agentic systems that need long context sessions.

Lu: The idea of knowing the lifetime before writing is ambitious; if we can get that prediction right, it fundamentally changes how we structure agent context management in the long term.

Meng: I’m still skeptical about the exact numbers under real traffic, but if this methodology holds up in production, it could definitely reduce our hardware refresh cycle costs.

Lalam: I’m sure of this result; based on all the literature I’ve seen, Lachesis seems like the most certain way to manage that High-Bandwidth Flash endurance issue for these kinds of workloads.

Seoul National University · KAIST · University of Illinois

cs.AR, cs.DC

Submitted: 2026-10-06

Updated: 2026-11-24

Code: https://github.com/scalesnu/LLMSimulator

Project page: https://openai.github.io/openaiagents-python/multi_agent

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 98/100

The gist: Large language model (LLM) serving is increasingly dominated by agentic workloads, in which agents and their subagents accumulate context as KV cache across many requests…

Key concepts

KV Cache
The Key-Value (KV) cache stores intermediate computations from large language model requests, acting as a memory buffer for ongoing agent sessions. In agentic workloads, these caches accumulate rapidly across many concurrent requests and sub-agents.
Context Segmentation Axes
Agent session context is divided into segments based on three axes: temporal (time), structural (delegation within a turn), and inter-worker (lifetimes of different workers). These axes define how the accumulated context changes over time and across different processing units.
HBM vs. HBF Placement
The core idea is to strategically place context segments based on their predicted lifetime. Shorter-lived segments are placed in High-Bandwidth Memory (HBM), while longer-lived ones are sent to High-Bandwidth Flash (HBF). This ensures that HBM handles frequent writes and less data is pushed to the more expensive HBF.
Lachesis Placement Paths
Lachesis uses two placement paths: a deterministic path for known structural boundaries and a predictive path for inter-worker relationships. The predictive path ranks segments by predicted lifetime, prioritizing shorter ones for HBM admission, which maximizes HBF longevity.

Terminology

Summary

Large language model (LLM) serving is increasingly dominated by agentic workloads, in which agents and their subagents accumulate context as KV cache across many requests, consuming substantial memory. p. 0<ref:2610.08378#pg1, Large language model (LLM) serving is increasingly dominated by agentic workloads, in which agents and their subagents accumulate context as KV cache across many requests, consuming substantial memory >

The key insight is that KV cache should be placed across HBM and HBF by its lifetime.<ref:2610.08378#pg1, Placing shorter-lived data in HBM lets HBM absorb more of an agent run’s writes and sends less of them to HBF >

Context Segmentation Axes

The context an agent session accumulates divides into segments of differing lifetime along three axes, temporal, structural, and inter-worker.<ref:2610.08378#pg1>

The structural axis follows delegation within a turn.<ref:2610.08378#pg2, A lead agent may, depending on the harness, delegate subtasks to sub-agents, each running in its own context >

The inter-worker axis follows the workers that carry out those subtasks, whose lifetimes differ by when each completes.<ref:2610.08378#pg2, The completion time is not fixed in advance, and worker lifetimes spread by 3. p. 17–23.6× between p10 and p90 >

Placement Strategies

Lachesis places along two paths (Figure 1, right).<ref:2610.08378#pg2, The deterministic path covers the temporal and structural axes, where the harness knows whether a segment is discarded at the boundary or retained past it >

The predictive path covers the inter-worker axis, where no context boundary separates one worker’s segment from another’s.<ref:2610.08378#pg2, Lachesis predicts each segment’s lifetime at spawn, ranks the segments shortest-first, and admits as many as HBM has room for >

Performance Gains

In trace-driven simulation, Lachesis extends HBF lifetime by 1.19–3.13× over HBM-first placement. p. 0<ref:2610.08378#pg2, At a tight service-level objective (SLO) under continuous 24×7 operation, HBF outlasts its five-year warranty on the multi-agent trace >

Lachesis’s gain over HBM-first is set by one ratio, HBM’s capacity against the short-lived KV live at one time, and the GPU-memory configuration and the SLO.<ref:2610.08378#pg1, Lachesis extends HBF lifetime by 1. p. 050–2.95× at the tight SLO and 1. p. 0 p. 019–1.89× at the loose one >

Design Implementation

Lachesis receives three things from the harness, the id of the segment that each LLM request extends, the spawn record written at each sub-agent spawn, and the context boundary that closes a segment.<ref:2610.08378#pg4>

Evaluation Results

At a tight SLO, HBF outlasts the five-year warranty under Lachesis at every GPU-memory configuration and on both models, and under HBM-first placement only with Qwen3-235B-A22B on H3’s daisy chain.<ref:2610.08378#pg9, Lachesis reaches 3. p. 13–9.3 deviceyears against HBM-first's 1. p. 89–4.8, extending HBF lifetime by 1. p. 450–2.95× at the tight SLO and 1.19–1.89× at the loose one >

Conclusion

We find that the context an agent session accumulates divides at harness-defined context boundaries into context segments whose lifetimes differ along three axes, temporal, structural and inter-worker, and that each lifetime is knowable before its segment is written.<ref:2610.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Improved KV cache placement based on segment lifetime: Lachesis places shorter-lived context segments in HBM and long-lived context segments in High-Bandwidth Flash (HBF). This approach allows HBM to absorb more of a session’s writes and sends less of them to HBF, which extends HBF lifetime by 1.19–3.13 times over HBM-first placement.

  2. Predictive worker ranking for inter-worker axis: Lachesis employs a predictive path that ranks the workers by a lifetime predicted at spawn, shortest first. This allows the system to admit the workers predicted to be shortest-lived to HBM, ensuring that less KV reaches HBF and its endurance lasts longer.

  3. Deterministic placement for structural axes: Lachesis uses a deterministic path that places segments based on the class fixed by the harness, such as placing the short-lived context segment in HBM and the long-lived context segment in HBF when a turn ends or a sub-agent returns.

Sources

Related papers