# Enhanced futures price-spread forecasting based on an attention-driven optimized LSTM network: integrating an improved grey wolf optimizer algorithm for enhanced accuracy

**Authors:** Yongli Tang, Zhenlun Gao, Zhongqi Cai, Jinxia Yu, Panke Qin

PMC · DOI: 10.7717/peerj-cs.2865 · PeerJ Computer Science · 2025-06-02

## TL;DR

This paper introduces a new model combining improved optimization and attention mechanisms to accurately predict futures price spreads in financial markets.

## Contribution

The novel IGML model integrates an improved grey wolf optimizer and multi-headed self-attention for enhanced financial forecasting.

## Key findings

- The IGML model reduces RMSE by up to 88% compared to baseline models.
- The improved grey wolf optimizer shows superior convergence efficiency in benchmark tests.
- The model effectively captures complex financial market dynamics in real futures data.

## Abstract

Financial market prediction faces significant challenges due to the complex temporal dependencies and heterogeneous data relationships inherent in futures price-spread data. Traditional machine learning methods struggle to effectively mine these patterns, while conventional long short-term memory (LSTM) models lack focused feature prioritization and suffer from suboptimal hyperparameter selection. This article proposes the Improved Grey Wolf Optimizer with Multi-headed Self-attention and LSTM (IGML) model, which integrates a multi-head self-attention mechanism to enhance feature interaction and introduces an improved grey wolf optimizer (IGWO) with four strategic enhancements for automated hyperparameter tuning. Benchmark tests on optimization problems validate IGWO’s superior convergence efficiency. Evaluated on real futures price-spread datasets, the IGML reduces mean square error (RMSE) and mean absolute error (MAE) by up to 88% and 85%, respectively, compared to baseline models, demonstrating its practical efficacy in capturing intricate financial market dynamics.

## Full-text entities

- **Diseases:** LSTM (MESH:D000088562)
- **Chemicals:** CS (MESH:D002586), CEC2019 (-)
- **Species:** Homo sapiens (human, species) [taxon 9606], Canis lupus (gray wolf, species) [taxon 9612]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12192826/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12192826/full.md

## References

36 references — full list in the complete paper: https://tomesphere.com/paper/PMC12192826/full.md

---
Source: https://tomesphere.com/paper/PMC12192826