Trans-XFed Architecture for Supply Chain FL
- The paper demonstrates that integrating FedProx, CKKS encryption, a client-local transformer encoder, and PBCS accelerates convergence and improves minority-class default prediction, achieving an F1 of 0.7137 at round 10.
- Trans-XFed is a federated learning framework designed for supply chain credit assessment that tackles privacy, Non-IID data, and class imbalance through secure aggregation and performance-based client selection.
- The system employs integrated gradients for local explainability and leverages a transformer encoder to provide actionable feature attributions for more interpretable credit decisions.
Trans-XFed most directly denotes a federated learning architecture for supply chain credit assessment that combines FedProx, CKKS homomorphic encryption, a client-local transformer encoder, a Performance-Based Client Selection Strategy (PBCS), and Integrated Gradients (IG) to address privacy, information silos, class imbalance, Non-IID data, and interpretability in binary default prediction (Shi et al., 19 Aug 2025). In the supplied literature, the same label also appears in other, non-equivalent architectural contexts—most notably transporter-mediated federated learning under the FedEx framework and a Transformer reparameterization centered on a single widened shared encoder FFN—so the term is context-dependent rather than fully standardized across sources (Bian et al., 2023, Pires et al., 2023).
1. Scope, task definition, and data regime
In its primary usage, Trans-XFed is formulated as a horizontal federated learning system for binary classification in supply chain credit assessment, where the target is to predict whether a borrower will default or not default, with labels (Shi et al., 19 Aug 2025). The local datasets share the same 21-dimensional feature space and contain tabular features describing company attributes and financial indicators, but their distributions differ across industries and time periods. This heterogeneous regime motivates the explicit treatment of class imbalance and Non-IID effects as first-class architectural constraints rather than incidental training noise.
The experimental deployment uses financial institutions as clients, with local dataset sizes and minority-class rates between approximately and (Shi et al., 19 Aug 2025). A central coordinator orchestrates communication rounds with . At each round, the server dispatches the current global model, selected clients perform local training, and encrypted model parameters are returned for secure aggregation. Raw data never leave the clients.
The design objective is therefore multi-criteria. It is not only to maximize predictive performance on an imbalanced default-detection task, but also to preserve privacy during parameter exchange, to stabilize optimization under heterogeneous local distributions, and to expose feature-level rationales for downstream credit decisions. A plausible implication is that the architecture is aimed at domains in which collaborative learning, regulatory scrutiny, and asymmetric error costs coexist.
2. End-to-end system architecture and training workflow
The system comprises a central server, client-local learning stacks, CKKS homomorphic encryption modules, and an explainability pipeline (Shi et al., 19 Aug 2025). The server orchestrates communication rounds, ranks clients, aggregates encrypted parameters, decrypts aggregated ciphertext, and updates the global model. Each client hosts a local dataset, a transformer encoder with classifier head, a FedProx-based local optimizer, an IG module for local explainability, and an HE module for encrypting model parameters before transmission.
One round proceeds in six stages. First, the server initializes or maintains global weights and broadcasts them to all clients. Second, each client evaluates the received model on its local validation split and computes a local F1 score; the server ranks these scores and selects the top clients with . Third, selected clients train locally for 0 epochs using SGD with learning rate 1 and batch size 2. Fourth, each selected client encrypts its updated parameters with CKKS under the server-provided public key. Fifth, the server computes an encrypted weighted sum using coefficients 3 proportional to the selected clients’ data volumes and then decrypts the aggregate. Sixth, the updated global model is broadcast for the next round. Training continues until a stopping criterion such as the maximum number of rounds or a validation plateau is reached.
This workflow makes model selection and aggregation explicitly performance-aware. Client ranking occurs before local training in each round, rather than after model collection, which means the architecture filters participants according to their current local validation behavior under the global model. This differs from random-participation federated baselines and directly couples communication scheduling to minority-class-sensitive validation performance.
3. Federated objective, FedProx regularization, and PBCS
The global federated objective is the weighted sum of local expected losses,
4
where 5 and the weights 6 are typically proportional to client data size (Shi et al., 19 Aug 2025). For a selected client 7 at round 8, local optimization uses the FedProx objective
9
with proximal coefficient 0 scheduled from 1 to 2 in increments of 3 across rounds. The proximal term constrains local drift away from the dispatched global weights and is intended to mitigate instability under heterogeneous client distributions.
For the credit-scoring task, Trans-XFed uses weighted Negative Log-Likelihood as its preferred loss: 4 with 5 classes, 6, and 7 (Shi et al., 19 Aug 2025). This reweighting emphasizes the minority default class. Cross Entropy and Focal loss are evaluated as baselines, but weighted NLL is the chosen Trans-XFed objective.
Local SGD with FedProx uses
8
and the server updates the global model by weighted averaging,
9
where 0, 1, and 2 for selected clients (Shi et al., 19 Aug 2025).
PBCS operationalizes client selection through minority-class-sensitive validation statistics. Each client computes precision 3, recall 4, and
5
for the positive default class using a threshold such as 6 (Shi et al., 19 Aug 2025). The server sorts clients by descending F1 and selects the top 7. The stated rationale is that high-F1 clients typically provide better recall for the minority class and more reliable local updates, thereby reducing noisy gradients from poorly calibrated clients. The design, however, has explicit trade-offs: high-F1 clients may be overrepresented, diversity can decrease, and some clients may rarely participate. The paper identifies occasional random inclusion, minimum participation quotas, decay factors, or exploration phases as mitigations.
4. Privacy mechanisms, transformer representation, and local explainability
Privacy preservation is implemented with CKKS, the Cheon–Kim–Kim–Song approximate homomorphic encryption scheme, which supports homomorphic addition and multiplication over real-valued vectors (Shi et al., 19 Aug 2025). The server initializes CKKS parameters and generates public and secret keys; clients encrypt local parameters with the public key, and the server aggregates in the encrypted domain: 8 followed by
9
The threat model is parameter and gradient leakage during transit and aggregation. The paper states that even if communication channels or server memory are inspected, ciphertext reveals no sensitive patterns. At the same time, CKKS introduces ciphertext expansion, computational cost, and approximate-arithmetic noise-budget management, so privacy is obtained with explicit systems overhead.
The model backbone is a client-local transformer encoder adapted to tabular inputs (Shi et al., 19 Aug 2025). Each of the 21 features is treated as a token. Continuous features are normalized and projected to 0 through learned linear embeddings, while categorical features, if present, use learned embeddings. Positional encodings can be omitted or fixed because the data have no natural order. The encoder uses scaled dot-product attention,
1
and multi-head attention with 2 heads: 3 Residual connections, layer normalization, and a position-wise feed-forward network complete the block. The encoder output feeds fully connected layers for binary classification, with output 4.
Explainability is provided by Integrated Gradients, computed locally on each client: 5 where 6 is the model output, 7 is the sample, and 8 is a baseline such as the zero vector (Shi et al., 19 Aug 2025). The key privacy property is locality: data and gradients do not leave the client. Clients may share only aggregate explanation statistics, such as mean IG per feature over subsets of samples. The paper contrasts IG with SHAP and LIME, noting that IG satisfies sensitivity and implementation invariance and integrates straightforwardly with deep networks.
5. Experimental performance, interpretability findings, and implementation profile
The experimental setup uses real-world supply chain datasets from Shi et al. (2025), with four training clients sharing 21 features and a test set of size 9 built by taking 0 from each client (Shi et al., 19 Aug 2025). Each client uses a stratified 1 train/validation split that preserves class ratios. Baselines are FedAvg and FedProx with random client selection, the same transformer-plus-fully-connected local architecture, and weighted aggregation. The implementation stack is Python 3.10, PyTorch 1.9.0, and TenSEAL 0.3.14.
The reported evaluation emphasizes minority-class recall and F1, with precision also reported. AUC-ROC and AUC-PR are described as suitable, but the paper prioritizes recall and F1. The central empirical claim is that Trans-XFed reaches its best minority-class performance substantially earlier than the baselines.
| Model | Minority-class test result | Best round |
|---|---|---|
| Trans-XFed (NLL) | Recall 0.8889; Precision 0.5961; F1 0.7137 | 10 |
| FedAvg (NLL) | Recall 0.8879; Precision 0.5730; F1 0.6968 | 36 |
| FedProx (NLL) | Recall 0.8486; Precision 0.5456; F1 0.6642 | 36 |
Trans-XFed with CE and Focal loss is also described as competitive, but NLL performs best (Shi et al., 19 Aug 2025). The ablation narrative attributes the performance profile to several interacting components. PBCS accelerates convergence and improves F1 relative to random selection. The transformer is said to improve representation quality and interpretability via attention relative to simple MLP backbones. IG provides feature-level explanations consistent with domain knowledge. HE secures parameter exchange with acceptable overhead, and the faster convergence is reported to compensate for the higher communication cost.
The interpretability findings are specific. For defaulting samples, “small and micro enterprises,” “bank early warning,” “revolving credit facility,” and “years relationship with bank” receive strong positive attributions. For non-defaulting samples, “guarantee type” and “credit rating” have protective influence, expressed as negative attribution on default probability. Some features, including “government platform finance” and “prohibited industry,” show minimal effect in both groups. Attention analysis further identifies “repayment method” as central to default prediction, while “platform type” and “guarantee type” often exhibit negative relationships for non-defaults (Shi et al., 19 Aug 2025).
The limitations are also explicit. CKKS enlarges payloads and adds computational cost; approximate arithmetic introduces small decryption error. Even with HE, updates may encode distributional signals, so the paper identifies secure multi-party computation, differential privacy, and privacy auditing as future directions. PBCS raises fairness concerns because weaker clients can be selected less often. Scaling to larger client counts may require more efficient attention variants, parameter sharing strategies, personalized federated learning, or domain adaptation across industries.
6. Alternative architectural usages of the label
The supplied literature attaches the same label to two additional architectures that are technically distinct from the supply-chain system. This suggests that “Trans-XFed” functions more as a context-dependent architectural tag than as a single canonical design.
| Usage in supplied sources | Core architectural idea | Source |
|---|---|---|
| Supply-chain FL | FedProx + CKKS + transformer encoder + PBCS + IG | (Shi et al., 19 Aug 2025) |
| Indirect-communication FL | Mobile transporters disseminate global models and collect cumulative local updates | (Bian et al., 2023) |
| Transformer reparameterization | One shared widened encoder FFN; decoder FFNs removed | (Pires et al., 2023) |
In the FedEx-related usage, the architecture assumes no direct server–client or client–client connectivity; instead, mobile transporters such as UAVs or vehicles physically disseminate the current global model and collect cumulative local updates from stationary clients (Bian et al., 2023). Two variants are defined: FedEx-Sync, in which all transporters start together and faster ones wait for the slowest, and FedEx-Async, in which each transporter begins a new tour immediately after completing the previous one. The system explicitly models round-trip time 2, staleness through 3, and asynchronous delay terms. The design insights follow the convergence bounds: FedEx-Sync motivates minimizing 4, whereas FedEx-Async motivates minimizing 5. The paper’s route-planning procedure uses a bi-level CARD method with Gibbs Sampling in the outer loop and 2-OPT TSP heuristics in the inner loop. This architecture is therefore about FL under absent communication infrastructure rather than explainable credit assessment.
In the Transformer-architecture usage, “Trans-XFed Architecture” is mapped to the “One Wide FFN” configuration, in which a single FFN is shared across all encoder layers, decoder FFNs are removed, and the shared encoder FFN is widened to recover or exceed baseline capacity (Pires et al., 2023). For Transformer Big with 6, 7, and 8, the widened configuration sets
9
The FFN uses ReLU,
0
and when the decoder FFN is removed, its associated residual connection and layer normalization are also removed. On WMT22 En1De, the baseline Transformer Big reports BLEU 2, chrF 3, COMET 4, speed 5 tokens/s, and 6M parameters, whereas the One Wide FFN configuration reports BLEU 7, chrF 8, COMET 9, speed 0 tokens/s, and the same parameter count of 1M (Pires et al., 2023). Here the architectural emphasis is not federated optimization but redundancy reduction in FFN sublayers and improved autoregressive latency.
Taken together, these usages make clear that the term does not denote a universally fixed blueprint. In the supply-chain paper it names an explainable federated credit-scoring system; in the FedEx material it denotes transporter-mediated federated communication; in the Transformer-compression material it denotes a specific FFN-sharing topology. The shared motif is architectural integration across multiple constraints, but the concrete mechanisms, objectives, and evaluation regimes differ substantially.