Few-Shot Portfolio Optimization: Can Large Language Models Outperform Quantitative Portfolio Optimization? A Comparative Study of LLMs and Optimized Portfolio Allocators
Journal of Risk and Financial Management · 28.04.2026 · 19 (5) · 320
DOI: 10.3390/jrfm19050320 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Risk and Financial Management, online erschienen am 28.04.2026. Verfasst von Lamukanyani Alson Mantshimuli und 1 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref) und nennt 30 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Recent advances in large language models (LLMs) have raised questions about their potential role in portfolio allocation beyond traditional sentiment analyses. This study investigated whether LLMs, when prompted directly, can autonomously generate portfolio weights that compete with classical optimization and AI-enhanced strategies. We evaluated seven medium-sized open-source LLMs—Gemma-7B, Mistral-7B, Jansen Adapt-Finance-Llama2-7B, DeepSeek-R1-8B, QuantFactory Llama-3-8B-Instruct-Finance, Qwen-7B, and Llama2-7B—using systematic prompt engineering and temperature tuning. Portfolios were constructed from financial news headlines for S&P 500 equities and benchmarked against mean–variance optimization (MVO), the Black–Litterman model, AI-driven optimizers, and naive diversification strategies. The results show that, while LLM-generated portfolios outperformed naive diversification (Sharpe ratio up to 0.741), they lagged behind AI-optimized benchmarks (Sharpe ratio up to 1.361). A transaction cost analysis revealed that low-turnover LLM strategies retain their competitiveness post-costs, surpassing cap-weighted benchmarks. Statistical tests confirmed significant performance differences (p≤0.01). These findings highlight the ability of LLMs to extract signals from unstructured text, but also their limitations without explicit optimization. Future research should explore hybrid frameworks that combine LLM reasoning with quantitative optimization for cost-sensitive environments.
Zitieren
APA
Mantshimuli, L. A., & Mwamba, J. W. M. (2026). Few-Shot Portfolio Optimization: Can Large Language Models Outperform Quantitative Portfolio Optimization? A Comparative Study of LLMs and Optimized Portfolio Allocators. Journal of Risk and Financial Management, 19(5), 320. https://doi.org/10.3390/jrfm19050320
Vancouver
Mantshimuli LA, Mwamba JWM. Few-Shot Portfolio Optimization: Can Large Language Models Outperform Quantitative Portfolio Optimization? A Comparative Study of LLMs and Optimized Portfolio Allocators. Journal of Risk and Financial Management. 2026;19(5):320. doi:10.3390/jrfm19050320
BibTeX
@article{Mantshimuli2026,
author = {Mantshimuli, Lamukanyani Alson and Mwamba, John Weirstrass Muteba},
title = {Few-Shot Portfolio Optimization: Can Large Language Models Outperform Quantitative Portfolio Optimization? A Comparative Study of LLMs and Optimized Portfolio Allocators},
journal = {Journal of Risk and Financial Management},
year = {2026},
volume = {19},
number = {5},
pages = {320},
doi = {10.3390/jrfm19050320}
}
EUVIMED