arXiv:2610.24036cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24036

Client-Aware Security Adaptive Early Exit Vision Transformers for Heterogeneous Federated Learning

Sahar Refaei Ghalibafan, Samira Nazari, Christian Herglotz, Maksim Jenihhin, Mahdi Taheri

© This paper is accepted at the 2027 International Conference on Artificial Intelligence and Applied Intelligent Systems (AIAIS 2027), January 22–24, 2027, Hong Kong.

Client-Aware Security Adaptive Early Exit Vision Transformers for Heterogeneous Federated Learning

Sahar Refaei Ghalibafan 1^{1}, Samira Nazari 2^{2}, Christian Herglotz 1^{1}, Maksim Jenihhin 3^{3}, Mahdi Taheri 3,4^{3,4}

1^{1}Brandenburg University of Technology, Cottbus, Germany

2^{2}University of Zanjan, Zanjan, Iran

3^{3}Tallinn University of Technology, Tallinn, Estonia

4^{4}Humboldt University of Berlin, Berlin, Germany

mahdi.taheri@hu-berlin.de

Abstract—Federated learning (FL) trains a shared model across data-owning clients without centralizing raw data, but client data difficulty and compute budgets can differ. We study local early-exit Vision Transformer (ViT) inference, where an intermediate classifier may return a prediction before the final Transformer stage. The proposed method replaces one global acceptance threshold with a client-specific base threshold from label entropy and shallow-exit confidence, then adjusts each input using predictive entropy, confidence, top-two class margin, and exit depth. Aggregation uses only clients that updated a parameter. Security-aware routing reaches 88.70% CIFAR-10 accuracy with 32.0% depth saving and 73.7% ImageNet-1K top-1 accuracy with 30% saving. On matched six-client non-IID CIFAR-100, full-depth accuracy is 72.28% versus 68.20–71.80% for four heterogeneous-FL baselines; robustness-aware routing reaches 70.01% with 32.55% saving.

Index Terms—Federated learning, Vision Transformer, early exit, adaptive inference, client heterogeneity, uncertainty estimation, adversarial robustness.