LLMs reasoning on time series data in 2026

contents

I recently read this 2024 paper on using LLMs to understand time-series data. The paper outlines three different tasks to evaluate an LLM’s ability to reason about some time series:

  1. etiological reasoning
  2. question answering
  3. context-aided forecasting

In pursuit of a better repitoire of LLM-based tasks and their evals, I decided to re-implement parts of the pipeline in this paper.

In this post, I'll explore just the etiological reasoning task.

The task

A model is given

  1. a time series and
  2. three possible descriptions of the time series.

The model's task is to determine which description matches the time series.

For example, a time series might look like:

[20.88, 20.20, 20.48, 21.12, 20.93, 19.5, ..., 19.97, 19.94, 19.59, 19.96]

And four descriptions such as:

1. A temperature reading from an industrial freezer over two weeks. 2. Daily household water usage in liters over 3 months. 3. Congestion at city choke points is measured every 30 minutes over a week. 4. A time series tracking daily rainfall in a location across a year.

What the paper found

Model / BaselineAccuracy
Human annotators66.1%
Random baseline25%
GPT4*33.5%
Llama2-13B27.8%

Basically, LLMs are pretty bad at this.

(*The paper also mentions to keep in mind that GPT4 generated all the evaluation data.)

What I found

Using the dataset from the paper, I ran the task on a few different models (with my own prompts).

Big Picture

Accuracy Comparison

These accuracy scores indicate how many samples the model got correct out of how many samples the model responded to with a valid answer. The model was asked to output a number between 1 and 4 to indicate which numbered description best matched the provided time series. The open source models in particular sometimes responded with answers outside of this.

model_stats_table

Here, we see Llama 3.1 8B with a much higher valid response rate and much lower variation in unique answers outputted than Llama 2 13b. Gemini 2.5 Flash always provided a valid answer. It could be argued that playing around with the prompts could improve the adherence to the valid answer range for the open models and I'd be curious to see how by how much. But for now, this was something interesting to note.

Also note that only 4500 samples were run on Gemini 2.5 Flash for cost + rate limits.

Diving Deeper

To try to figure out why the models (especially the open models) are still performing so poorly, I played around with the following ways of organizing the data:

  1. Are there any differences between the samples that are correct and the samples that are incorrect?
  2. Do different models perform similarly on the same samples?

Correct vs Incorrect Samples

In our dataset, each sample contains:

  1. a time series
  2. a correct desciption that accurately describes the time series
  3. three incorrect descriptions that do not describe the time series

There are three different types of descriptions that could have been used: description, description_short, and description_tiny. Here are examples of each:

In my experiments, I used the description_short type of description. The below plots show the description_shorts embedded for each sample. If the model correctly answered the sample, the point is green. If the model incorrectly answered the sample, the point is red.

Embeddings Plot

There is no clear separation between the red and green points, therefore, there is no immediate indication of a clear semantic difference between the correct and incorrect samples.

As another way of arriving at the same conclusion, I also (1) clustered the embeddings and (2) inspected the percentage of green vs. red points in each cluster. Equal percentage of incorrect and correct samples in each cluster -- same results.

Just as a sanity check that the embeddings are capturing some semantic understanding, I randomly sampled a few samples and manually inspected its the N=5 nearest neighbors. Here's a few examples:
Query: Electricity consumption during sports championship event. -------------------------------------------------------------------------------- - Hourly electricity consumption in a sports stadium during live events. - Electricity consumption during World Cup Soccer Tournament. - Electricity consumption during a major sports event, recorded every 10 minutes for 5 hours. - Power consumption monitoring during a sports event in a residential neighborhood. - Analyze electricity consumption during a large sporting event, hourly data for 30 days. Query: Trash levels in smart bins around a city (with events like festivals influencing data) sampled daily over four weeks. -------------------------------------------------------------------------------- - Monitoring trash accumulation in a city park's IoT-enabled waste bin over a month, sampled hourly. - Monthly count of empty trash bins in a city over three years, influenced by monthly cleanliness drives. - Trash levels in a park during a 4-week outdoor movie festival, sampled every 6 hours. - Measure the fill rate of smart trash cans in a city, monitoring a possible spike during local festivals. - Trash collection volume in a city over six months, influenced by holidays and festivals.

I wanted to also quickly check a few other possible culprits:

  1. time series length
  2. description length (as a very rough proxy for complexity)

Correct vs Incorrect Distributions

The easiest thing to note here is that Llama2 13B seems to show a bias towards shorter time series, yet Llama3.1 8B showed no significant time series length bias.

It is worth noting that these graphs don't distinguish between two possible explanations for the length bias:

  1. longer time series are hard for the model to process
  2. longer time series happen to represent more difficult reasoning problems in this dataset

A deeper analysis into other forms of quantifying "complexity" of each sample based on factors such as the time series metrics and descriptions would be interesting to explore.

Different models, same samples

Some observations:

Models solve mostly different problems.

~2% of samples were correctly answered by all three models, while ~25% of samples were incorrectly answered by all three models. This could indicate that task difficulty varies across models.

Independence betweeen Llama2 13B and Llama3.1 8B

This is interesting in combination with:

For comparison:

Difficulty of samples likely isn't semantic

If we consider how many models got a sample correct as a proxy for difficulty, difficulty doesn't seem to be semantic. Each tier of difficulty is similarly distributed across the semantic space.

Difficulty Embeddings

What I'd do next

← all projects