FinEvolveKG: Controlled and Attributable Prompt Evolution for Financial Knowledge Graph Construction

Abhinav Arun, Jayita Bhattacharyya, Fabrizio Dimino, Bhaskarjit Sarmah, Stefano PasqualiarXiv 2026

TL;DR

FinEvolveKG introduces a modular "two-block" prompt architecture for financial knowledge graph (KG) construction that balances automated optimization with human-reviewable control. By separating core extraction rules from persona-specific priorities and restricting an AI optimizer to only the latter, the system achieves superior performance, higher stability, and clear edit attribution compared to unconstrained prompt evolution.

What Problem Does This Paper Address?

Financial institutions rely on Knowledge Graphs (KGs) to turn dense SEC filings (like 10-Ks) into structured data. However, a "one-size-fits-all" graph doesn't work: a risk analyst cares about litigation and downside transmission, while a portfolio manager focuses on performance drivers and forward guidance.

The standard solution is to use Large Language Models (LLMs) with "persona-specific" prompts. While automated prompt optimization (letting an AI rewrite the prompt to get better results) is powerful, it is often "unconstrained." In a monolithic prompt, an optimizer might rewrite fundamental rules—like how to handle dates or entity grounding—just to satisfy a specific persona's request. This creates "unreviewable" systems where it's impossible to tell if a performance gain in one area accidentally broke a core evidence rule in another.

Methods

The authors propose FinEvolveKG, a construction harness that enforces a strict boundary between two instruction layers:

  1. General Block ($B_g$): Contains "canonical" rules for grounding, schema validity, and temporal logic. This is optimized once and then frozen.
  2. Persona Block ($B_\rho$): Defines the specific "utility view" (e.g., what motifs or entity types to prioritize). This is the only block the optimizer is allowed to edit.

The system uses GEPA (Generalized Evolutionary Prompt Adaptation), a reflective optimizer that looks at errors in the generated KG and proposes textual updates to the prompt. To keep the evolution grounded, they use a dual objective score that equally weights generic KG quality ($Q_g$) and persona-specific salience ($Q_\rho$).

Figure 1: FinEvolveKG optimization and deployment lifecycle. v2 creates a named, reusable general block; v4 freezes that block while GEPA evolves a persona policy from structured KG feedback. Released blocks carry their version and persona diff and are composed with their decomposed scores for production KG construction and downstream analyst workflows.

Datasets

The researchers generated four ground-truth KG datasets using Claude 3.5 Sonnet, which were then validated by Subject Matter Experts (SMEs).

  • In-Domain: 2024 SEC 10-K filings for 20 Information Technology (IT) companies, split into training, validation, and reporting sets.
  • Out-of-Distribution (OOD) Sector Shift: Filings from Financials, Health Care, and Consumer Staples.
  • OOD Temporal Shift: 2025 IT filings.
  • OOD Combined: 2025 Financials filings (unseen sector and year).

Key Insights and Ideas

  • Constraint as a Feature, Not a Bug: Counter-intuitively, restricting the optimizer's "search space" to just the persona block (v4) actually yielded better results than letting it rewrite the entire prompt (v5). This suggests that protecting core logic prevents the optimizer from "drifting" into local minima that sacrifice general quality for persona-specific gains.
  • Stability Matters: The block-constrained approach (v4) was significantly more stable across different random seeds. In production environments, this predictability is crucial for reliable deployments.
  • Attributable Evolution: Because the general block is byte-stable, every change proposed by the optimizer is localized to a versioned persona policy. This makes the "diff" (the difference between prompt versions) easy for a human to review and approve.
  • Motifs as Proxies: The paper uses "graph motifs" (specific patterns of connected facts) as a structural proxy for analyst usability. For example, a risk analyst might prioritize a path connecting a RISK_FACTOR to a FIN_METRIC.

Key Results

The authors compared five "mutation scopes" (v1–v5), where v4 represents the full FinEvolveKG workflow.

  • Performance Gains: v4 improved over the frozen baseline (v1) by 19.4% to 30.9% across different personas.
  • Beating Unconstrained Optimization: v4 outperformed the unconstrained full-prompt optimization (v5) by 2.2% to 6.4% on mean blended scores.
  • Robustness: v4 won all nine paired-seed comparisons against v5 and maintained its lead across all 15 evaluated OOD shifts.
  • Human Preference: In a blinded audit by financial SMEs, v4's output was preferred over v5 in 70.1% of cases where the two models produced different results.
Table showing that v4 leads in blended score Q across Risk, Portfolio, and Research personas.

Limitations and Future Work

  • Proxy Metrics: The study relies on structural motifs and schema elements as proxies for "analyst utility." The authors acknowledge that future work should evaluate downstream task performance (like answering complex analyst questions) directly.
  • Seed Count: The multi-seed analysis was limited to $n=3$ seeds; larger-scale testing could further confirm the stability findings.
  • Semantic Overlap: While the boundary guarantees where an edit occurs, it doesn't yet prevent a persona block from semantically overriding a general rule (e.g., a persona block saying "ignore dates" even if the general block says "dates are mandatory"). Future work will investigate "semantic ownership" constraints.

Summary updated

Abstract

Financial institutions construct knowledge graphs (KGs) from shared SEC 10-Ks to serve risk analysis, portfolio management, and investment research, whose analytical needs differ. Extraction must adapt without fragmenting shared grounding, typing, and temporal rules. Hand-authored persona prompts and fine-tuning add cost. Weight-free prompt optimization offers an alternative, but unconstrained evolution of a monolithic prompt can rewrite shared rules alongside persona guidance, obscuring changes and complicating review. We introduce FinEvolveKG, a KG-construction harness separating reusable general and persona-policy blocks and mechanically confining GEPA, a reflective prompt optimizer, to the designated block. During persona adaptation, the approved general block remains byte-stable and every optimizer edit is localized to a separately versioned persona policy. A dual objective balances generic temporal-KG quality with persona-relevant facts, motifs, and multi-hop connectivity. We evaluate five mutation scopes on ticker-disjoint 10-K splits, with three seeds for the persona-conditioned arms (v3-v5) across three personas. On the three-seed mean, the complete two-stage block-constrained workflow (v4) improves over the frozen prompt baseline (v1) by 19.4-30.9% and over the tested unconstrained full-prompt workflow (v5) by 2.2-6.4%, leading v5 on both objective components and winning all nine paired-seed comparisons with the lowest seed variance in every persona. Without further optimization, v4 also exceeds v5 across all evaluated out-of-distribution (OOD) shifts. An SME audit supports using the generated triplets as ground truth; a blinded two-SME audit favors v4 over v5 in 70.1% of contrast-enriched judgments. These results show that mechanically attributable evolution can coexist with strong empirical performance, without attributing the gains causally to the boundary.
BibTeX
@misc{arun2026finevolvekg,
  author = {Abhinav Arun and Jayita Bhattacharyya and Fabrizio Dimino and Bhaskarjit Sarmah and Stefano Pasquali},
  title = {{FinEvolveKG: Controlled and Attributable Prompt Evolution for Financial Knowledge Graph Construction}},
  year = {2026},
  eprint = {2611.08643},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08643},
}
Figure