Papers
Topics
Authors
Recent
2000 character limit reached

Adaptive Temporal Fusion Transformers for Cryptocurrency Price Prediction (2509.10542v1)

Published 6 Sep 2025 in q-fin.ST, cs.CE, and cs.LG

Abstract: Precise short-term price prediction in the highly volatile cryptocurrency market is critical for informed trading strategies. Although Temporal Fusion Transformers (TFTs) have shown potential, their direct use often struggles in the face of the market's non-stationary nature and extreme volatility. This paper introduces an adaptive TFT modeling approach leveraging dynamic subseries lengths and pattern-based categorization to enhance short-term forecasting. We propose a novel segmentation method where subseries end at relative maxima, identified when the price increase from the preceding minimum surpasses a threshold, thus capturing significant upward movements, which act as key markers for the end of a growth phase, while potentially filtering the noise. Crucially, the fixed-length pattern ending each subseries determines the category assigned to the subsequent variable-length subseries, grouping typical market responses that follow similar preceding conditions. A distinct TFT model trained for each category is specialized in predicting the evolution of these subsequent subseries based on their initial steps after the preceding peak. Experimental results on ETH-USDT 10-minute data over a two-month test period demonstrate that our adaptive approach significantly outperforms baseline fixed-length TFT and LSTM models in prediction accuracy and simulated trading profitability. Our combination of adaptive segmentation and pattern-conditioned forecasting enables more robust and responsive cryptocurrency price prediction.

Summary

  • The paper introduces an adaptive segmentation approach that dynamically segments time series using significant relative maxima to capture true market cycles.
  • The paper presents pattern-conditioned forecasting with specialized TFT models that adapt to specific market dynamics, yielding improved accuracy.
  • The paper demonstrates that the adaptive TFT approach outperforms fixed-window models in accuracy, precision, recall, and simulated trading profitability.

Adaptive Temporal Fusion Transformers for Cryptocurrency Price Prediction

Introduction

This paper introduces an innovative approach to address the challenge of predicting the volatile cryptocurrency market using Adaptive Temporal Fusion Transformers (TFTs). The methodology diverges from conventional fixed-window models by employing dynamic segmentation and pattern-based categorization to improve short-term forecasting accuracy. Two main innovations are presented: adaptive segmentation of time series into variable-length subseries based on relative maxima, and pattern-conditioned forecasting using specialized TFT models. Experimental results demonstrate that this methodology significantly enhances prediction accuracy and profitability in simulated trading over fixed-length methods.

Methodology

Adaptive Segmentation

The segmentation algorithm replaces rigid fixed-length windows with an adaptive method driven by market-induced turning points. The boundaries of each subseries are dynamically determined by significant relative maxima where the price rise surpasses a specified threshold from the previous minimum. This captures essential market cycles and effectively reduces noise interference, aligning segment boundaries with actual market phases.

Pattern-Conditioned Forecasting

For forecasting, each identified subseries is categorized based on the pattern observed at its preceding endpoint. Specifically, the end pattern of the subseries is extracted as a short binary sequence, reflecting directional volatility changes. Based on this categorization, distinct TFT models are trained, enabling the adaptation of the model to specific market conditions. Thus, a specialized model predicts future values within contextually relevant market dynamics.

Implementation Highlights

The primary model, based on the Temporal Fusion Transformer (TFT) architecture, processes three types of inputs: static covariates, time-varying known inputs, and observed inputs. Specialized techniques such as Variable Selection Networks (VSN) optimize feature relevance, while attention mechanisms offer insight into temporal dependencies. Modern practices like padding and masking accommodate variable-length data, harmonizing with the adaptive segments. Figure 1

Figure 1: Overview of our proposed method.

Experimental Results

The Adaptive TFT approach was empirically validated using a dataset of ETH-USDT price movements aggregated in 10-minute intervals. Notably, the model outperformed baseline methods, including standard LSTM and TFT models, and a previously proposed fixed-length categorization approach.

Performance Metrics

  • Accuracy: The adaptive method achieved an accuracy rate of 51.36%, demonstrating superior predictive power over the baselines.
  • Precision and Recall: At a precision of 51.11% and a notably high recall of 92.31%, the model excels in identifying upward trends, essential for profitable trading strategies.
  • Simulated Trading Profitability: The trading strategy based on the adaptive models yielded a final asset value of 117.22 USDT in simulations, surpassing fixed-length window models and passive strategies.

Discussion

The adaptive nature of the segmentation and TFT specialization ensures that the model is responsive to market conditions, enhancing the forecast precision of cryptocurrency prices. The adaptive segmentation method effectively aligns analysis windows with actual market phases, capturing intricate patterns and trends. The high recall rate aligns with profitable strategies in volatile markets, although its specificity can vary depending on overarching market trends.

Future Directions

Key areas for further exploration include optimizing segmentation thresholds, integrating external data sources such as sentiment analysis, and refining trading strategies for diverse market conditions. Addressing issues with data sparsity in rare pattern-categories presents additional opportunities for development.

Conclusion

The Adaptive TFT approach advances the state of cryptocurrency price prediction by integrating adaptive segmentation and pattern-conditioned forecasting. It presents a robust platform for capturing the dynamic nature of financial markets, marking significant progress towards improving practical forecasting accuracy and trading profitability in volatile conditions. Continued exploration in parameter optimization and model integration signifies potential for broader applications in financial analysis.

Slide Deck Streamline Icon: https://streamlinehq.com

Whiteboard

Dice Question Streamline Icon: https://streamlinehq.com

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

List To Do Tasks Checklist Streamline Icon: https://streamlinehq.com

Collections

Sign up for free to add this paper to one or more collections.

X Twitter Logo Streamline Icon: https://streamlinehq.com

Tweets

Sign up for free to view the 2 tweets with 2 likes about this paper.