                                                                                                   In-Context Fine-Tuning for Time-Series Foundation Models


                                                                                                                                             Table 7. OOD Benchmark (WQL)
Category                 Pretrained Models (Few Shot)                                                                                                                   Pretrained Models (Zero Shot)   Pretrained Models (Other)                                                                 Task Specific Models                                                      Local Models
Model                                  TimesFM-ICL      TimesFM (Base)   TimesFM-LH   Chronos-T5 (Large)   Chronos-T5 (Base)   Chronos-T5 (Small)   Chronos-T5 (Mini)    Chronos-GPT2      LLMTime                    Lag-Llama     TimesFM-FT   PatchTST   DeepAR    WaveNet    TFT    DLinear   N-HiTS    N-BEATS      SCUM    AutoETS   AutoTheta   AutoARIMA   Seasonal Naive   Naive
Australian Electricity                         0.037             0.078        0.067               0.067                0.075               0.074                0.063             0.078    0.069                           0.097         0.033      0.037     0.087     0.052   0.036     0.066   0.034     0.038        0.070     0.125       0.055   0.073               0.084    0.159
CIF 2016                                       0.013             0.049        0.049               0.014                0.013               0.015                0.013             0.015    0.014                           0.041         0.046      0.140     0.136     0.086   0.011     0.033   0.032     0.039        0.024     0.039       0.027   0.017               0.015    0.009
Car Parts                                      0.996             1.046        1.046               1.060                1.057               1.029                1.024             1.028    -                               1.011         0.983      0.998     0.967     0.941   0.871     1.119   0.880     0.877        1.283     1.309       1.337   -                   1.600    -
Covid Deaths                                   0.073             0.070        0.070               0.045                0.048               0.059                0.084             0.079    0.032                           0.276         0.043      0.065     0.108     0.918   0.034     0.077   0.038     0.056        0.037     0.064       0.094   0.029               0.133    0.133
Dominick                                       0.355             0.371        0.371               0.332                0.333               0.338                0.346             0.336    -                               0.443         0.327      0.345     0.364     0.327   0.320     0.435   0.313     0.312        0.439     0.483       0.485   -                   0.453    0.453
ERCOT Load                                     0.021             0.023        0.021               0.019                0.016               0.018                0.018             0.017    0.053                           0.033         0.022      0.017     0.032     0.024   0.023     0.023   0.020     0.020        0.050     0.122       0.041   0.052               0.037    0.181
ETT (15 Min.)                                  0.056             0.069        0.051               0.068                0.069               0.064                0.072             0.073    0.088                           0.080         0.060      0.054     0.069     0.113   0.075     0.071   0.051     0.053        0.061     0.095       0.079   0.073               0.141    0.121
ETT (Hourly)                                   0.080             0.083        0.085               0.073                0.081               0.080                0.085             0.080    0.122                           0.106         0.084      0.071     0.081     0.142   0.082     0.076   0.081     0.074        0.087     0.132       0.133   0.105               0.122    0.202
Exchange Rate                                  0.008             0.012        0.015               0.013                0.014               0.013                0.012             0.013    0.015                           0.011         0.010      0.010     0.009     0.016   0.011     0.008   0.010     0.011        0.011     0.010       0.010   0.011               0.013    0.015
FRED-MD                                        0.027             0.040        0.029               0.020                0.022               0.017                0.017             0.022    0.041                           0.389         0.043      0.042     0.043     0.058   0.112     0.069   0.057     0.061        0.059     0.055       0.057   0.056               0.122    0.064
Hospital                                       0.051             0.054        0.054               0.056                0.056               0.057                0.058             0.057    0.066                           0.093         0.051      0.070     0.056     0.064   0.053     0.089   0.052     0.050        0.052     0.053       0.055   0.058               0.073    0.087
M1 (Monthly)                                   0.148             0.130        0.130               0.130                0.128               0.139                0.138             0.131    0.181                           0.196         0.145      0.165     0.150     0.150   0.175     0.189   0.189     0.187        0.162     0.162       0.159   0.146               0.191    0.258
M1 (Quarterly)                                 0.087             0.113        0.113               0.107                0.105               0.103                0.103             0.116    0.115                           0.141         0.093      0.078     0.089     0.094   0.122     0.079   0.111     0.085        0.083     0.083       0.082   0.091               0.150    0.130
M1 (Yearly)                                    0.149             0.145        0.145               0.183                0.181               0.172                0.179             0.204    0.144                           0.293         0.145      0.165     0.139     0.168   0.124     0.245   0.198     0.182        0.135     0.142       0.137   0.160               0.209    0.209
M3 (Monthly)                                   0.089             0.089        0.089               0.096                0.097               0.100                0.099             0.106    0.108                           0.155         0.089      0.113     0.099     0.100   0.096     0.121   0.097     0.101        0.094     0.093       0.095   0.102               0.149    0.158
M3 (Quarterly)                                 0.068             0.075        0.075               0.074                0.076               0.079                0.081             0.078    0.084                           0.134         0.073      0.074     0.073     0.072   0.071     0.086   0.076     0.080        0.072     0.069       0.070   0.079               0.101    0.103
M3 (Yearly)                                    0.121             0.144        0.144               0.151                0.153               0.155                0.159             0.148    0.148                           0.192         0.145      0.133     0.122     0.130   0.130     0.143   0.182     0.181        0.144     0.127       0.128   0.162               0.167    0.167
M4 (Quarterly)                                 0.077             0.062        0.062               0.082                0.083               0.084                0.086             0.087    -                               0.132         0.062      0.074     0.080     0.079   0.080     0.085   0.073     0.073        0.079     0.080       0.079   0.082               0.119    0.110
M4 (Yearly)                                    0.116             0.091        0.091               0.134                0.137               0.136                0.140             0.148    -                               0.178         0.091      0.106     0.111     0.109   0.110     0.115   -         -            0.114     0.118       0.115   0.130               0.161    0.161
M5                                             0.559             0.558        0.557               0.587                0.586               0.590                0.595             0.598    -                               0.635         0.550      0.597     0.657     0.594   0.560     0.687   0.563     0.560        0.653     0.628       0.636   0.624               1.024    1.024
NN5 (Daily)                                    0.152             0.158        0.155               0.156                0.161               0.169                0.173             0.162    0.242                           0.261         0.152      0.149     0.155     0.154   0.145     0.159   0.149     0.147        0.293     0.264       0.294   0.312               0.425    0.425
NN5 (Weekly)                                   0.084             0.079        0.079               0.091                0.091               0.090                0.091             0.094    0.092                           0.111         0.089      0.081     0.087     0.098   0.086     0.090   0.098     0.114        0.092     0.088       0.090   0.090               0.123    0.123
Tourism (Monthly)                              0.079             0.085        0.085               0.100                0.103               0.113                0.109             0.095    0.125                           0.213         0.078      0.092     0.092     0.104   0.096     0.101   0.092     0.084        0.083     0.090       0.091   0.093               0.104    0.297
Tourism (Quarterly)                            0.076             0.070        0.070               0.061                0.069               0.069                0.074             0.068    0.071                           0.202         0.075      0.074     0.072     0.082   0.074     0.080   0.077     0.063        0.075     0.070       0.061   0.098               0.119    0.166
Tourism (Yearly)                               0.141             0.163        0.163               0.183                0.207               0.200                0.218             0.194    0.163                           0.238         0.178      0.136     0.127     0.179   0.102     0.165   0.139     0.154        0.162     0.159       0.176   0.156               0.209    0.209
Traffic                                        0.243             0.164        0.213               0.256                0.264               0.263                0.264             0.254    0.287                           0.256         0.170      0.246     0.233     0.234   0.264     0.250   0.263     0.270        -         0.557       0.905   -                   0.362    0.643
Weather                                        0.136             0.141        0.133               0.139                0.140               0.143                0.150             0.144    -                               0.164         0.127      0.143     0.147     0.152   0.151     0.174   0.143     0.144        0.174     0.214       0.217   0.185               0.217    0.217
Geometric Mean (ZS)                            0.585             0.699        0.680               0.634                0.649               0.655                0.667             0.675    0.784                           1.134         0.644      0.689     0.745     0.876   0.627     0.762   0.659     0.671        0.720     0.821       0.757   0.751               1.000    1.157
Geometric Mean (All)                           0.596             0.673        0.662               0.645                0.660               0.666                0.679             0.686    0.806                           1.095         0.626      0.683     0.733     0.842   0.637     0.757   0.670     0.681        0.729     0.836       0.794   0.762               1.000    1.153




                                                                 Table 8. MASE and Timing of TimesFM-ICF and TimesFM-FT on the OOD Benchmark.
                                                                 Model                                                                        Total Fine-Tune Time                                                                  Total Inference Time                                                  MASE
                                                                 TimesFM-ICF                                                                                                     Not needed                                                                              25 min                              0.777
                                                                 TimesFM-FT (FULL)                                                                                                          84 min                                                                         28 sec                            0.789
                                                                                                                                                                                           167 min                                                                                                           0.794
                                                                                                                                                                                           250 min                                                                                                           0.779
                                                                                                                                                                                           334 min                                                                                                           0.776
                                                                                                                                                                                           418 min                                                                                                           0.776
                                                                 TimesFM-FT (LP)                                                                                                            29 min                                                                         28 sec                            0.807
                                                                                                                                                                                            57 min                                                                                                           0.805
                                                                                                                                                                                            85 min                                                                                                           0.802
                                                                                                                                                                                           113 min                                                                                                           0.802
                                                                                                                                                                                           141 min                                                                                                           0.799


in-series examples. We measured the validation MASE error of TimesFM-ICF with the number of in-series examples
varying from 0-20, and the total number of in-context examples (including randomly selected examples) varying from 1-50.
The resulting heatmap is show in Figure 11. The configuration with smallest validation MASE was 11 in-series examples
and 34 total examples. The geometric mean MASE ratio (averaged over 5 runs with different random examples selected)
was 0.780 ± .003 (so within a standard error of the MASE value we report in Figure 5).
While we leave to future work a more detailed investigation of how best to chose relevant examples to add to the context, the
results in this paper show that even simple approaches like random selection and selecting examples from the immediate
history are sufficient to obtain accuracy gains with in-context fine-tuning.




                                                                                                                                                                                             18
