United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.
Get full access to United States of Banan at konradb.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Once people decided to apply the LLM paradigm to time series, getting augmentation was just a matter of time, wasn't it? Except it's easier said than done in some domains like predictive maintenance, scarce data, short sequences, and a ton of other issues. Existing time series RAG methods rely on static embeddings and learned context augmentation, are not fit for purpose. The proposed framework is called RAG4CTS. It introduces a hierarchical knowledge base, bi-weighted retrieval, and agent-driven context optimization. Results?
Encouraging SOTA prediction performance and massive reduction in false alarms.
SPEAKER_00Here we can see the full pipeline. Start with a query time series. Instead of embedding it, the system searches a structured database of raw past sequences Retrieval happens in two steps, first by trend, then by exact values. After that, an agent selects how many past examples to include. These are then attached to the query and passed into the model. The key idea is simple. Give the model real past cases that follow the same physical rules. First, data is stored without compression, so nothing is lost.
SPEAKER_00It is organized like a tree. Aircraft type, device, then signals. Retrieval is careful. It weights recent points more and also weights variables based on their effect. This avoids mixing unrelated patterns. Then comes a clever step. Instead of fixing how much context to use, the system tests different amounts and picks the best one automatically. So how does retrieval work? First, the system finds sequences with similar shape using correlation. This filters candidates quickly.
SPEAKER_00Then it checks exact values using a distance measure. The weighting is key. Recent points and important variables matter more. This means the system prefers matches that follow the same physical behavior, not just similar curves. The result is a small set of highly relevant past sequences. An important aspect is how the system decides how much context to use. It treats the best retrieved sample as a test case. Then it adds more examples step by step and checks prediction error. If adding more helps, keep going.
SPEAKER_00If it hurts, stop. This is like testing how much advice improves the result. The system adapts per query, which avoids too little or too much context. Section 4 shows results on real aircraft data. The task is hard, very few samples and short sequences. Standard models struggle, even large ones. This method works better because it uses past cases directly. Adding covariates improves results since they drive the system behavior. The system was also deployed in practice and detected faults
correctly without false alarms.
SPEAKER_00That is a strong sign it works beyond experiments. The main idea is to rethink how retrieval works for time series. Instead of compressing data into vectors, keep the raw signals and compare them carefully. Respect the system's physics by using covariates and proper weighting. Then let the model learn from real past examples. Finally, adjust context size automatically. These steps together make the system accurate and reliable, even when data is scarce and sequences are short.
Paper: https://arxiv.org/abs/2504.11159 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...
Paper: https://arxiv.org/abs/2604.16748 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...
Paper: https://arxiv.org/html/2604.01845v1 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United...
Paper: https://arxiv.org/abs/2604.13253 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...
Paper: https://arxiv.org/abs/2604.05257 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...