PseuDRAGON: Knowledge-Guided Local LLMs for Financial-Data Pseudonymization in Closed Networks

Gwangui Hong, Seonho An, Seonkyu Lim, KyungTae Lim, Min-Soo KimarXiv 2026

It’s late, you’ve been staring at code or spreadsheets all day, and the last thing you want to think about is regulatory compliance. But imagine you’re a data engineer at a major bank. You have a massive ledger to share with analysts, but first, you have to "pseudonymize" it—scrubbing out the names, account numbers, and anything else that could identify a customer.

The catch? You’re in a "closed network" (no internet, for security), and the column names are cryptic abbreviations like CMS_NO or DPSTR_NM. Do you spend the next three days manually mapping these to privacy policies, or do you trust a Large Language Model (LLM) that might give you a different answer every time you hit "run"?

This is the dilemma tackled by PseuDRAGON, a new framework designed to bring the power of LLMs into the high-stakes, offline world of financial data privacy.

TL;DR

PseuDRAGON is a "RegTech" (Regulatory Technology) workflow that uses a local, offline LLM to identify sensitive information in financial databases. By combining the model with a "knowledge store" of human-expert decisions, it ensures that once a human corrects the machine, it stays corrected—slashing identification time by 83% while maintaining perfect consistency.

What Problem Does This Paper Address?

In financial institutions, data privacy isn't just a suggestion; it’s the law. Staff must interpret abbreviated column names, identify Personally Identifiable Information (PII), and choose the right masking or hashing method.

While LLMs are great at interpreting messy text, they have two major flaws in this context:

  1. Non-determinism: You might ask the model about CMS_NO today and get "PII," but ask it tomorrow and get "Non-PII." In an audit, that's a nightmare.
  2. Security: You can't just send sensitive bank schemas to a cloud-based API like GPT-4. Everything must happen locally.

The authors wanted to build a system that is fast, secure, and—most importantly—consistent enough to pass a rigorous audit.

Methods

PseuDRAGON isn't just a prompt; it’s a four-stage workflow designed to keep a "human-in-the-loop" without slowing them down.

Figure 1: Closed-network RegTech workflow: source-ordered policy RAG and knowledge reuse with a fixed model. Audit records link column decisions, policy evidence, expert review, selected code, and checked outputs.
  1. Identify PII (The "History-First" Approach): Instead of asking the LLM first, the system checks a local "Institutional Knowledge" store. If an expert has already labeled a column with that name, it reuses that label. If not, it uses a local LLM (gpt-oss:120b) to make a guess.
  2. Policy Guidance (Source-Ordered RAG): To help the LLM (and the human) decide, the system uses Retrieval-Augmented Generation (RAG). It searches a hierarchy of documents: first institutional policies, then national privacy laws (like Korea’s PIPA), and finally international standards (like GDPR). It stops at the first relevant match to avoid conflicting advice.
  3. Expert Review: A human reviewer sees the LLM’s proposal and the supporting evidence. If they change a label, that correction is saved. PseuDRAGON then "learns" rules from these corrections (e.g., "any column ending in _ID is PII").
  4. Generate & Run: Once the labels are set, the system generates the actual code (like Python snippets for hashing or masking) to transform the data.

Datasets

The researchers evaluated PseuDRAGON using:

  • 92 Columns from nine reconstructed financial tables (covering ATM transfers, open banking, etc.).
  • Synthetic Records: To test the generated code without risking real customer data.
  • Policy Documents: A corpus of 3,376 text chunks from institutional rules, the Korean Personal Information Protection Act, and GDPR.
  • Expert Judgments: Eight practitioners from financial security institutes provided the "ground truth" for evaluation.

Key Insights and Ideas

  • Consistency is King: In a regulated environment, a "creative" LLM is a liability. PseuDRAGON treats the LLM as a proposer but treats the human-reviewed history as the authority.
  • Rule Rebuilding: If a policy changes and an expert withdraws an old approval, the system automatically "unlearns" the associated rules and rebuilds its knowledge base. This is a form of "machine unlearning" that ensures old, incorrect logic doesn't persist.
  • The Power of Suffixes: The system doesn't just memorize names; it learns patterns. If it sees that CUST_ID and USER_ID are both PII, it might infer a rule for anything ending in _ID.
Figure 2: Recorded examples: (a, b) CMS_NO labels before and after a demonstration approval whose explanation records the customer mapping; (c, d) DPS_ACNO MASK code and annotated outputs for the same synthetic input.

Key Results

  • Massive Speedup: Using the "history-first" baseline reduced the time spent on automated identification by 83.0% on average.
  • High Accuracy: When all training judgments were available, the system correctly reused 83 out of 92 labels without a single error.
  • Auditability: Because every decision is linked to a specific passage in a law or policy, the system creates a "paper trail" that is essential for regulatory compliance.
  • Code Reliability: 100% of the generated pseudonymization programs passed verification against independent reference operations.

Limitations and Future Work

The authors are upfront about a few hurdles:

  • Single Institution: The study focused on schemas from one specific institutional context. How well these rules transfer to a completely different bank remains to be seen.
  • Synthetic Data: While necessary for security during testing, real-world data is often messier than synthetic records.
  • Human Productivity: While the machine time was measured, the authors haven't yet fully quantified how much "mental load" is reduced for the human reviewers over long shifts.

In short, PseuDRAGON shows that you don't need a "god-like" AI to solve boring-but-critical problems. You just need a local model that knows how to listen to experts and remember what it was told.

Summary updated

BibTeX
@misc{hong2026pseudragon,
  author = {Gwangui Hong and Seonho An and Seonkyu Lim and KyungTae Lim and Min-Soo Kim},
  title = {{PseuDRAGON: Knowledge-Guided Local LLMs for Financial-Data Pseudonymization in Closed Networks}},
  year = {2026},
  eprint = {2611.30353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30353},
}
Figure