The Role of Textual Context in LLM-Based Time Series Forecasting - A Study of Prompt Content and Backbone Scale

dc.contributor.authorNguyen, Brian
dc.contributor.authorMichaelsson, Mattias
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.departmentChalmers University of Technology / Department of Computer Science and Engineeringen
dc.contributor.examinerSelpi
dc.contributor.supervisorPanahi, Ashkan
dc.date.accessioned2026-06-30T09:04:09Z
dc.date.issued2026
dc.date.submitted
dc.description.abstractLarge language models (LLMs) are increasingly used as frozen backbones in time series forecasting, yet it remains unclear whether these models can benefit from the textual prompts that accompany the numerical input, and if so, what kind of text is needed and at what scale the benefit emerges. Prior work found that replacing prompts with random text has no effect, but tested only static prompts at small backbone scales. This thesis systematically investigates these questions through a controlled ablation study using a Time-LLM-inspired architecture on hourly bike rental demand. Four prompt configurations (no prompt, static domain description, sample-wise calendar context, and shuffled calendar context) are evaluated at two backbone scales (Qwen2.5-0.5B and Qwen2.5-7B), yielding eight experiments with all other variables held constant. The findings show that the usefulness of the prompt depends on both the type of information provided and the backbone’s scale. Generic dataset-level descriptions offer little value, whereas sample-specific context can improve forecasting by helping the model capture irregular patterns. This benefit is more evident for larger backbones and appears to transfer beyond the main experimental setting. Overall, the results suggest that frozen LLMs can benefit from text in forecasting, but only when that information is relevant to each sample and the backbone is large enough to act on it.
dc.identifier.coursecodeDATX05
dc.identifier.urihttps://hdl.handle.net/20.500.12380/311651
dc.language.isoeng
dc.setspec.uppsokTechnology
dc.subjectTime series forecasting, large language models (LLMs), textual condi tioning, frozen backbone models
dc.titleThe Role of Textual Context in LLM-Based Time Series Forecasting - A Study of Prompt Content and Backbone Scale
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeData science and AI (MPDSC), MSc

Ladda ner

Original bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
CSE 26-40 MM BG.pdf
Size:
2.11 MB
Format:
Adobe Portable Document Format

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Size:
2.35 KB
Format:
Item-specific license agreed upon to submission
Description: