Aligning Language Models with Investor and Market Behavior for Financial Recommendations
Fernando Spadea, Oshani Seneviratne
TL;DR
FLARKO addresses the gap where profit-focused financial advice fails to account for user preferences and regulatory constraints. It unifies LLM reasoning with two structured knowledge graphs—PKG for investor behavior and MKG for market signals—and optimizes decisions using Kahneman-Tversky Optimization to produce behaviorally aligned, profitable asset recommendations. The framework supports both centralized (CenFLARKO) and federated (FedFLARKO) deployments and demonstrates that mid-sized LLMs can achieve strong performance efficiently, especially when guided by PKG and MKG inputs. Empirical results on the FAR-Trans dataset show improvements in behavioral alignment and joint profitability, with robust performance under non-IID federated settings, underscoring practical potential for privacy-preserving, personalized financial decision-support systems.
Abstract
Most financial recommendation systems often fail to account for key behavioral and regulatory factors, leading to advice that is misaligned with user preferences, difficult to interpret, or unlikely to be followed. We present FLARKO (Financial Language-model for Asset Recommendation with Knowledge-graph Optimization), a novel framework that integrates Large Language Models (LLMs), Knowledge Graphs (KGs), and Kahneman-Tversky Optimization (KTO) to generate asset recommendations that are both profitable and behaviorally aligned. FLARKO encodes users' transaction histories and asset trends as structured KGs, providing interpretable and controllable context for the LLM. To demonstrate the adaptability of our approach, we develop and evaluate both a centralized architecture (CenFLARKO) and a federated variant (FedFLARKO). To our knowledge, this is the first demonstration of combining KTO for fine-tuning of LLMs for financial asset recommendation. We also present the first use of structured KGs to ground LLM reasoning over behavioral financial data in a federated learning (FL) setting. Evaluated on the FAR-Trans dataset, FLARKO consistently outperforms state-of-the-art recommendation baselines on behavioral alignment and joint profitability, while remaining interpretable and resource-efficient.
