ICLR papers
Search ICLR papers by title, author, or track. Open a paper’s abstract to read more.
Explore the ICLR analysisSearch results
221–240 of 274
- ICLR · Workshop · 1st ICLR Workshop on Time Series in the Age of Large Models
Retrieval Mechanisms Surpass Long-Context Scaling in Time Series Forecasting
Rishi Ahuja, Kumar Prateek, Simranjit Singh, Vijay Kumar
Abstract
Time Series Foundation Models (TSFMs) have borrowed the long context paradigm from natural language processing under the premise that feeding more history into the model improves forecast quality. But in stochastic domains, distant history is often just high-frequency noise, not signal. Hence, the proposed work tests whether this premise actually holds by running continuous context architectures (PatchTST included) through the ETTh1 benchmark. The obtained results contradict the premise: an inverse scaling law shows up clearly, with forecasting error rising as context gets longer. A 3,000-step window causes performance to drop by over 68\%, evidence that attention mechanisms are poor at ignoring irrelevant historical volatility. Retrieval-Augmented Forecasting (RAFT) is evaluated as an alternative. RAFT achieves a mean squared error (MSE) of 0.379 with a fixed 720-step window and selective retrieval, well below the 0.647 MSE of the best long-context configuration despite requiring far less computation. In addition, the retrieval step injects only the most relevant historical segments as dynamic exogenous variables, which gives the model a context-informed inductive bias it cannot build on its own from raw sequences. Therefore, foundation models going forward need to shift architecturally toward selective retrieval.
Abstract source - ICLR · Workshop · 1st ICLR Workshop on Time Series in the Age of Large Models
Overcoming the Modality Gap in Context-Aided Forecasting
Vincent Zheng, Étienne Marcotte, Arjun Ashok, Andrew Williams, Lijun Sun, Alexandre Drouin, Valentina Zantedeschi
Abstract
Context-aided forecasting (CAF) holds promise for integrating domain knowledge and forward-looking information, enabling AI systems to surpass traditional statistical methods. However, recent empirical studies reveal a puzzling gap: multimodal models often fail to outperform their unimodal counterparts. We hypothesize that this underperformance stems from poor context quality in existing datasets, as verification is challenging. To address these limitations, we introduce a semi-synthetic data augmentation method that generates contexts that are both descriptive of temporal dynamics and verifiably complementary to numerical histories. This approach enables massive-scale dataset creation, resulting in CAF-7M, a corpus of 7 million context-augmented time series windows, including a rigorously verified test set. We demonstrate that semi-synthetic pre-training transfers effectively to real-world evaluation, and show clear evidence of context utilization. Our results suggest that dataset quality, rather than architectural limitations, has been the primary bottleneck in context-aided forecasting.
Abstract source - ICLR · Workshop · 1st ICLR Workshop on Time Series in the Age of Large Models
Context-Informed Sequence Classification: A Multimodal Approach to Vehicle Diagnostics
Hugo Math, Rainer Lienhart
Abstract
Effective vehicle diagnostics are critical for safety and predictive maintenance but often rely solely on asynchronous discrete sequences of Diagnostic Trouble Codes (DTCs), overlooking valuable environmental context. This paper introduces BiCarFormer, a multimodal bidirectional Transformer that fuses DTC sequences with tokenized sensory data (temperature, pressure, humidity) via a co-attention mechanism and special embeddings. By integrating these heterogeneous modalities, BiCarFormer addresses the complexity and noise inherent in real-world automotive data. Evaluations on a large-scale fleet dataset of 22,137 error codes and 360 error patterns demonstrate that our approach significantly outperforms single-modality baselines. We also show that in this setting that Transformer can learn fluctuation of quantized continuous value through attention.
Abstract source - ICLR · Workshop · 1st ICLR Workshop on Time Series in the Age of Large Models
CLIC: Contextual Language-Informed Cardiac Pathology Classification
Giovani Lucafó, Rafael da Costa Silva, João Sarcinelli, Andre Guarnier De Mitri, Diego Furtado Silva
Abstract
The electrocardiogram (ECG) is the gold standard for non-invasive diagnosis of cardiac pathologies and is a fundamental pillar of cardiovascular medicine. Recent progress in deep learning has led to the development of robust automated classifiers that achieve high performance by processing raw physiological signals. However, in clinical practice, diagnosis is rarely based solely on the signal. Cardiologists commonly support their interpretation with the patient's characteristics and the specific data-acquisition context. Despite this, most current algorithms remain restricted to signal-only analysis, failing to integrate technical metadata and demographic variables. This paper proposes Contextual Language-Informed Cardiac pathology classification (CLIC), a multimodal framework that significantly enhances diagnostic precision by encoding these variables through natural language. We demonstrate that translating patient-level contextual data into descriptive text provides an informative anchor that helps the model disambiguate complex physiological patterns. We further investigate the use of Large Language Models to synthesize richer clinical descriptions, and observe that while these generated texts remain competitive, controlled template-based contextual clinical text leads to consistent improvements in downstream classification performance.
Abstract source - ICLR · Workshop · 1st ICLR Workshop on Time Series in the Age of Large Models
On the Role of Context in Zero-Shot Multivariate Time-Series Forecasting
Rohith Saai Pemmasani Prabakaran, Stijn Verdenius, Partha Das, Christian A. Naesseth
Abstract
Accurate multivariate time-series forecasting is essential for decision making in domains such as retail, yet most neural forecasting models remain task-specific and perform poorly in data-scarce or zero-shot settings. Prior-Fitted Networks (PFNs) provide a principled Bayesian meta-learning framework, but existing PFN-based approaches to time-series forecasting make limited use of context, restricting their ability to condition on structurally related examples. We propose a \textit{context-centric framework} for zero-shot multivariate forecasting and introduce In-Context TimePFN, a Transformer-based PFN trained exclusively on synthetic tasks with explicit \textit{context–query} structure. By treating forecasting as in-context Bayesian inference over structured temporal contexts, our approach performs probabilistic prediction without task-specific fine-tuning. Experiments on four real-world benchmarks show that In-Context TimePFN achieves competitive or superior zero-shot performance compared to standard baselines and TimePFN. Controlled ablations further demonstrate that performance is highly sensitive to the quality and alignment of context, identifying structured context as a key enabler of effective zero-shot time-series forecasting with PFNs.
Abstract source - ICLR · Workshop · Catch, Adapt, and Operate: Monitoring ML Models Under Drift
Paranoid Monitors: How Long Context Breaks LLM Agent Supervision
Alicia Yang, Aashiq Muhamed, Mona Diab, Virginia Smith
Abstract
Monitoring LLM agents in long-context environments remains an unsolved challenge. We demonstrate that current monitoring approaches rely on suspicion heuristics that degrade as context length increases. Through evaluation of synthetically augmented trajectories from the ShadeArena bank transfer task, we show that standard monitors suffer from paranoia, assigning higher suspicion scores to benign trajectories than malicious ones in contexts exceeding 30k tokens. We quantify this failure using the suspicion gap, defined as the difference in mean suspicion scores assigned to malicious versus benign trajectories. To address this, we propose ledger-based monitoring, a two-stage framework grounded in factored cognition that decouples fact extraction from judgment. Our method restores calibration across all tested models, improving the suspicion gap from approximately 0 to greater than 1.5 in 50k+ token contexts.
Abstract source - ICLR · Workshop · Catch, Adapt, and Operate: Monitoring ML Models Under Drift
In-Context Adaptation
Yongqiang Chen, Chenxi Liu, Qingyi Guo, Bo Han, Kun Zhang
Abstract
A defining characteristic of intelligence is reasoning – a capability of adapting learned knowledge to unfamiliar contexts. Although large language models (LLMs) exhibit strong reasoning capabilities in-context, it remains unclear whether they can perform human-like in-context reasoning under out-of-distribution (OOD) contexts. In this work, we introduce In-Context Adaptation (ICA), a paradigm that formalizes reasoning as the adaptive use of learned knowledge through a few demonstrations from new environments. Using a benchmark adapted from invariant learning, we show that transformers trained via next-token prediction are prone to spurious correlations and fail to reason effectively in OOD settings. To address this limitation, we propose Adaptive Context Engineering (ACE), a simple context reconstruction strategy that promotes adaptive exploitation of learned knowledge. Empirical results demonstrate significant improvements in in-context reasoning under distribution shifts, highlighting a path toward more human-like adaptive generalization in transformers.
Abstract source - ICLR · Workshop · Unifying Concept Representation Learning
Gluing Local Contexts into Global Meaning: A Sheaf-Theoretic Decomposition of Transformer Representations
Bryce Grant, Peng Wang
Abstract
We decompose transformer activations into content-stable ($H^0$) and context-dependent ($H^1$) subspaces using sheaf cohomology. A cellular sheaf built over paraphrase graphs yields a Laplacian whose spectral structure separates phrasing-invariant directions from maximally varying ones, requiring no concept labels or supervised training. Across five models (124M--13B parameters), $H^1$ dimensions exert $3.5$--$26.5\times$ greater causal influence on model output than variance-matched controls (Cohen's $d = 2.3$--$14.3$), $H^0$ retrieves facts at 60--68\% accuracy using only 20 dimensions, and the two subspaces produce opposite effects under ablation. The decomposition also reveals architecture-dependent fragility: Llama-2-7B collapses under random perturbation (4.2\% fact preservation) while all directed methods preserve facts at 12--14\% ($p < 10^{-10}$, $n$=1000); with architecture-specific restriction maps this gap widens to 31.0\% vs.\ 4.2\% ($p < 10^{-50}$). Robust models tolerate both perturbation types. Project page: https://cwru-aism.github.io/gluing-lc-page/
Abstract source - ICLR · Workshop · Algorithmic Fairness Across Alignment Procedures and Agentic Systems
Moral Preferences of LLMs Under Directed Contextual Influence
Phil Blandfort, Tushar Karayil, Urja Pawar, Alex McKenzie, Robert Graham, Dmitrii Krasheninnikov
Abstract
Moral benchmarks for LLMs typically use context-free prompts, implicitly assuming stable preferences. In deployment, however, prompts routinely include contextual signals such as user requests, cues on social norms, etc. that may steer decisions. We study how directed contextual influences reshape decisions in trolley-problem-style moral triage settings. We introduce a pilot evaluation harness for directed contextual influence in trolley-problem-style moral triage: for each demographic factor, we apply matched, direction-flipped contextual influences that differ only in which group they favor, enabling systematic measurement of directional response. We find that: (i) contextual influences often significantly shift decisions, even when only superficially relevant; (ii) baseline preferences are a poor predictor of directional steerability, as models can appear baseline-neutral yet exhibit systematic steerability asymmetry under influence; (iii) influences sometimes backfire, showing non-monotonic behavior; and (iv) reasoning reduces average sensitivity, but amplifies the effect of biased few-shot examples. Our findings motivate extending moral evaluations with controlled, direction-flipped context manipulations to better characterize model behavior.
Abstract source - ICLR · Workshop · Latent & Implicit Thinking – Going Beyond CoT Reasoning
Implicit Statistical Inference in Transformers: Approximating Likelihood-Ratio Tests In-Context
Faris Chaudhry, Siddhant Gadkari
Abstract
In-context learning (ICL) allows Transformers to adapt to novel tasks without weight updates, yet the underlying algorithms remain poorly understood. We adopt a statistical decision-theoretic perspective by investigating simple binary hypothesis testing, where the optimal policy is determined by the likelihood-ratio test. Notably, this setup provides a mathematically rigorous setting for mechanistic interpretability where the target algorithmic ground truth is known. By training Transformers on tasks requiring distinct geometries (linear shifted means vs. nonlinear variance estimation), we demonstrate that the models approximate the Bayes-optimal sufficient statistics from context up to some monotonic transformation, matching the performance of an ideal oracle estimator in nonlinear regimes. Leveraging this analytical ground truth, mechanistic analysis via logit lens and circuit alignment suggests that the model does not rely on a fixed kernel smoothing heuristic. Instead, it appears to adapt the point at which decisions become linearly decodable: exhibiting patterns consistent with a voting-style ensemble for linear tasks while utilizing a deeper sequential computation for nonlinear tasks. These findings suggest that ICL emerges from the construction of task-adaptive statistical estimators rather than simple similarity matching.
Abstract source - ICLR · Workshop · Latent & Implicit Thinking – Going Beyond CoT Reasoning
Single-Position Intervention Fails: Distributed Output Templates Drive In-Context Learning
Bryan Cheng, Jasper Zhang
Abstract
Understanding how large language models encode task identity from few-shot demonstrations is a central open problem in mechanistic interpretability. Prior work uses linear probing to localize task representations, reporting high classification accuracy at specific layers. We reveal a striking dissociation: probing accuracy completely fails to predict causal importance. Single-position activation intervention achieves 0% task transfer across all 28 layers of Llama-3.2-3B—despite 100% probing accuracy at those same positions. This null result is itself a key finding, demonstrating that task encoding is fundamentally distributed. Multi-position intervention—replacing activations at all demonstration output tokens simultaneously—achieves up to 96% transfer (N=50, 95% CI: [87%, 99%]) at layer 8, pinpointing for the first time the causal locus of ICL task identity. We establish the generality of these findings across four models spanning three architecture families (LLaMA, Qwen, Gemma), discovering a universal intervention window at ∼30% network depth. Causal tracing uncovers an asymmetric architecture: the query position is strictly necessary (53–100% disruption) while no individual demonstration position is necessary (0% disruption)—resolving a key ambiguity in prior accounts. Crucially, transfer depends on internal representation compatibility, not surface similarity (r=−0.05 vs r=0.31), ruling out trivial explanations. These results establish the distributed template hypothesis: ICL task identity is encoded as output format templates distributed across demonstration tokens, fundamentally reshaping our understanding of how in-context learning operates.
Abstract source - ICLR · Workshop · The 3rd Workshop on Test-Time Updates (TTU)
GradMem: Learning to Write Context into Memory with Test-Time Gradient Descent
Yuri Kuratov, Matvey Kairov, Aydar Bulatov, Ivan Rodkin, Mikhail Burtsev
Abstract
Transformers typically process long contexts by storing a large per-layer KV-cache of past activations. A desirable alternative is compressive memory: read a context once, store it in a compact state, and answer many queries from that state. We introduce GradMem, which writes context into memory via per-sample test-time optimization. Given a context, GradMem performs a few steps of gradient descent on a small set of prefix memory tokens while keeping model weights frozen. GradMem explicitly optimizes a model-level self-supervised context reconstruction loss, resulting in a loss-driven write operation with iterative error correction, unlike forward-only methods. On associative key–value retrieval, GradMem outperforms forward-only memory writers with the same memory size, and additional gradient steps scale capacity much more effectively than repeated forward writes.
Abstract source - ICLR · Workshop · The 3rd Workshop on Test-Time Updates (TTU)
DSL-Monkeys: Self-Generated In-Context Examples for Low-Resource GPU DSL Kernels
Nathan Paek, Simon Guo, Vishnu Sarukkai, Willy Chan, William Hu, Ethan Boneh, Simran Arora, Ludwig Schmidt, Kayvon Fatahalian, Azalia Mirhoseini
Abstract
Domain-specific languages (DSLs) for GPU kernels such as TileLang and ThunderKittens remain challenging for LLMs due to scarce training data and limited documentation. Standard test-time techniques (repeated sampling, iterative refinement, evolutionary search) treat each kernel independently, missing a key insight: successful implementations encode reusable DSL usage patterns directly applicable to new tasks. We introduce DSL-Monkeys, a batched test-time approach that considers an entire collection of kernels jointly rather than individually. DSL-Monkeys maintains a growing archive of successfully-implemented kernels and retrieves them as in-context demonstrations for remaining tasks, resembling a form of test-time reinforcement learning—improving on future tasks by curating a retrieval database rather than updating weights. Starting from just 3 seed examples, DSL-Monkeys achieves 71\% and 18\% correctness on 200 KernelBench Level 1-2 tasks for TileLang and ThunderKittens respectively, compared to baseline pass@1 rates of <20\% and <1\%. Secondly, with curriculum decomposition, DSL-Monkeys solves complex linear attention variants that approach or match human-expert-written Triton performance. Thirdly, we explore scaling DSL-Monkeys to 10K PyTorch programs from GitHub, producing thousands of verified DSL implementations that address DSL data scarcity. We show that fine-tuning improves Qwen's TileLang implementation ability via both distillation and self-generated data, a potential path towards improving LLMs' code generation ability with emerging DSLs.
Abstract source - ICLR · Workshop · The 2nd Workshop on Foundation Models for Science: Real-World Impact and Science-First Design
MEG-XL: Data-Efficient Brain-to-Text via Long-Context Pre-Training
Dulhan Jayalath, Oiwi Parker Jones
Abstract
Clinical brain-to-text interfaces are designed for paralysed patients who cannot provide extensive training recordings. Pre-training improves data-efficient generalisation by learning statistical priors across subjects, but these priors critically depend on context. While natural speech might unfold gradually over minutes, most methods pre-train with only a few seconds of context. Thus, we propose MEG-XL, a model pre-trained with 2.5 minutes of MEG context per sample, 5-300× longer than prior work, and equivalent to 191k tokens, capturing extended neural context. Fine-tuning on the task of word decoding from brain data, MEG-XL matches supervised performance with a fraction of the data (e.g. 1hr vs 50hrs) and outperforms brain foundation models. We find that models pre-trained with longer contexts learn representations that transfer better to word decoding. Our results indicate that long-context pre-training helps exploit extended neural context that other methods unnecessarily discard.
Abstract source - ICLR · Workshop · The 2nd Workshop on Foundation Models for Science: Real-World Impact and Science-First Design
When Does Context Help? A Systematic Study of Target-Conditional Molecular Property Prediction
Bryan Cheng, Jasper Zhang
Abstract
We present the first systematic study of when target context helps molecular property prediction, evaluating context conditioning across 10 diverse protein families, 4 fusion architectures, data regimes spanning 67–9,409 training compounds, and both temporal and random evaluation splits. Using NESTDRUG, a FiLM-based nested-learning architecture that conditions molecular representations on target identity, we characterize both success and failure modes with three principal findings. First, fusion architecture dominates: FiLM outperforms concatenation by 24.2 percentage points and additive conditioning by 8.6 pp; how you incorporate context matters more than whether you include it. Second, context enables otherwise impossible predictions: on data-scarce CYP3A4 (67 training compounds), multi-task transfer achieves 0.686 AUC where per-target Random Forest collapses to 0.238, demonstrating that context conditioning unlocks viable prediction for novel targets where traditional approaches fail entirely. Third, context can systematically hurt: distribution mismatch causes 10.2 pp degradation on BACE1; few-shot adaptation consistently underperforms zero-shot. Beyond methodology, we expose fundamental flaws in standard benchmarking—1-nearest-neighbor Tanimoto achieves 0.991 AUC on DUD-E without any learning, and 50% of actives leak from training data, rendering absolute performance metrics meaningless. Our temporal split evaluation (train ≤2020, test 2021–2024) achieves stable 0.843 AUC with no degradation, providing the first rigorous evidence that context-conditional molecular representations generalize to future chemical space. These findings resolve a long-standing ambiguity in the field and establish clear decision boundaries for when context conditioning provides genuine value in drug discovery pipelines.
Abstract source - ICLR · Workshop · The 2nd Workshop on Foundation Models for Science: Real-World Impact and Science-First Design
FIRE: Multi-fidelity Regression with Distribution-conditioned In-context Learning using Tabular Foundation Models
Rosen Yu, Nicholas Sung, Faez Ahmed
Abstract
Multi-fidelity (MF) regression often operates in regimes of extreme data imbalance, where the commonly-used Gaussian-process (GP) surrogates struggle with cubic scaling costs and overfit to sparse high-fidelity observations, limiting efficiency and generalization in real-world applications. We introduce FIRE, a training-free MF framework that couples tabular foundation models (TFMs) to perform zero-shot in-context Bayesian inference via a high-fidelity correction model conditioned on the low-fidelity model's posterior predictive distributions. This cross-fidelity information transfer via distributional summaries captures heteroscedastic errors, enabling robust residual learning without model retraining. Across 31 benchmark problems spanning synthetic and real-world tasks (e.g., DrivAerNet, LCBench), FIRE delivers a stronger performance–time trade-off than seven state-of-the-art GP-based or deep learning MF regression methods, ranking highest in accuracy and uncertainty quantification with runtime advantages. Limitations include context window constraints and dependence on the quality of the pre-trained TFM’s.
Abstract source - ICLR · Workshop · The 2nd Workshop on Foundation Models for Science: Real-World Impact and Science-First Design
Single-Position Intervention Fails: Distributed Output Templates Drive In-Context Learning
Bryan Cheng, Jasper Zhang
Abstract
Understanding how large language models encode task identity from few-shot demonstrations is a central open problem in mechanistic interpretability. Prior work uses linear probing to localize task representations, reporting high classification accuracy at specific layers. We reveal a striking dissociation: probing accuracy completely fails to predict causal importance. Single-position activation intervention achieves 0% task transfer across all 28 layers of Llama-3.2-3B—despite 100% probing accuracy at those same positions. This null result is itself a key finding, demonstrating that task encoding is fundamentally distributed. Multi-position intervention—replacing activations at all demonstration output tokens simultaneously—achieves up to 96% transfer (N=50, 95% CI: [87%, 99%]) at layer 8, pinpointing for the first time the causal locus of ICL task identity. We establish the generality of these findings across four models spanning three architecture families (LLaMA, Qwen, Gemma), discovering a universal intervention window at ∼30% network depth. Causal tracing uncovers an asymmetric architecture: the query position is strictly necessary (53–100% disruption) while no individual demonstration position is necessary (0% disruption)—resolving a key ambiguity in prior accounts. Crucially, transfer depends on internal representation compatibility, not surface similarity (r=−0.05 vs r=0.31), ruling out trivial explanations. These results establish the distributed template hypothesis: ICL task identity is encoded as output format templates distributed across demonstration tokens, fundamentally reshaping our understanding of how in-context learning operates.
Abstract source - ICLR · Workshop · The 2nd Workshop on Advances in Financial AI Workshop: Towards Agentic and Responsible Systems
PRISM: Prompt-Refined In-Context System Modeling for Financial Retrieval
Chun Chet Ng, Jia Yu Lim, Low Zeng
Abstract
With the rapid progress of large language models (LLMs), financial information retrieval has become a critical industrial application. Extracting task-relevant information from lengthy financial filings is essential for both operational and analytical decision-making. We present PRISM, a training-free framework that integrates refined system prompting, in-context learning (ICL), and lightweight multi-agent coordination for document and chunk ranking tasks. Our primary contribution is a systematic empirical study that characterizes when each component provides value; prompt engineering delivers consistent performance with minimal overhead, ICL enhances reasoning for complex queries when applied selectively, and multi-agent systems show potential primarily with larger models and careful architectural design. Extensive ablation studies across FinAgentBench, FiQA-2018, and FinanceBench reveal that simpler configurations often outperform complex multi-agent pipelines, providing practical guidance for practitioners. Our best configuration achieves an NDCG@5 of 0.71818 on FinAgentBench, ranking third while being the only training-free approach in the top three. We provide comprehensive feasibility analyses covering latency, token usage, and cost trade-offs to support deployment decisions. Code is ready for public release.
Abstract source - ICLR · Workshop · The 2nd Workshop on Advances in Financial AI Workshop: Towards Agentic and Responsible Systems
Forecasting Future Language: Context Design for Mention Markets
Sumin Kim, Jihoon Kwon, Yoon Kim, ⋅ Raffi Khatchadourian, Wonbin Ahn, Alejandro Lopez-Lira, Jaewon Lee, Yoontae Hwang, Oscar Levy, Yongjae Lee, CHANYEOL CHOI
Abstract
Mention markets, a type of prediction market in which contracts resolve based on whether a specified keyword is mentioned during a future public event, require accurate probabilistic forecasts of keyword-mention outcomes. While recent work shows that large language models (LLMs) can generate forecasts competitive with human forecasters, it remains unclear how input context should be designed to support accurate prediction. In this paper, we study this question through experiments on earnings-call mention markets, which require forecasting whether a company will mention a specified keyword during its upcoming call. We run controlled comparisons varying (i) which contextual information is provided (news and/or prior earnings-call transcripts) and (ii) how market probability, (i.e., prediction market contract price) is used. We introduce Market-Conditioned Prompting (MCP), which explicitly treats the market-implied probability as a prior and instructs the LLM to update this prior using textual evidence, rather than re-predicting the base rate from scratch. In our experiments, We find three insights: (1) richer context consistently improves forecasting performance; (2) market-conditioned prompting (MCP), which treats the market probability as a prior and updates it using textual evidence, yields better-calibrated forecasts; and (3) a mixture of the market probability and MCP (MixMCP) outperforms the market baseline. By dampening the LLM’s posterior update with the market prior, MixMCP yields more robust predictions than either the market or the LLM alone.
Abstract source - ICLR · Workshop · The 2nd Workshop on Advances in Financial AI Workshop: Towards Agentic and Responsible Systems
Regime-aware Financial Volatility Forecasting via In-Context Learning
Saba Asaad, Shayan Mohajer Hamidi, Ali Bereyhi
Abstract
This work introduces a regime-aware in-context learning framework that leverages large language models (LLMs) for financial volatility forecasting under nonstationary market conditions. The proposed approach deploys pretrained LLMs to reason over historical volatility patterns and adjust their predictions without parameter fine-tuning. We develop an oracle-guided refinement procedure that constructs regime-aware demonstrations from training data. An LLM is then deployed as an in-context learner that predicts the next-step volatility from the input sequence using demonstrations sampled conditional to the estimated market label. This conditional sampling strategy enables the LLM to adapt its predictions to regime-dependent volatility dynamics through contextual reasoning alone. Experiments with multiple financial datasets show that the proposed regime-aware in-context learning framework outperforms both classical volatility forecasting approaches and direct one-shot learning, especially during high-volatility periods.
Abstract source