ConceptioArchivearXiv CS
arXiv CSopen access

Federated Learning for Feature Generalization with Convex Constraints

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
machine learning, deep learning, neural networks

Federated Learning for Feature Generalization with Convex Constraints

Dongwon Kim 1 Donghee Kim 1 Sung Kuk Shyn 2 Kwangsu Kim 1

arXiv:2606.14416v1 [cs.LG] 12 Jun 2026

Abstract Federated learning (FL) often struggles with generalization due to heterogeneous client data. Local models are prone to overfitting their local data distributions, and even transferable features can be distorted during aggregation. To address these challenges, we propose FedCONST, an approach that adaptively modulates update magnitudes based on the global model’s parameter strength. This prevents over-emphasizing welllearned parameters while reinforcing underdeveloped ones. Specifically, FedCONST employs linear convex constraints to ensure training stability and preserve locally learned generalization capabilities during aggregation. A Gradient Signal to Noise Ratio (GSNR) analysis further validates FedCONST’s effectiveness in enhancing feature transferability and robustness. As a result, FedCONST effectively aligns local and global objectives, mitigating overfitting and promoting stronger generalization across diverse FL environments, achieving state-of-the-art performance.

Figure 1. Illustration of the parameter space in FL. (1) Vanilla FL drives the optimization process away from the generalization area. (2) Optimization with non-convex constraints stabilizes the training process within the generalization area but may cause a loss of generalization during aggregation. (3) Our convex constraints stabilize the training process and align the aggregation with the generalization area, ensuring improved global generalization.

et al., 2022). (2) Even when some clients learn features that could generalize, these can become distorted during aggregation, misaligning them with global objectives and undermining performance(Lee & Yoon, 2024).

1. Introduction

Previous approaches, including regularization(An et al., 2024; Li et al., 2021a; 2020), normalization (Li et al., 2021b; Andreux et al., 2020; Wang et al., 2023) and correction (Acar et al., 2021; Karimireddy et al., 2020; Varno et al., 2022) aim to mitigate these issues by aligning local model updates with the global model. However, by focusing solely on preserving global model information, these methods have neglected to ensure generalization, inevitably resulting in overfitting under limited data conditions.

Federated Learning (FL)(McMahan et al., 2017) has emerged as a promising paradigm that enables multiple clients to collaboratively learn a shared model while keeping their data localized. A pivotal challenge in FL arises from the sparse and heterogeneous data distribution across clients, which leads to significant problems on the performance of a global model. (1) Local models often overfit their own distributions, limiting their capacity to generalize across the entire data distribution(Qu et al., 2022; Mendieta

Recently, some studies have turned their attention to generalization of local learning. FedAlign(Mendieta et al., 2022) and FedSAM(Qu et al., 2022) focused on the generalization of local learning employing generalization term on loss. However, by failing to preserve coherent optimization objectives across clients during aggregation, these methods allow the model’s generalization capabilities to become distorted, ultimately degrading its overall performance.

1

Department of Computer Science and Engineering, University of Sungkyunkwan, Suwon, Korea 2 Kim Jaechul Graduate School of AI, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, Korea. Correspondence to: Dongwon Kim <[email protected]>, Kwangsu Kim <[email protected]>. Proceedings of the 42 nd International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025 by the author(s).

In light of these issues, we ask: What kind of constraint 1

Federated Learning for Feature Generalization with Convex Constraints

2. Related work

enhances feature generalization during local training while remaining unaffected by the aggregation process?

2.1. Federated Learning on Non-IID Data

To answer this question, We propose FedCONST (Federated Learning with Convex Constraints for Global Model Generalization). FedCONST applies client-consistent convex constraints derived from the global model’s weight magnitudes, which serve as proxies for feature importance across the entire data distribution. Concretely, well-learned (stable) features in the global model are constrained to remain close during local updates, while under-learned (unstable) features are emphasized for further training. Because the constraints are convex and shared among all clients, they preserve the intended generalization effect after aggregation as desribed in Figure 1.

The challenge of non-IID data across clients leads to unstable local learning diverge the global model from consistent optima. To mitigate these issues, regularization methods have been prominently adopted. Techniques like FedProx (Li et al., 2020), FedMRUR(An et al., 2024), and MOON(Li et al., 2021a) incorporate explicit regularization mechanisms to align local updates with global objectives more effectively. These approaches ensure that the local models have common features for global objectives. However, common features are often spurious as well, making global model suffer from the overfitting problem. To directly address the challenges posed by heterogeneous gradients, correction methods like FedDyn(Acar et al., 2021), AdaBest(Varno et al., 2022), and SCAFFOLD(Karimireddy et al., 2020) introduce correction terms that aim to align client updates with the global model. These strategies utilize stateful operations to align client updates on FL environment with limited local data. Aside from the risk on alignment of overfitting problem, this stateful operations require extra communications.

Our method is inspired by insights from a Domain Generalization (DG) method(Michalkiewicz et al., 2023), where strong features (often measured by gradient statistics such as Gradient Signal-to-Noise Ratio, GSNR) are crucial to robust performance across diverse domains. Directly tracking GSNR is typically infeasible in FL due to communication and computational bottlenecks. Instead, we show that global weight magnitudes are reliable proxy for feature strength, aligning well with the GSNR perspective. This design choice makes FedCONST simple, communicationefficient, and broadly applicable.

On the other hand, methods such as FedSAM(Qu et al., 2022) and FedAlign(Mendieta et al., 2022) focus on enhancing generalization across clients without imposing restrictions for alignment with global objectives. These techniques prioritize a generalization of local training on limited data but unaligned approach to handle the heterogeneity inherent in FL.

In this paper, we provide the motivation behind our work and a theoretical foundation for our method. We demonstrate higher stability in local training through reduced gradient variance and improved convexity of the global model loss landscape. Consequently, our experiments show that FedCONST significantly outperforms existing FL methods in various models, datasets, and levels of heterogeneity in both cross-device and cross-silo settings, while maintaining high computational and communication efficiency.

2.2. Generalization of Neural Networks To analyze generalization performance during the training process, a study proposed the concept of One Step Generalization Ratio (OSGR)(Liu et al.). OSGR is defined as the ratio between the decrease in loss on test data and on training data:

In summary, our contributions are as follows. • We propose a simple, yet effective approach that retains well-learned features while focusing on under-learned ones. This framework introduces new insights into how generalization can be enhanced in FL.

RZ,n =

ED,D′ ∼Z n [∆LD′ ] , ED∼Z n [∆LD ]

(1)

where ∆LD′ and ∆LD denote the decrease in loss on training data D and test data D′ within a single optimization step.

• Our theoretical and empirical analyses guarantee that our method boosts generalization by imposing more updates with larger probabilities to under-learned features.

To facilitate the prediction of OSGR during training, the authors further propose the following theorem. Proposition 2.1 (From Paper (Liu et al.)). The generalization of gradient updates can be expressed using the following OSGR value:

• We validate the effectiveness of FedCONST with a wide range of dataset and model architectures and show that it significantly outperforms existing FL methods with SOTA performance.

RZ,n = 1 −

1X 1 Wj g 2 , j n j +1 ρ2j

2

n

(2)

Federated Learning for Feature Generalization with Convex Constraints

where n is the number of samples, gj2 is the squared gradient magnitude for feature j and ρ2j is the corresponding noise P variance, and The weight Wj (satisfying j Wj = 1) is a weighting term.

Client Training Pivoting to the FedAvg blueprint, the local training trajectory is captured as: X k k k k wm = wk − η gm, (6) t = w + ∆wm t∈T

Theorem 2.1 indicates that features with higher Gradient Signal-to-Noise Ratios(GSNR), defined by: rj =

gj2 ρ2j

Here, wk typifies the global model during global round k k, gm, t is the gradient corresponding to client m at timestep t of the k th global round, and η denotes the learning rate.

(3)

Aggregation Transitioning to the global aggregation phase, the mechanics unfold as:

yield larger values of OSGR, thereby contributing more significantly to generalization performance. Based on these insights, a Paper (Michalkiewicz et al., 2023) proposed a GSNR-based dropout method for DG tasks, aiming to enhance robustness by preserving parameters with higher GSNR values while promoting updates in those with lower GSNR. However, the distributed nature of FL complicates gradient collection and aggregation across clients.

W k+1 =

m∈M k

= W + ∆w

For promoting generalization in FL, we begin by proposing a conjecture and two principles to design our constraints. Next, we demonstrate that our method adheres to these principles. Finally, we present evidence to support the validity of the conjecture.

(4)

Especially, We are interested in training each weight wl = l l {wc,1 , . . . , wc,s } with respect to the corresponding feature/channel i on input layer l.

3.2.1. C ONSTRAINED O PTIMIZATION FOR C LIENT T RAINING We propose a Constrained Weight Optimization framework that transfers the key insight of Feature Strength—initially introduced in DG methods—to a FL scenario. Our approach is motivated by Conjecture 1, which states that the magnitude of a weight can serve as a proxy for how well a feature is learned.

3.1. Federated Learning We consider the standard FL that trains a model collaboratively from decentralized client devices. For every client, denoted as m in the set M , there are Nm training samples given by pairs (xi , yi ) for i = 1 to Nm . Here, xi represents the image from a set X and yi is the corresponding label from set Y . These pairs are independently and identically distributed, drawn from a distributionSspecific to the device, symbolized as Dm (x, y) when D = m∈M Dm . With this setting, we follow the framework of FedAvg follows: X |Dm | m∈M

where

|D|

(7)

3.2. FedCONST:Federated Learning for Feature Generalization with Convex Constraints

To begin with, we define standard learning process is to train a deep neural network f (x; W ), where f : X → Y is a neural network with L neural layers :

L(W ) =

m∈M

k

In this matrix, ∆wk epitomizes the average model updates accumulated from all clients during the kth global round.

3. Our Approach

W = {w1 , w2 , . . . , wL }

1 X k 1 X k wm = W k + ∆wm M M

Conjecture 1 Large weights indicate well-learned (strong) features. Small weights signify weaker features requiring additional training. By leveraging this conjecture, we can selectively preserve strong features while reinforcing weaker ones, preserving the core principle of DG methods without direct access to each client’s detailed gradients. To operationalize Conjecture 1 within federated learning, we introduce a constrained optimization framework:

Lm (W ) (5)

Lm (W ) = E(xi ,yi )∼Dm [L(xi , yi ; W )]

The global objective, denoted as L, can be broken down into individual empirical loss Lm specific to each client data. Because of the separation of clients’ data, L can not be optimized directly. FedAvg addresses this challenge by alternating between local training on each client’s dataset and a global aggregation step.

min Lm (W ) W

s.t. Glc (wcl − Glc ) = 0,

1⊤ wcl = 0,

(8) ∀c, l

Here, wil represents the weight vector for the i-th output feature in the l-th layer of a client model, and Glc denotes 3

Federated Learning for Feature Generalization with Convex Constraints

Figure 2. Schematic representation of FedCONST: Local learning on clients with weight constrained optimization to preserve robust paramter of the global model. Aggregation phase where convex constraints guide diverse client models toward a common, optimal representation, facilitating better alignment and performance of the global model.

the corresponding weight vector of global model. 1 is an all-one vector.

ture/channel i follow a spherical Gaussian distribution:  ∆Wc,q ∼ N 0, σ 2 I , where q = 1, 2, . . . s (9) 2 P l q ∆Wc,q 2 σ = . (10) n−1 We project the weight changes onto the hyperplane orthogonal to the initial client weight vector Wcl , which is initialized to match the global parameter of Glc , and define the projection as follows:

This design is originated form the insight that constraints should adjust feature learning while maintaining generalization ability after the aggregation phase. This can be summarized as the following condition: Condition 1. (Feature Adjustment) The constraints boost weak features and preserve already strong features for generalization. Condition 2. (Convex Constraints) The constraints should be conserved after aggregation to preserve generalization ability.

P = I − uu⊤ ,

u=

Wcl , ∥Wcl ∥2

(11)

the projected weight update is:

Our design consists of two constraints, the centralization constraint and the orthogonal constraint. The centralization constraint(1⊤ wcl = 0 on Equation (8)) ensures that the total update impact on a feature is equalized, while the or⊤ thogonal constraint(Glc (wcl − Glc ) = 0 on Equation (8)) mitigates redundant updates to already strong signals. Together, these constraints satisfy Condition 1 by promoting generalization during local training and Condition 2 by being linear and convex.

∆w⊥ = P ∆w, Cov(∆w⊥ ) = P · Cov(∆w) · P ⊤ = σ 2 P

(12)

The resulting variance aligns with: l Var(∆Wc,q⊥ ) = σ2

l 2 (Wc,q ) 1− l ∥Wc ∥22

! .

(13)

So these discussion can be summarized as the following proposition: Theorem 3.1 (Feature-Preserving Updates under Centering and Orthogonality). If we impose centering and orthogol l nality constraints, and if Wc,i ≤ Wc,j , then

3.2.2. F EATURE A DJUSTMENT In this section, we justify our constraints prevent redundant training on strong features. We assume that weight changes due to gradient updates on parameters Wcl = l l {Wc,1 , . . . , Wc,s } with respect to the corresponding fea-

l l Var(∆Wc,i ) ≥ Var(∆Wc,j ),

4

Federated Learning for Feature Generalization with Convex Constraints

the strong features. This adjustment translates the constraint such that the local gradient is orthogonal to the initial global model:

which means that updates are inversely correlated with the weight size, i.e., l l l l Pr(|∆Wc,i | ≥ |∆Wc,j |) ≥ Pr(|∆Wc,i | ≤ |∆Wc,j |).

k (wk )⊤ gm, t =0

Therefore, our constraints ensure that updates have an inverse correlation with weight size, promoting stability and avoiding overfitting to features with larger weights.

then it results in X X k k −η (wk )⊤ gm,t = (wk )⊤ (−η gm,t ) t∈T

t∈T

3.2.3. C ONVEX C ONSTRAINTS

During aggregation, Equation (19) aligns the global update as: 1 X k ⊤ k (w ) ∆wm = (wk )⊤ ∆wk = 0 (20) M m∈M

In Algorithm 1, we apply the projection operator Pwk to each update direction to ensure that local updates remain orthogonal to the initial global parameter p = wk /∥wk ∥. Pwk (w) = (I − pp⊤ )w,

(14)

3.3. Weight Size as a Feature Strength In this section, we discuss about validity of conjecture 1. Fortunately, the paper (Liu et al.) also provided a detailed analysis of the relationship between GSNR and weight size, indicating a positive correlation. They considered a fully connected network with parameters

t∈T

Consequently, the total change of a client model during local training becomes zero, ensuring unbiased weight on client models.

θ = {W 1 , . . . , W lmax }

By Equation (15), the global update adhering to the Centralization Constraint is represented as: 1 X ⊤ k 1 ∆wm = 1⊤ ∆wk = 0 M

(21)

where I is the identity matrix, and pp⊤ is the outer product of p with itself. This projection operator is used in our algorithm to enforce the orthogonality constraint by projecting updates onto the tangent space of the global model direction.

then it results in X X k k k −η 1⊤ gm,t = 1⊤ (−η gm,t ) = 1⊤ ∆wm = 0 (15) t∈T

(19)

k = (wk )⊤ ∆wm =0

Each client optimizes its local model independently on private data, and these models are then aggregated to form a global model without alignment. To address this misalignment, we refine our constraints to be convex, ensuring they satisfy the conditions for generalization both during local training and after aggregation. Although these constraints are applied per weight vector for channel/feature c of layer l, we omit c and l in the notation for brevity and to focus on the convex characteristic. Centralization Constraint(1⊤ wcl = 0 on Equation (8)) The Centralization Constraint is specifically applied to the gradient of each client’s local model to stabilize the local training process by maintaining the mean to be zero. If each gradient of every client is centralized as: k =0 1⊤ gm,t

(18)

(22)

where W l , bl are the weight matrix and bias of the first layer, respectively, and so on. The activations of the l-th layer are denoted by

(16)

m∈M

al = {als (θl−1 )}

In Algorithm 1, to apply the centralization constraint 1⊤ wil = 0 in practice, we define the following centering function: 1 C(w) = w − 1⊤ w (17) n where n denotes the number of parameters in w. This function is directly used in our algorithm to enforce the centralization constraint during local updates.

(23)

where s is the index for nodes/channels, and θl−1 = {W 1 , . . . , W l−1 }

(24)

is the collection of parameters in the layers before l. The forward pass on data sample i, where {als (θl−1 )} is multiplied by the weight matrix W l , is defined as: X l oli,c = Wc,s ali,s (θl−1 ) (25)

Orthogonal Constraint(Glc (wcl − Glc ) = 0 on Equation (8)) The orthogonal constraint align the parameters of local and global models onto the same hyperplane orthogonal to the initial global model at each round, mitigating the grow in

s

where ol = {oli,c } is the output for the i-th data sample on the l-th layer, and c is the index for nodes/channels. We use 5

Federated Learning for Feature Generalization with Convex Constraints

g l to denote the average gradient of weights of the l-th layer W l , i.e., n 1 X ∂Li gl = (26) n i=1 ∂W (l)

Algorithm 1 Training procedure of FedCONST Batch size B, communication rounds K, number of clients M , local steps T , dataset D = S m∈[M ] Dm 2: Output: Global model parameters wK 3: Server executes: 4: Initialize w0 with He initialization 5: for k = 0, . . . , K − 1 do 6: for m = 1, . . . , M in parallel do 7: Send wk to client m k+1 8: wm ← F ED CONSTC LIENT(m, wk ) 9: end for P m| k+1 10: wk+1 ← m∈[M ] |D |D| wm 11: end for 12: return wK 13: FedCONSTClient(m, wk ): k 14: Assign global model to the local model wm ← wk 15: for each local epoch t = 1, . . . , T do 16: for each batch (xm,1:B , ym,1:B ) ∈ Dm do k k 17: Center gradient: gm,t ← C(gm,t ) k k ) ← Pwk (gm,t 18: Project gradient: gm,t k k k 19: Apply update: wm ← wm − ηgm,t 20: end for 21: end for k+1 to server 22: return wm 1: Input:

where Li is the loss of the i-th sample. In this setting, the authors showed the following correlation between gradient change and gradient norm size: !2 n l X X ∂o 1 λ ∂L i i,c l l Ws,c ∆gs,c =− 2 n n i=1 ∂oli,c ∂θj (27) l−1 θj ∈θ

+ other terms where λ is the learning rate, assumed to be small enough. l This expression implies that if the gradient change ∆gs,c l and the corresponding weight Ws,c have different signs, they contribute to a more stable state by constructing positive feedback during training, which increases the size of both values. Conversely, if they have the same signs, a negative feedback loop during training decreases the size of both values until one of them changes its sign, resulting in a stable state.

Therefore, considering only stable states, the size of the l weight Ws,c is directly correlated with the gradient change g2

l ∆gs,c , positively affecting the GSNR value of rj = ρj2 on j

l Equation (3). Here, we decided to use the size of Ws,c of the l global model instead of collecting gs,c statistics to calculate GSNR values for the entire dataset. As a result, rather than utilizing GSNR as an indicator of feature strength, which requires collecting gradients from each client, we adopt the weight magnitude of the global model as a proxy for feature strength.

spanned both cross-silo and cross-device settings. For the cross-silo setup, we involved a total of 10 clients, while in the cross-device setting, 10% of clients were randomly selected from a pool of 50 or 100 participants. The data distribution among clients was governed by a Dirichlet distribution, with the α value determining the degree of heterogeneity; a lower α value corresponds to a more heterogeneous distribution. For an extremely heterogeneous environment, we used a Dirichlet α of 0.2 with 10 local training epochs, while a more typical environment utilized an alpha of 0.5 with 5 local training epochs. Our tests were conducted on both the LeNet-5 and ResNet-18 architectures.More detailed settings of experiments are in the supplementary materials.

3.4. Training Process As shown in Algorithm 1, FedCONST merely changes the local learning process to constrained optimization on convex linear constraints for Global Model Generalization. This approach has two main advantages: (1) Using convex constraints based on common global model, we align local training across client models without additional communication cost in stateless manner. (2) By employing the weight size to estimate the generalizability of the features, we ensure the generalizability of the FL process. Moreover, this insight is well motivated by GSNR based analysis.

4.2. Performance Comparison As detailed in Table 1, the LeNet-5 model consistently outperformed the existing algorithms across all settings. As shown in Table 1, our approach surpassed the performance of existing algorithms in all settings on CIFAR-10 and demonstrated commendable performance on CIFAR100. Table 1 further reveals that in a cross-device setting, our algorithm consistently exceeded the performance of the other algorithms. Moreover, performance enhancement was observed when constraints were applied to algorithms representative of either alignment or local learning generalization

4. Experiments 4.1. Experimental Setup We conducted experiments using the CIFAR-10 and CIFAR100 datasets (Krizhevsky et al., 2009). Our experiments 6

Federated Learning for Feature Generalization with Convex Constraints Table 1. Top-1 test accuracy (%) comparison of LeNet-5 and ResNet-18 models under Cross-Device and Cross-Silo settings. The numbers inside the parentheses represent the accuracy differences when Constraint was applied to the training of client models.

M ODEL

L E N ET-5

R ES N ET-18

A LGORITHM F EDAVG F EDAVG + CONST F ED P ROX F ED P ROX + CONST MOON MOON + CONST SCAFFOLD SCAFFOLD + CONST F ED DYN F ED DYN + CONST F EDAVG F EDAVG + CONST F ED P ROX F ED P ROX + CONST MOON MOON + CONST SCAFFOLD SCAFFOLD + CONST F ED DYN F ED DYN + CONST F ED SAM F ED SAM + CONST

C ROSS -D EVICE CIFAR-10 α = 0.5 46.12 54.28 (+8.16) 45.58 53.09 (+7.51) 43.89 48.66 (+4.77) 45.66 53.82 (+8.16) 44.93 54.07 (+9.14) 54.07 66.51 (+12.44) 56.79 63.51 (+6.72) 57.84 66.94 (+9.10) 56.47 63.49 (+7.02) 52.64 64.29 (+11.65) 62.52 63.45 (+0.93)

methods. This indicates that our method fills the gaps and enhances areas where existing methods fall short, leading to a more robust and efficient FL process.

CIFAR-10 α = 0.2 46.42 54.79 (+8.37) 45.27 56.18 (+10.91) 46.66 52.88 (+6.22) 45.67 56.62 (+10.95) 48.05 55.67 (+7.62) 57.04 68.41 (+11.37) 53.92 68.07 (+14.15) 51.51 62.52 (+11.01) 59.30 68.63 (+9.33) 55.09 66.00 (+10.91) 61.35 68.87 (+7.52)

C ROSS -S ILO CIFAR-10 α = 0.5 53.12 59.66 (+6.54) 55.15 60.70 (+5.55) 55.79 59.86 (+4.07) 52.74 63.03 (+10.29) 51.05 59.76 (+8.71) 64.25 72.44 (+8.19) 64.51 71.96 (+7.45) 68.45 71.84 (+3.39) 64.50 75.09 (+10.59) 65.50 71.76 (+6.26) 69.45 72.64 (+3.19)

CIFAR-100 α = 0.5 17.46 26.86 (+9.40) 18.42 26.78 (+8.36) 18.72 26.76 (+8.04) 17.66 26.74 (+9.08) 16.79 27.14 (+10.35) 33.51 36.82 (+3.31) 34.11 36.56 (+2.45) 35.19 36.80 (+1.61) 37.18 38.93 (+1.75) 35.07 37.22 (+2.15) 38.43 39.61 (+1.18)

metrics. Previous research primarily utilized the maximum eigenvalue λmax of the model’s Hessian matrix to measure sharpness, which correlates with generalization performance (Mendieta et al., 2022). However, our analysis suggests that observing the ratio of the absolute maximum eigenvalue to the minimum eigenvalue |λmax /λmin | — a measure of convexity(Rangwani et al., 2022) — more effectively captures the essence of model alignment.

4.3. Experiment Analysis 4.3.1. S TABILITY ON L OCAL T RAINING Figure 3a demonstrates that our method reduces gradient variance compared to FedAvg, thereby stabilizing local updates in environments with sparse data. Moreover, Figure 3b illustrates that our method enhances drift diversity, P 2 |Dm | k ∆wm ∥2 |D| ∥ defined as m∈M∥∆w (Li et al., 2023) ensuring k+1 ∥2 2 that each client learns effectively and can fully reflect its own unique data characteristics even with constraints. The increase in drift diversity compared to FedAvg indicates that our method results in larger client updates after local training, enabling effective model updates despite sparse data or parameter constraints. Overall, these results demonstrate that our approach effectively mitigates instability in local training, ensuring sufficient updates within the imposed constraints.

Table 2. Loss Landscape Convexness. The metric Cconvex represents the |λmax /λmin | values of ResNet-18 model in CrossDevice settings. The term Htrace denotes Hessian trace value.

A LGORITHM F EDAVG F ED P ROX MOON SCAFFOLD F ED DYN F ED CONST

W / O C ONSTRAINTS Cconvex Htrace 2.466 -4951 2.739 -3873 3.015 -3416 2.914 -3245 2.16 -4590 31.7 10102

C ONSTRAINTS Cconvex Htrace 31.7 10102 23.09 12294 16.09 9640 21.81 9145 12.82 9121 -

Table 2 shows how the application of constraints secures proper alignment, thereby sculpting a more convex and advantageous loss landscape for the global model. Furthermore, a negative trace value of the Hessian suggests

4.3.2. M ODEL A LIGNMENT ACROSS C LIENT In our analysis of loss landscape, we shifted our analytical focus from sharpness-based metrics to convexity-based 7

Federated Learning for Feature Generalization with Convex Constraints

(a) Gradient Variance

(b) Drift Diversity

Figure 3. Gradient variance and Drift diversity. Our method reduces the gradient variance, thereby stabilizing the local training of client models. Simultaneously, it enhances drift diversity, ensuring that each client learns effectively even with constraints.

4.3.3. G ENERALIZATION ON F EATURES OF G LOBAL M ODEL

convergence to a saddle point—a non-ideal scenario. Hence, Table 2 also demonstrates that the implementation of constraints contributes to a more convex loss landscape, steering the model away from saddle points towards optimal convergence. Additionally, we introduce client consistency as another key metric, which quantifies the consistency of local models across clients. This consistency is defined as P |Dm | k 2 ∆wm , where lower values indicate that m∈M |D| 2 client updates remain proportionally aligned, preventing excessive deviations in heterogeneous data environments.

Figure 5. Weight sizes and GSNR values. Weight magnitudes and GSNR values sampled from the top 10% and bottom 10% of gradient update magnitudes across clients. Both metrics show correlation with gradient updates, suggesting their relevance to GSNR in the federated learning setting.

Our conjecture is that if already generalizable global feature is changed during local training of client, it harms generalization ability of FL process. To prove our hypothesis, we sampled top-10% and bottom 10% of gradient update size on changes. and we observe the GSNR value and weights size on corresponding feature to validate our hypothesis. And finally, we compared the GSNR value of vanilla FedAvg and our method indicating improved generalization performance.

Figure 4. Consistency. Our method enhances the consistency among clients, by ensuring a more aligned learning experience across all clients.

The experimental results in Figure 4 confirm that our method significantly enhances client consistency compared to FedAvg, ensuring a more aligned learning experience across all clients. This increased consistency contributes to a structured and predictable optimization trajectory, reinforcing the benefits of convexity-based alignment.

First, Weight sizes corresponding to top 10% of Gradient update sizes have larger value than bottom 10%. Observation on Figure 5 indicates gradient update on client is associated with global generalizable feature, which harms generalization ability of global model. On GSNR values, top 10% also has larger values showing more direct impact 8

Federated Learning for Feature Generalization with Convex Constraints

Learning (FL) is a promising technology to address this limitation, yet further improvements are needed for real-world deployment. This paper proposes a method to enhance FL performance by introducing a novel generalization perspective that mitigates its inherent limitations.

References Acar, D. A. E., Zhao, Y., Navarro, R. M., Mattina, M., Whatmough, P. N., and Saligrama, V. Federated learning based on dynamic regularization. arXiv preprint arXiv:2111.04263, 2021. Figure 6. The sum of GSNR values on a Client. The sum of GSNR values on the initial local epoch of the proposed method is higher, indicating that features aligned with the global model are properly enhanced.

An, X., Shen, L., Hu, H., and Luo, Y. Federated learning with manifold regularization and normalized update reaggregation. Advances in Neural Information Processing Systems, 36, 2024.

of client training on generalization of global model. Andreux, M., du Terrail, J. O., Beguier, C., and Tramel, E. W. Siloed federated learning for multi-centric histopathology datasets. In Domain Adaptation and Representation Transfer, and Distributed and Collaborative Learning: Second MICCAI Workshop, DART 2020, and First MICCAI Workshop, DCL 2020, Held in Conjunction with MICCAI 2020, Lima, Peru, October 4–8, 2020, Proceedings 2, pp. 129–139. Springer, 2020.

After we impose our constraints that conserve common generalizable features, Figure 6 shows increase of GSNR values overall weight with constraints proving our method work as our intention.

5. Conclusion In this research, we have introduced FedCONST, a novel FL algorithm that leverages convex constraints during optimization of client model for increasing generalization. This algorithm fosters stable local training on convex constraints, leading to a more generalizable global model through learning common features based on corresponding weight size of the global model. Our comprehensive experiments have shown that FedCONST not only stabilizes the learning process at the client level but also ensures consistent alignment to generalizable features. In various experimental settings, especially in the presence of highly heterogeneous data, FedCONST consistently outperformed existing algorithms.

Karimireddy, S. P., Kale, S., Mohri, M., Reddi, S., Stich, S., and Suresh, A. T. Scaffold: Stochastic controlled averaging for federated learning. In International conference on machine learning, pp. 5132–5143. PMLR, 2020. Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009. Lee, T. and Yoon, S. W. Rethinking the flat minima searching in federated learning. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 27037–27071. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/ v235/lee24aa.html.

Acknowledgements This work was supported by Korea Internet & Security Agency(KISA) grant funded by the Korea government(PIPC) (No.RS-2023-00231200, Development of personal video information privacy protection technology capable of AI learning in an autonomous driving environment)

Li, B., Schmidt, M. N., Alstrøm, T. S., and Stich, S. U. On the effectiveness of partial variance reduction in federated learning with heterogeneous data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3964–3973, 2023.

Impact Statement Many studies on deep neural networks are conducted under the centralized learning paradigm with well-preprocessed datasets. However, real-world industrial data is often distributed, imbalanced, and noisy, making it challenging to apply academic research directly to practical settings despite the enormous potential of distributed data. Federated

Li, Q., He, B., and Song, D. Model-contrastive federated learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10713– 10722, 2021a. 9

Federated Learning for Feature Generalization with Convex Constraints

Li, T., Sahu, A. K., Zaheer, M., Sanjabi, M., Talwalkar, A., and Smith, V. Federated optimization in heterogeneous networks. Proceedings of Machine learning and systems, 2:429–450, 2020. Li, X., Jiang, M., Zhang, X., Kamp, M., and Dou, Q. Fedbn: Federated learning on non-iid features via local batch normalization. arXiv preprint arXiv:2102.07623, 2021b. Liu, J., Bai, Y., Jiang, G., Chen, T., and Wang, H. Understanding why neural networks generalize well through gsnr of parameters. In International Conference on Learning Representations. McMahan, B., Moore, E., Ramage, D., Hampson, S., and y Arcas, B. A. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273–1282. PMLR, 2017. Mendieta, M., Yang, T., Wang, P., Lee, M., Ding, Z., and Chen, C. Local learning matters: Rethinking data heterogeneity in federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8397–8406, 2022. Michalkiewicz, M., Faraki, M., Yu, X., Chandraker, M., and Baktashmotlagh, M. Domain generalization guided by gradient signal to noise ratio of parameters. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 6177–6188, 2023. Qu, Z., Li, X., Duan, R., Liu, Y., Tang, B., and Lu, Z. Generalized federated learning via sharpness aware minimization. In International conference on machine learning, pp. 18250–18280. PMLR, 2022. Rangwani, H., Aithal, S. K., Mishra, M., et al. Escaping saddle points for effective generalization on classimbalanced data. Advances in Neural Information Processing Systems, 35:22791–22805, 2022. Varno, F., Saghayi, M., Rafiee Sevyeri, L., Gupta, S., Matwin, S., and Havaei, M. Adabest: Minimizing client drift in federated learning via adaptive bias estimation. In European Conference on Computer Vision, pp. 710–726. Springer, 2022. Wang, Y., Shi, Q., and Chang, T.-H. Why batch normalization damage federated learning on non-iid data? IEEE Transactions on Neural Networks and Learning Systems, 2023.

10

Federated Learning for Feature Generalization with Convex Constraints

A. Generalization Area and Implementation on Constraints Figure 1 conceptually illustrates how aligning the aggregation step with the generalization area improves global generalization in FL. This motivates our use of convex constraints that stabilize both local training and aggregation. For our method to be effective, the constraint region must be contained within the generalization area. We argue that this condition is satisfied in practice, as the generalization area is sufficiently large under typical training regimes. We provide an intuitive argument to suggest that the generalization area can be sufficiently large, based on the behavior of a l-th layer representation of a neural network:   (l−1) ⊤ e(l) ) Wc(l) , (28) c = ϕ (e (l)

where ϕ is an activation function (e.g., tanh), and ec denotes a representation within the generalization regime. We consider whether the perturbed form   ⊤ ϕ e(l−1) (Wc(l) + ∆Wc(l) ) ≈ e(l) c

(29)

still holds under certain conditions. (l)

(l)

Case 1: Large ∥Wc ∥ (Saturation Regime). When ∥Wc ∥ is large, the activation function saturates, and the output (l) becomes relatively insensitive to ∆Wc . Thus, a wide range of perturbations can yield generalizable representations. (l)

(l)

Case 2: Small ∥Wc ∥ (Linear Regime).

When Wc is small, the activation function behaves almost linearly: ⊤

(l−1) e(l) Wc(l) . c ≈e

(30)

We apply Chebyshev’s inequality: P



 Var(e(l) ) c (l) . e(l) − e ≥ ε ≤ c c,goal ε2

(31)

Thus, when the variance is small, the representation stays close to the generalization target with high probability. (l)

We note that gradient space alignment—especially orthogonal to Wc —is helpful under our convexity assumptions, and that using OSGR-based preconditioning encourages high-GSNR updates that remain within the generalization zone. Furthermore, generalization often means consistent loss across training and test—even if predictions are wrong—so the region itself is inherently wide.

B. Implementation Details B.1. Training settings Hyperparameters.

In our experiments, we configured various algorithms with specific hyperparameters:

• MOON: µ = 0.01, Temperature = 1 • FedProx: µ = 0.01 • FedDyn: α = 1 • FedSAM: ρ = 1.0 Model Configuration. We employed both the ResNet-18 and LenNet-5 architectures for our experiments. When applying our constraints, we removed the batch normalization layer to leverage the weight normalization (WN) effect. Additionally, biases were omitted from the models in our experiments, as they had only a minor effect on the overall model performance. 11

Federated Learning for Feature Generalization with Convex Constraints

Other Experimental Settings. For the training parameters, we set the local learning momentum to 0.9, applied a weight decay of 1e-5, and used a batch size of 50. The learning rate was set to 0.01 for local training and 1.0 for global updates. All experimental evaluations were executed utilizing two Nvidia 3090 GPUs. B.2. Data Partitioning Datasets.

Our experiments were conducted using two well-known datasets: CIFAR-10 and CIFAR-100.

Data Distribution Across Clients. To simulate varying degrees of data heterogeneity across clients, we used Dirichlet distributions with different Alpha values: 0.5, 0.2, and 0.05. The distribution of data across clients, under these settings, is illustrated in Figure 9. Local Test Data. For the evaluation of test loss on client data, we partitioned the data such that 10% of each client’s data was reserved as local test data. This approach ensures that the test loss reflects the performance of the model under the specific data distribution of each client.

C. Additional Experiments C.1. Ablation Study Impact of Constraints on Learning. To understand the influence of each constraint on the learning process, we conducted an ablation study, examining accuracy graph and Hessian values. Accuracy Improvements. As indicated in Table 3 (Accuracy), applying centralization and sphere constraints independently resulted in performance enhancements. The highest improvement was observed when both constraints were applied together. Orthogonal

Center

o o

o o

Performance (%) 53.12 56.77 51.99 59.66

Cconvex 34.83 65.90 32.27 84.58

Table 3. Ablation study on the FedAvg algorithm assessing the impact of Sphere and Center optimization and their combined application on performance. The experiments were conducted using the LeNet-5 model on the CIFAR-10 dataset, with a Dirichlet distribution of 0.5. Performance is measured in terms of Top-1 accuracy (%) and Cconvex is defined as |λmax /λmin |.

Learning Curves and Overfitting. Observations from Figure 7 (Learning Curves) reveal that the application of sphere constraint helps prevent overfitting, contributing to more generalized local learning. Hessian Value Analysis. Upon examining the Hessian values ( Table 3), we found that orthogonalization constraints tend to make the model more convex, implying better alignment among client models. centralization constraint, on the other hand, increases the speed of training of the model. Our analysis indicates that both othogonalization and centralization significantly impact performance. Specifically, orthogonalization constraint align client models effectively, while centralization constraint boosts local learning, enhancing local learning capabilities. C.2. Hessian Values and Loss Landscape Analysis of Hessian Values. Our observations, as detailed in Table 4, indicate an increase in the maximum eigenvalue despite the application of constraints. This challenges the conventional interpretation correlating the decrease in maximum eigenvalue with improved generalization, particularly in FL contexts. However, we noted a consistent increase in convexity with the application of constraints, suggesting that convexity might be a more reliable indicator in FL environments. 12

Federated Learning for Feature Generalization with Convex Constraints

Figure 7. This figure represents the Top-1 accuracy per global epoch for the FedAvg algorithm under different constraint applications using the LeNet-5 model on CIFAR-10.

Algorithm FedAvg FedProx MOON SCAFFOLD FedDyn

w/o constraints λ1 /λ5 λ1 1.217 10.53 1.268 10.45 1.252 9.51 1.278 10.05 1.326 10.71

constraints λ1 /λ5 λ1 1.751 252.8 1.698 265.2 1.718 258.5 1.594 177.6 2.167 280.8

Table 4. In this analysis, we utilized the ratios |λ1 /λ5 | and the maximum eigenvalue λ1 of the Hessian matrix to assess the sharpness of the loss landscape. A lower value in these metrics typically indicates a flatter loss landscape, which is commonly associated with better generalization performance. Here, λ1 represents the largest eigenvalue, while λ5 denotes the fifth largest eigenvalue of the Hessian matrix. The table above demonstrates how the application of constraints leads to a sharper loss landscape, as indicated by these metrics.

Convexity and Model Alignment. The relationship between constraints and a more convex loss landscape is evident in Figure 10 (Loss Landscape). This convexity, indicative of effective model alignment, is further supported by Figure 11 (Eigen Spectral Density), which implies that constraints align the model towards more convex points. These findings demonstrate the importance of considering convexity in the analysis of Hessian matrices in a FL setting. Unlike traditional settings where the focus is often on the maximum eigenvalue as a generalization indicator, our results highlight the significance of convexity in understanding model alignment and performance in FL. Therefore, observing convexity in the loss landscape and Hessian matrices could offer a more effective approach for analyzing and enhancing model performance in federated environments. C.3. More analysis on Learning Dynamics Cosine Similarity and Local Learning. The Cosine Similarity ( Figure 15) analysis reveals that the application of constraints does not hinder the variability of cosine similarity. In fact, we observe an increased change on cosine similarity, suggesting that local learning is not restricted but appropriately regulated by the constraints. This indicates a balanced approach, where constraints guide the learning process without stifling the model’s ability of local learning. GSNR and Model Generalization The GSNR analysis highlights the impact of constraints on model alignment and generalization. Figure 14a presents the sum of GSNR values on a client at the initial local training step of each round. A higher GSNR at this stage suggests that FedCONST effectively leverages alignment with the global model to extract more generalizable features than FedAvg. Conversely, Figure 14b shows the sum of GSNR values at the final local training step of each round, where client models tend to drift from the global model. The observed decrease in GSNR values in FedCONST indicates that the constraints mitigate overfitting to client-specific data. This suggests that FedCONST maintains a more stable generalization process by preventing excessive reliance on localized information while preserving the overall adaptability of the model. 13

Federated Learning for Feature Generalization with Convex Constraints

Conjecture on Weight Magnitude and Generalization In Conjecture 1, we proposed that the magnitude of model parameters may reflect feature generality, and that preserving high magnitude weights could promote better generalization. To support this, we present a simple empirical analysis using t-SNE visualizations of global feature representations. Specifically, we compare two variants of the global model: one where the bottom 20% of weights (by magnitude) are zeroed out, and another where the top 20% are removed. We observe that excluding the bottom 20% of weights results in more clearly clustered and semantically aligned feature representations. In contrast, removing the top 20% of weights yields less structured outputs. This supports our conjecture that small-magnitude weights contribute more noise than signal, and that weight magnitude encodes meaningful signals about feature generality.

(a) Excluding bottom 20% of weights

(b) Excluding top 20% of weights

Figure 8. t-SNE visualization of feature representations from the global model. Removing small-magnitude weights (left) results in more clearly clustered and semantically aligned features, while removing large-magnitude weights (right) does not significantly improve semantic structure. This supports our conjecture that weight magnitude correlates with feature generality.

14

Federated Learning for Feature Generalization with Convex Constraints

(a) 10 clients, CIFAR-100, α = 0.2

(b) 10 clients, CIFAR-100, α = 0.05

(c) 10 clients, CIFAR-10, α = 0.5

(d) 10 clients, CIFAR-10, α = 0.2

(e) 50 clients, CIFAR-10, α = 0.5

(f) 100 clients, CIFAR-10, α = 0.5

Figure 9. Example of data distribution according to (Client Number, Dataset, Dirichlet alpha). Each subfigure represents the data distribution under different client settings and Dirichlet α values.

15

Federated Learning for Feature Generalization with Convex Constraints

(a) FedAvg

(b) FedAvg with constraints

(c) FedProx

(d) FedProx with constraints

(e) SCAFFOLD

(f) SCAFFOLD with constraints

(g) FedDyn

(h) FedDyn with constraints

(i) MOON

(j) MOON with constraints

Figure 10. This figure presents the experimental results of the loss landscape for the ResNet-18 model in a cross-device setting. Noise was introduced to the weight ∥W ∥ in the form of a random vector ϵ, scaled such that the ratio ∥ϵ∥/∥W ∥ ranged from 0 to 1. The results demonstrate that applying constraints leads to a more convex loss landscape, indicating an enhanced generalization capability under these conditions.

(a) FedAvg

(b) FedAvg with constraints

(c) FedProx

(d) FedProx with constraints

(e) SCAFFOLD

(f) SCAFFOLD with constraints

(g) FedDyn

(h) FedDyn with constraints

(i) MOON

(j) MOON with constraints

Figure 11. This figure illustrates the experimental results of the Eigen Spectral Density of the Hessian Matrix for the ResNet-18 model in a cross-device setting. Prior to the application of constraints, the density of negative eigenvalues is more significant, indicating the presence of saddle points in the loss landscape.

16

Federated Learning for Feature Generalization with Convex Constraints

(a) CIFAR-10, α = 0.2, local epochs = 10, LeNet-5

(b) CIFAR-10, α = 0.5, local epochs = 5, LeNet-5

(c) CIFAR-10, α = 0.2, local epochs = 10, ResNet-18

(d) CIFAR-10, α = 0.5, local epochs = 5, ResNet-18

(e) CIFAR-100, α = 0.5, local epochs = 5, LeNet-5

(f) CIFAR-100, α = 0.5, local epochs = 5, ResNet-18

(g) CIFAR-100, α = 0.05, local epochs = 5, ResNet-18 Figure 12. Top-1 accuracy per global epoch for various algorithms conducted under cross-silo settings, with specific conditions (Dataset, Dirichlet alpha, local epoch, Model). This comparison highlights the performance variations across algorithms and the impact of different environments.

17

Federated Learning for Feature Generalization with Convex Constraints

(a) LeNet-5 with 100 clients

(b) ResNet-18 with 50 clients

Figure 13. Top-1 accuracy per global epoch for various algorithms on CIFAR-10 under a cross-device setting, with a Dirichlet alpha of 0.5 and 10% client participation per round. Figure 13a shows results for LeNet-5 with 100 clients, and Figure 13b for ResNet-18 with 50 clients.

(a) GSNR value on Initial Local Epoch

(b) GSNR value on Final Local Epoch

Figure 14. Figure 14a shows the sum of GSNR values on a client at initial local training step of each round. When client model is aligned with global model, FedCONST harvests more generalizable features than FedAvg. Figure 14b shows the sum of GSNR values on a client at final local training step of each round. When client model is drifted from global model, there are less generalizable common features. Decrease in GSNR values on FedCONST indicates less overfitting to client data.

18

Federated Learning for Feature Generalization with Convex Constraints

(a) CIFAR-10, α = 0.5, local epochs = 5, LeNet-5

(b) CIFAR-10, α = 0.5, local epochs = 5, LeNet-5

(c) CIFAR-10, α = 0.2, local epochs = 10, LeNet-5

(d) CIFAR-10, α = 0.2, local epochs = 10, LeNet-5

(e) CIFAR-100, α = 0.05, local epochs = 5, ResNet-18

(f) CIFAR-100, α = 0.05, local epochs = 5, ResNet-18

Figure 15. This figure displays the L2 norm of a client model and the cosine similarity between a client and the global model at each local epoch, for various algorithms implemented under cross-silo settings. The experiments were conducted with specific conditions (Dataset, Dirichlet alpha, local epoch, Model). The application of constraints consistently maintains the weight’s L2 norm throughout training. In the case of ResNet-18, which includes batch normalization layers, the weight norm is naturally consistent. Notably, a large change in cosine similarity during training with constraints suggests that local learning is dynamically evolving and not overly restricted.

19

Record · ID 271857 · SHA-256 64cb50b2a4f20a0b
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.