Rule-to-Data Knowledge Transfer via Optimal Transport for Weakly Supervised Anomaly Detection on Transaction Graphs
This paper proposes a weakly supervised framework for transaction-graph anomaly detection that leverages optimal transport to align hierarchical rule semantics, derived from decision trees, with continuous transaction representations, thereby generating high-quality pseudo-labels and outperforming existing baselines on benchmark datasets.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Problem: Finding Bad Guys in a Sea of Good Guys
Imagine you are a bank manager trying to stop money laundering. You have a massive ledger of millions of transactions. Most are normal (good guys), but a tiny, tiny fraction are illegal (bad guys).
The problem is that you don't have a list of who the bad guys are. To find them, you usually need expensive human experts to investigate and label them. Since you can't afford to check every single transaction, you have very few "confirmed bad guys" to learn from.
To solve this, banks use rules (like "If a transaction is over $10,000 and happens at 3 AM, flag it"). But these rules are messy. They are often written as simple lists of "If-Then" statements, and they don't always match the complex, continuous patterns of real-world data. If you just blindly trust these rules to label new transactions, you might get a lot of false alarms or miss the real criminals.
The Solution: A "Translator" Between Rules and Data
The authors propose a new system that acts like a translator and a coach. They call it "Rule-to-Data Knowledge Transfer."
Think of it as a three-stage process to teach a computer how to spot fraud without needing a full list of known criminals.
Stage 1: Building Two Different "Minds"
The system creates two separate ways of looking at the data:
- The Rule Mind (The Detective):
- Imagine a detective who only knows the official rulebook. They look at a transaction and ask, "Does this fit the 'If-Then' logic?"
- Instead of just saying "Yes/No," this detective builds a Rule Graph. Think of this as a family tree of rules. It understands that "High Amount" and "Late Night" are related conditions that often go together. It uses a special neural network (a GNN) to understand how these rules connect to each other, preserving the "hierarchy" of the logic.
- The Data Mind (The Observer):
- Imagine a different observer who ignores the rulebook and just looks at the raw numbers and patterns of the transactions. This observer uses a standard AI (an MLP) to learn what a "normal" transaction looks like based on the data itself.
Stage 2: The "Optimal Transport" Matchmaker
Now we have two minds that speak different languages. The Rule Mind speaks in "logic trees," and the Data Mind speaks in "numbers." They don't understand each other.
The paper introduces Optimal Transport (OT) as a Matchmaker.
- Imagine you have a pile of "Rule Clusters" (groups of similar rules) and a pile of "Transaction Clusters" (groups of similar data).
- The Matchmaker's job is to figure out which Rule Cluster best fits which Transaction Cluster with the least amount of "effort" (or cost).
- It doesn't just slap a label on a transaction. Instead, it creates a soft connection. It says, "This transaction looks 80% like the 'High-Risk' rule group and 20% like the 'Safe' rule group." This allows the system to generate pseudo-labels (educated guesses) for the unlabeled transactions without being too rigid.
Stage 3: The "Contrastive" Coach
Even with a matchmaker, the guesses might still be a little noisy or uncertain. So, the system adds a Coach using Contrastive Learning.
- Imagine a gym coach. If two transactions are both matched to the same "High-Risk" rule group, the coach yells, "You two are similar! Stand closer together!"
- If one is matched to "High-Risk" and the other to "Safe," the coach yells, "You two are different! Move far apart!"
- This process refines the guesses. It pulls the "likely fraud" transactions closer to the rule-based definition of fraud and pushes the "likely safe" transactions away. This cleans up the noise and makes the final decision much sharper.
Why This Works Better
The authors tested this on four different types of networks: Bitcoin transactions, bank transfers, social media posts, and online shopping.
- Old Way: Just used the rules as hard labels (Good/Bad) or just looked at the data. This often failed because rules are too rigid, and data is too messy.
- New Way: By keeping the structure of the rules (the "Rule Graph") and using the Matchmaker (OT) to gently align them with the data, the system learned to spot fraud much better.
The Results
The paper claims their method beat almost every other existing method (including standard AI models and other "weakly supervised" methods) on these tests.
- It found more actual fraud cases (higher recall).
- It made fewer mistakes when flagging innocent people (higher precision).
- It worked well even when the data was very unbalanced (where 99% of transactions are safe and only 1% are bad).
Summary
In short, this paper builds a system that doesn't just blindly follow rules or blindly trust data. Instead, it:
- Respects the structure of expert rules (like a detective's logic tree).
- Translates those rules into the language of data using a mathematical "Matchmaker" (Optimal Transport).
- Trains the system to keep similar things together and different things apart (Contrastive Learning).
This allows banks to catch money launderers more effectively even when they don't have a perfect list of who they are looking for.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.