Time-Warping Recurrent Neural Networks for Transfer Learning
Organizations: University of Colorado Denver
Abstract
Dynamical systems describe how a physical system evolves over time. Physical processes can evolve faster or slower in different environmental conditions. We use time-warping as rescaling the time in a model of a physical system. This thesis proposes a new method of transfer learning for Recurrent Neural Networks (RNNs) based on time-warping. We prove that for a class of linear, first-order differential equations known as time lag models, an LSTM can approximate these systems with any desired accuracy, and the model can be time-warped while maintaining the approximation accuracy. The Time-Warping method of transfer learning is then evaluated in an applied problem on predicting fuel moisture content (FMC), an important concept in wildfire modeling. An RNN with LSTM recurrent layers is pretrained on fuels with a characteristic time scale of 10 hours, where there are large quantities of data available for training. The RNN is then modified with transfer learning to generate predictions for fuels with characteristic time scales of 1 hour, 100 hours, and 1000 hours. The Time-Warping method is evaluated against several known methods of transfer learning. The Time-Warping method produces predictions with an accuracy level comparable to the established methods, despite modifying only a small fraction of the parameters that the other methods modify.
Figures & tables
| Time-Lag (T) | Fuel Diameter | |
| 1 | Less than 1/4 in. | |
| 10 | 1/4 - 1 in. | |
| 100 | 1-3 in. | |
| 1000 | 3-8 in. |
| Setup: Pretrained LSTM with bias vectors ; training set ; test set ; fixed temporal scaling ; specified ranges of scalar candidate values for and . |
| 1. Construct a grid of candidate values for and a grid of candidate values for . |
| 2. Form all possible pairs by combining each value of with each value of . |
| 3. For each pair : |
| 3.1 Shift LSTM biases: , . |
| Setup: Pretrained LSTM with bias vectors ; training set ; validation set ; test set ; fixed temporal scaling ; specified ranges of scalar candidate values for and . |
| 1. Construct a grid of candidate values for and a grid of candidate values for . |
| 2. Form all possible pairs by combining each value of with each value of . |
| 3. For each pair : |
| 3.1 Shift LSTM biases: , . |
| Variable | Units | Description | Mean | (Low, High) |
| Drying Equilibrium | Derived from RH and temperature. | 18.02 | (1.29, 60.56) | |
| Wetting Equilibrium | Derived from RH and temperature. | 16.53 | (0.61, 56.10) | |
| Solar Radiation | Downward shortwave radiative flux. | 208.41 | (0, 1177) | |
| Wind Speed | Wind speed at 10m. | 2.52 | (0.40, 8.61) | |
| Rain | Rain accumulation over the hour. | 0.08 | (0.00, 42.17) | |
| Hour of Day | hours | Hour of day, UTC time. | 11.50 | (0, 23) |
| Fuel Class | N. Observations | Mean | (Low, High) |
| FM1 | 1,233 | 15.33 | (0.0, 109.2) |
| FM10 | 1,232 | 15.02 | (1.6, 64.3) |
| FM100 | 871 | 13.44 | (5.4, 35.7) |
| FM1000 | 874 | 11.37 | (4.7, 27.9) |
| Training Set | Validation Set | Test Set | |
| Start Date (UTC) | 1996-03-26, 23:00 | 1997-03-27, 00:00 | 1997-08-13, 12:00 |
| End Date (UTC) | 1997-03-26, 23:00 | 1997-08-13, 11:00 | 1997-12-30, 22:00 |
| N. Observations | Training Set | Validation Set | Test Set |
| Weather | 8,761 | 3,348 | 3,347 |
| FM1 | 704 | 258 | 271 |
| FM10 | 704 | 258 | 270 |
| FM100 | 481 | 184 | 206 |
| FM1000 | 482 | 183 | 209 |
| Method Name | Details | Literature Status |
| No Transfer | Random initialization and direct training on the target learning task. | Standard supervised training baseline. |
| Full Fine-Tuning | Model pretrained on a source task and all parameters updated on the target task. | Standard transfer learning baseline. |
| Freeze Recurrent Layer | Recurrent weights fixed while dense/output layers are retrained on the target task. | Common transfer learning strategy, widely used for CNNs. |
| Freeze Dense/Output Layers | Dense/output layers fixed while input and recurrent layers are retrained. | Reverse-freezing baseline; rarely explored in literature. |
| Time-Warping | Parameters for shifting the forget and input gate biases are fit, without additional training. | Novel to this thesis. |
| Time-Warping + Fine-Tuning | Time-warp initialization followed by full fine-tuning on the target task. | Novel to this thesis. |
| All observed FM10 | Observed FM10 30% | |||
| Metric | Nelson (hourly) | RNN | Nelson (hourly) | RNN |
| Bias (%) | ||||
| RMSE (%) | - | - | ||
| Metric | Values |
| RMSE (Mean SD) | 2.81 0.49 |
| RMSE Range (Low, High) | (2.63, 2.91) |
| N (Mean SD) | 65,691,366 589,543 |
| Metric | Forget Gate Bias | Input Gate Bias | Difference |
| Mean of per-model means ( SD across reps) | 1.14 0.04 | 0.11 0.08 | 1.03 0.10 |
| Range of per-model means (low, high) | (1.08, 1.32) | (-0.45, 0.24) | (0.90, 1.56) |
| Mean of per-model SDs ( SD across reps) | 0.23 0.15 | 0.39 0.17 | 0.47 0.22 |
| Range of per-model SDs (low, high) | (0.14, 1.37) | (0.21, 1.42) | (0.25, 1.91) |
| Method | Bias (%) | RMSE (%) | |
| No Transfer | |||
| Full Fine-Tuning | |||
| Freeze Recurrent Layer | |||
| Freeze Dense/Output Layers | |||
| Time-Warping | |||
| Time-Warping + Fine-Tuning |
| Method | Bias (%) | RMSE (%) | |
| No Transfer | |||
| Full Fine-Tuning | |||
| Freeze Recurrent Layer | |||
| Freeze Dense/Output Layers | |||
| Time-Warping | |||
| Time-Warping + Fine-Tuning |
| Method | Bias (%) | RMSE (%) | |
| No Transfer | |||
| Full Fine-Tuning | |||
| Freeze Recurrent Layer | |||
| Freeze Dense/Output Layers | |||
| Time-Warping | |||
| Time-Warping + Fine-Tuning |
| Method | Bias (%) | RMSE (%) | |
| No Transfer | |||
| Full Fine-Tuning | |||
| Freeze Recurrent Layer | |||
| Freeze Dense/Output Layers | |||
| Time-Warping | |||
| Time-Warping + Fine-Tuning |
| Time-Warping Parameter | Mean | Std | Median | Low | High |
| shift | |||||
| shift |
| Time-Warping Parameter | Mean | Std | Median | Low | High |
| shift | |||||
| shift |
| Time-Warping Parameter | Mean | Std | Median | Low | High |
| shift | |||||
| shift |
| FM1: Static Baselines | ||||
| All observed FM1 | Observed FM1 30% | |||
| Metric | XGBoost | LM | XGBoost | LM |
| Bias (%) | ||||
| RMSE (%) | ||||
| FM10: Static Baselines | ||||
| All observed FM10 | Observed FM10 30% | |||
| Metric | XGBoost | LM | XGBoost | LM |
| Bias (%) | ||||
| RMSE (%) | ||||
| FM100: Static Baselines | ||
| All observed FM100 | ||
| Metric | XGBoost | LM |
| Bias (%) | ||
| RMSE (%) | ||
| FM1000: Static Baselines | ||
| All observed FM1000 | ||
| Metric | XGBoost | LM |
| Bias (%) | ||
| RMSE (%) | ||
Transfer Learning
Transfer learning studies how models reuse knowledge across tasks, domains, or modalities when target data or computation are limited.
See all 417 papers