Enhanced Detective: A Two-Stage Proactive Defense Against Internal Poisoning Attacks in Federated Learning for Financial Fraud DetectionEnhanced Detective: A Dual-Stage Proactive Defense Against Internal Poisoning Attacks in Financial Fraud Detection Using Federated Learning
Enhanced Detective defends against federated poisoning, with AUPRC 0.796 and Recall 0.847 under 40% model poisoning.
The victim system is federated learning for financial fraud detection. The aggregation server is honest and fully follows the protocol. Some clients may be malicious and can change fraud labels from 1 to 0 before training or multiply updates by γ>1. The server does not know the malicious identities. Coordinated Sybil is not in the threat model. The goal is to limit suspicious updates while maintaining AUPRC and Recall.
- Financial institutions cannot share transaction data in plaintext; federated learning can keep fraud detection models trained locally, but malicious clients can poison data or updates. The authors aim to limit such internal poisoning while maintaining AUPRC and Recall for detection.
- Enhanced Detective first clips updates coordinate-wise using the median and MAD, then filters by Euclidean distance to the global median vector using a dynamic MAD threshold, and finally applies FedMedian to the trusted updates. The initial Detective has no coordinate clipping.
- Credit card fraud data trained for 50 rounds. Under 40% and 100x weight scaling, Enhanced Detective has AUPRC 0.796 and Recall 0.847, correctly identifying 83 fraud transactions and missing 15. The authors state it is close to the ideal baseline; Detective has Recall 0.25 under the same setting.
- The conclusion proposes that future work can evaluate scalability with respect to the number of clients and states that additional time and resource overhead may limit real-time transaction systems; different transaction data across institutions, adaptive behavior, and time-varying scaling are also left for future work. The experiments do not report the number of clients, network architecture, or repetitions.
- Benchmarks
- Credit Card Fraud Detection (Machine Learning Group, 2018)
- Metrics
- AUPRCRecallConfusion Matrix
For internal poisoning attacks in federated learning for financial fraud detection, the researchers propose Enhanced Detective, a two-stage robust aggregation defense combining median absolute deviation (MAD), distance-based update filtering, and FedMedian aggregation. On an imbalanced credit card dataset, the method is tested over 50 communication rounds against targeted label flipping and weight scaling attacks, achieving AUPRC 0.796 and Recall 0.847 with 40% malicious clients.
Paper analysis
What problem does this paper attempt to solve?
Federated fraud detection is vulnerable to insider poisoning, and the authors propose a two-stage Enhanced Detective.
Federated learning for financial fraud detection is subject to insider poisoning, and passive robust aggregation still misses some malicious updates.
- Scenario: The authors state that bank digitalization enlarges the attack surface, while anti-money laundering directives, PSD2, and GDPR prohibit sharing transactions in plaintext, making federated learning suitable: data stays local and only model updates are shared. The fraud class is rare; the paper states that fraud in such data is typically about 0.2% or lower, citing Goodfellow et al. (2016).
- Existing shortcomings: The authors state that passive strategies mainly limit influence by isolating or discarding updates, but still miss some Byzantine nodes and do not let them participate in training. Coordinate-level aggregation does not check whether full updates are consistent; distance filtering without bounds can be influenced by scaled updates.
- Assumptions: Weight scaling distorts update-level distances; label-flipping updates can have magnitudes close to honest clients, thus passing steps that only clip extremes. Both extreme and subtler updates need to be handled before aggregation.
- What this paper does: The authors propose Enhanced Detective, which uses coordinate MAD clipping, distance filtering, and FedMedian for active two-stage filtering, and state that it is an improvement over the initial Detective, which is insufficient at high compromise rates.
- Threat model:
- Victim system: Federated learning for binary financial fraud classification. Clients train on local transaction data and submit only updates to the aggregation server.
- Trust assumptions: Server S is honest and fully follows the protocol. Clients are divided into disjoint honest and malicious sets. The server does not know who is malicious and cannot compute Euclidean error relative to "honest-only updates" during aggregation.
- Adversary capabilities: Malicious clients can modify local training data or submitted updates. Label flipping changes fraud labels from 1 to 0 before training; weight scaling multiplies updates by γ>1, keeping direction unchanged and increasing magnitude.
- Scope: Coordinated Sybil is not in this threat model. The practical goal is to limit suspicious updates and measure detection performance with AUPRC and Recall.
What related research exists?
Related work covers imbalanced metrics, poisoning, and coordinate-level or vector-level robust aggregation.
Section 2 organizes related work along two lines: fraud detection and robust aggregation.
Fraud detection and metrics
- Goodfellow et al. (2016): The paper uses it to discuss MLP, ReLU, and output Sigmoid, and cites its claim that the fraud class is typically about 0.2% or lower. The paper also gives an example: classifying everything as legitimate can still yield 95% accuracy, so accuracy alone is insufficient.
- Davis and Goadrich (2006): Recall is the proportion of true positives among actual positives; AUPRC is the area under the precision-recall curve as the threshold varies from 0 to 1. The authors state that compared with ROC, the precision-recall curve isolates performance on the minority class.
- Regulations and data: The authors cite the European anti-money laundering directive, PSD2, and Commission (2024), as well as GDPR, as reasons why transactions cannot be shared in plaintext. The data is the credit card fraud detection dataset from Machine Learning Group (2018).
Poisoning attacks
- Tolpegin et al. (2020): Data poisoning, where malicious clients modify class labels before local training. The label flipping in this paper follows this setting.
- Karame et al. (2023): Model poisoning, where updates are amplified to increase influence on the global model. The weight scaling in this paper belongs to this category.
- FedAvg from McMahan et al. (2017): Weighted averaging by local sample size. The authors state that this ordinary averaging is vulnerable to manipulated updates.
Robust aggregation
- Yin et al. (2018): FedMedian takes the coordinate-wise median; Trimmed Mean removes extreme coordinate values and then averages. The authors state that both reduce the influence of outliers but do not explicitly evaluate the consistency of each full update.
- Bulyan (El-Mhamdi et al., 2018) and RFA (Pillutla et al., 2022): The former first constructs a candidate set using an existing Byzantine-robust rule, then performs coordinate selection and averaging; the latter uses the geometric median to aggregate full update vectors. The paper only describes them and does not report experimental comparisons.
- FoolsGold (Fung et al., 2020): Compares historical update similarity and reduces the influence of clients with highly similar behavior, aimed at Sybil. The authors state that coordinated Sybil is not in the threat model of this paper.
Trusted frameworks and statistical tools
- MultiTrust-FL (Ermis and Khadraoui, 2026): Combines update anomaly detection, client reputation, and defenses. The authors state that it is a general trusted framework, whereas this paper performs specific statistical filtering and evaluates label flipping and weight scaling on financial fraud detection.
- Nguyen et al. (2022): Update clipping can remove abnormally large updates and can be combined with filtering and robust aggregation. The dynamic coordinate bounds in this paper cite this idea.
- Leys et al. (2013) and Blanchard et al. (2017): The former provides MAD; the latter, along with Goodfellow et al. (2016), is cited for using Euclidean distance to measure the deviation of updates from a reference model. The paper uses them as components without separate comparative experiments.
Baselines and data: The experimental baselines are FedAvg, FedMedian, Trimmed Mean, and the initial Detective; FedAvg without attacks is called Baseline (Honest) in the figures. The data is the imbalanced credit card fraud detection dataset mentioned above.
The authors position this paper between coordinate-level clipping and full-update deviation detection: distance filtering without clipping can be influenced by malicious updates with above- or below-average magnitude. Enhanced Detective combines coordinate processing, update-level screening, and robust aggregation into one strategy, and serves as an improvement over the initial Detective, which is insufficient at high compromise rates.
How does the paper address this problem?
First clip coordinate-wise with MAD, then filter by distance to the median, and finally apply FedMedian.
Enhanced Detective processes client updates with two stages of filtering in each communication round, then aggregates trusted updates with FedMedian. The authors aim to mitigate both extreme scaling and more subtle label flipping before global detection.
Federated Setting and Objective
- The server sends the global model to clients; clients train on local data, and the update is the local model minus the current global model. The aggregation function operates on the set of updates, outputs an update, and adds it back to the global model.
- FedAvg takes a weighted average by local sample count. FedMedian takes the median for each coordinate. Trimmed Mean removes the b smallest and b largest values per coordinate and averages the rest, with 0≤b<K/2。实验未给出b。这三种是基线;FedMedian也是本文最后一步。
- 稳健目标是选出当轮可信客户端再聚合。相对仅诚实客户端更新的欧氏误差,服务器在聚合时无法计算。欺诈检测上的实用目标是AUPRC与Recall。
坐标裁剪
对每个坐标j,用该坐标的中位数和MAD定界限,ε=10^{-5}:
[medj−5· madj−ϵ, medj+5· madj+ϵ]
越界值被拉回最近边界。作者称这是为了削弱模型投毒带来的极值,以免干扰后续检测。随后把每个客户端的参数展平为一个向量。
距离筛选与聚合
参考向量是各裁剪后向量的坐标中位数。每个客户端的分数是它到该参考的L2距离。阈值取两项中的较大者:
threshold=max(meddist+3· maddist, 1.5· meddist)
- 作者称标签翻转的幅度可以接近诚实更新,因而可能通过坐标裁剪,所以需要这一距离步。距离超过阈值的更新在当轮排除;算法中是距离小于阈值才进入可信集。
- 若可信集为空,算法退回全部已裁剪更新。保留的更新用FedMedian聚合。
初始Detective与两种攻击
- Algorithm 2的Detective先展平、取中位数,并用同一距离阈值做隔离,第三阶段与Enhanced Detective相同。它没有坐标裁剪。作者称它是先尝试的主动策略,高妥协率下不足,才引出双阶段版本。
- 标签翻转:训练前把欺诈标签从1改为0,再本地训练并提交更新。权重缩放:把已算出的更新乘以γ>1, direction unchanged, magnitude increased. The multiplier used in experiments is in question 4.
What experiments did the paper conduct?
Under 40% model poisoning, Enhanced Detective achieves AUPRC 0.796 and Recall 0.847.
Experimental setup
- Data: Imbalanced credit card fraud detection dataset (Machine Learning Group, 2018). The experimental section does not report sample size, split, or the fraud proportion in this run.
- Baselines: Baseline (Honest), Undefended FedAvg, FedMedian, TrimmedMean, Detective (MAD), and Enhanced Detective in the legends. Section 2.1 discusses MLP, ReLU, and Sigmoid; the experimental section does not report layer count, optimizer, local steps, or number of clients K.
- Attacks: Label flipping changes fraud labels from 1 to 0. Weight scaling is 100x in the Figure 3 caption and is written as a DoS attack. Proportions are 20% and 40%. The figure caption writes 40% as Theoretical Limits, and the main text does not explain that term; the main text also uses cyber stress level 40% and compromise rate 40%.
- Rounds and metrics: 50 communication rounds. Metrics are AUPRC, Recall, and confusion matrix. No classification threshold is reported, no separate review model is used, and no repetitions or significance tests are reported.
- Environment: Local laptop, AMD Ryzen 9 7940HS, 16 GB RAM, AMD Radeon RX 7600S. The b for Trimmed Mean is not reported.
- Source of readings: The paper has no numerical summary table. The table below comes from the Section 5 main text; "about, roughly, close to" are the authors' wording, not exact table cells.
Main results
| Method and condition | Recall | Note | | FedAvg, label flipping | Authors say roughly 0.23 | Section 5.1, malicious proportion not stated | | Trimmed Mean, 40% label flipping | Authors say about 0.50 | Section 5.2 | | FedMedian, 40% label flipping | Authors say close to 0.70 | Section 5.2 | | FedMedian, 40% model poisoning | Authors say about 0.78 | Section 5.2 | | Detective, 40%, 100x scaling | 0.25 | Section 5.3, survived to round 50 | | Enhanced Detective, 40% model poisoning | 0.847 | AUPRC 0.796, Figure 4 | | Trimmed Mean, 40% model poisoning | Not reported | Crashed at round 9, Section 5.2 |
Omitted items: FedAvg in an honest environment over 50 rounds, authors say AUPRC about 0.86 and Recall about 0.85 (Section 5.1). Under weight scaling, FedAvg is said by the authors to crash around round 10, with the malicious proportion not stated and final values not reported. For Detective and Enhanced Detective under 40% label flipping, the main text gives no final values. The abstract places 0.796 and 0.847 after 40% malicious clients; Section 5.3 and Figure 4 place the same pair under 40% model poisoning.
- The authors state that without malicious activity, the federated result is close to the centralized model and in some cases better; once malicious clients join, average aggregation and coordinate-only methods show missed detections or crashes.
- The authors state that label flipping does not create extreme coordinates, so passive coordinate filtering is ineffective; FedMedian is better than Trimmed Mean but still below the ideal environment.
- The authors state that 100x scaling distorts the global L2 distance enough to make MAD oversensitive; after adding coordinate clipping, the curve almost coincides with the ideal baseline. The conclusion states that at 40% compromise rate it approaches the ideal baseline environment.
Confusion matrix
- Figure 5 compares final classifications under 40% model poisoning. The main text only gives Enhanced Detective's results: 83 fraud transactions correctly identified, 15 missed.
- The figure also has facets such as honest baseline and Original Detective. The cells in the converted text do not align, and the main text does not give these numbers, so they are not included.
- The authors present 83 and 15 as the classification results of the upgraded method under that attack, without further explaining the missed detections.
20% settings and crash rounds
- The authors state that under 20% model poisoning, Trimmed Mean works normally; under 20% label flipping, Detective is better than Trimmed Mean. Neither has final values.
- Under weight scaling, the authors state that the undefended system crashes around round 10 (Section 5.1, proportion not stated). Under 40% model poisoning, Trimmed Mean crashes at round 9 (Section 5.2).
- Figure 3's caption is model poisoning with 100x scaling, and the legend text contains Crashed. The converted legend and left/right subplots may be misaligned, so Crashed is not mapped to a specific proportion.
Other ablations and analyses
- Clipping factor 5, distance factor 3, 1.5x median distance, ε=10^{-5}: given only in the algorithm, with no results for varying these values.
- If the trusted set is empty, fall back to all clipped updates: the algorithm has this branch, and the experiments do not report whether it was triggered.
- 20% for both attacks: the main text gives only qualitative comparisons, with no final values at the same level as 40%.
- Number of clients, different transaction data across institutions: experiments were run under the same setting, and no corresponding numbers are reported.
- Adaptive attacks and time-varying scaling: not evaluated.
- Repetitions, decision threshold, significance tests: not reported.
What are some points that can be further explored?
The authors plan to look at client scale, data differences across institutions, and adaptive and time-varying scaling.
Limitations and future directions noted by the authors
- Scale: Future work can specifically evaluate scalability with respect to the number of clients; additional time and resource overhead may limit real-time financial transaction systems. (Conclusion)
- Whether data is the same: The authors write that this paper considers the same setting; analyzing different transaction data across institutions remains to be studied. (Conclusion)
- Attack types: Future work can extend the evaluation to more evolved attacks, including adaptive behavior and time-varying scaling strategies. (Conclusion)
The paper has no separate Limitations or Discussion section. The three items above all come from Future work in the conclusion.
Experimental coverage
- The experiments compare an honest baseline, FedAvg, FedMedian, Trimmed Mean, Detective, and Enhanced Detective on the imbalanced credit card fraud detection dataset over 50 communication rounds (Section 5).
- Attacks include label flipping and weight scaling; the scaling factor in Figure 3 is 100, and proportions include 20% and 40%.
- Quantitative final values are mainly given at 40%: AUPRC, Recall, and confusion matrix under model poisoning, plus several Recall values or crash rounds in Section 5.2; 20% is mostly qualitative.
- The paper does not report the number of clients, local training hyperparameters, the network architecture used in the experiments, the b for Trimmed Mean, repetitions, or the classification threshold.
- Section 2.2 states that coordinated Sybil is not in the threat model; Bulyan, RFA, FoolsGold, and MultiTrust-FL are only discussed in related work, and the experimental section does not state that they were run.
Summarize the main content of the paper
Two-stage filtering achieves AUPRC 0.796 and Recall 0.847 under 40% model poisoning.
Enhanced Detective uses two-stage statistical filtering to defend against internal poisoning in federated learning for financial fraud detection.
- Transaction data is not suitable for centralized sharing; federated learning only exchanges updates; malicious clients can still flip fraud labels before training or amplify submitted updates. Dropping only extreme coordinates misses updates whose magnitude is close to honest clients; measuring distance without clipping first is biased by scaling.
- Each round, updates are first clipped into dynamic bounds using the median and MAD per coordinate, then clients exceeding a threshold based on distance to the median vector are excluded, and FedMedian is applied to the remaining updates. The initial Detective lacks the clipping step.
- Experiments use imbalanced credit card fraud data, running 50 rounds. For honest FedAvg, the authors report AUPRC and Recall of approximately 0.86 and 0.85. Under label flipping, FedAvg's Recall is reported as roughly 0.23, but the malicious proportion is not specified. Under 40% label flipping, Trimmed Mean is about 0.50 and FedMedian is close to 0.70.
- Under 40% and 100x scaling, Trimmed Mean collapses at round 9, and Detective's Recall is 0.25. Under the same model poisoning setting, Enhanced Detective achieves AUPRC 0.796 and Recall 0.847, with the confusion matrix identifying 83 fraud cases correctly and missing 15.
- The authors state that this performance curve almost coincides with the ideal baseline, concluding that under 40% compromise rate it is close to the ideal environment. The authors leave client scale, different transaction data across institutions, and adaptive and time-varying scaling for future work.