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:
- General Block ($B_g$): Contains "canonical" rules for grounding, schema validity, and temporal logic. This is optimized once and then frozen.
- 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$).
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_FACTORto aFIN_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.
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