Streaming Knowledge Compilation: Proactive Materiality-Scored Pinning for Time-Evolving LLM Wikis
This paper introduces a framework for Streaming Knowledge Compilation that maintains efficient LLM wikis for evolving corpora by proactively pinning documents based on a learned materiality signal, achieving a provable regret bound and demonstrating superior performance over static baselines in both finance and Wikipedia domains through a novel regret-based evaluation metric.
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 have a brilliant, super-smart assistant (an AI) who knows a lot about the world, but their memory is limited. They can only hold a certain amount of information in their "working brain" at one time.
Usually, when you ask this assistant a question, they either rely on what they already know (which might be old) or they go to a library to find a book, read it, and then answer you. This library trip takes time.
The Problem:
What if the world changes while you are waiting? In finance, a company might get sued overnight. In Wikipedia, a major event might rewrite history in real-time. If your assistant's "working brain" is full of old facts, they can't answer new questions correctly.
The paper introduces a solution called Streaming Knowledge Compilation. Think of it as a smart, proactive librarian who doesn't wait for you to ask a question. Instead, they watch a live news feed, predict which stories are going to be important before you ask about them, and swap out old facts in the assistant's brain for the new, critical ones.
Here is how it works, broken down into simple concepts:
1. The "Materiality" Signal: The Heat Detector
The biggest challenge is that the news feed is huge. You can't put everything in the assistant's brain; there isn't enough space. You have to choose.
The authors created a "heat detector" (called a materiality signal) that scans every new article and asks: "Is this story going to cause a big reaction?"
- In Finance: The detector looks for abnormal stock volatility. If a news article is likely to make a stock price jump or crash, it's "hot."
- In Wikipedia: The detector looks for abnormal edit speed. If a page is being edited frantically by hundreds of people in a short time, it's "hot."
If an article is "hot," the system pins it (keeps it) in the assistant's memory. If it's "cold" (just a boring routine update), it gets thrown out to make room.
2. The "Proactive" Move: Guessing Before You Ask
Traditional systems wait for you to ask a question, realize they don't know the answer, and then go update their memory. This paper's system is proactive.
It predicts that because a stock is volatile, you will probably ask about it soon. So, it updates the memory before you even type the question. It's like a weather app that tells you to grab an umbrella before you step outside, rather than waiting until you get wet.
3. The "Smart Swap": Avoiding Redundancy
The system is also clever about what it keeps. Imagine you have a news feed about a tech company.
- Article A: "Tech Company X had a bad earnings report."
- Article B: "Tech Company X's stock dropped 10%."
These are the same story. If the system keeps both, it wastes space. The authors built a State-Aware Scorer. It looks at what's already in the assistant's brain. If the brain already has the "bad earnings" story, the system realizes the "stock drop" story is redundant and gives it a low score, so it doesn't get pinned. It only keeps the new information that adds value.
4. The Two Experiments: Finance and Wikipedia
The team tested this idea in two very different worlds to prove it works everywhere:
The Finance Test: They used stock market data. They trained a small "head" on a frozen AI model to predict which news would cause stock volatility.
- Result: The system successfully predicted which news was "hot" (72.8% accuracy in ranking).
- The Twist: When they tested the final answers, the AI judge (another AI) got confused. Because the AI judge already knew a lot about big companies, it sometimes preferred the "confident but wrong" answers from the un-updated AI over the "factually correct but cluttered" answers from the updated system. This taught them that regret analysis (measuring how much worse the system is compared to a perfect version) is a better way to judge success than just asking "Did it get the right score?"
The Wikipedia Test: They used Wikipedia edits.
- Result: Here, the system worked perfectly. Because the AI judge didn't know the specific, breaking news edits, the system that had the new facts scored much higher. This confirmed that the system actually works when the information is truly new.
5. The "Regret" Guarantee
The authors did some heavy math to prove their system is efficient. They showed that even if their "heat detector" isn't perfect (it makes mistakes), the system will still perform well over time.
They call this Regret. Think of it as the "missed opportunity cost."
- If you had a perfect oracle (a magic crystal ball) that knew exactly which news was important, how much better would it do?
- The paper proves that their system's "missed opportunities" grow very slowly (sub-linearly). This means that as time goes on, their smart, proactive librarian gets almost as good as the magic crystal ball, without needing to be perfect.
Summary Metaphor
Imagine you are driving a car with a limited dashboard screen.
- Old Way: You wait until you see a pothole, then you look at the map to see if there's a detour. You hit the pothole first.
- This Paper's Way: You have a sensor that detects potholes forming on the road ahead. Before you even see the pothole, the system automatically swaps the map on your screen to show the detour.
- The Catch: The sensor isn't 100% perfect; sometimes it thinks a puddle is a pothole. But the system is smart enough to realize, "Oh, I already have a detour for this road," so it doesn't waste screen space on a duplicate map.
The paper concludes that this "Streaming Knowledge Compilation" is a powerful, general way to keep AI assistants up-to-date in fast-moving worlds like finance, news, and science, using a single, efficient algorithm that adapts to whatever "heat detector" you give it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.