NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CLAIR: Consistent LLM Adaptation via Index-free Reprogramming

Dongkuk Kim, Jungkyu Shin, Yoonhyuk Choi, Jong Wook Kim, Beakcheol JangarXiv 2026

TL;DR

When we use Large Language Models (LLMs) to predict the future of time-series data, we usually force them to match patterns in a rigid, one-to-one "index-wise" fashion. CLAIR breaks this "index-lock" by allowing the model to find flexible, representation-based connections across different points in time, while using a "teacher" model to ensure the final forecast remains consistent and grounded.

What Problem Does This Paper Address?

Time-series forecasting—predicting things like energy demand, traffic, or stock prices—is notoriously difficult because data is noisy and patterns often repeat at different scales. Recently, researchers have started using pretrained LLMs (like GPT-2) as the "brain" for these tasks. They chop the data into "patches" (small segments of time) and feed them into the model.

The standard way to train these models is to use a "teacher-student" setup: a stable teacher model guides a learning student model. Usually, we tell the student, "Your representation of the 5th patch must match the teacher's representation of the 5th patch."

But there’s a catch. LLMs use self-attention, which means the representation of the 5th patch actually contains information from the 1st, 10th, and 50th patches too. As shown in Figure 1, a change in one input patch ripples across the entire sequence after it passes through the LLM backbone.

Figure 1: Contextualization of patch representations. (a, b) Sensitivity of patch representation at position i (y-axis) to replacing the input patch at position j (x-axis). (a) Changes are localized before the backbone, yielding a diagonal pattern. (b) After self-attention, changes extend across temporal positions, reflecting contextualization beyond individual segments. (c) Learned student–teacher patch correspondence in CLAIR for the same sequence, including associations beyond same-index matching (dashed diagonal).

If a similar pattern appears at the beginning and the end of a window, a rigid "index-wise" alignment ignores that useful relationship. However, if you make the alignment too flexible, the model might lose track of the actual temporal order, leading to "hallucinated" or inconsistent forecasts.

Methods

The authors propose CLAIR (Consistent LLM Adaptation via Index-free Reprogramming). It’s a framework that balances flexibility with consistency using three main components:

  1. Asymmetric Teacher-Student Learning: They use an EMA (Exponential Moving Average) Teacher. Think of this as a "calmer," more stable version of the student model that sees a clean version of the data, while the student sees a slightly noisy, "perturbed" version.
  2. Patch-level Transport Alignment (PTA): Instead of forcing patch $i$ to match patch $i$, CLAIR uses Optimal Transport (specifically Sinkhorn iterations). This allows the student to find the "best fit" patch in the teacher’s representation, even if it’s at a different temporal position. It’s "index-free" because it looks at the meaning of the representation rather than just its seat in the row.
  3. Forecast-level Consistency (FC): To prevent the model from getting lost in its own flexibility, this loss function forces the final predicted values of the student and teacher to agree. Even if the internal representations are aligned flexibly, the final output must respect the arrow of time.
Figure 2: Overall architecture of CLAIR. Patch tokens are combined with soft prompts and a multi-scale structural anchor. Ap and Ak (k = 1, 2, 3) apply Gaussian noise and elementwise dropout to extracted patch and scale-k anchor windows, respectively. Perturbations are sampled independently for patch windows and each anchor scale and applied only to the student during training. The student and EMA teacher use separate copies of the input encoders. The teacher guides the student through patch-level transport alignment and forecast-level consistency. Only the student is used at inference.

Datasets

The researchers put CLAIR through its paces on a variety of standard benchmarks:

  • Long-term forecasting: Weather, Electricity, and four ETT (Electricity Transformer Temperature) datasets.
  • Short-term forecasting: The M4 benchmark (which includes yearly, monthly, and hourly data).
  • Few-shot learning: Testing how well the model performs when only 5% or 10% of the training data is available.

Key Insights and Ideas

  • The "Aha!" of Soft Alignment: Figure 3 shows the learned transport plans. You can see a strong diagonal (index-wise matching), but there are also significant "off-diagonal" blocks. This proves the model is actively finding and using relationships between patches that are far apart in time.
Figure 3: Batch-averaged unconstrained PTA transport plans π at horizon H = 96 on ETTh2 (left), ETTm1 (middle), and Weather (right). Rows and columns index student and teacher patches, respectively.
  • Synergy is Key: PTA (flexible matching) and FC (output consistency) are better together. Without FC, flexible matching can actually hurt performance. But when paired, they allow the model to learn richer features without losing its "temporal compass."
  • Inference Efficiency: One of the best parts? The teacher and the complex transport math are only used during training. When you actually deploy the model to make predictions, you only need the student, making it just as fast as standard models.

Key Results

  • Better Accuracy: CLAIR achieved the lowest Mean Squared Error (MSE) on five out of six long-term benchmarks.
  • Significant Gains: Compared to standard index-wise alignment, CLAIR reduced error by 2.1% on ETTh1 and 2.6% on ETTm1.
  • M4 Champion: It achieved the lowest aggregate Overall Weighted Average (OWA) on the M4 dataset, proving it works for short-term "bursty" data as well as long-term trends.
  • Robust Few-Shot: Even with only 5% of the data, CLAIR remained highly competitive, outperforming other LLM-based methods.

Limitations and Future Work

  • Training Overhead: While inference is fast, training takes longer because you have to run two models (student and teacher) and compute the Optimal Transport plan. The authors note a 1.44x increase in training time per iteration.
  • Dataset Sensitivity: While CLAIR dominated most benchmarks, it was slightly outperformed on the Electricity dataset by FSCA, suggesting that the benefits of flexible alignment might vary depending on the specific "rhythm" of the data.
  • Future Directions: The authors suggest exploring different LLM backbones beyond GPT-2 and investigating more complex "cost functions" for the transport alignment to see if even deeper relationships can be uncovered.

Summary updated

BibTeX
@misc{kim2026clair,
  author = {Dongkuk Kim and Jungkyu Shin and Yoonhyuk Choi and Jong Wook Kim and Beakcheol Jang},
  title = {{CLAIR: Consistent LLM Adaptation via Index-free Reprogramming}},
  year = {2026},
  eprint = {2611.28721},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28721},
}
Figure