Manuscript Offprint
arXiv:2610.26953From Last-Layer to Cross-Layer: One-Shot Joint Classifier Reconstruction for Federated Learning
Abstract
Federated learning (FL) enables collaborative model training while preserving data privacy. However, non-independent and identically distributed (non-IID) data inevitably introduces classifier bias, leading to significant performance degradation. Existing studies primarily focus on calibrating or reconstructing the classifier after FL training to alleviate this bias. We find that the last-layer representations of the global model are often suboptimal for establishing a global decision boundary. Instead, classifiers constructed based on intermediate-layer representations can achieve superior performance. This finding provides a critical insight into overcoming the performance bottleneck inherent in existing paradigms. Nevertheless, identifying the optimal layer without auxiliary datasets or prior knowledge remains a formidable challenge. In this paper, we propose FLARE (Federated Cross-Layer Joint CIAssifier REconstruction) which rethinks classifier reconstruction from a cross-layer perspective and generalizes ridge regression to jointly exploit cross-layer representations, thereby surpassing the performance of any individual layer. Specifically, after FL training, clients perform only a single forward pass to extract class-conditional statistics from predefined layers. The server aggregates these statistics to construct a joint cross-layer ridge classifier, where an adaptive coupling coefficient regulates cross-layer correlations, thereby facilitating the integration of complementary discriminative information. Extensive experiments across 11 datasets, 8 model architectures, and diverse data heterogeneity scenarios demonstrate that FLARE, as a plug-and-play post-processing method, improves accuracy by 11.35% with only one additional communication round.
Introduction
Federated learning (FL) is a distributed training paradigm that enables collaborative training from multi-source clients without transferring raw data (McMahan et al. 2017; Li et al. 2023b; Zhang et al. 2022). However, statistical heterogeneity across clients can skew local decision boundaries toward client-specific class priors, resulting in classifier bias. (Luo et al. 2021; Zhou, Zhang, and Tsang 2023; Li et al. 2023a). Aggregating these inconsistent classifiers can substantially
Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Figure 1: Top-1 test accuracy of classifiers at various layers. We first train ResNet-18 on CIFAR-10 using FedAvg (100 clients, 5% participation ratio, Dirichlet distribution with ). Following training, we attach classifiers to predefined layers and fine-tune for 50 epochs on the training set.
degrade the performance of the global model(Fan et al. 2023; Chen, Wu, and Ji 2024; Shang et al. 2022).
Existing classifier reconstruction approaches in FL can be categorized into two strategies, both of which build upon the global models obtained after FL training or pretrained backbones. The first strategy reconstructs the classifier by leveraging feature statistics uploaded by clients, such as class means, covariance matrices, or regression statistics (Goswami et al. 2025; Legate et al. 2023; Fani et al. 2024; Guan, Zhou, and Gu 2025). The second synthesizes pseudo-features that approximate the global distribution to fine-tune the classifier (Beitollahi et al. 2025; Chen, Wu, and Ji 2024; Tang et al. 2024; Pan et al. 2024; Huang et al. 2024). Despite their promise in mitigating classifier bias, these methods are fundamentally limited, as they focus exclusively on last-layer representations. This paradigm implicitly assumes that deeper repre-sentations exhibit superior linear separability and semantic discriminability, making them optimal for establishing global decision boundaries(Alain and Bengio 2017; Cohen et al. 2020). However, under non-IID FL conditions, deep features are sensitive to local data distributions, which exacerbates representation divergence across clients and increases instability during aggregation(Li et al. 2023a; Wang et al. 2024; Shi et al. 2023). Consequently, relying solely on last-layer representations undermines the reliability and creates a critical bottleneck for existing reconstruction paradigms.
To quantify the impact of representation depth on model performance, we conduct a preliminary study. We first train a global model via FedAvg and freeze its backbone. Then, we attach linear classifiers to intermediate layers and fine-tune all classifiers. As illustrated in Figure 1, classifiers derived from certain intermediate-layer representations outperform those on the last-layer. This reveals a critical limitation in existing paradigms. For classifier reconstruction, the optimal choice is not strictly limited to the last layer. Instead, it varies across model architectures, datasets, and other factors. However, identifying the optimal layer remains a formidable challenge in FL, where privacy constraints limit access to auxiliary data and prior knowledge(Wu et al. 2024; Zhu et al. 2023).
Building upon these findings, we propose FLARE (Federated Cross-Layer Joint CIAssifier REconstruction) designed to overcome the last-layer decision bottleneck and surpass the optimal-layer performance. FLARE introduces a novel cross-layer perspective for federated classifier reconstruction and further generalizes ridge regression over cross-layer representations, thereby integrating complementary information into a unified decision space. To suppress unreliable cross-layer correlations, FLARE introduces an adaptive coupling coefficient to regulate inter-layer interactions. Consequently, FLARE transcends the limitations of last-layer reconstruction inherent in existing methods, yielding significant improvements in the global model's performance. Extensive experiments demonstrate that FLARE consistently outperforms state-of-the-art (SOTA) baselines across various settings. Our contributions are summarized as follows:
• We transcend mainstream FL classifier reconstruction paradigms that focus exclusively on the last layer, revealing the critical value of intermediate-layer representations under data heterogeneity. We accordingly propose FLARE to integrate cross-layer discriminative information for classifier reconstruction. This insight provides a novel perspective on federated classifier reconstruction.
• As a plug-and-play method, FLARE further generalizes ridge regression from a single representation space to a jointly optimized cross-layer space. It also introduces an adaptive coupling coefficient to suppress unreliable correlations, thereby constructing a superior joint classifier.
• Extensive experiments across five image datasets with three model architectures and six text datasets with five model architectures, covering diverse FL settings, demonstrate that FLARE consistently outperforms existing SOTA methods while preserving privacy.
FL under Data Heterogeneity
Existing research on FL under data heterogeneity follows two primary paradigms: general federated learning (GFL) and Personalized Federated Learning (P-FL). GFL aims to learn a global model applicable to all clients, as exemplified by FedAvg(McMahan et al. 2017). However, non-IID data severely constrains the convergence and performance of the global model. Existing studies have proposed optimization strategies, including mitigating local update drift (Li et al. 2020; Gao et al. 2022), gradient correction (Hsu, Qi, and Brown 2019; Acar et al. 2021), and introducing distillation for knowledge preservation (Lu et al. 2023; Lee et al. 2022). In contrast, P-FL seeks to learn client-specific models adapted to each client's data distributions (Smith et al. 2017), subsequently inspiring diverse approaches including local fine-tuning of global models (Fallah, Mokhtari, and Ozdaglar 2020), personalized classifiers (Collins et al. 2021), jointly learned personalized components (T Dinh, Tran, and Nguyen 2020; Li et al. 2021), and personalized aggregation weights (Huang et al. 2021; Zhang et al. 2023).
Classifier Reconstruction in FL
Existing FL classifier reconstruction methods primarily focus on the post-processing phase with a frozen global backbone. Specifically, CCVR(Luo et al. 2021), FedCRGP (Pan et al. 2024), and DFL-FS(Chen, Wu, and Ji 2024) adopt a generation-based approach, where clients upload class means and covariances, subsequently server generates pseudo-features to reconstruct the classifier. Similarly, FedPFT(Beitollahi et al. 2025) utilizes client-uploaded Gaussian mixture models to synthesize features for classifier retraining. FedNCM(Legate et al. 2023) simplifies this process by requiring only weighted class means to construct a nearest class mean classifier at the server. Alternatively, Fed3R(Fani et al. 2024) leverages a recursive regression algorithm, aggregating client-side regression statistics to construct the classifier. To enhance model reliability and robustness, APH(Chen et al. 2024) samples multiple classifiers and combines them after differentiated fine-tuning. Furthermore, FedCGS(Guan, Zhou, and Gu 2025) builds a parameter-free Gaussian Naive Bayes classifier based on local feature statistics, while FedCOF(Goswami et al. 2025) exploits properties of the means distribution for unbiased covariance estimation. However, these methods reconstruct classifiers solely based on the last layer, limiting their performance to a single representation space. In contrast, FLARE reconstructs a joint classifier, enabling it to integrate cross-layer discriminative information.
Method
Problem Formulation
Consider a FL system comprising clients indexed by . Client holds a private dataset , where and . Let denote the total number of samples across all clients. FL aims to collaboratively learn the parameters
Phase 1: FL Training
Phase 2: FLARE (Plug-and-Play)

Figure 2: Overview of FLARE. The pipeline consists of two phases: (Phase 1) employs standard FL to obtain a global model, after which the backbone is frozen; (Phase 2) FLARE is deployed as a plug-and-play post-processing method to reconstruct classifier. ① client extracts class-conditional feature statistics from predefined layers and uploads them in one communication round; ② the server aggregates the statistics and constructs cross-layer joint classifier; ③ Joint inference with reconstruct classifier
of a global model without sharing the raw data. The global optimization objective is formulated as follows:
where the local objective of client k is defined as:
In practical FL systems, local heterogeneous class priors (i.e., or in extreme cases) cause local objectives to systematically deviate from the global objective. Under the assumption , local optimization introduces the gradient discrepancy as :
This gradient discrepancy can produce a significant disparity in weight magnitudes across classes. After aggregation, the accumulated biases stemming from disparate local distributions distort the learned decision boundaries, ultimately degrading generalization performance.
Overview of FLARE
To overcome the last-layer reconstruction bottleneck and surpass optimal-layer performance without explicitly identifying it, we develop FLARE, a plug-and-play post-processing method applied after FL training, as illustrated in Figure 2.
One-Shot Extraction of Cross-Layer Statistics. Given the model obtained after FL training, we predefine a set of layers . Let denote the feature mapping for each layer , and the activation of input at layer is pooled and flattened into . Client computes the class-conditional first moment:
To capture the self-correlation of features within layer and the cross-layer correlation between layers and , client computes the pairwise second-order moments:
Client uploads to the server. This procedure requires only one forward pass and one additional communication round.
Classifier Reconstruction. The server aggregates the uploaded class-statistics as follows:
Let and define the global class vector as . We further construct the cross-layer first-moment matrix and global feature-sum vector as
where , . Unlike only last-layer reconstruction, retains class-conditional information across all predefined layers. To mitigate the influence of the global feature and label means, we center the statistics as follows:
(1) Adaptive Coupling: To integrate discriminative information while suppressing unreliable inter-layer dependencies under data imbalance, FLARE regulates inter-layer interactions via an adaptive coupling coefficient. The effective global class support is summarized by the harmonic mean . Compared with the arithmetic mean, is more sensitive to poorly represented classes and therefore better reflects the reliability of cross-layer statistics. The adaptive coupling coefficient is defined as:
The joint second-order matrix is defined by
Equivalently, preserves within-layer second-order, whereas the less reliable inter-layer interactions are regulated.
(2) Cross-Layer Joint Reconstruction: FLARE generalizes ridge regression (Hoerl and Kennard 1970) from a single space to a jointly optimized cross-layer space, where the layer-specific classifiers are coupled through the inter-layer blocks. The resulting cross-layer joint ridge objective is
The off-diagonal blocks of couple the layer-specific classifiers within , revealing the joint nature of the optimization. Thus, rather than being optimized independently or restricted to the last layer, the are coupled via cross-layer terms. The objective first-order optimality condition is
Let and denote the global feature and label means, respectively. The intercept is recovered by enforcing zero empirical mean residuals as follows:
Solving the normal equations in (11) and (12) yields the unique solution as follows:
Joint inference. For an input , FLARE extracts features from layers in . The reconstructed classifier then computes the class score as follows:
By jointly using cross-layer discriminative information, FLARE is not restricted to the last layer and requires no separate search for the optimal layer. It requires only one statistics-upload round and one server-side linear solve.
Experiment
Experimental Setup
Datasets and Models. To comprehensively evaluate the effectiveness of FLARE, we conduct extensive experiments on both image and text classification tasks. ① Image datasets and models. We consider five datasets covering both natural and medical image domains, including SVHN (Netzer et al. 2011), CIFAR-10 (Krizhevsky, Nair, and Hinton 2009), CIFAR-100 (Krizhevsky, Nair, and Hinton 2009), CINIC-10 (Darlow et al. 2018), and BloodMNIST (Yang et al. 2023). We employ three representative backbone models, namely ResNet-18 (He et al. 2016), VGG-11 (Simonyan and Zisserman 2014), and MobileNetV2 (Sandler et al. 2018). ② Text datasets and models. We further evaluate FLARE on six widely used text datasets: AG News (Zhang, Zhao, and LeCun 2015), SST-2 (Socher et al. 2013), IMDb (Maas et al. 2011), 20 Newsgroups (Lang 1995), DBpedia-14 (Zhang, Zhao, and LeCun 2015), and Yahoo Answers Topics (Zhang, Zhao, and LeCun 2015) on five pre-trained language models, including BERT (Devlin et al. 2019), DistilBERT (Sanh 2019), XLNet (Yang et al. 2019), ELECTRA (Clark et al. 2020), and MiniLM (Wang et al. 2020). For each backbone, we predefined four layers (three intermediate and the last layer). The layer selection criteria, predefined layer locations, and feature dimensions are detailed in Appendices D and E.
Baselines. We comprehensively evaluate FLARE as a post-processing method from two perspectives. ① FL algorithms for the training phase. To obtain the global model, we consider the canonical FedAvg and advanced methods designed to mitigate data heterogeneity, including FedDecorr (Shi et al. 2023), FedGELA (Fan et al. 2023), and FedSOL (Lee et al. 2024). ② Classifier reconstruction methods for post-processing. These SOTA baselines serve as direct competitors to FLARE. After FL training with the above algorithms, we freeze the backbone and apply CCVR (Luo et al. 2021), Fed3R (Fani et al. 2024), APH (Chen et al. 2024), FedPFT (Beitollahi et al. 2025), FedCOF (Goswami et al. 2025), and FedCGS (Guan, Zhou, and Gu 2025) to reconstruct the classifier. Although several methods assume pre-trained models, we adapt them to the same cold-start setting as our baselines for a fair comparison. Additional comparisons with other methods can be found in Appendix G.
Implementation Details. Following standard FL settings (Lu et al. 2023; Lee et al. 2022), we consider two challenging data heterogeneity scenarios: (1) Dirichlet non-IID, where the label distribution is controlled by a parameter (a smaller indicates higher skewness); and (2) Pathological non-IID, where each client possesses only S classes. During the FL training phase, all 100 clients employ SGD with momentum of 0.9 and weight decay of . The batch size is set to 128, and the initial learning rate is 0.01, which decays exponentially by a factor of 0.99 after each communication round. In each round, 5% of clients participate in local updates for 5 epochs. To ensure sufficient convergence, the total rounds are set to 500. After training, all classifier reconstruction methods are executed based on the frozen global model backbone. is set to according to the sensitivity analysis provided in Appendix H. All experiments are imple-
Table 1: Overall comparison of classifier reconstruction methods on ResNet-18 under non-IID settings (default ).
| Method | BloodMNIST | CIFAR-10 | CIFAR-100 | CINIC-10 | SVHN | Average | ||
|---|---|---|---|---|---|---|---|---|
| α=0.05 | α=0.1 | α=0.3 | ||||||
| FedAvg | 85.09 | 29.83 | 49.64 | 62.74 | 42.55 | 44.14 | 76.76 | - |
| +CCVR | 86.42(+1.33) | 38.72(+8.89) | 54.96(+5.32) | 63.09(+0.35) | 42.15(-0.40) | 49.65(+5.51) | 80.87(+4.11) | 3.59 |
| +FedPFT | 88.17(+3.08) | 39.43(+9.60) | 54.62(+4.98) | 62.86(+0.12) | 41.23(-1.32) | 47.52(+3.38) | 81.25(+4.48) | 3.48 |
| +Fed3R | 89.59(+4.50) | 46.81(+16.98) | 57.40(+7.76) | 64.01(+1.27) | 42.35(-0.20) | 50.71(+6.57) | 83.44(+6.68) | 6.22 |
| +APH | 85.44(+0.35) | 31.60(+1.77) | 54.60(+4.96) | 62.97(+0.23) | 42.47(-0.08) | 45.10(+0.96) | 78.73(+1.96) | 1.45 |
| +FedCOF | 81.35(-3.74) | 31.34(+1.51) | 49.48(-0.16) | 64.17(+1.43) | 42.65(+0.10) | 45.83(+1.68) | 78.78(+2.02) | 0.41 |
| +FedCGS | 90.09(+5.00) | 46.89(+17.06) | 57.47(+7.83) | 63.59(+0.85) | 41.34(-1.21) | 50.39(+6.25) | 83.14(+6.37) | 6.02 |
| +FLARE | 93.66(+8.56) | 58.18(+28.35) | 64.54(+14.90) | 68.46(+5.72) | 46.97(+4.42) | 56.45(+12.31) | 86.19(+9.43) | 11.96 |
| FedDecorr | 88.72 | 39.16 | 57.06 | 62.39 | 44.94 | 43.85 | 83.07 | - |
| +CCVR | 90.28(+1.56) | 48.95(+9.79) | 62.83(+5.77) | 62.56(+0.17) | 44.43(-0.50) | 48.77(+4.92) | 85.78(+2.71) | 3.49 |
| +FedPFT | 90.75(+2.04) | 50.23(+11.07) | 62.66(+5.60) | 62.10(-0.29) | 43.57(-1.37) | 46.71(+2.86) | 86.01(+2.93) | 3.26 |
| +Fed3R | 90.82(+2.10) | 53.15(+13.99) | 64.70(+7.64) | 62.94(+0.55) | 43.79(-1.15) | 49.64(+5.79) | 87.13(+4.06) | 4.71 |
| +APH | 89.45(+0.73) | 40.87(+1.71) | 61.50(+4.44) | 62.62(+0.23) | 44.88(-0.06) | 44.39(+0.55) | 84.79(+1.71) | 1.33 |
| +FedCOF | 87.72(-0.99) | 44.41(+5.25) | 58.46(+1.40) | 63.83(+1.44) | 44.92(-0.02) | 47.21(+3.37) | 85.21(+2.13) | 1.80 |
| +FedCGS | 90.41(+1.70) | 53.27(+14.11) | 64.21(+7.16) | 62.98(+0.59) | 42.66(-2.28) | 49.41(+5.57) | 86.95(+3.88) | 4.39 |
| +FLARE | 93.89(+5.17) | 60.27(+21.11) | 69.46(+12.40) | 67.49(+5.10) | 47.76(+2.82) | 55.08(+11.23) | 88.81(+5.74) | 9.08 |
| FedGELA | 80.53 | 42.69 | 58.68 | 65.24 | 42.76 | 49.83 | 85.93 | - |
| +CCVR | 81.02(+0.49) | 42.93(+0.23) | 58.64(-0.04) | 65.32(+0.08) | 41.98(-0.78) | 50.43(+0.60) | 86.19(+0.26) | 0.12 |
| +FedPFT | 83.58(+3.05) | 46.30(+3.61) | 60.98(+2.30) | 65.50(+0.26) | 43.36(+0.60) | 51.90(+2.07) | 87.08(+1.15) | 1.86 |
| +Fed3R | 81.47(+0.94) | 43.21(+0.52) | 59.20(+0.52) | 65.12(-0.12) | 43.28(+0.52) | 51.41(+1.58) | 86.58(+0.65) | 0.66 |
| +APH | 80.79(+0.25) | 42.51(-0.18) | 58.44(-0.24) | 65.30(+0.06) | 41.22(-1.54) | 50.87(+1.04) | 86.39(+0.46) | -0.02 |
| +FedCOF | 79.86(-0.67) | 42.76(+0.06) | 58.53(-0.15) | 65.54(+0.30) | 42.59(-0.17) | 51.14(+1.31) | 86.49(+0.56) | 0.18 |
| +FedCGS | 83.48(+2.95) | 46.03(+3.34) | 60.39(+1.71) | 65.34(+0.10) | 44.75(+1.99) | 51.65(+1.82) | 86.68(+0.74) | 1.81 |
| +FLARE | 92.60(+12.07) | 62.82(+20.12) | 69.65(+10.97) | 70.54(+5.30) | 47.92(+5.16) | 58.74(+8.91) | 90.60(+4.67) | 9.60 |
| FedSOL | 76.03 | 40.19 | 51.92 | 64.70 | 43.17 | 45.34 | 83.62 | - |
| +CCVR | 79.96(+3.93) | 44.12(+3.93) | 53.36(+1.44) | 64.91(+0.21) | 43.44(+0.27) | 48.58(+3.25) | 86.37(+2.75) | 2.25 |
| +FedPFT | 82.94(+6.91) | 46.05(+5.86) | 54.12(+2.20) | 65.00(+0.30) | 40.97(-2.20) | 45.42(+0.08) | 86.53(+2.91) | 2.29 |
| +Fed3R | 86.64(+10.61) | 51.98(+11.79) | 58.16(+6.24) | 64.81(+0.11) | 43.39(+0.22) | 48.93(+3.60) | 87.42(+3.80) | 5.19 |
| +APH | 77.15(+1.12) | 36.68(-3.51) | 52.24(+0.32) | 64.62(-0.08) | 42.69(-0.48) | 46.63(+1.30) | 85.40(+1.78) | 0.06 |
| +FedCOF | 76.67(+0.64) | 40.39(+0.20) | 49.54(-2.38) | 64.21(-0.49) | 42.36(-0.81) | 45.84(+0.50) | 85.46(+1.84) | -0.07 |
| +FedCGS | 87.39(+11.36) | 52.34(+12.15) | 57.30(+5.38) | 64.75(+0.05) | 42.40(-0.77) | 48.65(+3.31) | 87.55(+3.93) | 5.06 |
| +FLARE | 92.30(+16.27) | 62.66(+22.47) | 66.22(+14.30) | 69.50(+4.80) | 46.47(+3.30) | 55.47(+10.14) | 89.78(+6.16) | 11.06 |
mented in PyTorch (v2.2.1, CUDA 12.1) and run on an Intel Xeon Platinum 8375C CPU and NVIDIA RTX 3090 GPU.
Experimental Results
Overall Comparison. Tables 1–2 and Appendix Table 1 compare the accuracy of FLARE against existing SOTA classifier reconstruction methods across three architectures, five datasets, and Dirichlet non-IID settings . Methods marked with "+" indicate that the reconstruction methods after FL training (e.g., FedAvg), and the reported accuracy is evaluated after this reconstruction. All results are averaged over three random seeds with small standard deviations detailed in Appendix I. The best results are highlighted in bold with a gray background. FLARE consistently and significantly improves the global model performance across all evaluated scenarios, achieving SOTA and competitive results. On average, FLARE yields a 10.18% accuracy improvement over the original global model. Compared with the strongest reconstruction baselines, FLARE further boosts accuracy by 5.03%, 4.06%, and 8.04% on ResNet-18, VGG-11, and MobileNetV2, respectively. Notably, under extreme heterogeneity ( ), FLARE achieves an average accuracy gain of 23.43%, highlighting its effectiveness in mitigating severe classifier bias. We also evaluate FLARE under the Pathological non-IID setting, with detailed results provided in Appendix B. By exploiting cross-layer discriminative information, FLARE overcomes the performance bottleneck of relying solely on the last layer for reconstruction, thereby achieving consistent and substantial performance gains.
Advantage of the Cross-layer Strategy. We summarize the results of 84 FL tasks in Tables 1–2 and Appendix Table 1. As shown in Figure 3, we compare FLARE with two baselines: (1) last-layer reconstruction (existing SOTA methods) and (2) single optimal-layer reconstruction where the optimal layer is determined by validating each layer individually on the dataset. We report the win rate and the average relative accuracy gain of FLARE across tasks. FLARE surpasses last-layer reconstruction in all tasks, with an average gain of 5.98%. More notably, FLARE surpasses even optimal single-layer reconstruction, with an average gain of 3.51%, without requiring any explicit search for the optimal layer.
Comparison on Text Classification Tasks. As shown in Table 3, FLARE consistently outperforms all competing classifier reconstruction methods across diverse datasets and mainstream language model architectures. Compared with the strongest baselines, FLARE achieves accuracy improvements of up to 5.0% and 14.8% on BERT and XLNet, respectively, demonstrating its effectiveness across heterogeneous
Table 2: Overall comparison of classifier reconstruction methods on VGG-11 under Dirichlet non-IID settings (default ).
| Method | BloodMNIST | CIFAR-10 | CIFAR-100 | CINIC-10 | SVHN | Average | ||
|---|---|---|---|---|---|---|---|---|
| α=0.05 | α=0.1 | α=0.3 | ||||||
| FedAvg | 89.18 | 27.44 | 50.60 | 66.42 | 41.60 | 50.23 | 70.38 | - |
| +CCVR | 89.53(+0.34) | 38.27(+10.83) | 54.65(+4.05) | 67.09(+0.67) | 42.40(+0.80) | 53.06(+2.83) | 74.53(+4.15) | +3.38 |
| +FedPFT | 89.45(+0.26) | 39.28(+11.84) | 55.11(+4.51) | 67.43(+1.01) | 41.02(-0.58) | 50.94(+0.71) | 72.87(+2.49) | +2.89 |
| +Fed3R | 90.83(+1.65) | 44.32(+16.88) | 56.44(+5.84) | 67.35(+0.93) | 37.45(-4.15) | 52.62(+2.40) | 76.02(+5.64) | +4.17 |
| +APH | 89.60(+0.42) | 32.80(+5.36) | 53.26(+2.66) | 67.25(+0.83) | 41.53(-0.07) | 51.59(+1.36) | 71.77(+1.38) | +1.71 |
| +FedCOF | 87.43(-1.75) | 33.98(+6.54) | 51.36(+0.76) | 66.11(-0.31) | 40.58(-1.02) | 51.59(+1.37) | 72.58(+2.19) | +1.11 |
| +FedCGS | 90.59(+1.40) | 44.55(+17.11) | 57.36(+6.76) | 67.66(+1.24) | 40.62(-0.98) | 52.77(+2.54) | 75.83(+5.45) | +4.79 |
| +FLARE | 93.22(+4.03) | 62.79(+35.35) | 67.04(+16.44) | 70.55(+4.13) | 44.38(+2.78) | 56.79(+6.57) | 82.08(+11.70) | +11.57 |
| FedDecorr | 89.13 | 33.78 | 57.37 | 67.53 | 41.70 | 50.66 | 75.83 | - |
| +CCVR | 89.74(+0.61) | 43.01(+9.23) | 60.81(+3.44) | 68.48(+0.95) | 42.01(+0.31) | 53.61(+2.95) | 79.51(+3.68) | +3.03 |
| +FedPFT | 88.92(-0.20) | 44.61(+10.83) | 60.07(+2.70) | 68.52(+0.99) | 41.19(-0.51) | 53.52(+2.86) | 80.10(+4.27) | +2.99 |
| +Fed3R | 89.40(+0.27) | 44.85(+11.07) | 61.34(+3.97) | 68.34(+0.81) | 33.73(-7.97) | 53.48(+2.82) | 80.39(+4.56) | +2.22 |
| +APH | 89.36(+0.23) | 36.94(+3.16) | 59.47(+2.10) | 68.21(+0.68) | 41.91(+0.21) | 51.93(+1.27) | 77.53(+1.70) | +1.34 |
| +FedCOF | 87.58(-1.55) | 37.91(+4.13) | 60.25(+2.88) | 68.62(+1.09) | 41.29(-0.41) | 52.05(+1.40) | 78.07(+2.25) | +1.40 |
| +FedCGS | 89.92(+0.79) | 46.25(+12.47) | 61.94(+4.57) | 68.75(+1.22) | 40.70(-1.00) | 53.35(+2.69) | 80.03(+4.21) | +3.56 |
| +FLARE | 92.96(+3.83) | 62.96(+29.18) | 68.67(+11.30) | 70.79(+3.26) | 44.22(+2.52) | 57.87(+7.21) | 84.84(+9.01) | +9.47 |
| FedGELA | 88.51 | 48.86 | 62.05 | 70.09 | 36.88 | 52.51 | 83.35 | - |
| +CCVR | 89.59(+1.08) | 56.27(+7.41) | 63.78(+1.73) | 70.44(+0.35) | 41.24(+4.36) | 55.24(+2.73) | 85.68(+2.33) | +2.85 |
| +FedPFT | 90.37(+1.86) | 58.47(+9.61) | 63.25(+1.20) | 70.08(-0.01) | 39.82(+2.94) | 51.86(-0.65) | 84.26(+0.91) | +2.27 |
| +Fed3R | 89.56(+1.05) | 57.65(+8.79) | 63.40(+1.35) | 68.98(-1.11) | 33.36(-3.52) | 54.79(+2.28) | 84.38(+1.03) | +1.41 |
| +APH | 88.11(-0.40) | 41.80(-7.06) | 61.83(-0.22) | 69.63(-0.46) | 36.24(-0.64) | 54.06(+1.55) | 84.79(+1.44) | -0.83 |
| +FedCOF | 86.82(-1.70) | 50.26(+1.40) | 59.31(-2.74) | 68.82(-1.27) | 37.17(+0.29) | 54.50(+1.99) | 84.68(+1.33) | -0.10 |
| +FedCGS | 90.35(+1.84) | 60.92(+12.06) | 64.20(+2.15) | 70.39(+0.30) | 40.02(+3.14) | 55.05(+2.54) | 86.62(+3.27) | +3.61 |
| +FLARE | 92.96(+4.44) | 68.62(+19.76) | 70.68(+8.63) | 73.21(+3.12) | 42.70(+5.82) | 58.16(+5.65) | 88.36(+5.01) | +7.49 |
| FedSOL | 84.51 | 33.39 | 57.47 | 68.76 | 36.59 | 50.20 | 76.28 | - |
| +CCVR | 86.97(+2.47) | 36.92(+3.53) | 58.89(+1.42) | 68.62(-0.14) | 37.38(+0.79) | 52.38(+2.18) | 79.64(+3.36) | +1.95 |
| +FedPFT | 87.57(+3.06) | 40.30(+6.91) | 58.48(+1.01) | 67.81(-0.95) | 36.06(-0.53) | 50.36(+0.17) | 80.52(+4.24) | +1.99 |
| +Fed3R | 88.37(+3.86) | 44.44(+11.05) | 58.93(+1.46) | 68.89(+0.13) | 33.37(-3.22) | 52.76(+2.57) | 81.57(+5.29) | +3.02 |
| +APH | 86.67(+2.16) | 29.10(-4.29) | 58.83(+1.36) | 68.61(-0.15) | 36.72(+0.13) | 51.18(+0.98) | 78.17(+1.89) | +0.30 |
| +FedCOF | 84.98(+0.47) | 33.25(-0.14) | 57.55(+0.08) | 67.95(-0.81) | 35.02(-1.57) | 51.18(+0.98) | 79.35(+3.07) | +0.30 |
| +FedCGS | 88.57(+4.06) | 45.31(+11.92) | 59.77(+2.30) | 68.21(-0.55) | 36.36(-0.23) | 52.13(+1.93) | 82.26(+5.98) | +3.63 |
| +FLARE | 92.29(+7.79) | 63.31(+29.92) | 67.48(+10.01) | 71.39(+2.63) | 40.92(+4.33) | 57.35(+7.16) | 84.82(+8.55) | +10.05 |

Figure 3: Win rate and average accuracy gains of FLARE across different architecture tasks. A, B, C, D denote ResNet-18, VGG-11, MobileNetV2 and Overall results, respectively.
text classification scenarios. Additional results on SST-2, IMDb, and DBpedia-14 with DistilBERT, ELECTRA, and MiniLM architectures have been provided in Appendix C.
Ablation Studies
We investigate the effects of the number of layers and the hyperparameter on FLARE. Figure 4 shows a clear trend: model accuracy improves significantly as the number of predefined layers initially increases. Notably, even incorporating just one additional intermediate layer yields a substantial
Table 3: Accuracy comparison on AG News, Yahoo Answers Topics (Yahoo), and 20Newsgroup (20NG)
| Model | BERT | XLNET | ||||
|---|---|---|---|---|---|---|
| Dataset | AG News | Yahoo | 20NG | AG News | 20NG | Yahoo |
| CCVR | 85.70 | 63.08 | 57.82 | 25.00 | 39.58 | 40.27 |
| FedPFT | 85.08 | 60.40 | 56.45 | 74.84 | 36.18 | 35.50 |
| Fed3R | 89.63 | 68.59 | 62.47 | 84.87 | 45.65 | 50.46 |
| APH | 83.84 | 66.05 | 34.35 | 74.96 | 10.57 | 48.29 |
| FedCOF | 83.33 | 60.54 | 57.21 | 74.88 | 25.80 | 28.47 |
| FedCGS | 89.70 | 67.80 | 61.46 | 84.76 | 41.73 | 50.36 |
| FLARE | 91.36 | 70.79 | 66.46 | 89.74 | 51.37 | 65.21 |
performance boost over the baseline only based on the last layer. When the number of layers reaches five, the marginal benefits diminish, and performance begins to plateau. This suggests that a moderate number of layers is sufficient to exploit the cross-layer complementary information for stable performance improvement. Table 4 evaluates our adaptive against fixed baselines (averaged across three architectures). While the optimal fixed value varies by dataset, yields the best performance on three datasets and remains within of the optimum accuracy. Overall, it achieves the best average

Figure 4: Ablation on the number of predefined layers in FLARE. L.L. indicates the reconstruction only based on the last-layer.
Table 4: Ablation study on fixed values and our proposed .
| Dataset | 0.0 | 0.2 | 0.4 | 0.6 | 0.8 | 1.0 | Ours β |
|---|---|---|---|---|---|---|---|
| BloodMNIST | 91.11 | 91.47 | 91.87 | 92.65 | 92.28 | 92.26 | 92.90 |
| CIFAR-10 | 61.30 | 62.44 | 62.83 | 62.92 | 63.19 | 63.02 | 63.13 |
| CIFAR-100 | 42.35 | 43.31 | 43.08 | 43.05 | 42.61 | 42.08 | 43.50 |
| SVHN | 83.42 | 84.31 | 84.62 | 84.21 | 84.11 | 84.02 | 84.78 |
| Average | 69.55 | 70.38 | 70.60 | 70.71 | 70.55 | 70.35 | 71.08 |
accuracy and outperforms the uncoupled baseline by 1.53%, thereby validating the efficacy of joint cross-layer coupling.
Analysis
Privacy Analysis. Uploading client-side statistics in FLARE may raise privacy concerns. However, FLARE relies only on aggregated class-conditional statistics rather than client specific instance-level information. Consequently, FLARE is naturally compatible with secure aggregation protocols (Bonawitz et al. 2017; Mai, Yan, and Pang 2024), under which the server can only access the aggregated results. This design fundamentally prevents the server from isolating any single client's contribution and recovering private data from individual uploads. Furthermore, we consider a more challenging scenario without secure aggregation. The server merely observes class-conditional statistics. To empirically validate the privacy guarantee, we evaluate FLARE against a feature inversion attack (Mahendran and Vedaldi 2015). We simulate an adversarial setting that is highly favorable to the attacker, where the server is assumed to be the adversary and a client holds very few single-class samples, representing an extreme scenario. As shown in Figure 5, when the server has direct access to the raw features of a single sample, the corresponding data can be reconstructed accurately. In contrast, when the attacker is restricted to the statistics uploaded by FLARE, the reconstructed images collapse to unrecognizable noise, even when the client contains only 2,4, and 8 samples for the same class. The consistently low PSNR values provide quantitative evidence of reconstruction failure.
Conclusion
This paper conducts research on the problem of classifier bias in non-IID FL. We present a key observation that the last-layer representations are not always the most suitable for constructing global decision boundaries; rather, certain intermediate representations exhibit stronger generalization capa- bilities. This finding reveals the inherent performance bottleneck in the prevailing paradigm, which reconstructs classifiers based solely on last-layer representations, and points toward a new direction for classifier reconstruction in FL. To address the non-trivial challenge of precisely locating the optimal intermediate layer under privacy constraints, we propose FLARE, which leverages the cross-layer discriminative information via generalized ridge regression and interlayer interaction regulation, thereby achieving stable gains while bypassing the difficulty of optimal-layer identification. Experimental results demonstrate that FLARE consistently improves performance across multiple benchmark datasets, model architectures, and various heterogeneous settings.

Figure 5: Comparison of inversion results when the server accesses per-sample raw features vs. the class-conditional statistics uploaded by FLARE (2,4, and 8 samples per class).
References
Acar, D. A. E.; Zhao, Y.; Matas, R.; Mattina, M.; Whatmough, P.; and Saligrama, V. 2021. Federated Learning Based on Dynamic Regularization. In International Conference on Learning Representations.
Alain, G.; and Bengio, Y. 2017. Understanding intermediate layers using linear classifier probes.
Beitollahi, M.; Bie, A.; Hemati, S.; Brunswic, L. M.; Li, X.; Chen, X.; and Zhang, G. 2025. Foundation Models Meet Federated Learning: A One-shot Feature-sharing Method with Privacy and Performance Guarantees. Transactions on Machine Learning Research.
Bonawitz, K.; Ivanov, V.; Kreuter, B.; Marcedone, A.; McMahan, H. B.; Patel, S.; Ramage, D.; Segal, A.; and Seth, K. 2017. Practical secure aggregation for privacy-preserving machine learning. In ACM SIGSAC Conference on Computer and Communications Security, 1175–1191.
Chen, J.; Zhu, J.; Zheng, Q.; Li, Z.; and Tian, Z. 2024. Watch your head: Assembling projection heads to save the reliability of federated models. In AAAI Conference on Artificial Intelligence, volume 38, 11329–11337.
Chen, Z.; Wu, Z.; and Ji, Y. 2024. Decoupled federated learning on long-tailed and non-iid data with feature statistics. In International Conference on Multimedia and Expo, 1–6.
Clark, K.; Luong, M.-T.; Le, Q. V.; and Manning, C. D. 2020. Electra: Pre-training text encoders as discriminators rather than generators. arXiv preprint arXiv:2003.10555.
Cohen, U.; Chung, S.; Lee, D. D.; and Sompolinsky, H. 2020. Separability and geometry of object manifolds in deep neural networks. Nature communications, 11(1): 746.
Collins, L.; Hassani, H.; Mokhtari, A.; and Shakkottai, S. 2021. Exploiting shared representations for personalized federated learning. In International conference on machine learning, 2089–2099. PMLR.
Darlow, L. N.; Crowley, E. J.; Antoniou, A.; and Storkey, A. 2018. CINIC-10 Is Not ImageNet or CIFAR-10. (No Title).
Devlin, J.; Chang, M.-W.; Lee, K.; and Toutanova, K. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American chapter of the association for computational linguistics, 4171–4186.
Fallah, A.; Mokhtari, A.; and Ozdaglar, A. 2020. Personalized federated learning with theoretical guarantees: A model-agnostic meta-learning approach. Advances in neural information processing systems, 33: 3557–3568.
Fan, Z.; Yao, J.; Han, B.; Zhang, Y.; Wang, Y.; et al. 2023. Federated learning with bilateral curation for partially class-disjoint data. Advances in Neural Information Processing Systems, 36: 32006–32019.
Fani, E.; Camoriano, R.; Caputo, B.; Ciccone, M.; et al. 2024. Accelerating Heterogeneous Federated Learning with Closed-form Classifiers. In International Conference on Machine Learning, volume 1, 1–20.
Gao, L.; Fu, H.; Li, L.; Chen, Y.; Xu, M.; and Xu, C.-Z. 2022. Feddc: Federated learning with non-iid data via local drift decoupling and correction. In IEEE Conference on Computer Vision and Pattern Recognition, 10112–10121.
Goswami, D.; Magistri, S.; Wang, K.; Twardowski, B.; Bagdanov, A. D.; and van de Weijer, J. 2025. Covariances for Free: Exploiting Mean Distributions for Training-free Federated Learning. In The Annual Conference on Neural Information Processing Systems.
Guan, Z.; Zhou, Y.; and Gu, X. 2025. Capture global feature statistics for one-shot federated learning. In AAAI Conference on Artificial Intelligence, volume 39, 16942–16950.
He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, 770–778.
Hoerl, A. E.; and Kennard, R. W. 1970. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1): 55–67.
Hsu, T.-M. H.; Qi, H.; and Brown, M. 2019. Measuring the effects of non-identical data distribution for federated visual classification. arXiv preprint arXiv:1909.06335.
Huang, W.; Liu, Y.; Ye, M.; Chen, J.; and Du, B. 2024. Federated learning with long-tailed data via representation unification and classifier rectification. IEEE Transactions on Information Forensics and Security, 19: 5738–5750.
Huang, Y.; Chu, L.; Zhou, Z.; Wang, L.; Liu, J.; Pei, J.; and Zhang, Y. 2021. Personalized cross-silo federated learning on non-iid data. In AAAI Conference on Artificial Intelligence, volume 35, 7865–7873.
Krizhevsky, A.; Nair, V.; and Hinton, G. 2009. Cifar-10 and cifar-100 datasets. URL: https://www.cs.toronto.edu/kriz/cifar.html, 6(1): 1.
Lang, K. 1995. Newsweeder: Learning to filter netnews. In International Conference on Machine Learning, 331–339.
Lee, G.; Jeong, M.; Kim, S.; Oh, J.; and Yun, S.-Y. 2024. Fedsol: Stabilized orthogonal learning with proximal restrictions in federated learning. In IEEE Conference on Computer Vision and Pattern Recognition, 12512–12522.
Lee, G.; Jeong, M.; Shin, Y.; Bae, S.; and Yun, S.-Y. 2022. Preservation of the global knowledge by not-true distillation in federated learning. Advances in Neural Information Processing Systems, 35: 38461–38474.
Legate, G.; Bernier, N.; Page-Caccia, L.; Oyallon, E.; and Belilovsky, E. 2023. Guiding the last layer in federated learning with pre-trained models. Advances in Neural Information Processing Systems, 36: 69832–69848.
Li, B.; Schmidt, M. N.; Alström, T. S.; and Stich, S. U. 2023a. On the effectiveness of partial variance reduction in federated learning with heterogeneous data. In IEEE/CVF conference on computer vision and pattern recognition, 3964–3973.
Li, T.; Hu, S.; Beirami, A.; and Smith, V. 2021. Ditto: Fair and robust federated learning through personalization. In International conference on machine learning, 6357–6368.
Li, T.; Sahu, A. K.; Zaheer, M.; Sanjabi, M.; Talwalkar, A.; and Smith, V. 2020. Federated optimization in heterogeneous networks. Machine learning and systems, 2: 429–450.
Li, Z.; Li, Q.; Zhou, Y.; Zhong, W.; Zhang, G.; and Wu, C. 2023b. Edge-cloud collaborative learning with federated and centralized features. In International ACM SIGIR Conference on Research and Development in Information Retrieval, 1949–1953.
Lu, J.; Li, S.; Bao, K.; Wang, P.; Qian, Z.; and Ge, S. 2023. Federated learning with label-masking distillation. In ACM international conference on multimedia, 222–232.
Luo, M.; Chen, F.; Hu, D.; Zhang, Y.; Liang, J.; and Feng, J. 2021. No fear of heterogeneity: Classifier calibration for federated learning with non-iid data. Advances in Neural Information Processing Systems, 34: 5972–5984.
Maas, A.; Daly, R. E.; Pham, P. T.; Huang, D.; Ng, A. Y.; and Potts, C. 2011. Learning word vectors for sentiment analysis. In Association for Computational Linguistics: Human Language Technologies, 142–150.
Mahendran, A.; and Vedaldi, A. 2015. Understanding deep image representations by inverting them. In IEEE Conference on Computer Vision and Pattern Recognition, 5188–5196.
Mai, P.; Yan, R.; and Pang, Y. 2024. Rflpa: A robust federated learning framework against poisoning attacks with secure aggregation. Advances in Neural Information Processing Systems, 37: 104329–104356.
McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; and y Arcas, B. A. 2017. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, 1273–1282. PMLR.
Netzer, Y.; Wang, T.; Coates, A.; Bissacco, A.; Wu, B.; Ng, A. Y.; et al. 2011. Reading digits in natural images with unsupervised feature learning. In Neural Information Processing Systems Workshop, 5, 7. Granada.
Pan, H.; Chen, C.; Zhang, K.; Li, Z.; and Yu, F. 2024. Classifier Retraining with Gaussian-distributed Prototypes for Class-Imbalanced Federated Medical Image Classification. In International Conference on Bioinformatics and Biomedicine, 3625–3628.
Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; and Chen, L.-C. 2018. Mobilenetv2: Inverted residuals and linear bottlenecks. In IEEE Conference on Computer Vision and Pattern Recognition, 4510–4520.
Sanh, V. 2019. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. In Neural Information Processing Systems Workshop.
Shang, X.; Lu, Y.; Huang, G.; and Wang, H. 2022. Federated Learning on Heterogeneous and Long-Tailed Data via Classifier Re-Training with Federated Features. In International Joint Conference on Artificial Intelligence.
Shi, Y.; Liang, J.; Zhang, W.; Xue, C.; Tan, V. Y.; and Bai, S. 2023. Understanding and mitigating dimensional collapse in federated learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(5): 2936–2949.
Simonyan, K.; and Zisserman, A. 2014. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556.
Smith, V.; Chiang, C.-K.; Sanjabi, M.; and Talwalkar, A. S. 2017. Federated multi-task learning. Advances in neural information processing systems, 30.
Socher, R.; Perelygin, A.; Wu, J.; Chuang, J.; Manning, C. D.; Ng, A. Y.; and Potts, C. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Empirical Methods in Natural Language Processing, 1631–1642.
T Dinh, C.; Tran, N.; and Nguyen, J. 2020. Personalized federated learning with moreau envelopes. Advances in neural information processing systems, 33: 21394–21405.
Tang, X.; Yu, H.; Tang, R.; Ren, C.; Li, A.; and Li, X. 2024. Dual calibration-based personalised federated learning. In International Joint Conference on Artificial Intelligence, 4982–4990.
Wang, H.; Zheng, P.; Han, X.; Xu, W.; Li, R.; and Zhang, T. 2024. Fednlr: Federated learning with neuron-wise learning rates. In ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 3069–3080.
Wang, W.; Wei, F.; Dong, L.; Bao, H.; Yang, N.; and Zhou, M. 2020. Minilm: Deep self-attention distillation for task-agnostic compression of pre-trained transformers. Advances in neural information processing systems, 33: 5776–5788.
Wu, Z.; Sun, S.; Wang, Y.; Liu, M.; Pan, Q.; Zhang, J.; Li, Z.; and Liu, Q. 2024. Exploring the distributed knowledge congruence in proxy-data-free federated distillation. Transactions on Intelligent Systems and Technology, 15(2): 1–34.
Yang, J.; Shi, R.; Wei, D.; Liu, Z.; Zhao, L.; Ke, B.; Pfister, H.; and Ni, B. 2023. Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification. Scientific Data, 10(1): 41.
Yang, Z.; Dai, Z.; Yang, Y.; Carbonell, J.; Salakhutdinov, R. R.; and Le, Q. V. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. Advances in neural information processing systems, 32.
Zhang, J.; Chen, C.; Li, B.; Lyu, L.; Wu, S.; Ding, S.; Shen, C.; and Wu, C. 2022. Dense: Data-free one-shot federated learning. Advances in Neural Information Processing Systems, 35: 21414–21428.
Zhang, J.; Hua, Y.; Wang, H.; Song, T.; Xue, Z.; Ma, R.; and Guan, H. 2023. Fedala: Adaptive local aggregation for personalized federated learning. In AAAI Conference on Artificial Intelligence, volume 37, 11237–11244.
Zhang, X.; Zhao, J.; and LeCun, Y. 2015. Character-level convolutional networks for text classification. Advances in neural information processing systems, 28.
Zhou, T.; Zhang, J.; and Tsang, D. H. 2023. Fedfa: Federated learning with feature anchors to align features and classifiers for heterogeneous data. IEEE Transactions on Mobile Computing, 23(6): 6731–6742.
Zhu, Z.; Yao, Y.; Sun, J.; Li, H.; and Liu, Y. 2023. Weak proxies are sufficient and preferable for fairness with missing sensitive attributes. In International Conference on Machine Learning, 43258–43288. PMLR.