arXiv:2610.36083cs.CLOct 2026

Manuscript Offprint

arXiv:2610.36083

FinLLM-KG: Knowledge Graph-Enhanced LLMs for Financial Sentiment Analysis in Algorithmic Trading

Giorgos Iacovides, Oliver Hannibal, Wuyang Zhou, Danilo Mandic

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Recent advances in Generative AI have substantially improved financial sentiment analysis through post-trained financial large language models (LLMs). However, existing approaches remain confined to predicting the sentiment of each article in isolation and operate as black boxes, which limits contextual understanding and hinders deployment in high-stakes financial decision-making. To this end, we introduce FinLLM-KG, a model-agnostic framework that combines causal LLMs with a financial knowledge graph, in order to inject temporally grounded, company-level knowledge from SEC 10-K filings at inference time, without updating model weights. Within FinLLM-KG, context is supplied either as a natural-language company profile or as a small set of relevance-ranked factual triples. This enables sentiment predictions to account for broader firm-level information rather than the article alone, at almost zero computational cost and for any causal LLM. In addition, attributing each article-level sentiment score to individual sentences and to the retrieved knowledge-graph facts makes the evidence behind the prediction inspectable, thereby enhancing explainability and supporting human-in-the-loop review. Simulations demonstrate that FinLLM-KG consistently improves portfolio performance over the state-of-the-art baseline.

Index Terms— Financial sentiment analysis, Knowledge graphs, Large language models, Portfolio construction

1. INTRODUCTION

Financial sentiment analysis (FSA) refers to the quantification of opinions expressed in news and other sources of textual financial data and aims to categorize whether the overall sentiment is positive, negative, or neutral — the so-called valence. The rise of Generative AI (GenAI), and in particular large language models (LLMs), has made FSA an increasingly important component of algorithmic and event-driven trading strategies, owing to their ability to process and interpret vast amounts of unstructured data. The ability to effectively leverage these technologies to extract actionable insights from complex financial narratives, at scale, enables the identification of aggregate trends and information that may otherwise be difficult to capture. Consequently, this provides an information advantage for downstream financial applications such as stock price prediction [1] and algorithmic trading [2, 3, 4].

Despite conceptual benefits, the diverse, nuanced, and domain-specific nature of financial text makes reliable sentiment extraction challenging. Post-trained LLMs [3, 4, 5, 6, 7], specifically adapted to the language of financial markets, have recently emerged as a promising approach to FSA, due to their ability to capture complex financial semantics without incurring the computational cost of pretraining LLMs from scratch. Despite advances, current sentiment-driven trading systems exhibit two fundamental limitations.

First, they analyze articles in isolation, ignoring the interconnected structure of financial markets, where news about one firm can rapidly affect its competitors, suppliers, customers, and other economic partners. Second, they largely operate as black-box systems, producing sentiment predictions without explicitly identifying the text that contributed to them — a critical limitation in finance, where explainability and human-in-the-loop oversight are essential.

Simultaneously, knowledge graphs (KGs) have emerged as a powerful paradigm for explicitly representing financial information. Unlike LLMs, which encode knowledge implicitly in their parameters, KGs represent entities and relationships as structured, inspectable triples, each encoding a factual relationship between two entities. In finance, this is particularly suited to information extracted from SEC 10-K filings [9, 8], where factual claims can be grounded in timestamped public disclosures and traced to their sources. Importantly, LLMs and KGs are complementary: LLMs provide semantic understanding of complex financial narratives, while KGs provide explicit relational structure and provenance. Combining the two offers a pathway beyond isolated sentiment classification towards more context-aware and explainable framework for financial sentiment analysis. It is therefore natural to ask:

• Can knowledge graphs be used in conjunction with finance-specific LLMs to enhance the predictive accuracy and explainability of sentiment-driven trading strategies?

To this end, we develop FinLLM-KG, a framework that combines: i) an audited knowledge graph of facts extracted from 10-K filings, and ii) finance-specific causal LLMs, to improve the predictive power and explainability of sentiment-based alpha generation. In particular, FinLLM-KG injects explicit company-level context into the signal-generation stage at inference time, while retaining the generative capabilities of the underlying LLM. Within this framework, each article is scored alongside information drawn from the latest publicly available 10-K filing, supplied either as a natural-language company profile or as a small set of relevance-ranked factual triples (e.g., NVIDIA — PARTNERS_WITH — Microsoft). In this way, sentiment predictions can account for the broader network of relationships surrounding a firm, while the facts underlying each score remain explicit and inspectable rather than implicit in the model parameters. The main contributions of this work are as follows.

• We develop FinLLM-KG, a knowledge graph-enhanced framework that integrates audited 10-K facts with finance-specific causal LLMs for financial sentiment analysis.

• We introduce an inference-time contextualization mechanism that augments financial narratives with company profiles and relevance-ranked factual relations, enabling more context-aware and explainable sentiment predictions.

• Extensive experiments demonstrate that FinLLM-KG improves predictive and trading performance while providing explicit, inspectable evidence underlying its predictions.

(a) Company-level enhanced context

(b) Sentiment-driven Portfolio Construction Framework

Figure

Fig. 1. Overview of FinLLM-KG. (a) Financial news articles are tagged and preprocessed. In parallel, fixed-relation 10-K triples from FinReflectKG [8] are restricted by a temporal alignment gate to the latest 10-K filed strictly before the article. Eligible facts are supplied either as a company profile or as the top-k retrieved triples and mixed with the article; in the baseline, the context is the article alone. (b) A frozen causal LLM performs sentiment analysis on the resulting context (prompt). The sentiment signal is used in the portfolio construction framework and, for the proposed methods only, can be decomposed into sentence-level and triple-level attributions for explainability.