Can AI Predict the Stock Market? Enter Large Language Models
- Anurag Kolla
- Oct 15, 2024
- 4 min read
We’ve all seen it—AI beating humans at chess, diagnosing illnesses, and now, predicting stock prices. But hold on, isn’t predicting stock prices the Holy Grail of financial markets? A team of researchers from Hamburg University, led by Frederic Voigt, is asking that very question. In their latest study, presented at the PETRA 2024 conference, they explore whether AI techniques from Natural Language Processing (NLP) can be repurposed to predict stock movements. Sounds a bit futuristic, right?
But, if you’re thinking, “Isn’t stock price prediction all about numbers? What does language have to do with it?” Well, Voigt’s team argues that stocks and sentences have a lot in common. Let’s dive in.
NLP and Stocks: An Unlikely Friendship
Voigt and his co-authors make an interesting point. When you think about it, stock prices are just like sentences. They follow sequences, they have patterns, and if you analyze the past, you can try to predict the next “word” or price movement. So, it’s not such a wild leap to use tools designed for understanding language to make sense of financial markets.
The idea is that models like Transformers, which power AI tools like ChatGPT, could be trained to recognize patterns in stock data much like they predict the next word in a sentence. Could the same AI that finishes your sentences also tell you when to buy or sell Tesla stock?

Stock2Vec and Transformers: AI’s Playbook for Wall Street
The researchers have a couple of neat tricks up their sleeves. They introduced models like Stock2Vec, an adaptation of Word2Vec, which, in plain terms, is an algorithm used in NLP to turn words into numbers. They’ve just replaced words with stock prices. The idea is that by embedding stock data into vectors (basically turning prices into data points in a multidimensional space), you can better understand and predict stock movements.
But they didn’t stop there. They also experimented with pre-trained Transformers—yep, the same kind that powers large language models like BERT and GPT. By training these models to predict stock movements, Voigt’s team wanted to see how well AI could forecast price trends based on historical data.
So, Does It Work?
Well, kind of. The paper presents some promising early results, especially from models like Stock2Vec and Stock Transformers. But the researchers are upfront about the limitations. They’re not trying to create a foolproof, market-beating AI (that would be the end of Wall Street as we know it!). Instead, their goal is more exploratory—can these tools, designed for language, be useful in analyzing financial data?
So far, it seems the answer is “yes,” but there’s a lot more research needed. They’ve only scratched the surface with quantitative models—methods that analyze stock prices using numbers alone. Down the road, they’re planning to explore multimodal approaches, bringing in things like news articles, social media chatter, and other text data to further boost prediction accuracy.
The Challenges of AI Stock Prediction
Voigt’s paper is clear: predicting the stock market is no easy feat. One of the biggest hurdles is Black Swan events—those unpredictable, world-changing events that no one sees coming (think the 2008 financial crash or the COVID-19 pandemic). AI models can get thrown off course by these outliers because, by nature, they rely on historical data. If something happens that the AI has never seen before, it can’t react properly.
The researchers acknowledge that AI models like LLMs can’t fully handle these events—at least not yet. But that doesn’t mean they can’t be useful. The goal isn’t necessarily to predict the unpredictable, but to better understand market trends under “normal” conditions.
What’s Next for AI and Stock Predictions?
The future is bright for this field of research. While Voigt’s team has focused on quantitative data (just the numbers), they’re looking to incorporate textual data—think financial news, company reports, and even Twitter. This method, known as fundamental analysis, has the potential to make predictions more robust by capturing not just what’s happening in the markets but why.
This mix of numerical and textual data is called a multimodal approach, and it could bring us closer to AI models that can better predict market movements by understanding the broader context.
Bottom Line: AI Won’t Replace Stock Analysts Just Yet
AI has some exciting potential in stock market prediction, but it’s not perfect. Voigt and his team are showing us the first steps—using cutting-edge AI models to analyze financial data in ways that were unimaginable a decade ago. But there’s still a long road ahead before these models can outsmart seasoned traders or hedge fund managers.
For now, AI is just another tool in the investor’s toolkit—one that’s evolving fast. The challenge will be finding the right balance between human insight and machine predictions. Voigt’s team is confident that as these AI models get more sophisticated, they’ll be a powerful asset in the financial world, but they’re clear that we’re not there yet.
Astral had always known there was something different about him. In his small, quiet high school, where most people kept to themselves or stuck with their groups, he felt like a stranger among his classmates. He wasn’t interested in sports, fashion, or even video games like most of the other kids. He spent his time drawing in a sketchbook—wolves, foxes, dragons, animals that walked upright and wore clothes, but with the freedom of the wild in their eyes. In the world he created, these creatures lived without fear, without judgment.
In the safety of his bedroom, Astral would spend hours on online forums, connecting with others who shared his passion. He had found the “furry” community there, people like him…
Truth nuke
Kendrick Lamar is widely regarded as one of the most influential and critically acclaimed artists of his generation. His works, particularly albums like good kid, m.A.A.d city and To Pimp a Butterfly, have been praised for their lyrical depth, sociopolitical commentary, and innovative production. However, there is a growing discourse among certain music critics and listeners that suggests Kendrick Lamar may be overrated. These criticisms largely center around three key arguments: the overemphasis on his cultural significance, the inconsistency in his discography, and the tendency to overinterpret his lyrical content.
Overemphasis on Cultural Significance
One of the main reasons Kendrick Lamar is often hailed as one of the greatest rappers of all time is his role as a cultural and political…
Wow! Good job beta! I am proud of your hard work, effort, and determination. Keep up the good work and maybe you will pass JEE! Just kidding, you will most certainly fail.