UIUC's TimeClaw Beats 235B Models at Time Series Analysis Using Fewer Tokens
TimeClaw gives LLM agents a time-series-native runtime, evolving toolbox, and episodic memory — beating models up to 235B parameters while using fewer tokens
Takeaways
- TimeClaw is an agentic harness from UIUC that wraps frozen LLMs with time-series-native tools, episodic memory, and a self-evolving toolbox for contextualized temporal reasoning.
- It addresses two fundamental flaws in current LLM-on-time-series approaches: tokenization distorts numerical proximity, and agentic workflows weren't designed for structured temporal signals.
- On the TSRBench benchmark, TimeClaw achieves 49.8% accuracy — outperforming Qwen3-235B and all specialized time-series LLMs — while using the fewest tokens of any method tested.
- A capability evolution loop autonomously synthesizes reusable tools (e.g.,
portfolio_sharpe,capm_regression) from successful training trajectories, yielding a 38.9% improvement on the TSAIA finance benchmark. - Multimodal memory retrieval uses both a text embedding of task context and a 20-dim numerical fingerprint of the series, enabling two-stage retrieval that matches tasks by both meaning and signal shape.
- Code is open-source (Apache 2.0) and supports OpenAI, Google Gemini, and Anthropic Claude backends via LangChain.
Most LLM-based time series tools make the same mistake: they dump raw numbers into the model's context window and hope for the best. A team from the University of Illinois Urbana-Champaign argues this approach is fundamentally broken, and their new framework TimeClaw is built to fix it.
The core problem: two misalignments
When you serialize a time series into text tokens, two things go wrong simultaneously. The first is datatype misalignment: numerical temporal signals encode statistical properties such as trends and periodicity that can be distorted when serialized into tokens and processed through language-oriented attention mechanisms. The second is subtler but equally damaging.
The second is agentic process misalignment: existing agentic workflows are primarily designed for text-centric information processing. Long numerical sequences may further burden the context window and distract the agent from reliable temporal reasoning. The paper even proves this formally: numerically close values like 99.999999 and 100.0 can be farther apart in token space than values that are numerically distant, meaning the model's internal notion of "similarity" is simply wrong for numbers.

There's also a context window problem. Long serialized time series increase the number of irrelevant or weakly relevant tokens competing for the same unit attention mass. If some tokens act as attention sinks and absorb disproportionate mass, the remaining mass available to temporally relevant positions is further reduced. In other words, the model literally stops paying attention to the parts of the series that matter.
The harness approach
TimeClaw's answer is an agent harness , a structured runtime that wraps a frozen LLM and reshapes how it interacts with temporal data. Instead of forcing numbers into the token stream, the harness keeps time series objects in a structured workspace and exposes them only through typed, executable interfaces. The agent analyzes them through auditable temporal operations, while intermediate analytical states are maintained in a structured workspace.

The framework has three coordinated components:
- Runtime-native temporal tools: Each tool runs directly on the workspace at numerical precision and returns a compact structured observation. The agent calls things like
compute_acf,detect_periodicity, orarima_forecast, it never has to read raw numbers from the prompt. Every tool call is logged, creating an auditable evidence chain. - Experience-driven capability evolution: An evolution operator identifies verified recurring sub-procedures and admits them into the tool set. As a result, the tool set evolves and expands with the target task distribution. This is how TimeClaw grew three finance-specific tools ,
portfolio_var,portfolio_sharpe, andcapm_regression, autonomously from training trajectories, without any human engineering. - Episodic multimodal memory: Past reasoning traces are stored and retrieved using a two-part key: a text embedding of the task context, and a 20-dimensional numerical "fingerprint" of the time series itself (capturing statistics like trend slope, dominant FFT frequency, autocorrelation at multiple lags, and change-point rate). Retrieval proceeds in two stages: first filtering by NL-context cosine similarity, then re-ranking by L2 distance on the normalized fingerprint.
What the numbers say
TimeClaw achieves the best average RCRPS and sMAPE on the Context-is-Key benchmark, improving average RCRPS by 11.5% relative to the strongest baseline. Notably, compared with Multi-Agent Reflection, TimeClaw uses 43.6% fewer tokens while achieving better performance. RCRPS (Region-of-Interest Continuous Ranked Probability Score) is the benchmark's primary metric , it weights errors in context-relevant regions more heavily and penalizes constraint violations.

On TSRBench, a multi-task benchmark spanning perception, reasoning, prediction, and decision-making: TimeClaw achieves the best average accuracy with a 15.8% relative improvement while using the fewest tokens. The comparison against open-source models is striking:
TimeClaw achieves the best performance across all task categories, outperforming larger open-source models with up to 235B parameters with GPT-5-nano. That includes Qwen3-235B-A22B, InternVL3.5-38B, and specialized time-series LLMs like ChatTS-14B and TS-Reasoner-7B.
On the TSAIA financial benchmark, the capability evolution mechanism really shines. Through the capability-evolution loop, TimeClaw autonomously evolves three reusable routines from bank-building trajectories: portfolio_var, portfolio_sharpe, and capm_regression. Equipped with these evolved routines, TimeClaw substantially outperforms all baselines by 38.9% relative improvement.
How it actually works, step by step
The workflow for a single task looks like this:
- The raw time series is loaded into a task-local workspace hosted by an in-process MCP (Model Context Protocol) server. The series stays at full numerical precision , it never gets serialized into text.
- The agent receives the natural-language context and task instruction. If the memory bank has relevant past trajectories, the top-k are retrieved using the two-stage multimodal search and injected as a reference block before the prompt.
- The agent executes a sequence of tool calls , inspecting statistics, computing autocorrelations, running ARIMA forecasts, or calling evolved domain-specific tools , and accumulates an auditable evidence chain.
- After solving the task, if in training mode, the trajectory is verified against the ground truth. Successful traces are distilled into a compact "analytic spine" and stored in the memory bank with both a numerical fingerprint and a text embedding as retrieval keys.
- The capability evolution loop periodically scans accumulated trajectories for recurring sub-procedures, synthesizes them into new callable tools, and verifies them on held-out tasks before admission (success rate threshold: 70%).
Where it falls short
TimeClaw achieves the best performance except for ranking second on perception tasks. This suggests that although serialization can encode sufficient information under a large context window, agents may still struggle to decode it into actionable insights. The framework also currently focuses on text-time series mixtures, and while the authors note the methodology generalizes to other context modalities, that hasn't been demonstrated empirically yet.
The memory bank requires a training phase to be useful , cold-start performance without any prior trajectories is equivalent to the no-memory ablation. And the capability evolution mechanism only kicks in when enough similar trajectories accumulate, meaning rare task types won't benefit from evolved tools.
What's now possible
The real unlock here is moving beyond predefined task formats. Existing studies largely focus on predefined tasks, with forecasting being the most representative, whereas real-world applications often require broader solution loops where such tasks are only intermediate steps. TimeClaw can handle open-ended instructions like "analyze this energy consumption series given that a snowstorm is forecast" and produce grounded, auditable answers , not just a number, but a full reasoning trace tied to verifiable tool calls.
Practical use cases include:
- Financial analysis: Portfolio risk, Sharpe ratios, and CAPM regression over historical price series with natural-language task specifications
- Energy forecasting with context: Incorporating weather events, grid constraints, or policy changes that affect demand patterns
- Causal reasoning over sensor data: Inferring upstream-downstream relationships in river systems, traffic networks, or supply chains
- Any domain where the same analytical routines recur: The capability evolution loop will eventually distill them into reusable tools automatically
The code is available on GitHub under an Apache 2.0 license, implemented in Python using LangChain for the agent loop and FastMCP for the tool server. It supports OpenAI, Google Gemini, and Anthropic Claude models out of the box. The ablation studies confirm that all three components , the tool harness, capability evolution, and memory , each contribute meaningfully to the final result, and the gains hold across GPT, Gemini, and Claude backbone families.