Reconstruction-Based Sobolev Supervision for Time Series Forecasting

Haochen Xu, Linduo Huang, Songqiao Han, Minqi JiangarXiv 2026

TL;DR

Standard time series forecasting models are trained to match individual data points, which means they can get a great error score while completely missing the overall shape and direction of a trend. Sobolev Loss fixes this by turning discrete predictions and targets into smooth, differentiable curves, allowing the model to be trained on both where the series is going and how fast it is changing—without amplifying observation noise. It’s a drop-in replacement for standard loss functions that leaves model architectures and inference untouched.

What Problem Does This Paper Address?

Imagine two weather forecasts: one predicts a flat, constant temperature all week, while the other captures the actual rise and fall of a heatwave, just slightly muted. Surprisingly, both forecasts can end up with the exact same Mean Squared Error (MSE).

Figure 1: Motivation for supervising values and local dynam- ics. (a–b) Two predictions with the same MSE, where only the right one preserves the ground-truth temporal pattern. (c–d) Direct numerical differentiation amplifies observation noise. Dashed curves denote noise-free analytic functions.

This highlights a fundamental gap in time series forecasting: pointwise objectives like MSE and MAE only penalize numerical errors at individual timestamps. They don't explicitly supervise how a trajectory evolves over time.

A natural fix is to supervise the temporal derivatives (the local rate of change) alongside the values. However, real-world time series are discrete and noisy. If you compute derivatives directly using finite differences, even tiny measurement jitters get wildly amplified, giving the model unstable, misleading gradients.

Methods

To get clean derivative supervision without the noise, the authors introduce Sobolev Loss. Instead of differentiating noisy discrete points, they first reconstruct both the predicted sequence ($\hat{Y}$) and the ground-truth sequence ($Y$) as smooth, continuous functions using normalized Gaussian kernel regression (a classical Nadaraya–Watson estimator).

Figure 2: Overview of the proposed Sobolev Loss. Prediction and ground truth share a Gaussian reconstruction operator whose per-variable bandwidth is determined offline from residual diagnostics on training data. Reconstruction Function Loss aligns the reconstructed functions, Differential Loss constrains their local dynamics, and Residual Loss preserves information not faithfully captured by the reconstruction.

Because a Gaussian kernel is infinitely differentiable, this smooth representation gives us closed-form, noise-attenuated analytic derivatives at the exact original timestamps. From this, Sobolev Loss builds a three-part training objective:

  1. Reconstruction Function Loss ($\mathcal{L}_f$): Aligns the smoothed values of the prediction and target.
  2. Differential Loss ($\mathcal{L}_d$): Aligns their analytic temporal derivatives, constraining local dynamics and turning behavior.
  3. Residual Loss ($\mathcal{L}_r$): Supervises the leftover residuals ($Y - F_h(Y)$) that were smoothed away, ensuring high-frequency details aren't lost.

What’s new vs. standard? * Data-Adaptive Bandwidths: A key hyperparameter in kernel smoothing is the bandwidth $h$, which controls how smooth the curve is. Rather than tuning $h$ on a validation set, the authors calibrate variable-specific bandwidths offline on the training data using Ljung–Box residual autocorrelation diagnostics. They pick the bandwidth whose residuals show the least remaining temporal autocorrelation, then cache the resulting linear operators for fast training. * Scale Alignment: Since the three loss terms can have very different magnitudes, $\mathcal{L}_d$ and $\mathcal{L}_r$ are dynamically scaled to match $\mathcal{L}_f$ using stop-gradient ratios, then combined with weights $\alpha$ and $m$.

Datasets

The authors evaluate Sobolev Loss on seven standard long-term forecasting benchmarks:

  • ETT (Electricity Transformer Temperature): ETTh1, ETTh2, ETTm1, ETTm2
  • Electricity
  • Traffic
  • Weather

No new datasets were introduced; all experiments follow standard train/validation/test splits with an input length of 96 and forecasting horizons $L \in \{96, 192, 336, 720\}$.

Key Insights and Ideas

  • Decoupling smooth dynamics from residuals works best: Ablation studies show that adding differential supervision directly to MSE helps, and separating function/residual losses helps, but combining all three ($\mathcal{L}_f + \mathcal{L}_d + \mathcal{L}_r$) yields the strongest results.
  • Plug-and-play across architectures: Because Sobolev Loss only changes the training objective, it works seamlessly with older Transformers (Autoformer), simple linear models (DLinear), modern patch/variable-centric models (PatchTST, iTransformer, TQNet), and even pretrained Time Series Foundation Models (TSFMs).
  • Better accuracy and better shape: Improvements aren't just numerical. Models trained with Sobolev Loss score significantly better on temporal-fidelity metrics—Temporal Distortion Index (TDI), Pearson Correlation (PCC), and Directional Accuracy (DAcc)—meaning their forecasts actually look like the ground truth.

Key Results

  • Deep Forecasting Backbones: Across 5 main backbones, 7 datasets, and 4 horizons (140 settings total), Sobolev Loss improves MSE in 117/140 settings and MAE in 139/140 settings. Notably, it cuts average MSE/MAE by 19.9% / 14.4% on Autoformer and 9.3% / 8.8% on DLinear.
  • Few-Shot Foundation Models: Under 5% few-shot fine-tuning across 4 TSFMs (CALF, GPT4TS, TTM, UniTS), Sobolev Loss improves MSE in 84/112 settings and MAE in 105/112 settings.
  • Vs. Other Losses: Using Autoformer, Sobolev Loss outperforms specialized shape-aware and decomposition losses (TILDE-Q and DBLoss) in most evaluated settings.

Limitations and Future Work

  • First-order only: The current objective only supervises first-order derivatives (velocity/slope), even though Gaussian reconstruction supports derivatives of any order.
  • Loss weight tuning: While bandwidths are chosen automatically, the loss weights ($\alpha$ and $m$) still require validation-based tuning, and their optimal values vary by dataset.
  • Future directions: The authors plan to explore higher-order differential constraints (like curvature), adaptive loss-weighting strategies, and alternative differentiable reconstruction operators.

Summary updated

BibTeX
@misc{xu2026reconstruction,
  author = {Haochen Xu and Linduo Huang and Songqiao Han and Minqi Jiang},
  title = {{Reconstruction-Based Sobolev Supervision for Time Series Forecasting}},
  year = {2026},
  eprint = {2612.05039},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.05039},
}
Figure