Evaluating Temporal Semantic Caching and Workflow Optimization in Agentic Plan-Execute Pipelines
This paper introduces a temporal semantic cache and MCP workflow optimizations to address latency and validity challenges in industrial asset operations, achieving significant speedups while highlighting the limitations of traditional semantic caching for parameter-rich, time-sensitive agentic queries.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are the manager of a massive, high-tech factory. Every day, workers ask you complex questions like, "How is Machine 6 doing yesterday?" or "What went wrong with the cooling system last week?"
To answer these, you don't just guess. You have to:
- Find the right tools: Locate the specific manuals and sensors for that machine.
- Make a plan: Decide which steps to take first.
- Do the work: Go check the sensors, read the logs, and talk to other departments.
- Write the report: Summarize everything into a clear answer.
Doing this from scratch for every single question takes a long time. If a worker asks the same question in slightly different words (e.g., "How's Chiller 6?" vs. "What's the status of the 6th chiller?"), you end up doing all that work again, even though the answer is almost the same.
This paper is about building a super-smart assistant to speed up this factory manager. The authors built two main "speed boosters" to make these answers come back faster.
Booster 1: The "Time-Aware" Memory Bank
Usually, computer assistants use a "semantic cache." Think of this like a librarian who remembers questions based on how they sound. If you ask, "How is the weather?" and then ask, "What's the weather like?", the librarian says, "Oh, I just answered that!" and gives you the old answer.
The Problem: In a factory, this is dangerous.
- If you ask about "Chiller 6" today, the answer is different than if you ask about "Chiller 6" yesterday.
- If you ask about "Chiller 6" and the next person asks about "Chiller 9," the librarian might get confused because the sentences sound similar, but the machines are totally different.
The Solution: The authors built a Time-Aware Memory Bank. Before the librarian even looks up the answer, a smart filter checks the question:
- Is it about "Right Now"? (e.g., "Is the machine broken?") → Don't use the memory bank! Go check the machine live.
- Is it about "Yesterday"? → Translate "yesterday" into a specific date (e.g., Oct 12) before looking it up.
- Is it about a specific machine? → Make sure the memory bank doesn't mix up Chiller 6 with Chiller 9.
The Result: When the system finds a perfect match, it skips the whole "find tools, make plan, do work" process and just hands you the answer. This made the system 31 times faster for those specific matches.
Booster 2: The "Assembly Line" Workflow
Even when the system can't use the memory bank (because the question is new), it still wastes time. In the old way, the manager did everything one step at a time: Find Tool A, then Find Tool B, then Check Sensor A, then Check Sensor B.
The Solution: The authors turned this into an Assembly Line.
- Tool Discovery: Instead of waking up the tool-finding robots every single time, they kept them awake and ready. This saved a huge amount of time just finding the tools.
- Parallel Work: Instead of checking Sensor A and then Sensor B one by one, they sent two workers out to check them at the same time.
The Result: Even when the system had to do the work from scratch, it finished 1.67 times faster just by organizing the workflow better.
The Big Picture: How Fast Did It Get?
When they combined both speed boosters:
- The "Miss" Path: Even when the system didn't have the answer in memory, it was still 40% faster than the old way because of the Assembly Line (Booster 2).
- The "Hit" Path: When the system found a cached answer, it was 31 times faster.
- Overall: The average time to get an answer dropped from 34 seconds to just under 10 seconds.
The Catch (The "Failure Mode")
The paper also found a very important limitation. Even with their fancy "Time-Aware" filter, the system still got confused sometimes.
Imagine a worker asks: "How is Chiller 6 doing?"
The system finds an old answer for: "How is Chiller 9 doing?"
Because the sentences sound 95% identical, the system's "similarity check" gets tricked. It thinks, "These are the same!" and gives the wrong answer. The authors found that no matter how they tuned the system, about 36% of the time, the system couldn't perfectly tell the difference between "Chiller 6" and "Chiller 9" just by looking at the words.
The Lesson: You can't rely only on how words sound to decide if an answer is safe to reuse in a factory. You have to be very careful about the specific numbers and names (the "parameters") inside the question.
Summary
The authors built a system that:
- Remembers answers but checks the date and machine name first so it doesn't give you yesterday's news for today's problem.
- Organizes the work so multiple tasks happen at once instead of one by one.
- Proves that while this makes things incredibly fast, you still need to be careful not to mix up similar-sounding questions about different machines.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.