CLAIR: Consistent LLM Adaptation via Index-free Reprogramming
Organizations: Yonsei University, Seoul, Republic of Korea · Sookmyung Women’s University, Seoul, Republic of Korea · Sangmyung University, Seoul, Republic of Korea
Abstract
Time-series forecasting with pretrained large language models (LLMs) uses contextualized patch representations, raising the question of how to align them. Matching patches at the same temporal position is natural, but self-attention allows each patch state to incorporate information from elsewhere in the input window, suggesting that useful correspondences can extend across positions. This flexibility, however, does not necessarily translate into consistent forecasts: similar patch states may play different roles when used in their original temporal order. To address both issues, we propose CLAIR (Consistent LLM Adaptation via Index-free Reprogramming), a teacher-guided framework that combines patch-level transport alignment (PTA) and forecast-level consistency (FC). A clean-view exponential moving average (EMA) teacher guides a mildly perturbed student, with PTA establishing soft, representation-dependent correspondences and FC encouraging agreement at corresponding future steps. The forecasting head retains the original patch order. We test this combination through controlled comparisons: while PTA and index-wise alignment perform similarly without FC, PTA+FC under EMA supervision reduces horizon-averaged mean squared error (MSE) by 2.1% on ETTh1 and 2.6% on ETTm1 relative to Index+FC. The same preference for PTA+FC emerges in comparisons with alternative matching strategies on Weather and ETTh2. Beyond these controls, CLAIR achieves the lowest horizon-averaged MSE on five of six long-term benchmarks and the lowest aggregate overall weighted average (OWA) on M4 among evaluated methods, with competitive few-shot performance. As the teacher and transport are used only during training, inference requires only the student.
Figures & tables
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | |||||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE |
| Weather | 0.2261 | 0.2642 | 0.2346 | 0.2724 | 0.2284 | 0.2658 | 0.2285 | 0.2667 | 0.2363 | 0.2719 | 0.2281 | 0.2678 | 0.2314 | 0.2676 | 0.2416 | 0.2941 | 0.2443 | 0.2775 | 0.2338 | 0.2749 |
| ETTh1 | 0.4094 | 0.4287 | 0.4409 | 0.4517 | 0.4154 | 0.4346 | 0.4265 | 0.4356 | 0.4281 | 0.4434 | 0.4180 | 0.4332 | 0.4258 | 0.4379 | 0.4184 | 0.4386 | 0.4485 | 0.4612 | 0.4600 | 0.4643 |
| ETTh2 | 0.3564 | 0.3971 | 0.3686 | 0.4056 | 0.3624 | 0.4052 | 0.3742 | 0.4065 | 0.3666 | 0.4020 | 0.3597 | 0.3993 | 0.3823 | 0.4113 | 0.4995 | 0.4803 | 0.3846 | 0.4154 | 0.4036 | 0.4305 |
| ETTm1 | 0.3493 | 0.3820 | 0.3790 | 0.3966 | 0.3509 | 0.3835 | 0.3596 | 0.3899 | 0.3580 | 0.3870 | 0.3674 | 0.3948 | 0.3684 | 0.3948 | 0.3586 | 0.3816 | 0.3689 | 0.3989 | 0.3770 | 0.4048 |
| ETTm2 | 0.2563 | 0.3200 | 0.2649 | 0.3273 | 0.2599 | 0.3236 | 0.2663 | 0.3288 | 0.2628 | 0.3203 | 0.2581 | 0.3212 | 0.2765 | 0.3280 | 0.2768 | 0.3422 | 0.2718 | 0.3312 | 0.2797 | 0.3353 |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | ||
| Average | SMAPE | 12.008 | 12.522 | 12.314 | 12.256 | 12.193 | 12.003 | 12.145 | 12.507 | 13.359 | 12.873 |
| MASE | 1.628 | 1.704 | 1.684 | 1.714 | 1.632 | 1.637 | 1.656 | 1.684 | 1.786 | 1.757 | |
| OWA | 0.868 | 0.907 | 0.894 | 0.900 | 0.876 | 0.871 | 0.881 | 0.901 | 0.959 | 0.934 | |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | |||||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE |
| Weather | 0.2372 | 0.2766 | 0.2491 | 0.2874 | 0.2404 | 0.2787 | 0.2430 | 0.2793 | 0.2573 | 0.2937 | 0.2425 | 0.2815 | 0.2512 | 0.2844 | 0.2420 | 0.2894 | 0.2893 | 0.3164 | 0.2529 | 0.2893 |
| ETTh1 | 0.5589 | 0.5064 | 0.6879 | 0.5585 | 0.7432 | 0.5759 | 0.5912 | 0.5263 | 0.7168 | 0.5860 | 0.6337 | 0.5389 | 0.6420 | 0.5427 | 0.5309 | 0.5025 | 0.7027 | 0.5787 | 0.7259 | 0.5966 |
| ETTh2 | 0.3846 | 0.4226 | 0.4042 | 0.4333 | 0.4647 | 0.4660 | 0.4449 | 0.4578 | 0.4207 | 0.4422 | 0.4112 | 0.4345 | 0.3951 | 0.4272 | 0.4137 | 0.4459 | 0.4262 | 0.4473 | 0.4556 | 0.4659 |
| ETTm1 | 0.4482 | 0.4335 | 0.4743 | 0.4534 | 0.4834 | 0.4600 | 0.4599 | 0.4391 | 0.4985 | 0.4721 | 0.4924 | 0.4540 | 0.6259 | 0.5152 | 0.4131 | 0.4275 | 0.5705 | 0.5101 | 0.6023 | 0.5033 |
| ETTm2 | 0.2611 | 0.3217 | 0.3017 | 0.3515 | 0.3077 | 0.3531 | 0.2899 | 0.3358 | 0.2944 | 0.3427 | 0.2862 | 0.3341 | 0.2892 | 0.3419 | 0.2965 | 0.3507 | 0.3147 | 0.3601 | 0.3299 | 0.3646 |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | |||||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE |
| Weather | 0.2642 | 0.3046 | 0.2778 | 0.3097 | 0.2918 | 0.3244 | 0.2720 | 0.3089 | 0.2759 | 0.3113 | 0.2670 | 0.3055 | 0.2745 | 0.3087 | 0.2724 | 0.3245 | 0.2918 | 0.3273 | 0.2846 | 0.3180 |
| ETTh1 | 0.6719 | 0.5509 | 0.8125 | 0.5919 | 1.0053 | 0.6719 | 0.8402 | 0.6190 | 0.8672 | 0.6376 | 0.7419 | 0.5887 | 0.7752 | 0.6030 | 0.6269 | 0.5478 | 0.8137 | 0.6157 | 0.8856 | 0.6572 |
| ETTh2 | 0.3729 | 0.4235 | 0.5466 | 0.5100 | 0.6167 | 0.5454 | 0.4697 | 0.4844 | 0.4411 | 0.4591 | 0.3754 | 0.4248 | 0.4600 | 0.4807 | 0.4872 | 0.5090 | 0.4313 | 0.4516 | 0.4052 | 0.4274 |
| ETTm1 | 0.4604 | 0.4452 | 0.5077 | 0.4729 | 0.5201 | 0.4860 | 0.4939 | 0.4625 | 0.5242 | 0.4850 | 0.4970 | 0.4630 | 0.6061 | 0.5066 | 0.4464 | 0.4463 | 0.5634 | 0.5047 | 0.5703 | 0.5047 |
| ETTm2 | 0.2933 | 0.3405 | 0.3228 | 0.3618 | 0.3199 | 0.3624 | 0.3174 | 0.3517 | 0.3197 | 0.3598 | 0.3064 | 0.3473 | 0.3083 | 0.3514 | 0.3263 | 0.3762 | 0.3085 | 0.3573 | 0.3533 | 0.3787 |
| ETTh1 | ETTm1 | |||
| Model Variant | MSE | MAE | MSE | MAE |
| Supervised only | 0.4434 | 0.4581 | 0.3715 | 0.4014 |
| FC only | 0.4332 | 0.4455 | 0.3671 | 0.3912 |
| Index only | 0.4325 | 0.4443 | 0.3652 | 0.3883 |
| PTA only | 0.4307 | 0.4426 | 0.3660 | 0.3895 |
| Index + FC ( ) | 0.4371 | 0.4463 | 0.3692 | 0.3947 |
| PTA+FC | Index+FC | Local-OT+FC | Uniform+FC | NN+FC | FC only | ||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | |
| Weather | 96 | 0.1498 | 0.2001 | 0.1508 | 0.2042 | 0.1503 | 0.2038 | 0.1507 | 0.2042 | 0.1509 | 0.2046 | 0.1517 | 0.2057 |
| 192 | 0.1923 | 0.2417 | 0.1967 | 0.2454 | 0.1940 | 0.2448 | 0.1964 | 0.2451 | 0.1976 | 0.2459 | 0.1991 | 0.2470 | |
| 336 | 0.2469 | 0.2848 | 0.2513 | 0.2876 | 0.2494 | 0.2861 | 0.2515 | 0.2895 | 0.2520 | 0.2881 | 0.2527 | 0.2892 | |
| 720 | 0.3152 | 0.3301 | 0.3197 | 0.3356 | 0.3184 | 0.3348 | 0.3193 | 0.3353 | 0.3204 | 0.3355 | 0.3216 | 0.3383 | |
| ETTh2 | 96 | 0.2840 | 0.3432 | 0.2895 | 0.3494 | 0.2867 | 0.3475 | 0.2882 | 0.3486 | 0.2901 | 0.3507 | 0.2915 | 0.3513 |
| ETTh1 | ETTm1 | |||
| Model Variant | MSE | MAE | MSE | MAE |
| w/o Gaussian Noise | 0.4272 | 0.4409 | 0.3598 | 0.3876 |
| w/o Soft Prompts | 0.4119 | 0.4302 | 0.3516 | 0.3829 |
| w/o Structural Anchor | 0.4129 | 0.4300 | 0.3528 | 0.3835 |
| Frozen WPE+LN | 0.4156 | 0.4333 | 0.3577 | 0.3854 |
| Full Model (CLAIR) | 0.4094 | 0.4287 | 0.3493 | 0.3820 |
| Unif. baseline | Band | Band | ||
| 96 | 19.19 | 21.33 | 0.097 | 0.326 |
| 192 | 18.94 | 21.33 | 0.100 | 0.331 |
| 336 | 18.95 | 21.33 | 0.101 | 0.331 |
| 720 | 18.85 | 21.33 | 0.104 | 0.334 |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Tasks | Datasets | Dim. | Forecast Horizon | Dataset Size | Frequency |
| Long-term | Weather | 21 | (36792, 5271, 10540) | 10 min | |
| ETTh1 | 7 | (8545, 2881, 2881) | 1 hour | ||
| ETTh2 | 7 | (8545, 2881, 2881) | 1 hour | ||
| ETTm1 | 7 | (34465, 11521, 11521) | 15 min | ||
| ETTm2 | 7 | (34465, 11521, 11521) | 15 min | ||
| Electricity | 321 | (18317, 2633, 5261) | 1 hour |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | ||||||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | |
| Weather | 96 | 0.1498 | 0.2001 | 0.1663 | 0.2200 | 0.1506 | 0.2011 | 0.1498 | 0.2020 | 0.1571 | 0.2071 | 0.1492 | 0.2025 | 0.1521 | 0.2013 | 0.1704 | 0.2298 | 0.1708 | 0.2212 | 0.1551 | 0.2123 |
| 192 | 0.1923 | 0.2417 | 0.2024 | 0.2501 | 0.1941 | 0.2426 | 0.1944 | 0.2429 | 0.2036 | 0.2494 | 0.1935 | 0.2422 | 0.1977 | 0.2448 | 0.2140 | 0.2719 | 0.2118 | 0.2564 | 0.2122 | 0.2636 | |
| 336 | 0.2469 | 0.2848 | 0.2500 | 0.2855 | 0.2450 | 0.2810 | 0.2482 | 0.2848 | 0.2523 | 0.2873 | 0.2474 | 0.2856 | 0.2505 | 0.2854 | 0.2596 | 0.3112 | 0.2604 | 0.2933 | 0.2486 | 0.2857 | |
| 720 | 0.3152 | 0.3301 | 0.3197 | 0.3338 | 0.3237 | 0.3383 | 0.3216 | 0.3369 | 0.3322 | 0.3437 | 0.3221 | 0.3407 | 0.3251 | 0.3387 | 0.3225 | 0.3634 | 0.3341 | 0.3391 | 0.3192 | 0.3378 | |
| ETTh1 | 96 | 0.3695 | 0.3982 | 0.4136 | 0.4292 | 0.3711 | 0.4007 | 0.3833 | 0.4049 | 0.3863 | 0.4135 | 0.3755 | 0.3997 | 0.3783 | 0.4058 | 0.3682 | 0.3981 | 0.3981 | 0.4227 | 0.3834 | 0.4122 |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | ||||||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | |
| Weather | 96 | 0.1626 | 0.2176 | 0.1623 | 0.2144 | 0.1676 | 0.2226 | 0.1650 | 0.2155 | 0.1808 | 0.2319 | 0.1684 | 0.2227 | 0.1716 | 0.2189 | 0.1750 | 0.2335 | 0.1934 | 0.2446 | 0.1739 | 0.2223 |
| 192 | 0.2085 | 0.2577 | 0.2256 | 0.2731 | 0.2107 | 0.2604 | 0.2155 | 0.2599 | 0.2304 | 0.2747 | 0.2134 | 0.2600 | 0.2142 | 0.2579 | 0.2147 | 0.2672 | 0.2489 | 0.2893 | 0.2327 | 0.2783 | |
| 336 | 0.2566 | 0.2915 | 0.2759 | 0.3118 | 0.2584 | 0.2917 | 0.2666 | 0.3000 | 0.2779 | 0.3126 | 0.2614 | 0.2981 | 0.2699 | 0.3031 | 0.2579 | 0.3036 | 0.2975 | 0.3288 | 0.2704 | 0.3066 | |
| 720 | 0.3212 | 0.3394 | 0.3325 | 0.3504 | 0.3247 | 0.3402 | 0.3248 | 0.3416 | 0.3401 | 0.3555 | 0.3267 | 0.3452 | 0.3489 | 0.3576 | 0.3202 | 0.3534 | 0.4175 | 0.4027 | 0.3346 | 0.3498 | |
| ETTh1 | 96 | 0.4503 | 0.4407 | 0.5204 | 0.4903 | 0.5936 | 0.5230 | 0.4582 | 0.4591 | 0.5457 | 0.5153 | 0.4669 | 0.4663 | 0.4831 | 0.4600 | 0.4508 | 0.4530 | 0.5952 | 0.5270 | 0.5631 | 0.5158 |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | ||||||||||||
| Dataset | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | |
| Weather | 96 | 0.1798 | 0.2381 | 0.1775 | 0.2310 | 0.1884 | 0.2423 | 0.1855 | 0.2349 | 0.1870 | 0.2412 | 0.1841 | 0.2338 | 0.1917 | 0.2439 | 0.1922 | 0.2598 | 0.2088 | 0.2617 | 0.1854 | 0.2390 |
| 192 | 0.2290 | 0.2796 | 0.2617 | 0.2958 | 0.2438 | 0.2969 | 0.2377 | 0.2870 | 0.2401 | 0.2867 | 0.2322 | 0.2824 | 0.2389 | 0.2843 | 0.2413 | 0.3019 | 0.2569 | 0.3015 | 0.2492 | 0.2917 | |
| 336 | 0.2896 | 0.3284 | 0.2970 | 0.3268 | 0.3289 | 0.3531 | 0.2921 | 0.3309 | 0.2949 | 0.3288 | 0.2913 | 0.3302 | 0.3043 | 0.3296 | 0.2928 | 0.3418 | 0.3138 | 0.3480 | 0.3108 | 0.3437 | |
| 720 | 0.3582 | 0.3723 | 0.3748 | 0.3850 | 0.4061 | 0.4053 | 0.3728 | 0.3827 | 0.3814 | 0.3883 | 0.3605 | 0.3756 | 0.3629 | 0.3770 | 0.3632 | 0.3945 | 0.3875 | 0.3978 | 0.3928 | 0.3975 | |
| ETTh1 | 96 | 0.6033 | 0.5157 | 0.7049 | 0.5613 | 0.8031 | 0.5903 | 0.6220 | 0.5297 | 0.6659 | 0.5519 | 0.6313 | 0.5496 | 0.6403 | 0.5528 | 0.5565 | 0.5057 | 0.7338 | 0.5789 | 0.6462 | 0.5551 |
| CLAIR | Time-LLM | S 2 IP-LLM | OFA | CALF | FSCA | SE-LLM | DLinear | iTransformer | PatchTST | ||
| Yearly | SMAPE | 13.764 | 13.721 | 13.899 | 14.368 | 13.488 | 13.413 | 13.675 | 14.358 | 14.282 | 13.664 |
| MASE | 3.161 | 3.036 | 3.093 | 3.397 | 3.043 | 3.009 | 3.140 | 3.128 | 3.202 | 3.086 | |
| OWA | 0.819 | 0.802 | 0.814 | 0.867 | 0.796 | 0.789 | 0.813 | 0.833 | 0.840 | 0.806 | |
| Quarterly | SMAPE | 10.116 | 10.861 | 10.545 | 10.444 | 10.697 | 10.213 | 10.191 | 10.500 | 10.740 | 10.916 |
| MASE | 1.178 | 1.293 | 1.239 | 1.237 | 1.233 | 1.227 | 1.193 | 1.239 | 1.280 | 1.289 | |
| OWA | 0.889 | 0.965 | 0.931 | 0.925 | 0.935 | 0.911 | 0.898 | 0.929 | 0.954 | 0.966 | |
| OT variant | Diag. mass | |
| Unconstrained | ||
| Soft | ||
| Hard |
| Method | ETTh1/h2 | ETTm1/m2 | ECL | Weather |
| Time-LLM | 55.41 | 55.50 | 55.41 | 55.41 |
| S 2 IP-LLM | 57.04 | 58.50 | 57.04 | 57.04 |
| OFA | 17.33 | 9.34 | 17.33 | 17.33 |
| CALF | 18.53 | 18.53 | 18.53 | 18.53 |
| FSCA | 31.75 | 35.60 | 31.32 | 30.33 |
| SE-LLM | 97.33 | 97.33 | 100.31 | 98.61 |
| Setting | Latency | Peak GPU | Rel. latency |
| Student-only | 4.39 ms | 0.46 GB | |
| Eval w/ teacher | 10.32 ms | 0.76 GB |
| Setting | ms/iter | Peak GPU | Rel. time / mem |
| CLAIR Full | 1107.7 | 35.73 GB | / |
| Student Base | 771.4 | 28.92 GB | / |
| Dataset | Baseline | CLAIR MSE SD | Baseline MSE SD | MSE [95% CI] | |
| Weather | FSCA | 96 | |||
| 192 | |||||
| 336 | |||||
| 720 | |||||
| ETTh2 | FSCA | 96 | |||
| 192 |
Time Series Forecasting
Time series forecasting predicts future values from ordered observations using statistical, neural, and probabilistic models to support decisions under uncertainty.
See all 966 papers