Parallel and Multi-Stage Knowledge Graph Retrieval for Behaviorally Aligned Financial Asset Recommendations
Fernando Spadea, Oshani Seneviratne
TL;DR
This work addresses the challenge of providing trustworthy, behaviorally grounded financial asset recommendations under LLM context limits. It introduces RAG-FLARKO, a two-stage retrieval framework that builds compact, temporally filtered subgraphs from a Personal Transaction KG ($PKG$) and a Market KG ($MKG$) to ground LLM-generated recommendations, reducing token overhead. By leveraging SPARQL-based retrieval and JSON-LD subgraphs, the approach enables smaller models to achieve competitive profitability and behavioral alignment, with strong gains especially for resource-constrained deployments. The results on the FAR-Trans dataset demonstrate that multi-stage, context-aware retrieval improves Comb@3 scores and makes grounded financial AI more practical for edge and federated settings, while offering directions for future integration with symbolic reasoning and richer user personas.
Abstract
Large language models (LLMs) show promise for personalized financial recommendations but are hampered by context limits, hallucinations, and a lack of behavioral grounding. Our prior work, FLARKO, embedded structured knowledge graphs (KGs) in LLM prompts to align advice with user behavior and market data. This paper introduces RAG-FLARKO, a retrieval-augmented extension to FLARKO, that overcomes scalability and relevance challenges using multi-stage and parallel KG retrieval processes. Our method first retrieves behaviorally relevant entities from a user's transaction KG and then uses this context to filter temporally consistent signals from a market KG, constructing a compact, grounded subgraph for the LLM. This pipeline reduces context overhead and sharpens the model's focus on relevant information. Empirical evaluation on a real-world financial transaction dataset demonstrates that RAG-FLARKO significantly enhances recommendation quality. Notably, our framework enables smaller, more efficient models to achieve high performance in both profitability and behavioral alignment, presenting a viable path for deploying grounded financial AI in resource-constrained environments.
