LAGRU: A GRU-Based Model with Local Context Attention for Stock Price Prediction
Authors
Abstract
Accurate stock price prediction remains a challenging task due to the volatile and nonlinear nature of financial markets. Nowadays, Long-Short-Term Memory (LSTM) is widely used in stock price prediction and has demonstrated strong performance in capturing temporal dependencies. Alongside LSTM, GRU has emerged as a simplified alternative with fewer parameters and faster training time. However, when applied to stock price prediction, GRU often yields less favorable results in terms of MSE, MAPE, and R2 compared to LSTM. In this study, we propose LAGRU, a hybrid deep learning model that integrates Gated Recurrent Units (GRU) with a Local Context Attention mechanism to enhance the prediction of stock closing prices. The attention component enables the model to dynamically focus on the most relevant time steps within input sequences, capturing important local patterns often missed by standard recurrent architectures. Experimental results demonstrate that the proposed LAGRU model outperforms both LSTM and GRU in three real-world stock market datasets: VNINDEX, AAPL, and CSI300. © The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.
Keywords
AAPL
CSI300
Deep Learning
Gated Recurrent Units (GRUs)
Local Context
Long Short-Term Memory (LSTM)
Recurrent Neural Networks (RNN)
Stock Market Prediction
VNINDEX
BibTeX
OpenAlex ↗@inproceedings{W7147591372,
author = {Ha Minh Tan and Vo Chau Nguyet Duong and Vo Ngoc Tan and Nguyen Duy Minh and Tan Ha Mai and Duc-Quang Vu},
title = {{LAGRU: A GRU-Based Model with Local Context Attention for Stock Price Prediction}},
booktitle = {Communications in computer and information science},
year = {2026},
month = {4},
pages = {568--577},
volume = {2944 CCIS},
doi = {10.1007/978-3-032-21628-1_40},
url = {https://doi.org/10.1007/978-3-032-21628-1_40}
}