Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

2 October 2026

9 Pages

Federated and Differentially Private Learning for Root Cause Classification Across Heterogeneous Semiconductor Fabs

,
,
,
and
1
School of Computing, University of Portsmouth, Portsmouth PO1 3HE, UK
2
School of Computing, Abdullah Al Salem University, Khaldiya 72303, Kuwait
3
School of Computer Science and Electronic Engineering, University of Essex, Colchester CO4 3SQ, UK
*
Author to whom correspondence should be addressed.

Abstract

Federated learning (FL) can train a shared model without pooling client records, but it does not by itself provide differential privacy (DP). We compare centralized training, local-only training, federated averaging (FedAvg), and client-level DP-FedAvg on a fully released synthetic benchmark of free-text root-cause-analysis (RCA) records from six simulated semiconductor fabs. The benchmark uses a fixed public vocabulary, 240 records per client, a 480-record in-distribution test set, a separately authored 480-record template-disjoint test set, and five training seeds. All methods receive 24 passes over their available training data. The reference classifier is an auditable multinomial softmax regression with 512 parameters. The DP mechanism assumes fixed-roster replace-one client adjacency, clips only private client updates, adds Gaussian noise calibrated to the sensitivity of the weighted aggregate, and composes twelve releases with Rényi DP. In-distribution accuracy was 53.94% [53.60, 54.27] (mean, 95% confidence interval) for local-only training, 74.71% [73.05, 76.37] for FedAvg, and 91.88% [90.62, 93.13] for centralized training. Template-disjoint accuracy was 19–24% for all three. DP-FedAvg reached 65.92% [61.40, 70.44] at ε ≈ 204 and fell to chance level at ε ≈ 3.6 ( δ = 10 − 5 ). These results characterize a controlled benchmark and do not establish applicability to real fabs.

1. Introduction

Root cause analysis (RCA) records in semiconductor manufacturing are short free-text narratives that describe an excursion, the investigation, and the assigned cause. They can contain proprietary process, equipment, and yield information, which makes pooling them across sites or companies difficult. Federated learning (FL) addresses part of this problem: federated averaging (FedAvg) trains a shared model by aggregating locally computed model updates, so raw records stay at each site [1,2]. Model updates can still leak information about the underlying data, so FL is commonly combined with differential privacy (DP) [3,4,5] and secure aggregation [6].
This study asks a narrow question. Under controlled, fully documented conditions, how do centralized, local-only, FedAvg, and client-level DP-FedAvg training compare on a multi-site RCA text classification task? How sensitive are they to label skew across sites and to a change in the wording templates of the records? All records are synthetic, and no claim is made about performance on real fab data.

1.1. Related Work

1.1.1. Federated Optimization Under Heterogeneous Data

FedAvg [1] is an established aggregation method, not a contribution of this work. Its accuracy can deteriorate when clients hold different label or feature distributions. FedProx [7] and SCAFFOLD [8] are among the methods proposed to reduce the resulting client drift. Sampling client class proportions from a symmetric Dirichlet distribution is a common way to create controlled label skew [9]. We use plain FedAvg so that the effect of the controlled partitions can be observed without additional optimizer components.

1.1.2. Client-Level Differential Privacy and Secure Aggregation

Example-level DP, as in differentially private stochastic gradient descent (DP-SGD) [10], bounds the influence of a single training record. Client-level DP bounds the influence of an entire client’s dataset, which is the relevant unit when a client is a fab [4,5]. A valid client-level guarantee requires four things: a defined adjacency relation, a bound on each client’s contribution (usually by clipping its update), noise calibrated to the sensitivity of the released aggregate, and composition across all releases. Rényi DP (RDP) gives a convenient composition rule for repeated Gaussian releases [11]. Secure aggregation [6] is complementary. It can prevent the server from seeing individual updates, but it does not provide a DP guarantee for the released model.

1.1.3. Federated Learning in Semiconductor Manufacturing

Zhang et al. evaluated decentralized FL for wafer-defect-pattern recognition with image data [12]. Patel et al. combined FL with explainability for semiconductor fault detection using structured fault data [13]. These studies address visual or structured inputs. The present task instead classifies free-text RCA narratives into eight root-cause categories.

1.2. Contribution and Scope

The contribution is a controlled, reproducible application benchmark, not a new FL or DP algorithm. Specifically, we provide the following:
  • A released synthetic six-client RCA text benchmark with documented generator, seeds, Dirichlet partitions at three skew levels, and a separately authored template-disjoint test set.
  • A matched-budget comparison of centralized, local-only, FedAvg, and DP-FedAvg training with five-seed uncertainty.
  • An explicit client-level DP derivation (adjacency, sensitivity, noise calibration, and RDP composition) with the corresponding implementation, and a privacy–utility sweep over eight noise multipliers.
  • A reproducibility package in which every reported number is regenerated from released raw per-run outputs by a single script, with automated consistency checks.

2. Materials and Methods

2.1. Synthetic Data Generation

Each record is a short narrative built from a symptom frame for one of eight root-cause classes (equipment drift, contamination, recipe deviation, consumable degradation, calibration error, material defect, human procedural error, environmental fluctuation). The frame is combined with an optional opener, an optional closer, and a lot/wafer tag. Frame slots are filled with process parameters, consumables, process steps, and tool identifiers. Six simulated fabs differ in process-step emphasis and in tool-identifier ranges. Each fab acts as one FL client, so the terms fab and client are used interchangeably below. The in-distribution (ID) frame bank contains 41 symptom frames, 6 openers, and 4 closers.
For each client and each Dirichlet concentration α ∈ { 100 , 1 , 0.1 } , an eight-class probability vector was drawn from Dir ( α 1 8 ) , and 240 labels were sampled from it [9]. Each client’s pool was split into 204 training and 36 validation records. An incorrect-class label-noise rule (probability 0.06, uniformly over the other seven classes) was applied to training and validation records only. Partitions use seeds 42100 ( α = 100 ), 42001 ( α = 1 ), and 42010 ( α = 0.1 ). The main experiments use α = 1 , for which the largest class held 38–72 of a client’s 204 training records.

2.2. Evaluation Sets and Vocabulary

Two class-balanced test sets of 480 records (60 per class) were generated with seed 42017 and contain no label noise. The ID test set uses the training frame bank. The template-disjoint test set uses a separately authored bank of 40 symptom frames, 4 openers, and 3 closers, none of which appears in the ID bank. It shares only slot values (parameters, consumables, steps, and tool identifiers) with the training data. This set probes transfer to unseen phrasing within the same synthetic domain. It is not a model of deployment-level distribution shift. Automated checks confirm zero record-identifier overlap, zero exact-text overlap across all generated sets, and zero frame overlap between the two banks.
Features are computed from a fixed public vocabulary of 63 tokens. The tokens are the eight class names, the process-step names, and generic domain terms, taken from a public corpus file that was released with the previous version of the package. The vocabulary builder reads only this file. No training, validation, or test file is read during vocabulary construction. The template-disjoint bank was written after the vocabulary had been fixed. Test records contain on average 4.1 (ID) and 2.1 (template-disjoint) in-vocabulary tokens.

2.3. Classifier and Training Budget

The reference classifier is multinomial softmax regression. Its input is the L 2 -normalized vector of public-vocabulary token counts plus an intercept, giving 64 input features, 8 classes, and 512 parameters. We chose this model because it is small enough to audit completely, trains deterministically in seconds, and makes the DP noise-to-signal ratio easy to analyze (Section 4). Results should not be extrapolated to pretrained language models.
All methods use mini-batch stochastic gradient descent (batch size 32, learning rate 0.5, initialization N ( 0 , 0.01 2 ) ) and cross-entropy loss on the observed labels. These hyperparameters were fixed before any experiment and were not tuned on validation or test data. Validation accuracy is recorded for diagnostics only. It is not used for early stopping, hyperparameter selection, or checkpoint selection.
  • Centralized: The 1224 training records of all six clients ( α = 1 ) are pooled and trained for 24 epochs.
  • Local-only: Each client trains a separate model on its own 204 training records for 24 epochs. We report the mean accuracy over the six client models.
  • FedAvg: T = 12 communication rounds with 2 local epochs per round and full participation.
Each method therefore makes 24 passes over its available training records. This matches data exposure, not wall-clock time, communication, or optimization effort.

2.4. FedAvg and Client-Level DP-FedAvg

Let D = ( D 1 , … , D K ) be a fixed roster of K = 6 clients with public, fixed aggregation weights w k = n k / ∑ j n j . Here n k = 204 for every client, so w k = 1 / 6 . In round t, client k starts from the global parameters θ t − 1 , runs local training, and returns the update u k = θ k − θ t − 1 ∈ R d with d = 512 . Ordinary FedAvg sets θ t = θ t − 1 + ∑ k w k u k and does not clip client updates.
For DP-FedAvg, two federated datasets are adjacent if the roster and weights are unchanged and all records of exactly one client may be replaced. Each update is clipped to L 2 norm at most C:
u ¯ k = u k min 1 , C ∥ u k ∥ 2 .
Replacing one client changes the weighted aggregate q ( D ) = ∑ k w k u ¯ k by at most w k ∥ u ¯ k − u ¯ k ′ ∥ 2 ≤ 2 C w k , so its L 2 sensitivity is
Δ 2 ( q ) ≤ 2 C max k w k .
The server releases
q ˜ ( D ) = q ( D ) + Z , Z j ∼ iid N 0 , ( σ Δ 2 ) 2 , j = 1 , … , d ,
and sets θ t = θ t − 1 + q ˜ ( D ) . The noise standard deviation is not divided by the model dimension. With C = 1 and w k = 1 / 6 , Δ 2 = 1 / 3 . A single release is ( λ , λ / ( 2 σ 2 ) ) -RDP for every order λ > 1 [11]. All clients participate in every round, so no subsampling amplification is used. Composing T releases and converting to ( ε , δ ) -DP gives
ε = min λ ∈ { 2 , … , 256 } T λ 2 σ 2 + log ( 1 / δ ) λ − 1 , T = 12 , δ = 10 − 5 ,
where T is the number of noisy aggregate releases (communication rounds). We evaluate σ ∈ { 0.25 , 0.5 , 0.75 , 1 , 1.5 , 2 , 3 , 5 } . The guarantee covers the sequence of released aggregates, and therefore the final model, under the stated adjacency. It does not cover data-dependent weights, add/remove adjacency, or the individual updates observed by the server.

2.5. Statistical Analysis and Communication Accounting

Every configuration is run with seeds 0–4. The seed controls parameter initialization, mini-batch order, and DP noise. The generated data are identical across seeds, so the intervals reflect training randomness only and not data-sampling variability. We report the mean and a two-sided 95% Student-t interval, x ¯ ± t 0.975 , 4 s / 5 , where s is the sample standard deviation. No hypothesis test was prespecified, and no significance or equivalence claims are made.
Communication is counted as transmission of the full dense float32 parameter vector in both directions, for every client and round. The comparator is a one-time upload of the UTF-8 bytes of the raw text field of the training records. Both counts exclude metadata, protocol overhead, compression, quantization, and sparsification.

2.6. Reproducibility Package

The released package contains the generator, both frame banks, the public vocabulary corpus, all generated splits and partition metadata, the experiment code, the 65 per-run result files (13 configurations × 5 seeds), the aggregation script that computes every table entry, the figure script, automated checks, and a SHA-256 manifest. One command regenerates all data, results, tables, and figures on a CPU in under one minute. The checks recompute every ε , verify Δ 2 and the noise scale in every DP run, confirm that ordinary FedAvg records no clipping bound, and verify the split sizes and overlap properties described above.

3. Results

All accuracies are the percentage of correctly classified test records, reported as the mean over five seeds with a 95% confidence interval in brackets. Both test sets are class-balanced, so chance accuracy is 12.5%. Section 3.1 compares the non-private training regimes, Section 3.2 reports the privacy–utility trade-off, Section 3.3 examines label skew, and Section 3.4 reports communication cost.

3.1. Centralized, Local-Only, and Federated Training

Table 1 reports accuracy on both test sets for α = 1 . FedAvg exceeded local-only training on the ID test set by about 21 percentage points and remained about 17 points below centralized training. On the template-disjoint test set, all three methods fell to 19–24%, only modestly above the 12.5% chance level. The ID ranking was not clearly preserved there: the FedAvg and centralized intervals overlap almost completely.
Table 1. Accuracy for α = 1 (mean over five seeds; brackets give 95% confidence intervals). Local-only values are the mean over the six client models.

3.2. Privacy–Utility Trade-Off

Table 2 and Figure 1 report DP-FedAvg at eight noise multipliers. ID accuracy decreased steadily as ε decreased. It went from 65.92% [61.40, 70.44] at ε = 203.51 ( σ = 0.25 ), about 9 points below non-private FedAvg, to 32.17% [26.63, 37.70] at ε = 23.51 and 12.88% [9.95, 15.80] at ε = 3.56 , which is indistinguishable from chance. The decline is gradual across the tested range, and the data do not indicate a sharp threshold. Template-disjoint accuracy was already low without DP and declined toward chance as noise increased. The fraction of client updates reaching the clipping bound in the final round rose from about two-thirds at σ = 0.25 to all updates for σ ≥ 2 . This is consistent with noisier global models producing larger local corrections.
Table 2. DP-FedAvg at δ = 10 − 5 , C = 1 , T = 12 , α = 1 (mean over five seeds; brackets give 95% confidence intervals). “Clipped” is the mean fraction of client updates with ∥ u k ∥ 2 > C in the final round.
Figure 1. Privacy–utility trade-off of DP-FedAvg. Points are means over five seeds; error bars are 95% confidence intervals. The dashed line shows non-private FedAvg (ID), and the dotted line shows chance. Generated from the same aggregate file as Table 2.

3.3. Effect of Label Skew

Table 3 and Figure 2 report non-private FedAvg under the three partitions. ID accuracy decreased as label skew increased. Under severe skew ( α = 0.1 ), accuracy fell below the local-only mean obtained at α = 1 . Template-disjoint accuracy followed the same ordering but stayed within a narrow 20–26% range. At α = 0.1 the template-disjoint accuracy was identical across all five seeds. In non-private runs the seeds change only initialization and mini-batch order, and this convex model converges to nearly the same solution regardless, so the zero-width interval shows insensitivity to training randomness, not certainty about population performance.
Table 3. Non-private FedAvg under Dirichlet label skew (mean over five seeds; brackets give 95% confidence intervals).
Figure 2. Non-private FedAvg accuracy under three levels of Dirichlet label skew. Bars are means over five seeds; error bars are 95% confidence intervals.

3.4. Communication

Each transfer of the 512-parameter float32 model is 2048 bytes. Six clients, 12 rounds, and both directions give 294,912 bytes (0.281 MiB). The raw text field of the 1224 training records is 186,525 bytes (0.178 MiB). For this very small model, FedAvg therefore transmits more bytes than a one-time upload of the raw text. The ratio would be much larger for a transformer-scale model. These figures are payload counts, not end-to-end network measurements.

4. Discussion

Federated versus isolated and pooled training. On this benchmark, collaboration helped. With moderate skew, FedAvg improved substantially over models trained on a single client’s 204 records, but it did not reach the pooled-data model. The gap to centralized training widened as skew increased. At α = 0.1 , FedAvg fell below the local-only mean, consistent with the known sensitivity of FedAvg to non-IID clients [7,8,9]. Drift-correcting optimizers were not evaluated.
Template dependence. The template-disjoint results are the most important caveat of this benchmark. When the symptom frames, openers, and closers were replaced by independently written text with the same meaning, every method dropped to 19–24%. The public vocabulary is part of the explanation: template-disjoint records contain about half as many in-vocabulary tokens as ID records, so the bag-of-words features carry less signal. The main point, however, is that ID accuracy on template-generated text greatly overstates how well a classifier trained on those templates generalizes. Any synthetic RCA benchmark should report a template-disjoint or otherwise independently authored evaluation alongside ID accuracy.
Why client-level DP is costly here. The utility loss follows directly from the noise scale. With C = 1 and six equally weighted clients, the aggregate has Δ 2 = 1 / 3 . Each of the d = 512 coordinates therefore receives noise with standard deviation σ / 3 , and the expected noise norm is about ( σ / 3 ) d ≈ 7.5 σ . The clipped aggregate itself has norm at most 1. Even at σ = 0.25 , the noise norm per round exceeds the signal norm, and learning survives only because noise averages out across rounds. Utility could be improved by more clients (which reduces max k w k and hence Δ 2 ), valid sampling amplification, fewer or more informative releases, adaptive clipping, or lower-dimensional private representations. None of these were evaluated here. Because d enters the noise norm directly, larger models would face a harder trade-off under the same mechanism, unless the number of clients grows accordingly.
Limitations. The data are synthetic and generated from a limited number of frames, so no result here establishes applicability to real fab records. Credible external validation would require appropriately governed, site-held-out records from several independent fabs, harmonized label taxonomies, a vocabulary or tokenizer fixed without access to held-out sites, and prospective evaluation on independently authored records. The classifier is deliberately simple. The public lexicon was specified with knowledge of the ID frame bank, although not of the template-disjoint bank. The privacy analysis assumes a fixed public roster and fixed public weights. It does not cover add/remove adjacency or data-dependent weights. The central-DP mechanism protects the released aggregates, but the server still observes individual updates unless secure aggregation [6] is also used. Five seeds give only coarse uncertainty estimates and capture training randomness, not data-sampling variability.

5. Conclusions

On a fully released synthetic six-fab RCA text benchmark, non-private FedAvg improved over isolated local training but remained below centralized training, and its advantage shrank under stronger label skew. All methods generalized poorly to independently phrased records, which shows that in-distribution accuracy on template-generated text overstates generalization. Correctly calibrated client-level DP-FedAvg retained moderate utility only at very large ε and approached chance at single-digit ε . The study provides a controlled, reproducible benchmark, not a new FL algorithm or evidence of production readiness. Claims about real cross-fab deployment require independently sourced, appropriately governed data.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/electronics15194517/s1, File S1: Reproducibility package containing the data generator and frame banks, all synthetic data splits, experiment code, 65 raw per-run results, aggregate results, figure scripts, automated checks, and a SHA-256 manifest.

Author Contributions

Conceptualization, Y.A. and M.B.-E.-D.; methodology, Y.A.; software, Y.A.; validation, Y.A., A.A., M.A. and D.K.; formal analysis, Y.A.; investigation, Y.A.; data curation, Y.A.; writing—original draft preparation, Y.A.; writing—review and editing, M.B.-E.-D., A.A., M.A. and D.K.; visualization, Y.A.; supervision, M.B.-E.-D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

All data, code, raw per-run results, aggregate results, figure scripts, automated checks, and a SHA-256 manifest are provided in the Supplementary Materials (File S1). Running run_all.sh regenerates every number, table, and figure in this article. No real or proprietary fab data were used.

Acknowledgments

During the preparation of this study, the authors used Claude Opus 5.5 (Anthropic) to assist with writing and revising the experiment code, the synthetic data generator, and the manuscript text. The authors reviewed and edited all generated material and take full responsibility for the content of this publication.

Conflicts of Interest

Y.A. is employed by ASML. No ASML data, proprietary information, or proprietary tooling were used in this study. The authors declare no other conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DPDifferential privacy
FLFederated learning
FedAvgFederated averaging
IDIn-distribution
IIDIndependent and identically distributed
RCARoot cause analysis
RDPRényi differential privacy

References

  1. McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; Agüera y Arcas, B. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), Fort Lauderdale, FL, USA, 20–22 April 2017; PMLR 54, pp. 1273–1282. [Google Scholar]
  2. Kairouz, P.; McMahan, H.B.; Avent, B.; Bellet, A.; Bennis, M.; Bhagoji, A.N.; Bonawitz, K.; Charles, Z.; Cummings, R.; D’Oliveira, R.G.L.; et al. Advances and Open Problems in Federated Learning. Found. Trends Mach. Learn. 2021, 14, 1–210. [Google Scholar] [CrossRef] [Scilit]
  3. Dwork, C.; Roth, A. The Algorithmic Foundations of Differential Privacy. Found. Trends Theor. Comput. Sci. 2014, 9, 211–407. [Google Scholar] [CrossRef] [Scilit]
  4. McMahan, H.B.; Ramage, D.; Talwar, K.; Zhang, L. Learning Differentially Private Recurrent Language Models. In Proceedings of the 6th International Conference on Learning Representations (ICLR), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  5. Geyer, R.C.; Klein, T.; Nabi, M. Differentially Private Federated Learning: A Client Level Perspective. arXiv 2017, arXiv:1712.07557. [Google Scholar]
  6. Bonawitz, K.; Ivanov, V.; Kreuter, B.; Marcedone, A.; McMahan, H.B.; Patel, S.; Ramage, D.; Segal, A.; Seth, K. Practical Secure Aggregation for Privacy-Preserving Machine Learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (CCS), Dallas, TX, USA, 30 October–3 November 2017; pp. 1175–1191. [Google Scholar]
  7. Li, T.; Sahu, A.K.; Zaheer, M.; Sanjabi, M.; Talwalkar, A.; Smith, V. Federated Optimization in Heterogeneous Networks. In Proceedings of the Machine Learning and Systems (MLSys), Austin, TX, USA, 2–4 March 2020; Volume 2, pp. 429–450. [Google Scholar]
  8. Karimireddy, S.P.; Kale, S.; Mohri, M.; Reddi, S.; Stich, S.; Suresh, A.T. SCAFFOLD: Stochastic Controlled Averaging for Federated Learning. In Proceedings of the 37th International Conference on Machine Learning (ICML), Virtual, 13–18 July 2020; PMLR 119, pp. 5132–5143. [Google Scholar]
  9. Hsu, T.-M.H.; Qi, H.; Brown, M. Measuring the Effects of Non-Identical Data Distribution for Federated Visual Classification. arXiv 2019, arXiv:1909.06335. [Google Scholar]
  10. Abadi, M.; Chu, A.; Goodfellow, I.; McMahan, H.B.; Mironov, I.; Talwar, K.; Zhang, L. Deep Learning with Differential Privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (CCS), Vienna, Austria, 24–28 October 2016; pp. 308–318. [Google Scholar]
  11. Mironov, I. Rényi Differential Privacy. In Proceedings of the 2017 IEEE 30th Computer Security Foundations Symposium (CSF), Santa Barbara, CA, USA, 21–25 August 2017; pp. 263–275. [Google Scholar]
  12. Zhang, Y.; Lan, R.; Li, X.; Fang, J.; Ping, Z.; Liu, W.; Wang, Z. Class Imbalance Wafer Defect Pattern Recognition Based on Shared-Database Decentralized Federated Learning Framework. IEEE Trans. Instrum. Meas. 2024, 73, 2517317. [Google Scholar] [CrossRef] [Scilit]
  13. Patel, T.; Murugan, R.; Yenduri, G.; Jhaveri, R.H.; Snoussi, H.; Gaber, T. Demystifying Defects: Federated Learning and Explainable AI for Semiconductor Fault Detection. IEEE Access 2024, 12, 116987–117007. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.