arXiv:2610.26953cs.DCOct 2026

Manuscript Offprint

arXiv:2610.26953

From Last-Layer to Cross-Layer: One-Shot Joint Classifier Reconstruction for Federated Learning

Zhenyan Liu, Hua Zhang, Haoran Gao, Huiyu Zhou, Zongliang Shen, Qi Li, Hongliang Zhu, Yongji Wang, Zian Tian

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

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 α=0.1\alpha = 0.1). 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.

References (54)