Ethereum Price Prediction Employing Large Language Models for Short-term and Few-shot Forecasting

Eftychia Makri, Georgios Palaiokrassas, Sarah Bouraga, Antigoni Polychroniadou, Leandros Tassiulas

Abstract

Predicting cryptocurrency prices remains a significant challenge due to extreme volatility and the lack of clear seasonal patterns. While specialized deep learning architectures have been the standard, they often struggle with data scarcity and non-linear market dynamics. This paper investigates the efficacy of "reprogramming" Large Language Models (LLMs)—specifically Llama-3 and GPT-2—for numerical time-series forecasting. By utilizing a Frozen Pretrained Transformer (FPT) framework, we demonstrate that LLMs can outperform specialized financial models in both short-term and few-shot scenarios. Our results show that Llama-3 achieves state-of-the-art (SOTA) performance, suggesting that the sequence-recognition capabilities of LLMs are transferable across domains.

1. Introduction

Cryptocurrency markets, particularly Ethereum (ETH), represent a "wicked" prediction problem. Unlike traditional equities, crypto assets are characterized by high-frequency volatility and a lack of long-term historical stability. Traditional forecasting methods, including Long Short-Term Memory (LSTM) networks and standard Transformers, typically require vast amounts of clean, high-frequency data to achieve reliable accuracy. However, in many financial contexts, such data is either unavailable or computationally expensive to process.

This research addresses the bottleneck of data scarcity by exploring whether the "knowledge" embedded in LLMs—trained on trillions of tokens of natural language—can be repurposed for numerical forecasting. The core hypothesis is that the underlying logic of sequence prediction is universal, allowing a model trained on text to identify patterns in financial time-series data with minimal adaptation.

2. Methodology

The study employs the Frozen Pretrained Transformer (FPT) framework. Rather than training a high-parameter model from scratch, which would lead to catastrophic overfitting on small financial datasets, the researchers utilize a strategy of selective adaptation:

  • Selective Freezing: The core self-attention and Feed-Forward Network (FFN) layers of the LLM (e.g., Llama-3, GPT-2) are frozen. These layers retain the general pattern-recognition capabilities developed during pre-training.
  • Targeted Fine-Tuning: Only the Layer Normalization and Positional Embedding components are fine-tuned. This allows the model to map numerical ETH price data into its internal latent space without losing its foundational logic.
  • Input Patching: Drawing from the PatchTST architecture, the time-series data is divided into small segments or "patches." This approach preserves local semantic information and allows the model to focus on short-term trends rather than isolated data points.
  • Reversible Instance Normalization (RevIN): To mitigate the effects of distribution shift—where the mean and variance of ETH prices change significantly over time—RevIN is used to normalize data before processing and restore the original scale during the output phase.

3. Experimental Setup

3.1 Datasets

The models were evaluated using two distinct data sources:

  1. Kaggle Dataset: A public dataset containing daily ETH prices, trading volumes, and percentage changes from 2016 to 2023.
  2. Node Dataset: Raw data extracted directly from an Ethereum full archive node, providing a comprehensive record of every transaction since the Genesis block in July 2015.

3.2 Hardware

Given the scale of the models (particularly Llama-3), the experiments were conducted using four NVIDIA RTX A6000 GPUs. This setup allowed for efficient fine-tuning of the non-frozen parameters while handling the large memory requirements of the transformer backbones.

4. Results and Analysis

4.1 Short-Term Forecasting Performance

The LLM-based approach demonstrated superior accuracy compared to both traditional and specialized models. On the Kaggle dataset, Llama-3 achieved a Mean Squared Error (MSE) of 0.0027. This significantly outperformed specialized time-series models like PatchTST (0.0052) and traditional LSTMs (0.0045).

4.2 Few-Shot Learning Efficiency

One of the most critical findings was the model's performance in data-constrained environments. In "few-shot" tests using only 10% of the training data, Llama-3 maintained an MSE of 0.0030. In contrast, the error rate for PatchTST nearly doubled to 0.0066 under the same conditions. This suggests that the pre-trained weights of the LLM provide a "head start" that specialized models lack, making them highly efficient learners.

4.3 Comparison to Baselines

Traditional machine learning models, such as Multi-Layer Perceptrons (MLPs) and Artificial Neural Networks (ANNs), failed to compete, with MSEs ranging from 0.0122 to 0.021. The gap between LLMs and these baselines highlights the importance of the transformer's attention mechanism in capturing the non-linear dependencies of the crypto market.

5. Discussion and Conclusion

The success of Llama-3 in this domain suggests that LLMs act as universal pattern recognizers. By freezing the majority of the network, the researchers prevented the overfitting typically associated with applying complex models to small datasets.

5.1 Limitations

Despite the SOTA results, the study identifies several limitations:

  • Univariate Focus: The current model primarily utilizes price data. Financial markets are influenced by external factors that a univariate model cannot fully capture.
  • Computational Intensity: While fine-tuning is more efficient than full training, the hardware requirements for 70B-parameter models remain a barrier for real-time edge applications.

5.2 Future Work

Future iterations of this research will focus on integrating multi-modal data, including sentiment analysis from social media platforms (Reddit, X) and on-chain metrics such as gas fees and whale wallet movements. Additionally, exploring distilled or quantized versions of these LLMs could make this high-accuracy forecasting more accessible for retail trading applications.

Summary updated

Abstract

Cryptocurrencies have transformed financial markets with their innovative blockchain technology and volatile price movements, presenting both challenges and opportunities for predictive analytics. Ethereum, being one of the leading cryptocurrencies, has experienced significant market fluctuations, making its price prediction an attractive yet complex problem. This paper presents a comprehensive study on the effectiveness of Large Language Models (LLMs) in predicting Ethereum prices for short-term and few-shot forecasting scenarios. The main challenge in training models for time series analysis is the lack of data. We address this by leveraging a novel approach that adapts existing pre-trained LLMs on natural language or images from billions of tokens to the unique characteristics of Ethereum price time series data. Through thorough experimentation and comparison with traditional and contemporary models, our results demonstrate that selectively freezing certain layers of pre-trained LLMs achieves state-of-the-art performance in this domain. This approach consistently surpasses benchmarks across multiple metrics, including Mean Squared Error (MSE), Mean Absolute Error (MAE), and Root Mean Squared Error (RMSE), demonstrating its effectiveness and robustness. Our research not only contributes to the existing body of knowledge on LLMs but also provides practical insights in the cryptocurrency prediction domain. The adaptability of pre-trained LLMs to handle the nature of Ethereum prices suggests a promising direction for future research, potentially including the integration of sentiment analysis to further refine forecasting accuracy.
BibTeX
@misc{makri2025ethereum,
  author = {Eftychia Makri and Georgios Palaiokrassas and Sarah Bouraga and Antigoni Polychroniadou and Leandros Tassiulas},
  title = {{Ethereum Price Prediction Employing Large Language Models for Short-term and Few-shot Forecasting}},
  year = {2025},
  eprint = {2503.23190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.23190},
}
Figure