Introduction
Graph neural networks (GNNs) [23 , 16 , 36 ] exhibit state-of-the-art predictive performance across high-stakes graph machine learning (ML) tasks including credit scoring [42 ] , recidivism prediction [19 , 1 ] and recommender systems [39 ] . This stems from the ability of GNNs to effectively leverage graph topology and node features to learn discriminative node representations via recursive feature aggregation across local neighborhoods - a mechanism known as message passing [14 ] . However, the increasing deployment of GNNs in such high-stakes tasks has raised concerns that their predictions disproportionately harm certain demographic subgroups [34 , 9 ] .
Such concerns are not unfounded: real-world graphs often exhibit homophily [17 ] with respect to sensitive node features (e.g., race, gender, age), where nodes sharing such an attribute preferentially connect to each other. As a result, node representations learned via message passing can become highly correlated with sensitive features, and studies have shown that message passing amplifies such topology bias, yielding disparate outcomes in downstream node classification [24 , 9 ] , link prediction [28 , 26 ] and node regression [33 ] tasks.
While recent efforts have sought to mitigate such bias through fairness-aware GNNs (see surveys [11 , 8 ] references therein), existing approaches suffer from key limitations. Pre-processing approaches rewire the link structure alone [35 , 29 ] or jointly with node features [10 ] , independently of the downstream task. This requires solving an expensive combinatorial edge-selection problem. Moreover, since edges encode both task-relevant information and sensitive attribute correlation, correcting the latter perturbs the former without explicit control of the trade-off. In-processing approaches intervene during training. Some target fairness of the node representations [5 , 7 , 1 ] , but do not specify how it transfers to a downstream task. Others train the model weights with an additional fairness-promoting term via techniques such as adversarial training [9 , 37 ] , invariant learning [44 ] or disentanglement [45 , 27 ] . The regularization weight of this term then requires extensive tuning, and adversarial variants add min-max training instability. A third class reweights edges during message passing, via attention coefficients [24 ] , transition probabilities [34 , 22 ] or the adjacency matrix [20 ] . In contrast, FMP [18 ] is the only prior method that embeds the sensitive attribute directly into the aggregation step of GNNs, but it only considers node classification.
In this paper, we consider group fairness, which seeks equitable treatment across demographic groups, and specifically adopt Demographic Parity [12 ] , a popular notion studied in graph ML [11 ] . Departing from the majority of the prior art, our goal is to design a unified in-processing approach to learning fair node representations via message passing that provably mitigates bias across multiple downstream tasks, including node classification, link prediction, and node regression. Our contributions can be listed as follows:
Task-level bias analysis: We first conduct a bias analysis for the aforementioned downstream tasks, which upper bounds the demographic parity gap in terms of the separation of the group means and the within-group variances of the final node representations (before the task-level prediction layer). For node classification, our analysis yields a tighter bound than the one derived in [24 ] , and for link prediction, our result directly bounds the prediction-level parity gap, in contrast to [28 , 26 ] , which only bound the pre-activation parity gap. Finally, to the best of our knowledge, we establish the first such bound on the parity gap for node regression. The key insight from our analysis is that bias mitigation across these tasks can be accomplished in a unified manner by controlling the separation of the group means and the within-group variances of the node representations.
The FairProp architecture: We employ the fairness-agnostic APPNP [13 ] as a backbone and describe how its propagation layers can be modified in a simple yet principled manner to perform effective bias mitigation, resulting in our FairProp architecture (Figure 1 ). Unlike conventional message-passing GNNs, APPNP decouples prediction from propagation, which provides a clean setting to isolate the effect of bias mitigation at the propagation level. We consider the unconstrained, strongly convex feature propagation problem that the APPNP propagation layers implicitly solve [31 ] , and augment it to enact bias mitigation via: (a) a convex constraint bounding the separation of the group means, and (b) a quadratic regularizer minimizing within-group variance. We show that iterations of projected gradient descent applied on the modified convex problem can be unfolded into layers comprising an APPNP-style propagation step followed by a projection onto a convex set, and that this projection admits a closed-form solution in the forward and backward pass, enabling efficient end-to-end training for any downstream task.
Figure 1. FairProp Architecture
Empirical validation: We evaluate FairProp on three tasks against 18 baselines across benchmark datasets. Our empirical results show that FairProp with exact group mean equalization provides strong inductive bias which substantially reduces the parity gap of the APPNP backbone at negligible cost in utility. Compared to competing baselines, many of which achieve strong utility only at high cost of fairness, FairProp achieves the lowest parity gap on node classification, a near-zero gap on link prediction, and exactly zero on node regression, while maintaining strong performance.
Related Work
Most fairness-aware GNNs target node classification. One line trains fair models directly, through adversarial masking (FairGNN [9 ] , FairVGNN [37 ] ), counterfactual perturbation (NIFTY [1 ] ), normalization (Fast&Fair [25 ] ), invariant learning (FairINV [44 ] ), disentanglement (FairSAD [45 ] , DAB-GNN [27 ] ) or graph partitioning in graph transformers (FairGP [30 ] ). A second family modifies how information travels along edges, by reweighting transition probabilities ([34 , 22 ] ), attention coefficients ([24 ] ), dropout ([35 ] ) or the normalized adjacency ([20 ] ). Finally, pre-processing methods edit the input graph ([10 , 29 ] ). Node regression is addressed only by FnRGNN (Park & Lim, [33 ] . For link prediction, FairAdj (Li et al., [28 ] formalizes dyadic fairness, later regularized structurally by FairWire (Kose & Shen, [26 ] , which also provides a bias analysis for link prediction. The idea of projecting onto a fairness constraint set at every iteration has also been applied to PageRank by FairRARI (Kariotakis & Konar, [21 ] ; we bring it into end-to-end GNN training, where the projection must also be differentiable.
Closest to our work, FMP (Jiang et al., [18 ] considers demographic parity in node classification and also applies algorithm unrolling to solve a fairness-regularized optimization problem over node representations, enacting fair message passing. However, since the fairness term is non-convex, it is unclear whether the resulting algorithm converges to the underlying optimum, and it also entails complicated hyperparameter tuning for trading off accuracy and fairness. Moreover, its bias-mitigation mechanism is derived from the softmax Jacobian specific to node classification outputs, making its extension to link prediction or node regression non-trivial. In contrast, our framework unrolls a convex problem that directly constrains the separation of group means in the node representations, provably achieves linear convergence to the constrained optimum via simple projected gradient descent, and can be applied across many tasks. A full discussion is provided in Appendix § 9 .
Preliminaries
Let G : = ( V , E ) \mathcal{G} := (\mathcal{V}, \mathcal{E}) G := ( V , E ) denote an attributed, undirected graph with n : = ∣ V ∣ n := |\mathcal{V}| n := ∣ V ∣ nodes and m : = ∣ E ∣ m := |\mathcal{E}| m := ∣ E ∣ edges, A ∈ R n × n \mathbf{A} \in\mathbb{R}^{n \times n} A ∈ R n × n the adjacency matrix, D ∈ R n × n \mathbf{D} \in\mathbb{R}^{n \times n} D ∈ R n × n the diagonal degree matrix, and X ∈ R n × d \mathbf{X} \in\mathbb{R}^{n \times d} X ∈ R n × d denote a matrix whose rows correspond to node features. Each node v v v is annotated with a categorical sensitive feature s v ∈ [ K ] s_v \in[K] s v ∈ [ K ] , where [ K ] : = { 0 , … , K − 1 } [K] := \{0, \ldots, K - 1\} [ K ] := { 0 , … , K − 1 } . The sensitive feature partitions the nodes of G \mathcal{G} G into K K K subgroups, with the k k k th subgroup S k : = { v ∈ V : s v = k } \mathcal{S}_k := \{v \in\mathcal{V} : s_v = k\} S k := { v ∈ V : s v = k } , k ∈ [ K ] k \in[K] k ∈ [ K ] . In node-level tasks, predictions are made on nodes. Each v ∈ V v \in\mathcal{V} v ∈ V has a ground truth value Y ( v ) Y(v) Y ( v ) and a prediction Y ^ ( v ) \hat{Y}(v) Y ^ ( v ) , taking values in { 0 , 1 } \{0,1\} { 0 , 1 } for node classification and in R \mathbb{R} R for node regression. In link prediction, predictions are made on a subset of node pairs comprising the existing edges E ⊆ V × V \mathcal{E} \subseteq\mathcal{V} \times\mathcal{V} E ⊆ V × V together with a sample of non-edges. Since each pair involves two nodes, subgroup membership is defined dyadically, i.e., with intra ( s v = s u ) (s_v = s_u) ( s v = s u ) and inter-group ( s v ≠ s u ) (s_v \ne s_u) ( s v = s u ) pairs.
Group-Fairness: Demographic parity (DP) requires that the model predictions be independent of the sensitive attribute ([12 ] ). For binary node classification , independence is equivalent to equal positive-prediction rates across demographic groups. Hence, we quantify its violation by Δ D P N C : = max k , ℓ ∈ [ K ] ∣ Pr ( Y ^ ( v ) = 1 ∣ v ∈ S k ) − Pr ( Y ^ ( v ) = 1 ∣ v ∈ S ℓ ) ∣ \Delta_{\mathrm{DP}}^{\mathrm{NC}} := \max_{k,\ell\in[K]} \left|\Pr(\hat{Y}(v)=1 \mid v \in\mathcal{S}_k) - \Pr(\hat{Y}(v)=1 \mid v \in\mathcal{S}_\ell)\right| Δ DP NC := max k , ℓ ∈ [ K ] Pr ( Y ^ ( v ) = 1 ∣ v ∈ S k ) − Pr ( Y ^ ( v ) = 1 ∣ v ∈ S ℓ ) . For node regression , where predictions are continuous, we quantify the violation by the mean parity gap Δ M G : = max k , ℓ ∈ [ K ] ∣ E [ Y ^ ( v ) ∣ v ∈ S k ] − E [ Y ^ ( v ) ∣ v ∈ S ℓ ] ∣ \Delta_{\mathrm{MG}} := \max_{k,\ell\in[K]} \left|\mathbb{E}[\hat{Y}(v) \mid v \in\mathcal{S}_k] - \mathbb{E}[\hat{Y}(v) \mid v \in\mathcal{S}_\ell]\right| Δ MG := max k , ℓ ∈ [ K ] E [ Y ^ ( v ) ∣ v ∈ S k ] − E [ Y ^ ( v ) ∣ v ∈ S ℓ ] ([38 , 33 ] ). Finally, for link prediction , we use the dyadic demographic parity gap ([28 ] ) Δ D P L P : = ∣ E [ f ( v , u ) ∣ s v = s u ] − E [ f ( v , u ) ∣ s v ≠ s u ] ∣ \Delta_{\mathrm{DP}}^{\mathrm{LP}} := \left|\mathbb{E}[f(v,u) \mid s_v = s_u] - \mathbb{E}[f(v,u) \mid s_v \ne s_u]\right| Δ DP LP := ∣ E [ f ( v , u ) ∣ s v = s u ] − E [ f ( v , u ) ∣ s v = s u ] ∣ , where f ( v , u ) f(v,u) f ( v , u ) denotes the predicted probability of an edge between the nodes v v v and u u u .
Remark 1. For node classification, we evaluate Δ D P N C \Delta_{\mathrm{DP}}^{\mathrm{NC}} Δ DP NC using the hard prediction Y ^ ( v ) \hat{Y}(v) Y ^ ( v ) , since the task itself naturally produces a discrete label. For link prediction, however, performance is conventionally assessed via ranking (e.g., top-k k k retrieval), so there is no canonical threshold for converting the score f ( v , u ) f(v,u) f ( v , u ) into a hard decision; we therefore evaluate Δ D P L P \Delta_{\mathrm{DP}}^{\mathrm{LP}} Δ DP LP directly on the predicted scores.
Task-Level Bias Analysis
In this section, we analyze and bound the demographic and mean parity gaps in terms of the final learned representations (prior to the task-specific output layer) across three core tasks: (i) node classification, (ii) link prediction, and (iii) node regression. Prior work has derived analogous task-level bounds for (i) ([24 ] ) and (ii) ([28 , 26 ] ), but each is limited in a distinct way. For node classification, Kose & Shen [24 ] bounds a metric related to the demographic parity gap. However, this metric equals the true, hard-thresholded gap under a stochastic labeling rule applied on the softmax outputs rather than the deterministic “arg-max” decision rule standard in practice. We show that this metric in fact corresponds to a soft relaxation of the DP gap under the standard decision rule, and we provide a tighter bound in this setting. For link prediction, [28 , 26 ] bound the parity gap of the pre-activation link score rather than the sigmoid-activated predicted probability that is actually deployed; we extend their result to the latter. Finally, to the best of our knowledge, we establish the first such bound for node regression. Together, these results reveal how the task-specific output transformation (e.g., softmax, inner product) can itself amplify or attenuate bias, offering theoretical insight into how node embeddings must be structured to effectively constrain the fairness gap for each task.
Let h v \mathbf{h}_v h v denote the final representation of node v ∈ V v \in\mathcal{V} v ∈ V before the prediction layer. Throughout, U U U denotes the discrete uniform distribution over V \mathcal{V} V , and expectations are taken with respect to it. We write E [ ⋅ ] \mathbb{E}[\cdot] E [ ⋅ ] for expectations over uniformly sampled vertices v ∼ U v \sim U v ∼ U or vertex pairs ( v , u ) ∼ U × U (v,u) \sim U \times U ( v , u ) ∼ U × U . Define μ k : = E [ h v ∣ v ∈ S k ] \boldsymbol{\mu}_k := \mathbb{E}[\mathbf{h}_v \mid v \in S_k] μ k := E [ h v ∣ v ∈ S k ] and C k : = cov ( h v ∣ v ∈ S k ) C_k := \operatorname{cov}(\mathbf{h}_v \mid v \in S_k) C k := cov ( h v ∣ v ∈ S k ) as the group-conditional mean and the within-group covariance of the node representations corresponding to group S k S_k S k , respectively. All proofs are deferred to Appendix § 10 .
(i) Node Classification: For a node classification task, the goal is to use the model to generate a class label for a given node v v v . This is done by first applying an affine composition of the node embedding vector h v \mathbf{h}_v h v with a non-linear, L L L -Lipschitz activation function σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) ; typically the softmax operator (with L = 1 / 2 L = 1/2 L = 1/2 ). Let g ( v ) : = W h v + b g(v) := W\mathbf{h}_v + \mathbf{b} g ( v ) := W h v + b denote the affine function of h v \mathbf{h}_v h v , and on composing it with σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) , we obtain the vector of “soft” class labels f ( v ) : = σ ( W h v + b ) f(v) := \sigma(W\mathbf{h}_v + \mathbf{b}) f ( v ) := σ ( W h v + b ) . The final “hard” label is obtained by returning the index of the largest entry of f ( v ) f(v) f ( v ) .
Proposition 2. If max k , ℓ ∈ [ K ] ∥ μ k − μ ℓ ∥ 2 ≤ δ \max_{k,\ell\in[K]}\lVert\boldsymbol{\mu}_k - \boldsymbol{\mu}_\ell\rVert_2 \le\delta max k , ℓ ∈ [ K ] ∥ μ k − μ ℓ ∥ 2 ≤ δ , then it holds that
max k , ℓ ∈ [ K ] ∥ E [ f ( v ) ∣ v ∈ S k ] − E [ f ( v ) ∣ v ∈ S ℓ ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ + 2 max k ∈ [ K ] tr ( W C k W ⊤ ) ) . (1) \max_{k,\ell\in[K]} \left\lVert\mathbb{E}[f(v)\mid v \in S_k] - \mathbb{E}[f(v)\mid v \in S_\ell]\right\rVert_2 \le L\left(\lVert W\rVert_2\delta+ 2\max_{k\in[K]}\sqrt{\operatorname{tr}(WC_kW^\top)}\right). \tag*{(1)} k , ℓ ∈ [ K ] max ∥ E [ f ( v ) ∣ v ∈ S k ] − E [ f ( v ) ∣ v ∈ S ℓ ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ + 2 k ∈ [ K ] max tr ( W C k W ⊤ ) ) . (1)
Corollary 3. For binary classification with softmax output, let Pr ( Y ^ ( v ) = 1 ) \Pr(\widehat{Y}(v)=1) Pr ( Y ( v ) = 1 ) denote the predicted positive class probability of node v v v , and p ˉ k : = 1 n k ∑ v ∈ S k Pr ( Y ^ ( v ) = 1 ) \bar{p}_k := \frac{1}{n_k}\sum_{v\in S_k}\Pr(\widehat{Y}(v)=1) p ˉ k := n k 1 ∑ v ∈ S k Pr ( Y ( v ) = 1 ) denote the group-mean of predicted positive scores of group S k S_k S k . Under the conditions of Proposition 2, it holds that the “soft” demographic parity gap:
max k , ℓ ∈ [ K ] ∣ p ˉ k − p ˉ ℓ ∣ ≤ L 2 ( ∥ W ∥ 2 δ + 2 max k ∈ [ K ] tr ( W C k W ⊤ ) ) . \max_{k,\ell\in[K]}|\bar{p}_k-\bar{p}_\ell| \le\frac{L}{\sqrt{2}}\left(\lVert W\rVert_2\delta+ 2\max_{k\in[K]}\sqrt{\operatorname{tr}(WC_kW^\top)}\right). k , ℓ ∈ [ K ] max ∣ p ˉ k − p ˉ ℓ ∣ ≤ 2 L ( ∥ W ∥ 2 δ + 2 k ∈ [ K ] max tr ( W C k W ⊤ ) ) .
Comparison with the FairGAT bound. The result closest to Proposition 2 is that of FairGAT [24 ] , which is derived for K = 2 K = 2 K = 2 sensitive groups. In this setting, their result also upper bounds the same quantity by the separation of the group means ∥ μ 0 − μ 1 ∥ 2 \lVert\boldsymbol{\mu}_0-\boldsymbol{\mu}_1\rVert_2 ∥ μ 0 − μ 1 ∥ 2 and the within-group spread. The main difference lies in bounding the second term via a uniform deviation ℓ ∞ \ell_\infty ℓ ∞ bound Δ z \Delta_z Δ z on the pre-activations z v : = W h v \mathbf{z}_v := W\mathbf{h}_v z v := W h v , whereas our ℓ 2 \ell_2 ℓ 2 -style analysis bounds the spread in terms of the within-group covariances C k C_k C k . Under the same hypothesis ∥ μ 0 − μ 1 ∥ 2 ≤ δ \lVert\boldsymbol{\mu}_0-\boldsymbol{\mu}_1\rVert_2 \le\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ , the two bounds can be expressed as B o u r s : = L ( ∥ W ∥ 2 δ + ∑ k = 0 1 tr ( W C k W ⊤ ) ) \mathcal{B}_{\mathrm{ours}} := L(\lVert W\rVert_2\delta+ \sum_{k=0}^{1}\sqrt{\operatorname{tr}(WC_kW^\top)}) B ours := L (∥ W ∥ 2 δ + ∑ k = 0 1 tr ( W C k W ⊤ ) ) and B F a i r G A T : = L ( ∥ W ∥ 2 δ + 2 n Δ z ) \mathcal{B}_{\mathrm{FairGAT}} := L(\lVert W\rVert_2\delta+ 2\sqrt{n}\Delta_z) B FairGAT := L (∥ W ∥ 2 δ + 2 n Δ z ) . Hence, the difference between the two bounds boils down to the expressions corresponding to the within-group spread. Note that the bound of Kose & Shen [24 ] becomes looser as the number of nodes n n n grows while ours exhibits no such dependence. This observation suffices to show that our bound is guaranteed to be the tighter of the two under a mild condition on n n n , which holds in essentially every practical setting. Please refer to Appendix § 10 .2 for the proof.
Proposition 4. Let n n n denote the number of nodes and c c c be the number of classes in a node classification task. If n ≥ c n \ge c n ≥ c , then B o u r s ≤ B F a i r G A T \mathcal{B}_{\mathrm{ours}} \le\mathcal{B}_{\mathrm{FairGAT}} B ours ≤ B FairGAT .
(ii) Link Prediction: For the link prediction task, given a vertex pair { v , u } \{v,u\} { v , u } , the model generates a soft prediction that indicates the likelihood of u u u and v v v forming a link. This is typically accomplished by using a final layer which accepts the nodal representations h u , h v \mathbf{h}_u,\mathbf{h}_v h u , h v , and computes their inner product, followed by a non-linear, L L L -Lipschitz function σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) ; e.g. sigmoid, with L = 1 / 4 L = 1/4 L = 1/4 . Let’s define the inner product function g ( v , u ) : = h v ⊤ Σ h u g(v,u) := \mathbf{h}_v^\top\boldsymbol{\Sigma}\mathbf{h}_u g ( v , u ) := h v ⊤ Σ h u , where Σ ∈ S + d \boldsymbol{\Sigma} \in\mathbb{S}_{+}^{d} Σ ∈ S + d is a positive-definite matrix. Composing the result with the non-linearity σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) , we obtain f ( v , u ) : = σ ( h v ⊤ Σ h u ) f(v,u) := \sigma(\mathbf{h}_v^\top\boldsymbol{\Sigma}\mathbf{h}_u) f ( v , u ) := σ ( h v ⊤ Σ h u ) . We make the standard assumption, following Li et al., [28 ] , that for each v ∈ V v \in\mathcal{V} v ∈ V , there is a scalar Q > 0 Q > 0 Q > 0 , such that ∥ h v ∥ 2 ≤ Q \lVert\mathbf{h}_v\rVert_2 \le Q ∥ h v ∥ 2 ≤ Q .
Proposition 5. If max k , ℓ ∈ [ K ] ∥ μ k − μ ℓ ∥ 2 ≤ δ \max_{k,\ell\in[K]}\lVert\boldsymbol{\mu}_k-\boldsymbol{\mu}_\ell\rVert_2 \le\delta max k , ℓ ∈ [ K ] ∥ μ k − μ ℓ ∥ 2 ≤ δ , then it holds that
∣ E [ f ( v , u ) ∣ S u = S v ] − E [ f ( v , u ) ∣ S u ≠ S v ] ∣ ≤ L Q ∥ Σ ∥ 2 ( 2 δ + ∑ k ∈ [ K ] ( 2 α k + w k ) tr ( C k ) ) (2) \left|\mathbb{E}[f(v,u)\mid S_u=S_v]-\mathbb{E}[f(v,u)\mid S_u\ne S_v]\right| \le LQ\lVert\boldsymbol{\Sigma}\rVert_2\left(2\delta+\sum_{k\in[K]}(2\alpha_k+w_k)\sqrt{\operatorname{tr}(C_k)}\right) \tag*{(2)} ∣ E [ f ( v , u ) ∣ S u = S v ] − E [ f ( v , u ) ∣ S u = S v ] ∣ ≤ L Q ∥ Σ ∥ 2 2 δ + k ∈ [ K ] ∑ ( 2 α k + w k ) tr ( C k ) (2) where α k : = n k 2 ∑ j = 0 K − 1 n j 2 \alpha_k := \frac{n_k^2}{\sum_{j=0}^{K-1}n_j^2} α k := ∑ j = 0 K − 1 n j 2 n k 2 , β k l : = n k n l n 2 − ∑ j = 0 K − 1 n j 2 = n k n l ∑ i ≠ j n i n j \beta_{kl} := \frac{n_kn_l}{n^2-\sum_{j=0}^{K-1}n_j^2} = \frac{n_kn_l}{\sum_{i\ne j}n_in_j} β k l := n 2 − ∑ j = 0 K − 1 n j 2 n k n l = ∑ i = j n i n j n k n l , with w k : = ∑ l ≠ k ( β k l + β l k ) w_k := \sum_{l\ne k}(\beta_{kl}+\beta_{lk}) w k := ∑ l = k ( β k l + β l k ) , and C k : = cov ( h v ∣ v ∈ S k ) C_k := \operatorname{cov}(\mathbf{h}_v\mid v\in S_k) C k := cov ( h v ∣ v ∈ S k ) , for every k ∈ [ K ] k\in[K] k ∈ [ K ] .
Unlike the existing bounds in [28 , 26 ] , which are derived with respect to the pre-activation bilinear score g ( v , u ) g(v,u) g ( v , u ) , extending their result to account for the sigmoid activation and bound the actual predicted edge probability f ( v , u ) = σ ( g ( v , u ) ) f(v,u)=\sigma(g(v,u)) f ( v , u ) = σ ( g ( v , u )) is technically non-trivial, and does not follow as a direct corollary. Our formulation instead directly bounds Δ D P L P \Delta_{\mathrm{DP}}^{\mathrm{LP}} Δ DP LP as computed on the deployed, sigmoid-activated prediction, the exact quantity reported in empirical evaluation, rather than a pre-activation proxy.
(iii) Node Regression: For node regression, given node v v v , the model generates a prediction via the linear transformation g ( v ) = W h v + b g(v)=\mathbf{W}\mathbf{h}_v+\mathbf{b} g ( v ) = W h v + b with W ∈ R 1 × d \mathbf{W}\in\mathbb{R}^{1\times d} W ∈ R 1 × d . Here, we have the following bound.
Proposition 6. If max k , l ∥ μ k − μ l ∥ 2 ≤ δ \max_{k,l}\lVert\boldsymbol{\mu}_k-\boldsymbol{\mu}_l\rVert_2\le\delta max k , l ∥ μ k − μ l ∥ 2 ≤ δ , then it holds that
max k , l { ∥ E [ g ( v ) ∣ v ∈ S k ] − E [ g ( v ) ∣ v ∈ S l ] ∥ 2 } ≤ ∥ W ∥ 2 δ . (3) \max_{k,l}\left\{\left\lVert\mathbb{E}[g(v)\mid v\in\mathcal{S}_k]-\mathbb{E}[g(v)\mid v\in\mathcal{S}_l]\right\rVert_2\right\}\le\lVert\mathbf{W}\rVert_2\delta. \tag*{(3)} k , l max { ∥ E [ g ( v ) ∣ v ∈ S k ] − E [ g ( v ) ∣ v ∈ S l ] ∥ 2 } ≤ ∥ W ∥ 2 δ . (3)
Note that the bound simplifies to an expression that is independent of the within-group covariance, i.e., the terms stemming from the non-linearity. For a more detailed analysis refer to Appendix B.4.
FairProp
APPNP layers as Unfolded Diffusion
The (A)PPNP architecture proposed in Gasteiger et al. [13 ] comprises two distinct stages: an MLP prediction stage that takes as input only the node features X \mathbf{X} X (but not the adjacency A \mathbf{A} A ), followed by a propagation stage which applies diffusion on the output of the MLP. Let H ( 0 ) = g θ ( X ) \mathbf{H}^{(0)}=g_{\theta}(\mathbf{X}) H ( 0 ) = g θ ( X ) be the embedding produced by an MLP applied to the node features X \mathbf{X} X , S = D − 1 2 ( A + I ) D − 1 2 \mathbf{S}=\mathbf{D}^{-\frac{1}{2}}(\mathbf{A}+\mathbf{I})\mathbf{D}^{-\frac{1}{2}} S = D − 2 1 ( A + I ) D − 2 1 the propagation matrix, and L S = I − S \mathbf{L}_{\mathbf{S}}=\mathbf{I}-\mathbf{S} L S = I − S its Laplacian. The propagation scheme of PPNP solves the strongly convex quadratic problem [43 , 31 ]
H ∗ = arg min H { f ( H ) : = 1 2 γ ∥ H − H ( 0 ) ∥ F 2 + 1 2 ( 1 − γ ) tr ( H T L S H ) } , (4) \mathbf{H}^{*}=\underset{\mathbf{H}}{\operatorname{arg\,min}}\left\{f(\mathbf{H}):=\frac{1}{2}\gamma\lVert\mathbf{H}-\mathbf{H}^{(0)}\rVert_{F}^{2}+\frac{1}{2}(1-\gamma)\operatorname{tr}(\mathbf{H}^{\mathsf{T}}\mathbf{L}_{\mathbf{S}}\mathbf{H})\right\}, \tag*{(4)} H ∗ = H arg min { f ( H ) := 2 1 γ ∥ H − H ( 0 ) ∥ F 2 + 2 1 ( 1 − γ ) tr ( H T L S H ) } , (4)
with the parameter γ ∈ ( 0 , 1 ] \gamma\in(0,1] γ ∈ ( 0 , 1 ] trading off feature smoothness along the graph edges against proximity to the input features H ( 0 ) \mathbf{H}^{(0)} H ( 0 ) . Gradient descent on equation 4 with step size η = 1 \eta=1 η = 1 gives exactly the APPNP iterations H ( t + 1 ) = ( 1 − γ ) S H ( t ) + γ H ( 0 ) \mathbf{H}^{(t+1)}=(1-\gamma)\mathbf{S}\mathbf{H}^{(t)}+\gamma\mathbf{H}^{(0)} H ( t + 1 ) = ( 1 − γ ) S H ( t ) + γ H ( 0 ) . Hence the APPNP propagation layers correspond to algorithmic unrolling (Gregor & LeCun, [15 ] ; Monga et al. [32 ] ) of gradient descent applied to equation 4. Stacking T T T APPNP propagation layers implements T T T such gradient steps, resulting in an approximation of the optimal solution H ∗ = γ [ I − ( 1 − γ ) S ] − 1 H ( 0 ) \mathbf{H}^{*}=\gamma[\mathbf{I}-(1-\gamma)\mathbf{S}]^{-1}\mathbf{H}^{(0)} H ∗ = γ [ I − ( 1 − γ ) S ] − 1 H ( 0 ) .
In this framework, feature propagation is decoupled from prediction. Consequently, representation-level bias can be directly addressed by modifying the propagation scheme. Since propagation itself amounts to unrolled gradient descent on equation 4, bias mitigation can be enacted directly at the optimization level - by augmenting equation 4 with fairness-promoting terms - and the resulting propagation scheme obtained via unrolling inherits this bias mitigation by construction (see Figure 1 ). The closest approach to ours is FMP (Jiang et al., [18 ] ), which only considers node classification and augments the PPNP objective with an ℓ 1 \ell_1 ℓ 1 DP regularizer on the softmax outputs, unrolling a primal-dual solver into a fair message-passing scheme. However, since the fairness term is non-convex in the node representations due to the softmax nonlinearity, their unrolled forward pass lacks optimality guarantees, and its accuracy–fairness trade-off is highly sensitive to hyperparameter tuning.
In contrast to FMP, guided by the analysis of Section 3, we design convex fairness-inducing mechanisms that act directly on the node embeddings H ∗ \mathbf{H}^{*} H ∗ . In the previous section, we showed that bias across tasks arises from two distinct sources: the separation between the group means δ \delta δ , and the within-group covariance C k \mathbf{C}_k C k . The former can be controlled via a hard constraint (enforced through projection) that either drives the group-mean separation to exactly zero or bounds it within a tolerance δ \delta δ , while the latter is penalized via a regularization term. Propositions 2, 5, and 6 bound the prediction disparity in terms of these quantities for K K K groups across each task. Consequently, controlling both quantities in the embedding H ∗ \mathbf{H}^{*} H ∗ suffices to yield fair predictions for an arbitrary number of groups, across all three downstream tasks.
Fair Projections
Exact mean-equalization projection. For an embedding matrix H ∈ R n × d \mathbf{H}\in\mathbb{R}^{n\times d} H ∈ R n × d (n n n nodes, d d d features), zeroing out the mean group separation δ \delta δ requires the group-means of the embeddings to coincide, i.e., h ˉ S i = h ˉ S j \bar{\mathbf{h}}_{\mathcal{S}_i}=\bar{\mathbf{h}}_{\mathcal{S}_j} h ˉ S i = h ˉ S j , for every pair of groups i , j i,j i , j , where h ˉ S i = 1 ∣ S i ∣ e S i T H \bar{\mathbf{h}}_{\mathcal{S}_i}=\frac{1}{|\mathcal{S}_i|}\mathbf{e}_{\mathcal{S}_i}^{\mathsf{T}}\mathbf{H} h ˉ S i = ∣ S i ∣ 1 e S i T H , with e S i \mathbf{e}_{\mathcal{S}_i} e S i the indicator vector of subgroup S i S_i S i . This is equivalent to h ˉ S k = h ˉ S 0 \bar{\mathbf{h}}_{S_k}=\bar{\mathbf{h}}_{S_0} h ˉ S k = h ˉ S 0 , for every k ∈ [ K ] ∖ { 0 } k \in[K]\setminus\{0\} k ∈ [ K ] ∖ { 0 } . Define the mean-equalization set
X 0 : = { H : a k T H = 0 , k ∈ [ K ] ∖ { 0 } } , a k : = e S 0 n 0 − e S k n k , (5) \mathcal{X}_0:=\{\mathbf{H}:\mathbf{a}_k^{\mathsf{T}}\mathbf{H}=0,\ k\in[K]\setminus\{0\}\},\qquad\mathbf{a}_k:=\frac{\mathbf{e}_{S_0}}{n_0}-\frac{\mathbf{e}_{S_k}}{n_k}, \tag*{(5)} X 0 := { H : a k T H = 0 , k ∈ [ K ] ∖ { 0 }} , a k := n 0 e S 0 − n k e S k , (5)
Note that X 0 = { H : A T H = 0 } \mathcal{X}_0=\{\mathbf{H}:\mathbf{A}^{\mathsf{T}}\mathbf{H}=0\} X 0 = { H : A T H = 0 } , where A : = [ a 1 , a 2 , ⋯ , a K − 1 ] \mathbf{A}:=[\mathbf{a}_1,\mathbf{a}_2,\cdots,\mathbf{a}_{K-1}] A := [ a 1 , a 2 , ⋯ , a K − 1 ] ; equivalently, X 0 \mathcal{X}_0 X 0 consists of all matrices whose columns lie in the orthogonal complement of col ( A ) \operatorname{col}(\mathbf{A}) col ( A ) . In particular, it admits a closed-form Euclidean projection,
H ∗ = Proj X 0 ( H ) = P ⋅ H , P = I + e e T n − ∑ k = 0 K − 1 e S k e S k T ∣ S k ∣ . (6) \mathbf{H}^*=\operatorname{Proj}_{\mathcal{X}_0}(\mathbf{H})=\mathbf{P}\cdot\mathbf{H},\qquad\mathbf{P}=\mathbf{I}+\frac{\mathbf{e}\mathbf{e}^{\mathsf{T}}}{n}-\sum_{k=0}^{K-1}\frac{\mathbf{e}_{S_k}\mathbf{e}_{S_k}^{\mathsf{T}}}{|S_k|}. \tag*{(6)} H ∗ = Proj X 0 ( H ) = P ⋅ H , P = I + n e e T − k = 0 ∑ K − 1 ∣ S k ∣ e S k e S k T . (6)
At a level of a single node is h v ∗ = h v + h ˉ − h ˉ S k \mathbf{h}_v^*=\mathbf{h}_v+\bar{\mathbf{h}}-\bar{\mathbf{h}}_{S_k} h v ∗ = h v + h ˉ − h ˉ S k , ∀ v ∈ S k \forall v\in S_k ∀ v ∈ S k , i.e., every node embedding is shifted by the difference of the global mean h ˉ \bar{\mathbf{h}} h ˉ and its own group mean h ˉ S k \bar{\mathbf{h}}_{S_k} h ˉ S k . The operator P \mathbf{P} P is a symmetric orthogonal projection. It is parameter-free , and linear , hence differentiable with backward pass d H = P ⋅ d H ∗ d\mathbf{H}=\mathbf{P}\cdot d\mathbf{H}^* d H = P ⋅ d H ∗ , identical to the forward pass, and equalizes all group means exactly , so δ = 0 \delta=0 δ = 0 after each projection. In practice, P \mathbf{P} P is never formed explicitly: computing the K K K group means and shifting each row costs O ( n d ) \mathcal{O}(nd) O ( n d ) time and O ( K d ) \mathcal{O}(Kd) O ( K d ) memory for both the forward and backward pass, which is dominated by the O ( ( m + n ) d ) \mathcal{O}((m+n)d) O (( m + n ) d ) cost of a single propagation step, resulting to O ( ( m + n ) d L ) \mathcal{O}((m+n)dL) O (( m + n ) d L ) , for L L L layers. For the full derivation and the backward pass please refer to Appendix § 11 .
Relaxed fairness constraint. Enforcing δ = 0 \delta=0 δ = 0 exactly can be overly restrictive in practice, since it may force node representations to discard task-relevant information in order to fully eliminate group separation, resulting in a significant utility drop. Hence, we also consider the relaxed set X δ : = { H : ∥ H T a ∥ ∞ ≤ δ } \mathcal{X}_{\delta}:=\{\mathbf{H}:\|\mathbf{H}^{\mathsf{T}}\mathbf{a}\|_{\infty}\leq\delta\} X δ := { H : ∥ H T a ∥ ∞ ≤ δ } , with a = e S 0 n 0 − e S 1 n 1 \mathbf{a}=\frac{\mathbf{e}_{S_0}}{n_0}-\frac{\mathbf{e}_{S_1}}{n_1} a = n 0 e S 0 − n 1 e S 1 , which bounds the group-mean gap by a fairness tolerance δ \delta δ in every feature and recovers X 0 \mathcal{X}_0 X 0 at δ = 0 \delta=0 δ = 0 . For a binary sensitive attribute (i.e., K = 2 K=2 K = 2 ), the projection onto X δ \mathcal{X}_{\delta} X δ remains in closed form and decouples across feature columns:
Proj X δ ( H ) = H − a ∥ a ∥ 2 2 ( ReLU ( s − δ 1 ) − ReLU ( − s − δ 1 ) ) T , \operatorname{Proj}_{\mathcal{X}_{\delta}}(\mathbf{H})=\mathbf{H}-\frac{\mathbf{a}}{\|\mathbf{a}\|_2^2}\left(\operatorname{ReLU}(\mathbf{s}-\delta\mathbf{1})-\operatorname{ReLU}(-\mathbf{s}-\delta\mathbf{1})\right)^{\mathsf{T}}, Proj X δ ( H ) = H − ∥ a ∥ 2 2 a ( ReLU ( s − δ 1 ) − ReLU ( − s − δ 1 ) ) T ,
with s = H T a \mathbf{s}=\mathbf{H}^{\mathsf{T}}\mathbf{a} s = H T a . The fairness layer is thus a ReLU-type layer with bias − δ -\delta − δ acting on the group-mean gap. Like a ReLU, it is gated: columns whose gap lies within δ \delta δ are inactive and pass through unchanged in both the forward and backward pass, while only violating columns are shifted back to the boundary of the slab. At δ = 0 \delta=0 δ = 0 the two ReLUs sum to the identity, recovering the exact projection. For K > 2 K>2 K > 2 groups, X δ \mathcal{X}_{\delta} X δ becomes an intersection of K − 1 K-1 K − 1 slabs, and the projection can be computed with Dykstra’s algorithm [6 ] . For the backward pass, we can differentiate though the KKT conditions of the problem using implicit differentiation [4 ] . The full analysis can be found in Appendix § 12 .
Interleaving Fair Projections with Propagation. In order to enforce the exact mean-equalization constraint of the set X 0 \mathcal{X}_0 X 0 , or its relaxed slab alternative X δ \mathcal{X}_{\delta} X δ , we can solve the constrained version of the problem of equation (4) , which is the following constrained strongly convex quadratic problem
min { f ( H ) s.t. H ∈ X δ } . (7) \min\{f(\mathbf{H})\ \text{s.t.}\ \mathbf{H}\in\mathcal{X}_{\delta}\}. \tag*{(7)} min { f ( H ) s.t. H ∈ X δ } . (7)
With δ = 0 \delta=0 δ = 0 , the solution of the problem satisfies exact mean equalization, while δ > 0 \delta>0 δ > 0 refers to the relaxed mean separation. Applying projected gradient descent on this problem, we get H ( t + 1 ) = Proj X δ [ H ( t ) − η ∇ f ( H ( t ) ) ] \mathbf{H}^{(t+1)}=\operatorname{Proj}_{\mathcal{X}_{\delta}}[\mathbf{H}^{(t)}-\eta\nabla f(\mathbf{H}^{(t)})] H ( t + 1 ) = Proj X δ [ H ( t ) − η ∇ f ( H ( t ) )] . Setting η = 1 \eta=1 η = 1 , results in H ( t + 1 ) = Proj X δ [ ( 1 − γ ) S H ( t ) + γ H ( 0 ) ] \mathbf{H}^{(t+1)}=\operatorname{Proj}_{\mathcal{X}_{\delta}}[(1-\gamma)\mathbf{S}\mathbf{H}^{(t)}+\gamma\mathbf{H}^{(0)}] H ( t + 1 ) = Proj X δ [( 1 − γ ) S H ( t ) + γ H ( 0 ) ] , which is equivalent to interleaving the fair projection layer after each propagation step of APPNP.
Variance Control
Within-Group Variance Regularization. In order to fully suppress the parity gap bounds, we have to not only minimize the mean gap, but also suppress the within-group variance terms. For each demographic group S k S_k S k , let H S k = B k H \mathbf{H}_{S_k}=\mathbf{B}_k\mathbf{H} H S k = B k H , where B k ∈ { 0 , 1 } n k × n \mathbf{B}_k\in\{0,1\}^{n_k\times n} B k ∈ { 0 , 1 } n k × n is a binary selection matrix. Its mean-centered representation is given by H ~ S k = M k H S k \widetilde{\mathbf{H}}_{S_k}=\mathbf{M}_k\mathbf{H}_{S_k} H S k = M k H S k , with centering matrix M k = I n k − 1 n k 11 T \mathbf{M}_k=\mathbf{I}_{n_k}-\frac{1}{n_k}\mathbf{1}\mathbf{1}^{\mathsf{T}} M k = I n k − n k 1 1 1 T . The empirical within-group covariance is then C ^ k = 1 n k H ~ S k T H ~ S k \widehat{\mathbf{C}}_k=\frac{1}{n_k}\widetilde{\mathbf{H}}_{S_k}^{\mathsf{T}}\widetilde{\mathbf{H}}_{S_k} C k = n k 1 H S k T H S k , leading to the regularizer, L c o v ( H ) : = ∑ k ∈ [ K ] tr ( C ^ k ) = ∑ k ∈ [ K ] 1 n k ∥ H ~ S k ∥ F 2 \mathcal{L}_{\mathrm{cov}}(\mathbf{H}):=\sum_{k\in[K]}\operatorname{tr}(\widehat{\mathbf{C}}_k)=\sum_{k\in[K]}\frac{1}{n_k}\|\widetilde{\mathbf{H}}_{S_k}\|_F^2 L cov ( H ) := ∑ k ∈ [ K ] tr ( C k ) = ∑ k ∈ [ K ] n k 1 ∥ H S k ∥ F 2 . Note that the centering of the embeddings is necessary, since without it we would penalize 1 n k ∥ H S k ∥ F 2 \frac{1}{n_k}\|\mathbf{H}_{S_k}\|_F^2 n k 1 ∥ H S k ∥ F 2 tr ( C ^ k ) + ∥ h ˉ S k ∥ 2 2 \operatorname{tr}(\widehat{\mathbf{C}}_k)+\|\bar{\mathbf{h}}_{S_k}\|_2^2 tr ( C k ) + ∥ h ˉ S k ∥ 2 2 , collapsing the group means h ˉ S k \bar{\mathbf{h}}_{S_k} h ˉ S k to zero. Defining M : = ∑ k ∈ [ K ] 1 n k B k T M k B k \mathbf{M}:=\sum_{k\in[K]}\frac{1}{n_k}\mathbf{B}_k^{\mathsf{T}}\mathbf{M}_k\mathbf{B}_k M := ∑ k ∈ [ K ] n k 1 B k T M k B k gives tr ( H T M H ) = ∑ k ∈ [ K ] 1 n k ∥ H ~ S k ∥ F 2 \operatorname{tr}(\mathbf{H}^{\mathsf{T}}\mathbf{M}\mathbf{H})=\sum_{k\in[K]}\frac{1}{n_k}\|\widetilde{\mathbf{H}}_{S_k}\|_F^2 tr ( H T MH ) = ∑ k ∈ [ K ] n k 1 ∥ H S k ∥ F 2 . Finally, we can express the regularizer compactly in matrix form, L c o v ( H ) = tr ( H T M H ) \mathcal{L}_{\mathrm{cov}}(\mathbf{H})=\operatorname{tr}(\mathbf{H}^{\mathsf{T}}\mathbf{M}\mathbf{H}) L cov ( H ) = tr ( H T MH ) .
Adding Variance Control. The regularizer of Section 4.3 can be placed inside the diffusion objective itself, resulting in a task-agnostic regularization that controls the variance at every propagation step. Define the variance-regularized objective
f λ ( H ) : = 1 2 γ ∥ H − H ( 0 ) ∥ F 2 + 1 2 ( 1 − γ ) tr ( H T L S H ) + λ tr ( H T M H ) , (8) f_{\lambda}(\mathbf{H}) := \frac{1}{2}\gamma\lVert\mathbf{H} - \mathbf{H}^{(0)}\rVert_{F}^{2} + \frac{1}{2}(1-\gamma)\operatorname{tr}(\mathbf{H}^{\mathsf{T}}\mathbf{L}_{S}\mathbf{H}) + \lambda\operatorname{tr}(\mathbf{H}^{\mathsf{T}}\mathbf{M}\mathbf{H}), \tag*{(8)} f λ ( H ) := 2 1 γ ∥ H − H ( 0 ) ∥ F 2 + 2 1 ( 1 − γ ) tr ( H T L S H ) + λ tr ( H T MH ) , (8)
with M \mathbf{M} M as in Section 4.3. Since L S ⪰ 0 \mathbf{L}_{S} \succeq0 L S ⪰ 0 , and M ⪰ 0 \mathbf{M} \succeq0 M ⪰ 0 as a sum of PSD terms, this remains a convex quadratic with Hessian Q λ : = ∇ 2 f λ = γ I + ( 1 − γ ) L S + 2 λ M \mathbf{Q}_{\lambda} := \nabla^{2}f_{\lambda} = \gamma\mathbf{I} + (1-\gamma)\mathbf{L}_{S} + 2\lambda\mathbf{M} Q λ := ∇ 2 f λ = γ I + ( 1 − γ ) L S + 2 λ M . Projected gradient descent on min { f λ ( H ) s . t . H ∈ X 0 } \min\{f_{\lambda}(\mathbf{H})\ \mathrm{s.t.}\ \mathbf{H} \in\mathcal{X}_{0}\} min { f λ ( H ) s.t. H ∈ X 0 } with step size η \eta η gives
H ( t + 1 ) = P [ T η , λ H ( t ) + η γ H ( 0 ) ] , T η , λ : = I − η Q λ , (9) \mathbf{H}^{(t+1)} = \mathbf{P}[\mathbf{T}_{\eta,\lambda}\mathbf{H}^{(t)} + \eta\gamma\mathbf{H}^{(0)}], \qquad\mathbf{T}_{\eta,\lambda} := \mathbf{I} - \eta\mathbf{Q}_{\lambda}, \tag*{(9)} H ( t + 1 ) = P [ T η , λ H ( t ) + η γ H ( 0 ) ] , T η , λ := I − η Q λ , (9)
which for η = 1 \eta= 1 η = 1 becomes the FairProp propagation step with an added variance-control term, H ( t + 1 ) = P [ ( 1 − γ ) S H ( t ) + γ H ( 0 ) − 2 λ M H ( t ) ] \mathbf{H}^{(t+1)} = \mathbf{P}[(1-\gamma)\mathbf{S}\mathbf{H}^{(t)} + \gamma\mathbf{H}^{(0)} - 2\lambda\mathbf{M}\mathbf{H}^{(t)}] H ( t + 1 ) = P [( 1 − γ ) S H ( t ) + γ H ( 0 ) − 2 λ M H ( t ) ] , and fixed-point H ∗ = η γ ( I − P T η , λ ) − 1 P H ( 0 ) \mathbf{H}^{*} = \eta\gamma(\mathbf{I} - \mathbf{P}\mathbf{T}_{\eta,\lambda})^{-1}\mathbf{P}\mathbf{H}^{(0)} H ∗ = η γ ( I − P T η , λ ) − 1 P H ( 0 ) . The following proposition provides convergence guarantees for the proposed fair propagation scheme. For the proof please refer to Appendix E.
Proposition 7. Let γ ∈ ( 0 , 1 ] \gamma\in(0,1] γ ∈ ( 0 , 1 ] , λ ≥ 0 \lambda\ge0 λ ≥ 0 , and n min : = min k n k n_{\min} := \min_{k} n_{k} n m i n := min k n k . If
0 < η < 2 2 − γ + 2 λ n min ⟺ λ < n min ( 1 η − 1 + γ 2 ) (10) 0 < \eta< \frac{2}{2-\gamma+\frac{2\lambda}{n_{\min}}} \Longleftrightarrow\lambda< n_{\min}\left(\frac{1}{\eta}-1+\frac{\gamma}{2}\right) \tag*{(10)} 0 < η < 2 − γ + n m i n 2 λ 2 ⟺ λ < n m i n ( η 1 − 1 + 2 γ ) (10) then ρ : = ∥ T η , λ ∥ 2 < 1 \rho:= \lVert\mathbf{T}_{\eta,\lambda}\rVert_{2} < 1 ρ := ∥ T η , λ ∥ 2 < 1 and the iterations in equation (9) converge linearly, ∥ H ( t ) − H ∗ ∥ F ≤ ρ t ∥ H ( 0 ) − H ∗ ∥ F \lVert\mathbf{H}^{(t)}-\mathbf{H}^{*}\rVert_{F} \le\rho^{t}\lVert\mathbf{H}^{(0)}-\mathbf{H}^{*}\rVert_{F} ∥ H ( t ) − H ∗ ∥ F ≤ ρ t ∥ H ( 0 ) − H ∗ ∥ F , to the unique minimizer H ∗ \mathbf{H}^{*} H ∗ of min { f λ ( H ) s . t . H ∈ X } \min\{f_{\lambda}(\mathbf{H})\ \mathrm{s.t.}\ \mathbf{H} \in\mathcal{X}\} min { f λ ( H ) s.t. H ∈ X } . In particular, the standard APPNP step size η = 1 \eta= 1 η = 1 satisfies equation (10) if λ < γ n min / 2 \lambda< \gamma n_{\min}/2 λ < γ n m i n /2 , placing an upper bound on how aggressively within-group variance can be penalized while guaranteeing convergence.
Note that for λ < ∞ \lambda< \infty λ < ∞ , the term λ tr ( H T M H ) \lambda\operatorname{tr}(\mathbf{H}^{\mathsf{T}}\mathbf{M}\mathbf{H}) λ tr ( H T MH ) reduces but does not zero the within-group variance, avoiding collapsing each group to a single point. On the other hand, the projection to the mean-equalization constraint admits a closed-form, is non-expansive, and removes the mean gap exactly. Replacing P \mathbf{P} P by the projection operator of the slab projection Proj X δ \operatorname{Proj}_{\mathcal{X}_{\delta}} Proj X δ constrains the group-mean gap to δ \delta δ rather than to zero; since X δ \mathcal{X}_{\delta} X δ is closed and convex, the projection is non-expansive and Proposition 7 continues to hold. This yields a second fairness-utility trade-off mechanism alongside λ \lambda λ , expressed as a tolerance on the mean gap.
Why Project at Every Step
Since the bounds in Section 3 rely exclusively on the final-layer representations, a single final projection layer is sufficient to yield δ = 0 \delta= 0 δ = 0 . However, this alters the underlying optimization problem: (per-step) arg min H ∈ X 0 f λ ( H ) ≠ P ( arg min H f λ ( H ) ) \arg\min_{\mathbf{H}\in\mathcal{X}_{0}} f_{\lambda}(\mathbf{H}) \ne\mathbf{P}(\arg\min_{\mathbf{H}} f_{\lambda}(\mathbf{H})) arg min H ∈ X 0 f λ ( H ) = P ( arg min H f λ ( H )) (end-only), with distinct fixed points H p e r − s t e p ∗ = η γ ( I − P T η , λ ) − 1 P H ( 0 ) \mathbf{H}^{*}_{\mathrm{per-step}} = \eta\gamma(\mathbf{I} - \mathbf{P}\mathbf{T}_{\eta,\lambda})^{-1}\mathbf{P}\mathbf{H}^{(0)} H per − step ∗ = η γ ( I − P T η , λ ) − 1 P H ( 0 ) and H e n d − o n l y ∗ = η γ P ( I − T η , λ ) − 1 H ( 0 ) \mathbf{H}^{*}_{\mathrm{end-only}} = \eta\gamma\mathbf{P}(\mathbf{I} - \mathbf{T}_{\eta,\lambda})^{-1}\mathbf{H}^{(0)} H end − only ∗ = η γ P ( I − T η , λ ) − 1 H ( 0 ) . While end-only projection just subtracts group means from the unconstrained optimum, per-step projection solves for the optimal fair representation - identifying the smoothest representation subject to equal group means. In Appendix F (Theorem 14), we make this contrast explicit via KKT conditions. Although both methods modify the original APPNP fixed point via optimal dual variables, end-only projection imposes a direct, graph-agnostic shift. By contrast, FairProp applies the graph-diffusion term [ I − ( 1 − γ ) S + 2 λ M ] − 1 = ∑ j ≥ 0 [ ( 1 − γ ) S − 2 λ M ] j [\mathbf{I} - (1-\gamma)\mathbf{S} + 2\lambda\mathbf{M}]^{-1} = \sum_{j\geq0}[(1-\gamma)\mathbf{S} - 2\lambda\mathbf{M}]^{j} [ I − ( 1 − γ ) S + 2 λ M ] − 1 = ∑ j ≥ 0 [( 1 − γ ) S − 2 λ M ] j , ensuring a smoother correction. As illustrated, for the one dimensional case, in Proposition 15 (Appendix F.1), projecting only once imposes a coarse correction that fails to account for graph structure, resulting in utility being sacrificed almost entirely on the minority side. Hence, a criterion imposed for fairness reasons is itself satisfied unfairly (Remark 16).
Experimental Evaluation
Baselines & Datasets. In order to demonstrate the impact of introducing differentiable fairness-promoting layers in the standard APPNP architecture (Gasteiger et al., [13 ] ), we add it as a fairness-agnostic baseline. We compare our proposed approach against several relevant baselines in fairness aware GNNs - spanning general purpose methods to more task-specialized ones. For all baselines, we use the authors’ public implementations and reported hyperparameter settings where available; otherwise, we implement the models ourselves following the descriptions in their respective papers. All results are averaged over 20 independent experiments. Note that for link prediction, we also use methods originally proposed for node classification. We discard the classification head and replace it with an inner-product decoder applied to the learned node embeddings, optimizing
binary cross-entropy loss. For node regression, since there is only one dedicated baseline, we adapt methods originally proposed for node classification, by replacing the final softmax prediction layer with a linear output layer and optimizing the mean-squared error loss. Owing to space limitations, we report only the best-performing baselines for each task; full experimental comparisons are provided in Appendix G. Details regarding dataset statistics, and our experimental setup are available in Appendices G.2 and G.1. We further study the effect of relaxing the exact projection to a slab of tolerance δ \delta δ in Appendix G.3. A runtime comparison of FairProp against all baselines is provided in Appendix G.5. The implementation of our method is provided in the supplementary material.
Main Results
Node Classification. Table 1 reports test accuracy and Δ D P N C \Delta^{\mathrm{NC}}_{\mathrm{DP}} Δ DP NC on four benchmarks. It is evident that the standard APPNP pipeline offers good predictive accuracy, but violates demographic parity to a large extent. In contrast, FairProp with exact subgroup mean-centering via projection, markedly reduces the demographic parity gap (5–33×) while yielding a very small decrease in mean accuracy (at most 0.4%). Moreover, FairProp attains a lower demographic parity gap than every competing method on every dataset (tied with FairSAD on Credit), and is second best in terms of accuracy in 2 out of 4 datasets. It is worth pointing out that the baselines that surpass it in accuracy are significantly worse-off in terms of the fairness gap. Overall, FairProp exhibits the best utility-fairness trade-off.
Table 1. Node classification results. Best and second best per column in bold and <u>underlined</u>, respectively, excluding APPNP. Dashed results indicate out-of-memory (OOM) or time-consuming experiments. All results are presented by × 100 \times100 × 100 . FairProp is always the best in terms of fairness and among the best in terms of accuracy.
Link Prediction. Table 2 reports AUC and Δ D P L P \Delta^{\mathrm{LP}}_{\mathrm{DP}} Δ DP LP on three benchmarks. Relative to the APPNP backbone, FairProp with exact mean centering reduces the parity gap by 7 – 27×, to at most 0.003, while retaining over 98% of the backbone AUC on every dataset. No other method does better w.r.t both metrics. Those that improve upon AUC (FairGAT, FairAdj, FairDrop, FairINV) do so at the cost of a 3 – 27× larger parity gap. Conversely, every method attaining a smaller gap than FairProp (FairWire, FairSAD, FairGP) pays for it in terms of AUC, losing up to 22% of the backbone AUC. Restricting attention to methods that retain at least 98% of the backbone AUC, FairProp attains the smallest gap on every dataset. FairProp best handles this trade-off because the mean-gap compo† Pokec-z/-n results for APPNP / FairProp (proj) use γ = 0.5 \gamma= 0.5 γ = 0.5 ; GermanCredit use γ = 0.1 \gamma= 0.1 γ = 0.1 .
Table 2. Link prediction results. Best and second best per column in bold and <u>underlined</u>, respectively, excluding APPNP. FairProp yields the best utility-fairness trade-off, with near 0 Δ D P L P \Delta^{\mathrm{LP}}_{\mathrm{DP}} Δ DP LP .
nent is removed exactly, resulting in almost zero parity gap, at almost no cost in expressiveness. This trade-off is visually illustrated in Figure 9 in Appendix § 15 .6.2, where FairProp consistently sits closest to the ideal top-left corner across all datasets.
Figure 9. Utility-fairness trade-off on link prediction. Each point shows mean AUC (higher is better) against Δ D P L P \Delta^{\mathrm{LP}}_{\mathrm{DP}} Δ DP LP (lower is better) over 20 runs. Top-left is optimal.
Node Regression. Table 3 reports Mean Absolute Error (MAE) and Δ M G \Delta_{\mathrm{MG}} Δ MG on three benchmarks. As established in Section 3, for a linear prediction layer (without activations), the mean-gap bound contains no variance term, so the mean-equalizing projection of FairProp eliminates Δ M G \Delta_{\mathrm{MG}} Δ MG exactly. This result is confirmed empirically, as FairProp achieves a mean gap of precisely 0 across all datasets. On Pokec-z and Pokec-n it matches the MAE of APPNP. On GermanCredit, the MAE increases from 0.404 to 0.481, which the slab relaxation partially recovers (Figure 6 , Appendix § 15 .3). FnRGNN, the only baseline specifically designed for fair node regression, does not attain 0 mean gap, while yielding a higher MAE on every dataset. Other baselines, which are adapted from node classification, struggle to reduce Δ M G \Delta_{\mathrm{MG}} Δ MG in the regression setting.
Table 3. Node regression results. Best and second best per column in bold and _underlined_, respectively, excluding APPNP. _FairProp_ is almost always the best in terms of both MAE and fairness.
Figure 6. Showing the effect of relaxing the mean-gap δ \delta δ by using the slab projection, on different tasks and datasets.
Ablation Study
Effect of the within-group variance regularizer. The projection alone already suffices for node classification and node regression (§ 5.1 ). In link prediction it attains a near-zero parity gap, but a few baselines reach smaller gaps, albeit at a large cost in AUC. We therefore test whether also increasing the variance term of Proposition 5, via the regularizer of Section 4.3, closes this gap. Figure 2 sweeps λ \lambda λ , normalized by λ ∗ : = γ η min / 2 \lambda^{*} := \gamma\eta_{\min}/2 λ ∗ := γ η m i n /2 , the largest value for which Proposition 7 guarantees contraction at η = 1 \eta= 1 η = 1 ; the shaded region λ > λ ∗ \lambda> \lambda^{*} λ > λ ∗ lies outside this regime. The disparity does fall to zero, but only under strong regularization, by which point AUC has collapsed. This is expected: once the projection has equalized the group means, shrinking the within-group variance to zero drives all embeddings toward a single point.
Figure 2. The effect of variance regularization in link prediction.
Conclusion
We studied fairness in GNNs at the level of the downstream prediction. We analyzed and bounded the demographic and mean parity gaps via the group-mean separation and the within-group covariance of the final node representations, tightening the prior bound for node classification, extending it to the deployed, sigmoid-activated prediction for link prediction, and providing the first such bound for node regression. Guided by this analysis, we proposed FairProp, which unfolds projected gradient descent on a fairness-constrained version of the APPNP objective. Each propagation layer of FairProp comprises a standard propagation step, regularized by within-group variance, followed by a closed-form projection that bounds group-mean separation, and the iteration provably converges linearly to the unique fair optimum. Empirically, using the projection alone to exactly equalize group means already achieves the lowest parity gap on node classification, a near-zero gap on link prediction, and a zero mean gap on node regression, while largely preserving utility against state-of-the-art baselines. Extending the framework to other unfolded GNN architectures and fairness notions, such as equal opportunity or individual fairness, are further directions for future work.
AI USE STATEMENT
In this work, we used generative AI tools for polishing the writing of the manuscript, research execution (implementation of experiments) and fact-checking proofs of mathematical claims. We have not used generative AI tools for retrieval and discovery, draft sections of the paper, and generating synthetic datasets are not applicable to this work. We have reviewed all AI-assisted work. LLM-generated code was verified and tested for correctness. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
ETHICS STATEMENT
GNNs propagate information along edges that can perpetuate or amplify structural biases across vertex subgroups. This work advances the field of algorithmic fairness on graphs by analyzing where such bias enters the learned representations and by developing mechanisms that constrain it during propagation, for node classification, link prediction and node regression. Our aim is to reduce disparity in predictions while preserving the utility of the underlying model. While this work addresses group fairness, and in particular demographic parity, we acknowledge that it does not explicitly treat other relevant notions, such as individual, counterfactual or degree-based fairness. Hence, our results should be interpreted within this scope: the objective of this work is to improve the trade-off between group-fairness constraints and predictive utility, and our findings should not be directly extrapolated to other notions of fairness. We further note that enforcing a fairness constraint is not without cost when the sensitive attribute is correlated with the target, and that a small measured disparity does not by itself certify that a deployed system is equitable. We view our work as a step in this direction and anticipate future research extending the framework to additional fairness notions. We hope this contribution supports the development of more equitable graph-learning systems and motivates further research in algorithmic fairness for graph machine learning.
Extended Related Work
Task-Agnostic Learning
A separate line of work aims to make the node embeddings themselves independent of the sensitive attribute. Bose & Hamilton [5 ] train adversarial filters that remove sensitive information from graph embeddings. Their filters are compositional, so a single model can enforce invariance to any combination of sensitive attributes. DeBayes (Buyl & De Bie, [7 ] ) builds on conditional network embeddings: during training, it encodes sensitive information in a biased structural prior, so that the embeddings only capture structure not explained by it. NIFTY (Agarwal et al., [1 ] ) similarly regularizes representations to be stable under perturbations of the sensitive attribute. These methods target fairness at the representation level. However, they do not formally specify how it transfers to the predictions of a particular downstream task, which is precisely the gap our task-level analysis in Section 3 addresses.
Node Classification
In-processing. A number of methods enforce group fairness during training. FairGNN (Dai & Wang, [9 ] ) uses adversarial training to mask sensitive attributes under partial observability, while FairVGNN (Wang et al., [37 ] ) adversarially masks sensitive-correlated feature channels. NIFTY (Agarwal et al., [1 ] ) promotes counterfactual fairness via graph perturbations, and Fast&Fair (Kose & Shen, [25 ] ) regularizes group-wise normalization operators for provably faster convergence. FairINV (Zhu et al., [44 ] ) recasts group fairness as invariant learning, inferring sensitive groups so that one training run is fair to several sensitive attributes without accessing them. These methods augment the task loss with a fairness term whose weight governs the trade-off, requiring per-dataset tuning without a principled selection procedure; adversarial variants additionally suffer from min-max instability.
Interventions on the propagation operator. A large family of methods mitigates bias by modifying how information travels along edges. FairWalk (Rahman et al., [34 ] ) and CrossWalk (Khajehnejad et al., [22 ] ) rebalance random-walk transition probabilities across sensitive groups, FairGAT (Kose & Shen, [24 ] ) down-weights attention on edges contributing to disparity, and FairDrop (Spinelli et al., [35 ] ) biases edge dropout against homophilous connections. RawlsGCN (Kang et al., [20 ] ) renormalizes the adjacency in the same spirit but targets a different notion, degree-based Rawlsian fairness, in which the sensitive attribute plays no role.
Fairness inside the propagation operator. Closest to our work, FMP (Jiang et al., [18 ] ) also unfolds a fairness-regularized smoothness objective into message passing. However, it softly penalizes disparity in post-softmax probability space and is limited to node classification. In contrast, we constrain the representations themselves, drive the mean gap to exactly zero at every step, and prove linear convergence to the constrained optimum.
Disentanglement. Arguing that deleting sensitive-attribute information also deletes task-related information correlated with it, FairSAD (Zhu et al., [45 ] ) isolates the sensitive attribute into an independent representation channel and decorrelates it by channel masking, while DAB-GNN (Lee et al., [27 ] ) disentangles attribute, structure and interaction biases into separate embeddings and aligns their subgroup distributions by Wasserstein distance.
Pre-processing and graph editing. EDITS (Dong et al., [10 ] ) and FairEdit (Loveland et al., [29 ] ) debias input graphs via feature and edge editing independently of downstream tasks. These require solving a combinatorial edge-selection problem, and since edges encode both task-relevant information and sensitive correlation, correcting the latter perturbs the former without explicit control over the trade-off.
Link Prediction
Li et al. [28 ] formalize dyadic fairness and propose FairAdj, which learns a fair adjacency matrix under a dyadic constraint; their representation-level analysis is the one our bounds extend. FairDrop (Spinelli et al., [35 ] ) biases edge dropout against homophilous connections, and Fair-Wire (Kose & Shen, [26 ] ) identifies structural sources of dyadic disparity to construct a regularizer. for link prediction and graph generation. Note that previously mentioned FairGAT [24 ] , is proposed to tackle also the link prediction task.
Node Regression
Node regression is addressed only by FnRGNN [33 ] , which combines edge reweighting, representation alignment and prediction-level normalization to match the full group-conditional distributions.
Representation-level bias analysis
Beyond its attention mechanism, FairGAT [24 ] bounds the demographic parity gap of a GAT layer and of the fully connected readout typically used for node classification; our analysis tightens this bound. FairGP [30 ] bounds a related but distinct quantity for graph transformers, namely the distortion of the sensitive-attribute distribution under global attention. In [26 ] they provide a bias analysis for link prediction. A closely related idea to ours, projecting onto a fairness constraint set at each iteration of a graph algorithm, has been applied to PageRank in the FairRARI framework [21 ] ; we instead apply per-step projections inside end-to-end GNN training.
Bias Analysis Proofs
Adapting the definitions from the main text, we have that
μ k : = E [ h v ∣ v ∈ S k ] and C k : = cov ( h v ∣ v ∈ S k ) . \mu_k := \mathbb{E}[h_v \mid v \in S_k]\quad\text{and}\quad C_k := \operatorname{cov}(h_v \mid v \in S_k). μ k := E [ h v ∣ v ∈ S k ] and C k := cov ( h v ∣ v ∈ S k ) .
Node Classification
For a node classification model, typically the final layer consists of a linear projection and a non-linear, L L L -Lipschitz function σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) (e.g. softmax, L = 1 / 2 L = 1/2 L = 1/2 ). Let’s define the linear projection function g ( ⋅ ) g(\cdot) g ( ⋅ ) as g ( v ) : = W h v + b g(v) := W h_v + b g ( v ) := W h v + b , and combining it with the non-linearity we obtain f ( v ) : = σ ( W h v + b ) f(v) := \sigma(W h_v + b) f ( v ) := σ ( W h v + b ) .
Proposition 8 (Linear readout). If the difference of the mean embeddings of the two subgroups S 0 S_0 S 0 and S 1 S_1 S 1 is small, i.e., ∥ μ 0 − μ 1 ∥ 2 ≤ δ \lVert\mu_0-\mu_1\rVert_2 \le\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ , then
∥ E [ g ( v ) ∣ v ∈ S 0 ] − E [ g ( v ) ∣ v ∈ S 1 ] ∥ 2 ≤ ∥ W ∥ 2 ⋅ δ . (11) \left\lVert\mathbb{E}[g(v)\mid v\in S_0]-\mathbb{E}[g(v)\mid v\in S_1]\right\rVert_2 \le\lVert W\rVert_2\cdot\delta. \tag*{(11)} ∥ E [ g ( v ) ∣ v ∈ S 0 ] − E [ g ( v ) ∣ v ∈ S 1 ] ∥ 2 ≤ ∥ W ∥ 2 ⋅ δ . (11)
Proof. For ∥ E v ∼ U [ h v ∣ v ∈ S 0 ] − E v ∼ U [ h v ∣ v ∈ S 1 ] ∥ 2 ≤ δ \left\lVert\mathbb{E}_{v\sim U}[h_v\mid v\in S_0]-\mathbb{E}_{v\sim U}[h_v\mid v\in S_1]\right\rVert_2\le\delta ∥ E v ∼ U [ h v ∣ v ∈ S 0 ] − E v ∼ U [ h v ∣ v ∈ S 1 ] ∥ 2 ≤ δ , we have that
∥ E v ∼ U [ g ( v ) ∣ v ∈ S 0 ] − E v ∼ U [ g ( v ) ∣ v ∈ S 1 ] ∥ 2 = ∥ E [ W h v + b ∣ v ∈ S 0 ] − E [ W h v + b ∣ v ∈ S 1 ] ∥ 2 = ∥ W ( E [ h v ∣ v ∈ S 0 ] − E [ h v ∣ v ∈ S 1 ] ) ∥ 2 ≤ ∥ W ∥ 2 ∥ E [ h v ∣ v ∈ S 0 ] − E [ h v ∣ v ∈ S 1 ] ∥ 2 ≤ ∥ W ∥ 2 ⋅ δ (12) \begin{aligned}
\left\lVert\mathbb{E}_{v\sim U}[g(v)\mid v\in S_0]-\mathbb{E}_{v\sim U}[g(v)\mid v\in S_1]\right\rVert_2
&=\left\lVert\mathbb{E}[W h_v+b\mid v\in S_0]-\mathbb{E}[W h_v+b\mid v\in S_1]\right\rVert_2\\
&=\left\lVert W\left(\mathbb{E}[h_v\mid v\in S_0]-\mathbb{E}[h_v\mid v\in S_1]\right)\right\rVert_2\\
&\le\lVert W\rVert_2\left\lVert\mathbb{E}[h_v\mid v\in S_0]-\mathbb{E}[h_v\mid v\in S_1]\right\rVert_2\\
&\le\lVert W\rVert_2\cdot\delta \tag*{(12)}
\end{aligned} ∥ E v ∼ U [ g ( v ) ∣ v ∈ S 0 ] − E v ∼ U [ g ( v ) ∣ v ∈ S 1 ] ∥ 2 = ∥ E [ W h v + b ∣ v ∈ S 0 ] − E [ W h v + b ∣ v ∈ S 1 ] ∥ 2 = ∥ W ( E [ h v ∣ v ∈ S 0 ] − E [ h v ∣ v ∈ S 1 ] ) ∥ 2 ≤ ∥ W ∥ 2 ∥ E [ h v ∣ v ∈ S 0 ] − E [ h v ∣ v ∈ S 1 ] ∥ 2 ≤ ∥ W ∥ 2 ⋅ δ (12)
Proposition 9 (Linear readout - Multiple Groups). If the maximum difference of the mean embeddings of all the different subgroup pairs, i.e., max k , l ∥ μ k − μ l ∥ 2 ≤ δ \max_{k,l}\lVert\mu_k-\mu_l\rVert_2\le\delta max k , l ∥ μ k − μ l ∥ 2 ≤ δ , then
max k , l { ∥ E [ g ( v ) ∣ v ∈ S k ] − E [ g ( v ) ∣ v ∈ S l ] ∥ 2 } ≤ ∥ W ∥ 2 ⋅ δ . (13) \max_{k,l}\left\{\left\lVert\mathbb{E}[g(v)\mid v\in S_k]-\mathbb{E}[g(v)\mid v\in S_l]\right\rVert_2\right\}\le\lVert W\rVert_2\cdot\delta. \tag*{(13)} k , l max { ∥ E [ g ( v ) ∣ v ∈ S k ] − E [ g ( v ) ∣ v ∈ S l ] ∥ 2 } ≤ ∥ W ∥ 2 ⋅ δ . (13)
Proof. The proof trivially follows from taking the max of each side in Proposition 8.
Proposition 10 (Non-linear readout). If ∥ μ 0 − μ 1 ∥ 2 ≤ δ \lVert\mu_0-\mu_1\rVert_2\le\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ , then
∥ E [ f ( v ) ∣ v ∈ S 0 ] − E [ f ( v ) ∣ v ∈ S 1 ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ + tr ( W C 0 W T ) + tr ( W C 1 W T ) ) . (14) \left\lVert\mathbb{E}[f(v)\mid v\in S_0]-\mathbb{E}[f(v)\mid v\in S_1]\right\rVert_2\le L\left(\lVert W\rVert_2\delta+\sqrt{\operatorname{tr}(W C_0 W^\mathsf{T})}+\sqrt{\operatorname{tr}(W C_1 W^\mathsf{T})}\right). \tag*{(14)} ∥ E [ f ( v ) ∣ v ∈ S 0 ] − E [ f ( v ) ∣ v ∈ S 1 ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ + tr ( W C 0 W T ) + tr ( W C 1 W T ) ) . (14)
Proof. For any h v , h u ∈ R d \mathbf{h}_v, \mathbf{h}_u \in\mathbb{R}^d h v , h u ∈ R d , the L L L -Lipschitzness of σ \sigma σ and the definition of the spectral norm give
∥ f ( v ) − f ( u ) ∥ 2 = ∥ σ ( W h v + b ) − σ ( W h u + b ) ∥ 2 ≤ L ∥ W ( h v − h u ) ∥ 2 ≤ L ∥ W ∥ 2 ∥ h v − h u ∥ 2 , (15) \lVert f(v)-f(u)\rVert_2 = \lVert\sigma(W\mathbf{h}_v+\mathbf{b})-\sigma(W\mathbf{h}_u+\mathbf{b})\rVert_2 \leq L\lVert W(\mathbf{h}_v-\mathbf{h}_u)\rVert_2 \leq L\lVert W\rVert_2\lVert\mathbf{h}_v-\mathbf{h}_u\rVert_2, \tag*{(15)} ∥ f ( v ) − f ( u ) ∥ 2 = ∥ σ ( W h v + b ) − σ ( W h u + b ) ∥ 2 ≤ L ∥ W ( h v − h u ) ∥ 2 ≤ L ∥ W ∥ 2 ∥ h v − h u ∥ 2 , (15)
so f f f is L ∥ W ∥ 2 L\lVert W\rVert_2 L ∥ W ∥ 2 -Lipschitz.
In order to introduce the expectations we have to do the following analysis
∥ E [ f ( v ) ∣ S 0 ] − E [ f ( u ) ∣ S 1 ] ∥ 2 = ∥ E [ f ( v ) ∣ S 0 ] − f ( μ 0 ) + f ( μ 0 ) − f ( μ 1 ) + f ( μ 1 ) − E [ f ( u ) ∣ S 1 ] ∥ 2 ≤ ∥ E [ f ( v ) ∣ S 0 ] − f ( μ 0 ) ∥ 2 ⏟ ( i ) + ∥ f ( μ 0 ) − f ( μ 1 ) ∥ 2 ⏟ ( i i ) + ∥ f ( μ 1 ) − E [ f ( u ) ∣ S 1 ] ∥ 2 ⏟ ( i i i ) . (16) \begin{aligned}
\lVert\mathbb{E}[f(v)\mid S_0]-\mathbb{E}[f(u)\mid S_1]\rVert_2
&= \lVert\mathbb{E}[f(v)\mid S_0]-f(\mu_0)+f(\mu_0)-f(\mu_1)+f(\mu_1)-\mathbb{E}[f(u)\mid S_1]\rVert_2\\
&\leq\underbrace{\lVert\mathbb{E}[f(v)\mid S_0]-f(\mu_0)\rVert_2}_{(i)}
+\underbrace{\lVert f(\mu_0)-f(\mu_1)\rVert_2}_{(ii)}
+\underbrace{\lVert f(\mu_1)-\mathbb{E}[f(u)\mid S_1]\rVert_2}_{(iii)}. \tag*{(16)}
\end{aligned} ∥ E [ f ( v ) ∣ S 0 ] − E [ f ( u ) ∣ S 1 ] ∥ 2 = ∥ E [ f ( v ) ∣ S 0 ] − f ( μ 0 ) + f ( μ 0 ) − f ( μ 1 ) + f ( μ 1 ) − E [ f ( u ) ∣ S 1 ] ∥ 2 ≤ ( i ) ∥ E [ f ( v ) ∣ S 0 ] − f ( μ 0 ) ∥ 2 + ( ii ) ∥ f ( μ 0 ) − f ( μ 1 ) ∥ 2 + ( iii ) ∥ f ( μ 1 ) − E [ f ( u ) ∣ S 1 ] ∥ 2 . (16)
Term (ii): By the L L L -Lipschitzness of σ \sigma σ and the definition of the spectral norm,
∥ f ( μ 0 ) − f ( μ 1 ) ∥ 2 ≤ L ∥ W ( μ 0 − μ 1 ) ∥ 2 ≤ L ∥ W ∥ 2 δ . (17) \lVert f(\mu_0)-f(\mu_1)\rVert_2 \leq L\lVert W(\mu_0-\mu_1)\rVert_2 \leq L\lVert W\rVert_2\delta. \tag*{(17)} ∥ f ( μ 0 ) − f ( μ 1 ) ∥ 2 ≤ L ∥ W ( μ 0 − μ 1 ) ∥ 2 ≤ L ∥ W ∥ 2 δ . (17)
Terms (i) and (iii): For every k ∈ { 0 , 1 } k\in\{0,1\} k ∈ { 0 , 1 } , by Jensen’s inequality for the convex map y ↦ ∥ y ∥ 2 \mathbf{y}\mapsto\lVert\mathbf{y}\rVert_2 y ↦ ∥ y ∥ 2 , followed by the L L L -Lipschitzness of σ \sigma σ ,
∥ E [ f ( v ) ∣ S k ] − f ( μ k ) ∥ 2 = ∥ E [ f ( v ) − f ( μ k ) ∣ S k ] ∥ 2 ≤ E [ ∥ f ( v ) − f ( μ k ) ∥ 2 ∣ S k ] = E [ ∥ σ ( W h v + b ) − σ ( W μ k + b ) ∥ 2 ∣ S k ] ≤ L E [ ∥ W ( h v − μ k ) ∥ 2 ∣ S k ] . (18) \begin{aligned}
\lVert\mathbb{E}[f(v)\mid S_k]-f(\mu_k)\rVert_2
&=\lVert\mathbb{E}[f(v)-f(\mu_k)\mid S_k]\rVert_2\\
&\leq\mathbb{E}[\lVert f(v)-f(\mu_k)\rVert_2\mid S_k]\\
&=\mathbb{E}[\lVert\sigma(W\mathbf{h}_v+\mathbf{b})-\sigma(W\mu_k+\mathbf{b})\rVert_2\mid S_k]\\
&\leq L\mathbb{E}[\lVert W(\mathbf{h}_v-\mu_k)\rVert_2\mid S_k]. \tag*{(18)}
\end{aligned} ∥ E [ f ( v ) ∣ S k ] − f ( μ k ) ∥ 2 = ∥ E [ f ( v ) − f ( μ k ) ∣ S k ] ∥ 2 ≤ E [∥ f ( v ) − f ( μ k ) ∥ 2 ∣ S k ] = E [∥ σ ( W h v + b ) − σ ( W μ k + b ) ∥ 2 ∣ S k ] ≤ L E [∥ W ( h v − μ k ) ∥ 2 ∣ S k ] . (18)
Applying Jensen’s inequality once more, now for the concave map t ↦ t t\mapsto\sqrt{t} t ↦ t ,
L E [ ∥ W ( h v − μ k ) ∥ 2 ∣ S k ] ≤ L E [ ∥ W ( h v − μ k ) ∥ 2 2 ∣ S k ] = L tr ( W C k W ⊤ ) , (19) L\mathbb{E}[\lVert W(\mathbf{h}_v-\mu_k)\rVert_2\mid S_k]\leq L\sqrt{\mathbb{E}[\lVert W(\mathbf{h}_v-\mu_k)\rVert_2^2\mid S_k]}=L\sqrt{\operatorname{tr}(WC_kW^\top)}, \tag*{(19)} L E [∥ W ( h v − μ k ) ∥ 2 ∣ S k ] ≤ L E [∥ W ( h v − μ k ) ∥ 2 2 ∣ S k ] = L tr ( W C k W ⊤ ) , (19)
where the equality holds because, by linearity of the trace and of the expectation,
E [ ∥ W ( h v − μ k ) ∥ 2 2 ∣ S k ] = E [ tr ( W ( h v − μ k ) ( h v − μ k ) ⊤ W ⊤ ) ∣ S k ] = tr ( W C k W ⊤ ) . (20) \mathbb{E}[\lVert W(\mathbf{h}_v-\mu_k)\rVert_2^2\mid S_k]=\mathbb{E}[\operatorname{tr}(W(\mathbf{h}_v-\mu_k)(\mathbf{h}_v-\mu_k)^\top W^\top)\mid S_k]=\operatorname{tr}(WC_kW^\top). \tag*{(20)} E [∥ W ( h v − μ k ) ∥ 2 2 ∣ S k ] = E [ tr ( W ( h v − μ k ) ( h v − μ k ) ⊤ W ⊤ ) ∣ S k ] = tr ( W C k W ⊤ ) . (20)
Substituting equation 17, equation 18 and equation 19 into equation 16 yields equation 14.
Extension to Multiple Sensitive Groups (Proof of Proposition 2)
Proposition 10 trivially extends to any pair of subgroups i , j ∈ K i,j\in\mathcal{K} i , j ∈ K . Therefore, the following bound applies
∥ E [ f ( v ) ∣ S i ] − E [ f ( v ) ∣ S j ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ i j + tr ( W C i W ⊤ ) + tr ( W C j W ⊤ ) ) , (21) \lVert\mathbb{E}[f(v)\mid S_i]-\mathbb{E}[f(v)\mid S_j]\rVert_2\leq L\left(\lVert W\rVert_2\delta_{ij}+\sqrt{\operatorname{tr}(WC_iW^\top)}+\sqrt{\operatorname{tr}(WC_jW^\top)}\right), \tag*{(21)} ∥ E [ f ( v ) ∣ S i ] − E [ f ( v ) ∣ S j ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ ij + tr ( W C i W ⊤ ) + tr ( W C j W ⊤ ) ) , (21)
with δ i j : = ∥ μ i − μ j ∥ 2 \delta_{ij}:=\lVert\mu_i-\mu_j\rVert_2 δ ij := ∥ μ i − μ j ∥ 2 . Since Δ D P \Delta_{\mathrm{DP}} Δ DP is a maximum over pairs, taking the maximum of the right-hand side yields
max i , j ∈ [ K ] ∥ E [ f ( v ) ∣ S i ] − E [ f ( v ) ∣ S j ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ + 2 max i ∈ [ K ] tr ( W C i W ⊤ ) ) , (22) \max_{i,j\in[K]}\lVert\mathbb{E}[f(v)\mid S_i]-\mathbb{E}[f(v)\mid S_j]\rVert_2\leq L\left(\lVert W\rVert_2\delta+2\max_{i\in[K]}\sqrt{\operatorname{tr}(WC_iW^\top)}\right), \tag*{(22)} i , j ∈ [ K ] max ∥ E [ f ( v ) ∣ S i ] − E [ f ( v ) ∣ S j ] ∥ 2 ≤ L ( ∥ W ∥ 2 δ + 2 i ∈ [ K ] max tr ( W C i W ⊤ ) ) , (22)
with δ : = max i , j ∈ [ K ] ∥ μ i − μ j ∥ 2 \delta:=\max_{i,j\in[K]}\lVert\mu_i-\mu_j\rVert_2 δ := max i , j ∈ [ K ] ∥ μ i − μ j ∥ 2 .
Binary Classification (Proof of Corollary 3)
Proof. Since σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) is the softmax and the task is binary, each f ( v ) f(v) f ( v ) is a probability vector over the two classes:
f ( v ) = [ Pr ( Y ^ ( v ) = 0 ) Pr ( Y ^ ( v ) = 1 ) ] = [ 1 − p v p v ] . (23) f(v)=\begin{bmatrix}\Pr(\widehat{Y}(v)=0)\\\Pr(\widehat{Y}(v)=1)\end{bmatrix}=\begin{bmatrix}1-p_v\\p_v\end{bmatrix}. \tag*{(23)} f ( v ) = [ Pr ( Y ( v ) = 0 ) Pr ( Y ( v ) = 1 ) ] = [ 1 − p v p v ] . (23)
Taking the expectation uniformly over the nodes of group S k S_k S k gives
E [ f ( v ) ∣ v ∈ S k ] = 1 n k ∑ v ∈ S k f ( v ) = [ 1 − p ˉ k p ˉ k ] . (24) \mathbb{E}[f(v)\mid v\in S_k]=\frac{1}{n_k}\sum_{v\in S_k}f(v)=\begin{bmatrix}1-\bar{p}_k\\\bar{p}_k\end{bmatrix}. \tag*{(24)} E [ f ( v ) ∣ v ∈ S k ] = n k 1 v ∈ S k ∑ f ( v ) = [ 1 − p ˉ k p ˉ k ] . (24)
Therefore, for any k , ℓ ∈ [ K ] k,\ell\in[K] k , ℓ ∈ [ K ] ,
∥ E [ f ( v ) ∣ v ∈ S k ] − E [ f ( v ) ∣ v ∈ S ℓ ] ∥ 2 = ∥ [ ( 1 − p ˉ k ) − ( 1 − p ˉ ℓ ) p ˉ k − p ˉ ℓ ] ∥ 2 = ∥ ( p ˉ k − p ˉ ℓ ) [ − 1 1 ] ∥ 2 = 2 ∣ p ˉ k − p ˉ ℓ ∣ . (25) \begin{aligned}
\lVert\mathbb{E}[f(v)\mid v\in S_k]-\mathbb{E}[f(v)\mid v\in S_\ell]\rVert_2
&=\left\lVert\begin{bmatrix}(1-\bar{p}_k)-(1-\bar{p}_\ell)\\\bar{p}_k-\bar{p}_\ell\end{bmatrix}\right\rVert_2\\
&=\left\lVert(\bar{p}_k-\bar{p}_\ell)\begin{bmatrix}-1\\1\end{bmatrix}\right\rVert_2\\
&=\sqrt{2}\lvert\bar{p}_k-\bar{p}_\ell\rvert. \tag*{(25)}
\end{aligned} ∥ E [ f ( v ) ∣ v ∈ S k ] − E [ f ( v ) ∣ v ∈ S ℓ ] ∥ 2 = [ ( 1 − p ˉ k ) − ( 1 − p ˉ ℓ ) p ˉ k − p ˉ ℓ ] 2 = ( p ˉ k − p ˉ ℓ ) [ − 1 1 ] 2 = 2 ∣ p ˉ k − p ˉ ℓ ∣ . (25)
Taking the maximum over k , ℓ ∈ [ K ] k,\ell\in[K] k , ℓ ∈ [ K ] on both sides yields
max k , ℓ ∈ [ K ] ∥ E [ f ( v ) ∣ v ∈ S k ] − E [ f ( v ) ∣ v ∈ S ℓ ] ∥ 2 = 2 max k , ℓ ∈ [ K ] ∣ p ˉ k − p ˉ ℓ ∣ . (26) \max_{k,\ell\in[K]}\left\|\mathbb{E}[f(v)\mid v\in S_k]-\mathbb{E}[f(v)\mid v\in S_\ell]\right\|_2=\sqrt{2}\max_{k,\ell\in[K]}|\bar{p}_k-\bar{p}_\ell|. \tag*{(26)} k , ℓ ∈ [ K ] max ∥ E [ f ( v ) ∣ v ∈ S k ] − E [ f ( v ) ∣ v ∈ S ℓ ] ∥ 2 = 2 k , ℓ ∈ [ K ] max ∣ p ˉ k − p ˉ ℓ ∣. (26)
Substituting this identity into the left-hand side of Proposition 2 and dividing by 2 \sqrt{2} 2 gives
max k , ℓ ∈ [ K ] ∣ p ˉ k − p ˉ ℓ ∣ ≤ L 2 ( ∥ W ∥ 2 δ + 2 max k ∈ [ K ] tr ( W C k W ⊤ ) ) , (27) \max_{k,\ell\in[K]}|\bar{p}_k-\bar{p}_\ell|\leq\frac{L}{\sqrt{2}}\left(\|\mathbf{W}\|_2\delta+2\max_{k\in[K]}\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_k\mathbf{W}^{\top})}\right), \tag*{(27)} k , ℓ ∈ [ K ] max ∣ p ˉ k − p ˉ ℓ ∣ ≤ 2 L ( ∥ W ∥ 2 δ + 2 k ∈ [ K ] max tr ( W C k W ⊤ ) ) , (27)
which completes the proof.
Comparison of the Bounds (Proof of Proposition 4)
We adopt the setting of Section 3 with b = 0 \mathbf{b}=\mathbf{0} b = 0 , which cancels in the difference of the two conditional expectations, and write z : = W h v ∈ R c \mathbf{z}:=\mathbf{W}\mathbf{h}_v\in\mathbb{R}^{c} z := W h v ∈ R c for the pre-activation output on a graph with n n n nodes. In place of the covariances C k \mathbf{C}_k C k , FairGAT [24 ] assumes a uniform bound on the deviation of each node from its group mean, ∥ z j − z ˉ s ∥ ∞ ≤ Δ z ( s ) \|\mathbf{z}_j-\bar{\mathbf{z}}_s\|_\infty\leq\Delta_z^{(s)} ∥ z j − z ˉ s ∥ ∞ ≤ Δ z ( s ) for s = 0 , 1 s=0,1 s = 0 , 1 , and sets Δ z : = max s Δ z ( s ) \Delta_z:=\max_s\Delta_z^{(s)} Δ z := max s Δ z ( s ) . Under the same hypothesis ∥ μ 0 − μ 1 ∥ 2 ≤ δ \|\boldsymbol{\mu}_0-\boldsymbol{\mu}_1\|_2\leq\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ , the two upper bounds on the mean gap ∥ E [ f ( v ) ∣ v ∈ S 0 ] − E [ f ( v ) ∣ v ∈ S 1 ] ∥ 2 \|\mathbb{E}[f(v)\mid v\in S_0]-\mathbb{E}[f(v)\mid v\in S_1]\|_2 ∥ E [ f ( v ) ∣ v ∈ S 0 ] − E [ f ( v ) ∣ v ∈ S 1 ] ∥ 2 are
B o u r s : = L ( ∥ W ∥ 2 δ + tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ) , \mathcal{B}_{\mathrm{ours}}:=L\left(\|\mathbf{W}\|_2\delta+\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_0\mathbf{W}^{\top})}+\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_1\mathbf{W}^{\top})}\right), B ours := L ( ∥ W ∥ 2 δ + tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ) ,
B F a i r G A T : = L ( σ max ( W ) δ + 2 n Δ z ) = L ( ∥ W ∥ 2 δ + 2 n Δ z ) . (28) \mathcal{B}_{\mathrm{FairGAT}}:=L\left(\sigma_{\max}(\mathbf{W})\delta+2\sqrt{n}\Delta_z\right)=L\left(\|\mathbf{W}\|_2\delta+2\sqrt{n}\Delta_z\right). \tag*{(28)} B FairGAT := L ( σ m a x ( W ) δ + 2 n Δ z ) = L ( ∥ W ∥ 2 δ + 2 n Δ z ) . (28)
The two share an identical mean-gap term and differ only in how they account for the within-group spread, so the comparison of Proposition 4 reduces to the variance parts alone. Note that B o u r s \mathcal{B}_{\mathrm{ours}} B ours is based on Proposition 10 below, the special case of Proposition 2 for K = 2 K=2 K = 2 .
For an experimental comparison, please refer to Figure 10 in Appendix § 15 .7.
Figure 10. Comparison of our bound on the soft prediction gap against that of FairGAT [24 ] .
Proof. Given a graph G \mathcal{G} G with n n n nodes, let’s define f ( v ) = σ ( W h v ) f(v)=\sigma(\mathbf{W}\mathbf{h}_v) f ( v ) = σ ( W h v ) , where the function σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) is L L L -Lipschitz. Suppose that we have two groups of nodes S 0 S_0 S 0 and S 1 S_1 S 1 , then μ 0 = E [ h v ∣ v ∈ S 0 ] \boldsymbol{\mu}_0=\mathbb{E}[\mathbf{h}_v\mid v\in S_0] μ 0 = E [ h v ∣ v ∈ S 0 ] , μ 1 = E [ h v ∣ v ∈ S 1 ] \boldsymbol{\mu}_1=\mathbb{E}[\mathbf{h}_v\mid v\in S_1] μ 1 = E [ h v ∣ v ∈ S 1 ] , C 0 = cov ( h v ∣ v ∈ S 0 ) \mathbf{C}_0=\operatorname{cov}(\mathbf{h}_v\mid v\in S_0) C 0 = cov ( h v ∣ v ∈ S 0 ) and C 1 = cov ( h v ∣ v ∈ S 1 ) \mathbf{C}_1=\operatorname{cov}(\mathbf{h}_v\mid v\in S_1) C 1 = cov ( h v ∣ v ∈ S 1 ) , and define δ : = ∥ μ 0 − μ 1 ∥ 1 \delta:=\|\boldsymbol{\mu}_0-\boldsymbol{\mu}_1\|_1 δ := ∥ μ 0 − μ 1 ∥ 1 . Also, define z = W h v \mathbf{z}=\mathbf{W}\mathbf{h}_v z = W h v , Δ z = max ( Δ z ( 0 ) , Δ z ( 1 ) ) \Delta_z=\max(\Delta_z^{(0)},\Delta_z^{(1)}) Δ z = max ( Δ z ( 0 ) , Δ z ( 1 ) ) , ∥ z j − z ˉ s ∥ ∞ ≤ Δ z ( s ) \|\mathbf{z}_j-\bar{\mathbf{z}}_s\|_\infty\leq\Delta_z^{(s)} ∥ z j − z ˉ s ∥ ∞ ≤ Δ z ( s ) , s = 0 , 1 s=0,1 s = 0 , 1 . Then, we have the following upper bounds, for
∥ E [ f ( v ) ∣ v ∈ S 0 ] − E [ f ( v ) ∣ v ∈ S 1 ] ∥ 2 (29) \left\|\mathbb{E}[f(v)\mid v\in S_0]-\mathbb{E}[f(v)\mid v\in S_1]\right\|_2 \tag*{(29)} ∥ E [ f ( v ) ∣ v ∈ S 0 ] − E [ f ( v ) ∣ v ∈ S 1 ] ∥ 2 (29)
B o u r s : = L ∥ W ∥ 2 δ + L ( tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ) ⏟ D o u r s (30) \mathcal{B}_{\mathrm{ours}}:=L\|\mathbf{W}\|_2\delta+L\underbrace{\left(\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_0\mathbf{W}^{\top})}+\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_1\mathbf{W}^{\top})}\right)}_{\mathcal{D}_{\mathrm{ours}}} \tag*{(30)} B ours := L ∥ W ∥ 2 δ + L D ours ( tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ) (30)
B F a i r G A T : = L ( σ max ( W ) ⋅ δ + 2 n Δ z ) = L ∥ W ∥ 2 δ + 2 L n Δ z ⏟ D F a i r G A T (31) \mathcal{B}_{\mathrm{FairGAT}}:=L\left(\sigma_{\max}(\mathbf{W})\cdot\delta+2\sqrt{n}\Delta_z\right)=L\|\mathbf{W}\|_2\delta+\underbrace{2L\sqrt{n}\Delta_z}_{\mathcal{D}_{\mathrm{FairGAT}}} \tag*{(31)} B FairGAT := L ( σ m a x ( W ) ⋅ δ + 2 n Δ z ) = L ∥ W ∥ 2 δ + D FairGAT 2 L n Δ z (31)
We notice that the first parts of the bounds are the same, so we only have to compare D o u r s \mathcal{D}_{\mathrm{ours}} D ours with D F a i r G A T \mathcal{D}_{\mathrm{FairGAT}} D FairGAT .
The inequality D o u r s ≤ D F a i r G A T \mathcal{D}_{\mathrm{ours}}\leq\mathcal{D}_{\mathrm{FairGAT}} D ours ≤ D FairGAT is equivalent to
tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ≤ 2 n Δ z , (32) \sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_0\mathbf{W}^{\top})}+\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_1\mathbf{W}^{\top})}\leq2\sqrt{n}\Delta_z, \tag*{(32)} tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ≤ 2 n Δ z , (32)
where we canceled the common factor L > 0 L>0 L > 0 . Solving for n n n (both sides are nonnegative, so we may square), yields
n ≥ n ∗ : = ( tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ) 2 4 Δ z 2 . (33) n\geq n^*:=\frac{\left(\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_0\mathbf{W}^{\top})}+\sqrt{\operatorname{tr}(\mathbf{W}\mathbf{C}_1\mathbf{W}^{\top})}\right)^2}{4\Delta_z^2}. \tag*{(33)} n ≥ n ∗ := 4 Δ z 2 ( tr ( W C 0 W ⊤ ) + tr ( W C 1 W ⊤ ) ) 2 . (33)
Let c c c denote the output dimension, i.e. z ∈ R c z \in\mathbb{R}^{c} z ∈ R c . The trace of the z z z -space covariance is the expected squared ℓ 2 \ell_2 ℓ 2 deviation around the group mean z ˉ s = W μ s \bar{z}_s = W\mu_s z ˉ s = W μ s :
tr ( W C s W T ) = E [ ∥ z − z ˉ s ∥ 2 2 ∣ s ] , s = 0 , 1. (34) \operatorname{tr}(WC_sW^{\mathsf{T}}) = \mathbb{E}\left[\lVert z-\bar{z}_s\rVert_2^2 \mid s\right], \qquad s=0,1. \tag*{(34)} tr ( W C s W T ) = E [ ∥ z − z ˉ s ∥ 2 2 ∣ s ] , s = 0 , 1. (34)
The assumption ∥ z j − z ˉ s ∥ ∞ ≤ Δ z ( s ) ≤ Δ z \lVert z_j-\bar{z}_s\rVert_\infty\leq\Delta_z^{(s)} \leq\Delta_z ∥ z j − z ˉ s ∥ ∞ ≤ Δ z ( s ) ≤ Δ z bounds each of the c c c coordinates, hence
∥ z j − z ˉ s ∥ 2 2 = ∑ k = 1 c ( z j , k − z ˉ s , k ) 2 ≤ ∑ k = 1 c Δ z 2 = c Δ z 2 . (35) \lVert z_j-\bar{z}_s\rVert_2^2 = \sum_{k=1}^{c}(z_{j,k}-\bar{z}_{s,k})^2 \leq\sum_{k=1}^{c}\Delta_z^2 = c\Delta_z^2. \tag*{(35)} ∥ z j − z ˉ s ∥ 2 2 = k = 1 ∑ c ( z j , k − z ˉ s , k ) 2 ≤ k = 1 ∑ c Δ z 2 = c Δ z 2 . (35)
Taking the conditional expectation gives, for s = 0 , 1 s=0,1 s = 0 , 1 ,
E [ ∥ z − z ˉ s ∥ 2 2 ∣ s ] ≤ c Δ z 2 ⇒ tr ( W C s W T ) ≤ c Δ z 2 ⇒ tr ( W C s W T ) ≤ c Δ z . (36) \mathbb{E}\left[\lVert z-\bar{z}_s\rVert_2^2 \mid s\right] \leq c\Delta_z^2 \Rightarrow\operatorname{tr}(WC_sW^{\mathsf{T}}) \leq c\Delta_z^2 \Rightarrow\sqrt{\operatorname{tr}(WC_sW^{\mathsf{T}})} \leq\sqrt{c}\Delta_z. \tag*{(36)} E [ ∥ z − z ˉ s ∥ 2 2 ∣ s ] ≤ c Δ z 2 ⇒ tr ( W C s W T ) ≤ c Δ z 2 ⇒ tr ( W C s W T ) ≤ c Δ z . (36)
Substituting this into n ∗ n^* n ∗ ,
n ∗ ≤ ( c Δ z + c Δ z ) 2 4 Δ z 2 = ( 2 c Δ z ) 2 4 Δ z 2 = c . (37) n^* \leq\frac{\left(\sqrt{c}\Delta_z+\sqrt{c}\Delta_z\right)^2}{4\Delta_z^2} = \frac{\left(2\sqrt{c}\Delta_z\right)^2}{4\Delta_z^2}=c. \tag*{(37)} n ∗ ≤ 4 Δ z 2 ( c Δ z + c Δ z ) 2 = 4 Δ z 2 ( 2 c Δ z ) 2 = c . (37)
Therefore c ≥ n ∗ c \geq n^* c ≥ n ∗ , and the condition n ≥ n ∗ n \geq n^* n ≥ n ∗ is guaranteed whenever the number of nodes exceeds the output dimension, n ≥ c n \geq c n ≥ c . In summary, for n ≥ c n \geq c n ≥ c we obtain
B o u r s ≤ B F a i r G A T . (38) \mathcal{B}_{\mathrm{ours}} \leq\mathcal{B}_{\mathrm{FairGAT}}. \tag*{(38)} B ours ≤ B FairGAT . (38)
Link Prediction
For a link prediction model, typically the final layer consists of an inner product and a non-linear, L L L -Lipschitz function σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) (e.g. sigmoid, L = 1 / 4 L=1/4 L = 1/4 ). Let’s define the inner product function g ( ⋅ , ⋅ ) g(\cdot,\cdot) g ( ⋅ , ⋅ ) as g ( v , u ) = h v T Σ h u g(v,u)=\mathbf{h}_v^{\mathsf{T}}\Sigma\mathbf{h}_u g ( v , u ) = h v T Σ h u , where Σ ∈ S + + d \Sigma\in\mathbb{S}_{++}^{d} Σ ∈ S ++ d is a positive-definite matrix, and combining it with the non-linearity we obtain f ( v , u ) : = σ ( h v T Σ h u ) f(v,u):=\sigma(\mathbf{h}_v^{\mathsf{T}}\Sigma\mathbf{h}_u) f ( v , u ) := σ ( h v T Σ h u ) . Also, assume that for each v ∈ V v \in\mathcal{V} v ∈ V , there is a scalar Q > 0 Q>0 Q > 0 , such that ∥ h v ∥ 2 ≤ Q \lVert\mathbf{h}_v\rVert_2 \leq Q ∥ h v ∥ 2 ≤ Q .
Proposition 11 (Linear readout - Proposition 4.1. of Li et al. [28 ] ). If ∥ μ 0 − μ 1 ∥ 2 ≤ δ \lVert\mu_0-\mu_1\rVert_2\leq\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ , then
∣ E [ g ( v , u ) ∣ S ( v ) = S ( u ) ] − E [ g ( v , u ) ∣ S ( v ) ≠ S ( u ) ] ∣ ≤ Q ∥ Σ ∥ 2 δ . (39) \left|\mathbb{E}[g(v,u)\mid S(v)=S(u)]-\mathbb{E}[g(v,u)\mid S(v)\ne S(u)]\right|\leq Q\lVert\Sigma\rVert_2\delta. \tag*{(39)} ∣ E [ g ( v , u ) ∣ S ( v ) = S ( u )] − E [ g ( v , u ) ∣ S ( v ) = S ( u )] ∣ ≤ Q ∥ Σ ∥ 2 δ . (39)
The extension of Proposition 11 for multiple sensitive subgroups (K > 2 K>2 K > 2 ), can be found in Kose & Shen [26 ] .
Proposition 12 (Non-linear readout). If ∥ μ 0 − μ 1 ∥ 2 ≤ δ \lVert\mu_0-\mu_1\rVert_2\leq\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ , then
∥ E [ f ( v , u ) ∣ S ( v ) = S ( u ) ] − E [ f ( v , u ) ∣ S ( v ) ≠ S ( u ) ] ∥ ≤ L Q ∥ Σ ∥ 2 ( δ + ( 2 α 0 + 1 ) tr ( C 0 ) + ( 2 α 1 + 1 ) tr ( C 1 ) ) (40) \begin{aligned}
\left\lVert\mathbb{E}[f(v,u)\mid S(v)=S(u)]-\mathbb{E}[f(v,u)\mid S(v)\ne S(u)]\right\rVert
&\leq LQ\lVert\Sigma\rVert_2\left(\delta+(2\alpha_0+1)\sqrt{\operatorname{tr}(C_0)}\right.\\
&\qquad\left. +(2\alpha_1+1)\sqrt{\operatorname{tr}(C_1)}\right) \tag*{(40)}
\end{aligned} ∥ E [ f ( v , u ) ∣ S ( v ) = S ( u )] − E [ f ( v , u ) ∣ S ( v ) = S ( u )] ∥ ≤ L Q ∥ Σ ∥ 2 ( δ + ( 2 α 0 + 1 ) tr ( C 0 ) + ( 2 α 1 + 1 ) tr ( C 1 ) ) (40)
where α k = n k 2 n 0 2 + n 1 2 \alpha_k=\frac{n_k^2}{n_0^2+n_1^2} α k = n 0 2 + n 1 2 n k 2 .
Proof. To simplify the notations, let μ 0 : = E v ∼ U [ v ∣ v ∈ S 0 ] \mu_0:=\mathbb{E}_{v\sim U}[v\mid v\in S_0] μ 0 := E v ∼ U [ v ∣ v ∈ S 0 ] and μ 1 : = E u ∼ U [ u ∣ u ∈ S 1 ] \mu_1:=\mathbb{E}_{u\sim U}[u\mid u\in S_1] μ 1 := E u ∼ U [ u ∣ u ∈ S 1 ] denote the mean representations. Thus, ∥ μ 0 − μ 1 ∥ 2 ≤ δ \lVert\mu_0-\mu_1\rVert_2\leq\delta ∥ μ 0 − μ 1 ∥ 2 ≤ δ .
Let
E i n t r a : = E [ f ( v , u ) ∣ S ( v ) = S ( u ) ] = E [ f ( v , u ) ∣ v ∈ S 0 , u ∈ S 0 ∨ v ∈ S 1 , u ∈ S 1 ] = ∣ S 0 ∣ 2 ∣ S 0 ∣ 2 + ∣ S 1 ∣ 2 E [ f ( v , u ) ∣ v , u ∈ S 0 ] + ∣ S 1 ∣ 2 ∣ S 0 ∣ 2 + ∣ S 1 ∣ 2 E [ f ( v , u ) ∣ v , u ∈ S 1 ] = α 0 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 0 ] + α 1 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 1 ] (41) \begin{aligned}
\mathbb{E}_{\mathrm{intra}} &:= \mathbb{E}[f(v,u)\mid S(v)=S(u)]\\
&= \mathbb{E}[f(v,u)\mid v\in S_0,u\in S_0\lor v\in S_1,u\in S_1]\\
&= \frac{|S_0|^2}{|S_0|^2+|S_1|^2}\mathbb{E}[f(v,u)\mid v,u\in S_0]
+\frac{|S_1|^2}{|S_0|^2+|S_1|^2}\mathbb{E}[f(v,u)\mid v,u\in S_1]\\
&= \alpha_0\cdot\mathbb{E}[f(v,u)\mid v,u\in S_0]+\alpha_1\cdot\mathbb{E}[f(v,u)\mid v,u\in S_1] \tag*{(41)}
\end{aligned} E intra := E [ f ( v , u ) ∣ S ( v ) = S ( u )] = E [ f ( v , u ) ∣ v ∈ S 0 , u ∈ S 0 ∨ v ∈ S 1 , u ∈ S 1 ] = ∣ S 0 ∣ 2 + ∣ S 1 ∣ 2 ∣ S 0 ∣ 2 E [ f ( v , u ) ∣ v , u ∈ S 0 ] + ∣ S 0 ∣ 2 + ∣ S 1 ∣ 2 ∣ S 1 ∣ 2 E [ f ( v , u ) ∣ v , u ∈ S 1 ] = α 0 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 0 ] + α 1 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 1 ] (41)
and
E i n t e r : = E [ f ( v , u ) ∣ S ( v ) ≠ S ( u ) ] = E [ f ( v , u ) ∣ v ∈ S 0 , u ∈ S 1 ] . (42) \mathbb{E}_{\mathrm{inter}}:=\mathbb{E}[f(v,u)\mid S(v)\ne S(u)]=\mathbb{E}[f(v,u)\mid v\in S_0,u\in S_1]. \tag*{(42)} E inter := E [ f ( v , u ) ∣ S ( v ) = S ( u )] = E [ f ( v , u ) ∣ v ∈ S 0 , u ∈ S 1 ] . (42)
To bridge the expectations with the mean representations, we define three mean-based variables:
M 00 : = σ ( μ 0 T Σ μ 0 ) M 11 : = σ ( μ 1 T Σ μ 1 ) M 01 : = σ ( μ 0 T Σ μ 1 ) (43) M_{00}:=\sigma(\mu_0^{\mathsf{T}}\Sigma\mu_0)\qquad M_{11}:=\sigma(\mu_1^{\mathsf{T}}\Sigma\mu_1)\qquad M_{01}:=\sigma(\mu_0^{\mathsf{T}}\Sigma\mu_1) \tag*{(43)} M 00 := σ ( μ 0 T Σ μ 0 ) M 11 := σ ( μ 1 T Σ μ 1 ) M 01 := σ ( μ 0 T Σ μ 1 ) (43)
Using the triangle inequality, we can bound Δ D P \Delta_{\mathrm{DP}} Δ DP by separating the variance within the groups from the gap between the group means:
Δ D P = ∣ E i n t r a − E i n t e r ∣ = ∣ α 0 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 0 ] + α 1 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 1 ] − E [ f ( v , u ) ∣ v ∈ S 0 , u ∈ S 1 ] ∣ = ∣ α 0 E [ f ( v , u ) ∣ S 0 , S 0 ] − α 0 M 00 + α 0 M 00 + α 1 E [ f ( v , u ) ∣ S 1 , S 1 ] − α 1 M 11 + α 1 M 11 − E [ f ( v , u ) ∣ S 0 , S 1 ] + M 01 − M 01 ∣ ≤ α 0 ∣ E [ f ( v , u ) ∣ S 0 , S 0 ] − M 00 ∣ + α 1 ∣ E [ f ( v , u ) ∣ S 1 , S 1 ] − M 11 ∣ + ∣ E [ f ( v , u ) ∣ S 0 , S 1 ] − M 01 ∣ + ∣ α 0 M 00 + α 1 M 11 − M 01 ∣ (44) \begin{aligned}
\Delta_{\mathrm{DP}} &= \left|\mathbb{E}_{\mathrm{intra}}-\mathbb{E}_{\mathrm{inter}}\right| \\
&= \left|\alpha_0\cdot\mathbb{E}[f(v,u)\mid v,u\in S_0]+\alpha_1\cdot\mathbb{E}[f(v,u)\mid v,u\in S_1]-\mathbb{E}[f(v,u)\mid v\in S_0,u\in S_1]\right| \\
&= \left|\alpha_0\mathbb{E}[f(v,u)\mid S_0,S_0]-\alpha_0M_{00}+\alpha_0M_{00}\right. \\
&\qquad+\alpha_1\mathbb{E}[f(v,u)\mid S_1,S_1]-\alpha_1M_{11}+\alpha_1M_{11} \\
&\qquad\left.-\mathbb{E}[f(v,u)\mid S_0,S_1]+M_{01}-M_{01}\right| \\
&\le\alpha_0\left|\mathbb{E}[f(v,u)\mid S_0,S_0]-M_{00}\right|+\alpha_1\left|\mathbb{E}[f(v,u)\mid S_1,S_1]-M_{11}\right| \\
&\qquad+\left|\mathbb{E}[f(v,u)\mid S_0,S_1]-M_{01}\right|+\left|\alpha_0M_{00}+\alpha_1M_{11}-M_{01}\right| \tag*{(44)}
\end{aligned} Δ DP = ∣ E intra − E inter ∣ = ∣ α 0 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 0 ] + α 1 ⋅ E [ f ( v , u ) ∣ v , u ∈ S 1 ] − E [ f ( v , u ) ∣ v ∈ S 0 , u ∈ S 1 ] ∣ = ∣ α 0 E [ f ( v , u ) ∣ S 0 , S 0 ] − α 0 M 00 + α 0 M 00 + α 1 E [ f ( v , u ) ∣ S 1 , S 1 ] − α 1 M 11 + α 1 M 11 − E [ f ( v , u ) ∣ S 0 , S 1 ] + M 01 − M 01 ∣ ≤ α 0 ∣ E [ f ( v , u ) ∣ S 0 , S 0 ] − M 00 ∣ + α 1 ∣ E [ f ( v , u ) ∣ S 1 , S 1 ] − M 11 ∣ + ∣ E [ f ( v , u ) ∣ S 0 , S 1 ] − M 01 ∣ + ∣ α 0 M 00 + α 1 M 11 − M 01 ∣ (44)
Bounding the Mean Group Gap (Term 4)
Since α 0 + α 1 = 1 \alpha_0+\alpha_1=1 α 0 + α 1 = 1 , we can rewrite the last term:
α 0 M 00 + α 1 M 11 − M 01 = α 0 ( M 00 − M 01 ) + α 1 ( M 11 − M 01 ) . (45) \alpha_0M_{00}+\alpha_1M_{11}-M_{01}=\alpha_0(M_{00}-M_{01})+\alpha_1(M_{11}-M_{01}). \tag*{(45)} α 0 M 00 + α 1 M 11 − M 01 = α 0 ( M 00 − M 01 ) + α 1 ( M 11 − M 01 ) . (45)
Using the Lipschitz property of the non-linear σ ( ) \sigma() σ ( ) and Cauchy-Schwarz:
∣ M 00 − M 01 ∣ = ∣ σ ( p T Σ p ) − σ ( p T Σ q ) ∣ ≤ L ∣ p T Σ ( p − q ) ∣ ≤ L ∥ p ∥ 2 ∥ Σ ∥ 2 ∥ p − q ∥ 2 ≤ L Q ∥ Σ ∥ 2 δ . (46) \begin{aligned}
|M_{00}-M_{01}| &= |\sigma(p^{\mathsf{T}}\Sigma p)-\sigma(p^{\mathsf{T}}\Sigma q)| \\
&\le L|p^{\mathsf{T}}\Sigma(p-q)|\le L\|p\|_2\|\Sigma\|_2\|p-q\|_2\le LQ\|\Sigma\|_2\delta. \tag*{(46)}
\end{aligned} ∣ M 00 − M 01 ∣ = ∣ σ ( p T Σ p ) − σ ( p T Σ q ) ∣ ≤ L ∣ p T Σ ( p − q ) ∣ ≤ L ∥ p ∥ 2 ∥Σ ∥ 2 ∥ p − q ∥ 2 ≤ L Q ∥Σ ∥ 2 δ . (46)
Similarly, ∣ M 11 − M 01 ∣ ≤ L Q ∥ Σ ∥ 2 δ |M_{11}-M_{01}|\le LQ\|\Sigma\|_2\delta ∣ M 11 − M 01 ∣ ≤ L Q ∥Σ ∥ 2 δ . Thus, the total mean gap is bounded by:
∣ α 0 M 00 + α 1 M 11 − M 01 ∣ = ∣ α 0 ( M 00 − M 01 ) + α 1 ( M 11 − M 01 ) ∣ ≤ L Q ∥ Σ ∥ 2 δ ( α 0 + α 1 ) = L Q ∥ Σ ∥ 2 δ . (47) \begin{aligned}
|\alpha_0M_{00}+\alpha_1M_{11}-M_{01}| &= |\alpha_0(M_{00}-M_{01})+\alpha_1(M_{11}-M_{01})| \\
&\le LQ\|\Sigma\|_2\delta(\alpha_0+\alpha_1)=LQ\|\Sigma\|_2\delta. \tag*{(47)}
\end{aligned} ∣ α 0 M 00 + α 1 M 11 − M 01 ∣ = ∣ α 0 ( M 00 − M 01 ) + α 1 ( M 11 − M 01 ) ∣ ≤ L Q ∥Σ ∥ 2 δ ( α 0 + α 1 ) = L Q ∥Σ ∥ 2 δ . (47)
Bounding the Representation Spread (Terms 1, 2, and 3)
We now evaluate the distance between the expectation of the function and the function of the expectation. For S 0 S_0 S 0 (Jensen’s and then Lipschitz for each term of the expectations - thus also for the expectation):
∣ E [ σ ( v T Σ u ) ∣ S 0 , S 0 ] − M 00 ∣ ≤ E [ ∣ σ ( v T Σ u ) − σ ( p T Σ p ) ∣ ∣ S 0 , S 0 ] ≤ L E [ ∣ v T Σ u − p T Σ p ∣ ∣ S 0 , S 0 ] (48) \begin{aligned}
\left|\mathbb{E}[\sigma(v^{\mathsf{T}}\Sigma u)\mid S_0,S_0]-M_{00}\right| &\le\mathbb{E}[|\sigma(v^{\mathsf{T}}\Sigma u)-\sigma(p^{\mathsf{T}}\Sigma p)|\mid S_0,S_0] \\
&\le L\mathbb{E}[|v^{\mathsf{T}}\Sigma u-p^{\mathsf{T}}\Sigma p|\mid S_0,S_0] \tag*{(48)}
\end{aligned} E [ σ ( v T Σ u ) ∣ S 0 , S 0 ] − M 00 ≤ E [ ∣ σ ( v T Σ u ) − σ ( p T Σ p ) ∣ ∣ S 0 , S 0 ] ≤ L E [ ∣ v T Σ u − p T Σ p ∣ ∣ S 0 , S 0 ] (48)
We decompose the inner product difference:
∣ v T Σ u − p T Σ p ∣ = ∣ ( v − p ) T Σ u + p T Σ ( u − p ) ∣ ≤ Q ∥ Σ ∥ 2 ( ∥ v − p ∥ 2 + ∥ u − p ∥ 2 ) (49) |v^{\mathsf{T}}\Sigma u-p^{\mathsf{T}}\Sigma p|=|(v-p)^{\mathsf{T}}\Sigma u+p^{\mathsf{T}}\Sigma(u-p)|\le Q\|\Sigma\|_2(\|v-p\|_2+\|u-p\|_2) \tag*{(49)} ∣ v T Σ u − p T Σ p ∣ = ∣ ( v − p ) T Σ u + p T Σ ( u − p ) ∣ ≤ Q ∥Σ ∥ 2 ( ∥ v − p ∥ 2 + ∥ u − p ∥ 2 ) (49)
Taking the expectation over independent variables v , u ∈ S 0 v,u\in S_0 v , u ∈ S 0 , and using Jensen’s inequality E [ ∥ v − p ∥ 2 ∣ S 0 ] ≤ tr ( C 0 ) \mathbb{E}[\|v-p\|_2\mid S_0]\le\sqrt{\operatorname{tr}(C_0)} E [ ∥ v − p ∥ 2 ∣ S 0 ] ≤ tr ( C 0 ) , we get:
α 0 ∣ E [ f ( v , u ) ∣ S 0 , S 0 ] − M 00 ∣ ≤ α 0 L Q ∥ Σ ∥ 2 ( 2 tr ( C 0 ) ) = α 0 2 L Q ∥ Σ ∥ 2 tr ( C 0 ) (50) \alpha_0|\mathbb{E}[f(v,u)\mid S_0,S_0]-M_{00}|\le\alpha_0LQ\|\Sigma\|_2(2\sqrt{\operatorname{tr}(C_0)})=\alpha_0 2LQ\|\Sigma\|_2\sqrt{\operatorname{tr}(C_0)} \tag*{(50)} α 0 ∣ E [ f ( v , u ) ∣ S 0 , S 0 ] − M 00 ∣ ≤ α 0 L Q ∥Σ ∥ 2 ( 2 tr ( C 0 ) ) = α 0 2 L Q ∥Σ ∥ 2 tr ( C 0 ) (50)
Similarly, for S 1 S_1 S 1 :
α 1 ∣ E [ f ( v , u ) ∣ S 1 , S 1 ] − M 11 ∣ ≤ α 1 2 L Q ∥ Σ ∥ 2 tr ( C 1 ) (51) \alpha_1|\mathbb{E}[f(v,u)\mid S_1,S_1]-M_{11}|\le\alpha_1 2LQ\|\Sigma\|_2\sqrt{\operatorname{tr}(C_1)} \tag*{(51)} α 1 ∣ E [ f ( v , u ) ∣ S 1 , S 1 ] − M 11 ∣ ≤ α 1 2 L Q ∥Σ ∥ 2 tr ( C 1 ) (51)
For the inter-group variance (v ∈ S 0 , u ∈ S 1 v\in S_0,u\in S_1 v ∈ S 0 , u ∈ S 1 ):
∣ E [ f ( v , u ) ∣ S 0 , S 1 ] − M 01 ∣ ≤ L E [ ∣ v T Σ u − p T Σ q ∣ ∣ S 0 , S 1 ] = L E [ ∣ v T Σ u − p T Σ u + p T Σ u − p T Σ q ∣ ∣ S 0 , S 1 ] = L E [ ∣ ( v − p ) T Σ u + p T Σ ( u − q ) ∣ ∣ S 0 , S 1 ] ≤ L Q ∥ Σ ∥ 2 ( tr ( C 0 ) + tr ( C 1 ) ) (52) \begin{aligned}
|\mathbb{E}[f(v,u)\mid S_0,S_1]-M_{01}| &\le L\mathbb{E}[|v^{\mathsf{T}}\Sigma u-p^{\mathsf{T}}\Sigma q|\mid S_0,S_1] \\
&=L\mathbb{E}[|v^{\mathsf{T}}\Sigma u-p^{\mathsf{T}}\Sigma u+p^{\mathsf{T}}\Sigma u-p^{\mathsf{T}}\Sigma q|\mid S_0,S_1] \\
&=L\mathbb{E}[|(v-p)^{\mathsf{T}}\Sigma u+p^{\mathsf{T}}\Sigma(u-q)|\mid S_0,S_1] \\
&\le LQ\|\Sigma\|_2\left(\sqrt{\operatorname{tr}(C_0)}+\sqrt{\operatorname{tr}(C_1)}\right) \tag*{(52)}
\end{aligned} ∣ E [ f ( v , u ) ∣ S 0 , S 1 ] − M 01 ∣ ≤ L E [ ∣ v T Σ u − p T Σ q ∣ ∣ S 0 , S 1 ] = L E [ ∣ v T Σ u − p T Σ u + p T Σ u − p T Σ q ∣ ∣ S 0 , S 1 ] = L E [ ∣ ( v − p ) T Σ u + p T Σ ( u − q ) ∣ ∣ S 0 , S 1 ] ≤ L Q ∥Σ ∥ 2 ( tr ( C 0 ) + tr ( C 1 ) ) (52)
Final Combination
Substituting all the bounded terms back into the triangle inequality for Δ D P \Delta_{\mathrm{DP}} Δ DP and factoring out L Q ∥ Σ ∥ 2 LQ\|\Sigma\|_2 L Q ∥Σ ∥ 2 yields the final bound:
Δ D P ≤ L Q ∥ Σ ∥ 2 ( δ + ( 2 α 0 + 1 ) tr ( C 0 ) + ( 2 α 1 + 1 ) tr ( C 1 ) ) (53) \Delta_{\mathrm{DP}}\le LQ\|\Sigma\|_2\left(\delta+(2\alpha_0+1)\sqrt{\operatorname{tr}(C_0)}+(2\alpha_1+1)\sqrt{\operatorname{tr}(C_1)}\right) \tag*{(53)} Δ DP ≤ L Q ∥Σ ∥ 2 ( δ + ( 2 α 0 + 1 ) tr ( C 0 ) + ( 2 α 1 + 1 ) tr ( C 1 ) ) (53)
completing the proof.
Extension to Multiple Sensitive Groups (Proof of Proposition 5)
Proof. To simplify the notations, let μ k : = E v ∼ U [ v ∣ v ∈ S k ] \mu_k := \mathbb{E}_{v\sim U}[v \mid v \in S_k] μ k := E v ∼ U [ v ∣ v ∈ S k ] denote the mean representation of group S k S_k S k , for k = 0 , … , K − 1 k = 0, \ldots, K - 1 k = 0 , … , K − 1 . Thus, ∥ μ k − μ l ∥ 2 ≤ δ \lVert\mu_k - \mu_l\rVert_2 \le\delta ∥ μ k − μ l ∥ 2 ≤ δ for all k , l k,l k , l .
Let
E i n t r a : = E [ f ( v , u ) ∣ S ( v ) = S ( u ) ] = ∑ k = 0 K − 1 ∣ S k ∣ 2 ( ∑ j ∣ S j ∣ ) 2 E [ f ( v , u ) ∣ v , u ∈ S k ] = ∑ k = 0 K − 1 α k ⋅ E [ f ( v , u ) ∣ v , u ∈ S k ] (54) \begin{aligned}
\mathbb{E}_{\mathrm{intra}} := \mathbb{E}[f(v,u) \mid S(v) = S(u)] = \sum_{k=0}^{K-1} \frac{|S_k|^2}{\left(\sum_j |S_j|\right)^2} \mathbb{E}[f(v,u) \mid v,u \in S_k] \\
&= \sum_{k=0}^{K-1} \alpha_k \cdot\mathbb{E}[f(v,u) \mid v,u \in S_k] \tag*{(54)}
\end{aligned} E intra := E [ f ( v , u ) ∣ S ( v ) = S ( u )] = k = 0 ∑ K − 1 ( ∑ j ∣ S j ∣ ) 2 ∣ S k ∣ 2 E [ f ( v , u ) ∣ v , u ∈ S k ] = k = 0 ∑ K − 1 α k ⋅ E [ f ( v , u ) ∣ v , u ∈ S k ] (54)
and
E i n t e r : = E [ f ( v , u ) ∣ S ( v ) ≠ S ( u ) ] = ∑ k ≠ l ∣ S k ∣ ∣ S l ∣ ( ∑ j ∣ S j ∣ ) 2 − ∑ j ∣ S j ∣ 2 E [ f ( v , u ) ∣ v ∈ S k , u ∈ S l ] = ∑ k ≠ l β k l ⋅ E [ f ( v , u ) ∣ v ∈ S k , u ∈ S l ] , (55) \begin{aligned}
\mathbb{E}_{\mathrm{inter}} := \mathbb{E}[f(v,u) \mid S(v) \ne S(u)] = \sum_{k\ne l} \frac{|S_k||S_l|}{\left(\sum_j |S_j|\right)^2 - \sum_j |S_j|^2} \mathbb{E}[f(v,u) \mid v \in S_k,u \in S_l] \\
&= \sum_{k\ne l} \beta_{kl} \cdot\mathbb{E}[f(v,u) \mid v \in S_k,u \in S_l], \tag*{(55)}
\end{aligned} E inter := E [ f ( v , u ) ∣ S ( v ) = S ( u )] = k = l ∑ ( ∑ j ∣ S j ∣ ) 2 − ∑ j ∣ S j ∣ 2 ∣ S k ∣∣ S l ∣ E [ f ( v , u ) ∣ v ∈ S k , u ∈ S l ] = k = l ∑ β k l ⋅ E [ f ( v , u ) ∣ v ∈ S k , u ∈ S l ] , (55)
where ∑ k α k = 1 \sum_k \alpha_k = 1 ∑ k α k = 1 and ∑ k ≠ l β k l = 1 \sum_{k\ne l} \beta_{kl} = 1 ∑ k = l β k l = 1 . To bridge the expectations with the mean representations, we define the mean-based variables
M k l : = σ ( μ k ⊤ Σ μ l ) , 0 ≤ k , l ≤ K − 1. (56) M_{kl} := \sigma(\mu_k^\top\Sigma\mu_l), \qquad0 \le k,l \le K - 1. \tag*{(56)} M k l := σ ( μ k ⊤ Σ μ l ) , 0 ≤ k , l ≤ K − 1. (56)
Using the triangle inequality, we can bound Δ D P \Delta_{\mathrm{DP}} Δ DP by separating the variance within the groups from the gap between the group means:
Δ D P = ∣ E i n t r a − E i n t e r ∣ = ∣ ∑ k α k E [ f ( v , u ) ∣ v , u ∈ S k ] − ∑ k ≠ l β k l E [ f ( v , u ) ∣ v ∈ S k , u ∈ S l ] ∣ = ∣ ∑ k α k E [ f ( v , u ) ∣ S k , S k ] − ∑ k α k M k k + ∑ k α k M k k − ∑ k ≠ l β k l E [ f ( v , u ) ∣ S k , S l ] + ∑ k ≠ l β k l M k l − ∑ k ≠ l β k l M k l ∣ ≤ ∑ k α k ∣ E [ f ( v , u ) ∣ S k , S k ] − M k k ∣ + ∑ k ≠ l β k l ∣ E [ f ( v , u ) ∣ S k , S l ] − M k l ∣ + ∣ ∑ k α k M k k − ∑ k ≠ l β k l M k l ∣ . (57) \begin{aligned}
\Delta_{\mathrm{DP}} = |\mathbb{E}_{\mathrm{intra}} - \mathbb{E}_{\mathrm{inter}}| \\
&= \left|\sum_k \alpha_k \mathbb{E}[f(v,u) \mid v,u \in S_k] - \sum_{k\ne l} \beta_{kl}\mathbb{E}[f(v,u) \mid v \in S_k,u \in S_l]\right| \\
&= \left|\sum_k \alpha_k\mathbb{E}[f(v,u) \mid S_k,S_k] - \sum_k \alpha_k M_{kk} + \sum_k \alpha_k M_{kk} - \sum_{k\ne l} \beta_{kl}\mathbb{E}[f(v,u) \mid S_k,S_l] + \sum_{k\ne l} \beta_{kl}M_{kl} - \sum_{k\ne l} \beta_{kl}M_{kl}\right| \\
&\le\sum_k \alpha_k\left|\mathbb{E}[f(v,u) \mid S_k,S_k] - M_{kk}\right| + \sum_{k\ne l} \beta_{kl}\left|\mathbb{E}[f(v,u) \mid S_k,S_l] - M_{kl}\right| + \left|\sum_k \alpha_k M_{kk} - \sum_{k\ne l} \beta_{kl}M_{kl}\right|. \tag*{(57)}
\end{aligned} Δ DP = ∣ E intra − E inter ∣ = k ∑ α k E [ f ( v , u ) ∣ v , u ∈ S k ] − k = l ∑ β k l E [ f ( v , u ) ∣ v ∈ S k , u ∈ S l ] = k ∑ α k E [ f ( v , u ) ∣ S k , S k ] − k ∑ α k M k k + k ∑ α k M k k − k = l ∑ β k l E [ f ( v , u ) ∣ S k , S l ] + k = l ∑ β k l M k l − k = l ∑ β k l M k l ≤ k ∑ α k ∣ E [ f ( v , u ) ∣ S k , S k ] − M k k ∣ + k = l ∑ β k l ∣ E [ f ( v , u ) ∣ S k , S l ] − M k l ∣ + k ∑ α k M k k − k = l ∑ β k l M k l . (57)
1. Bounding the Mean Group Gap (last term): Since ∑ k α k = 1 \sum_k \alpha_k = 1 ∑ k α k = 1 and ∑ l ≠ m β l m = 1 \sum_{l\ne m} \beta_{lm} = 1 ∑ l = m β l m = 1 , we can rewrite the last term as a doubly-indexed average of differences:
∑ k α k M k k − ∑ l ≠ m β l m M l m = ∑ k ∑ l ≠ m α k β l m ( M k k − M l m ) . (58) \sum_k \alpha_k M_{kk} - \sum_{l\ne m} \beta_{lm}M_{lm} = \sum_k \sum_{l\ne m} \alpha_k\beta_{lm}(M_{kk} - M_{lm}). \tag*{(58)} k ∑ α k M k k − l = m ∑ β l m M l m = k ∑ l = m ∑ α k β l m ( M k k − M l m ) . (58)
Using the Lipschitz property of the non-linear σ ( ⋅ ) \sigma(\cdot) σ ( ⋅ ) and Cauchy–Schwarz:
∣ M k k − M l m ∣ = ∣ σ ( μ k ⊤ Σ μ k ) − σ ( μ l ⊤ Σ μ m ) ∣ ≤ L ∣ ( μ k − μ l ) ⊤ Σ μ k + μ l ⊤ Σ ( μ k − μ m ) ∣ ≤ L Q ∥ Σ ∥ 2 ( ∥ μ k − μ l ∥ 2 + ∥ μ k − μ m ∥ 2 ) ≤ 2 L Q ∥ Σ ∥ 2 δ . (59) \begin{aligned}
|M_{kk} - M_{lm}| = |\sigma(\mu_k^\top\Sigma\mu_k) - \sigma(\mu_l^\top\Sigma\mu_m)| \le L\left|(\mu_k - \mu_l)^\top\Sigma\mu_k + \mu_l^\top\Sigma(\mu_k - \mu_m)\right| \\
&\le LQ\lVert\Sigma\rVert_2\left(\lVert\mu_k - \mu_l\rVert_2 + \lVert\mu_k - \mu_m\rVert_2\right) \le2LQ\lVert\Sigma\rVert_2\delta. \tag*{(59)}
\end{aligned} ∣ M k k − M l m ∣ = ∣ σ ( μ k ⊤ Σ μ k ) − σ ( μ l ⊤ Σ μ m ) ∣ ≤ L ( μ k − μ l ) ⊤ Σ μ k + μ l ⊤ Σ ( μ k − μ m ) ≤ L Q ∥ Σ ∥ 2 ( ∥ μ k − μ l ∥ 2 + ∥ μ k − μ m ∥ 2 ) ≤ 2 L Q ∥ Σ ∥ 2 δ . (59)
Note that when k ∈ { l , m } k \in\{l,m\} k ∈ { l , m } one of the two differences vanishes and a single δ \delta δ is paid; this is what happens for every pair when K = 2 K = 2 K = 2 . Thus, the total mean gap is bounded by:
∣ ∑ k α k M k k − ∑ l ≠ m β l m M l m ∣ ≤ 2 L Q ∥ Σ ∥ 2 δ ∑ k ∑ l ≠ m α k β l m = 2 L Q ∥ Σ ∥ 2 δ . (60) \left|\sum_k \alpha_k M_{kk} - \sum_{l\ne m} \beta_{lm}M_{lm}\right| \le2LQ\lVert\Sigma\rVert_2\delta\sum_k \sum_{l\ne m} \alpha_k\beta_{lm} = 2LQ\lVert\Sigma\rVert_2\delta. \tag*{(60)} k ∑ α k M k k − l = m ∑ β l m M l m ≤ 2 L Q ∥ Σ ∥ 2 δ k ∑ l = m ∑ α k β l m = 2 L Q ∥ Σ ∥ 2 δ . (60)
2. Bounding the Representation Spread (first two terms): We now evaluate the distance between the expectation of the function and the function of the expectation. For a generic pair of groups S k , S l S_k,S_l S k , S l (Jensen’s and then Lipschitz for each term of the expectations - thus also for the expectation):
∣ E [ σ ( v ⊤ Σ u ) ∣ S k , S l ] − M k l ∣ ≤ E [ ∣ σ ( v ⊤ Σ u ) − σ ( μ k ⊤ Σ μ l ) ∣ ∣ S k , S l ] ≤ L E [ ∣ v ⊤ Σ u − μ k ⊤ Σ μ l ∣ ∣ S k , S l ] (61) \begin{aligned}
\left|\mathbb{E}[\sigma(v^{\top}\Sigma u)\mid S_k,S_l]-M_{kl}\right| &\leq\mathbb{E}[|\sigma(v^{\top}\Sigma u)-\sigma(\mu_k^{\top}\Sigma\mu_l)|\mid S_k,S_l]\\
&\leq L\mathbb{E}[|v^{\top}\Sigma u-\mu_k^{\top}\Sigma\mu_l|\mid S_k,S_l] \tag*{(61)}
\end{aligned} E [ σ ( v ⊤ Σ u ) ∣ S k , S l ] − M k l ≤ E [ ∣ σ ( v ⊤ Σ u ) − σ ( μ k ⊤ Σ μ l ) ∣ ∣ S k , S l ] ≤ L E [ ∣ v ⊤ Σ u − μ k ⊤ Σ μ l ∣ ∣ S k , S l ] (61)
We decompose the inner product difference:
∣ v ⊤ Σ u − μ k ⊤ Σ μ l ∣ = ∣ ( v − μ k ) ⊤ Σ u + μ k ⊤ Σ ( u − μ l ) ∣ ≤ Q ∥ Σ ∥ 2 ( ∥ v − μ k ∥ 2 + ∥ u − μ l ∥ 2 ) (62) |v^{\top}\Sigma u-\mu_k^{\top}\Sigma\mu_l|=|(v-\mu_k)^{\top}\Sigma u+\mu_k^{\top}\Sigma(u-\mu_l)|\leq Q\|\Sigma\|_2(\|v-\mu_k\|_2+\|u-\mu_l\|_2) \tag*{(62)} ∣ v ⊤ Σ u − μ k ⊤ Σ μ l ∣ = ∣ ( v − μ k ) ⊤ Σ u + μ k ⊤ Σ ( u − μ l ) ∣ ≤ Q ∥Σ ∥ 2 ( ∥ v − μ k ∥ 2 + ∥ u − μ l ∥ 2 ) (62)
Taking the expectation over independent variables v ∈ S k , u ∈ S l v\in S_k,u\in S_l v ∈ S k , u ∈ S l , and using Jensen’s inequality E [ ∥ v − μ k ∥ 2 ∣ S k ] ≤ tr ( C k ) \mathbb{E}[\|v-\mu_k\|_2\mid S_k]\leq\sqrt{\operatorname{tr}(C_k)} E [ ∥ v − μ k ∥ 2 ∣ S k ] ≤ tr ( C k ) , we get:
∣ E [ f ( v , u ) ∣ S k , S l ] − M k l ∣ ≤ L Q ∥ Σ ∥ 2 ( tr ( C k ) + tr ( C l ) ) (63) \left|\mathbb{E}[f(v,u)\mid S_k,S_l]-M_{kl}\right|\leq LQ\|\Sigma\|_2\left(\sqrt{\operatorname{tr}(C_k)}+\sqrt{\operatorname{tr}(C_l)}\right) \tag*{(63)} ∣ E [ f ( v , u ) ∣ S k , S l ] − M k l ∣ ≤ L Q ∥Σ ∥ 2 ( tr ( C k ) + tr ( C l ) ) (63)
Applying equation 63 with l = k l=k l = k for the intra-group terms:
∑ k α k ∣ E [ f ( v , u ) ∣ S k , S k ] − M k k ∣ ≤ 2 L Q ∥ Σ ∥ 2 ∑ k α k tr ( C k ) (64) \sum_k\alpha_k|\mathbb{E}[f(v,u)\mid S_k,S_k]-M_{kk}|\leq2LQ\|\Sigma\|_2\sum_k\alpha_k\sqrt{\operatorname{tr}(C_k)} \tag*{(64)} k ∑ α k ∣ E [ f ( v , u ) ∣ S k , S k ] − M k k ∣ ≤ 2 L Q ∥Σ ∥ 2 k ∑ α k tr ( C k ) (64)
and with l ≠ k l\ne k l = k for the inter-group terms:
∑ k ≠ l β k l ∣ E [ f ( v , u ) ∣ S k , S l ] − M k l ∣ ≤ L Q ∥ Σ ∥ 2 ∑ k ≠ l β k l ( tr ( C k ) + tr ( C l ) ) = L Q ∥ Σ ∥ 2 ∑ k w k tr ( C k ) , (65) \begin{aligned}
\sum_{k\ne l}\beta_{kl}|\mathbb{E}[f(v,u)\mid S_k,S_l]-M_{kl}|&\leq LQ\|\Sigma\|_2\sum_{k\ne l}\beta_{kl}\left(\sqrt{\operatorname{tr}(C_k)}+\sqrt{\operatorname{tr}(C_l)}\right)\\
&=LQ\|\Sigma\|_2\sum_k w_k\sqrt{\operatorname{tr}(C_k)}, \tag*{(65)}
\end{aligned} k = l ∑ β k l ∣ E [ f ( v , u ) ∣ S k , S l ] − M k l ∣ ≤ L Q ∥Σ ∥ 2 k = l ∑ β k l ( tr ( C k ) + tr ( C l ) ) = L Q ∥Σ ∥ 2 k ∑ w k tr ( C k ) , (65)
where we collected, for each group k k k , the total inter-group weight in which it appears:
w k : = ∑ l ≠ k ( β k l + β l k ) , ∑ k w k = 2. (66) w_k:=\sum_{l\ne k}(\beta_{kl}+\beta_{lk}),\qquad\sum_k w_k=2. \tag*{(66)} w k := l = k ∑ ( β k l + β l k ) , k ∑ w k = 2. (66)
Final Combination
Substituting all the bounded terms back into the triangle inequality for Δ D P \Delta_{\mathrm{DP}} Δ DP :
Δ D P ≤ 2 L Q ∥ Σ ∥ 2 δ + 2 L Q ∥ Σ ∥ 2 ∑ k α k tr ( C k ) + L Q ∥ Σ ∥ 2 ∑ k w k tr ( C k ) (67) \Delta_{\mathrm{DP}}\leq2LQ\|\Sigma\|_2\delta+2LQ\|\Sigma\|_2\sum_k\alpha_k\sqrt{\operatorname{tr}(C_k)}+LQ\|\Sigma\|_2\sum_k w_k\sqrt{\operatorname{tr}(C_k)} \tag*{(67)} Δ DP ≤ 2 L Q ∥Σ ∥ 2 δ + 2 L Q ∥Σ ∥ 2 k ∑ α k tr ( C k ) + L Q ∥Σ ∥ 2 k ∑ w k tr ( C k ) (67)
Factoring out L Q ∥ Σ ∥ 2 LQ\|\Sigma\|_2 L Q ∥Σ ∥ 2 yields the final bound:
Δ D P ≤ L Q ∥ Σ ∥ 2 ( 2 δ + ∑ k = 0 K − 1 ( 2 α k + w k ) tr ( C k ) ) (68) \Delta_{\mathrm{DP}}\leq LQ\|\Sigma\|_2\left(2\delta+\sum_{k=0}^{K-1}(2\alpha_k+w_k)\sqrt{\operatorname{tr}(C_k)}\right) \tag*{(68)} Δ DP ≤ L Q ∥Σ ∥ 2 ( 2 δ + k = 0 ∑ K − 1 ( 2 α k + w k ) tr ( C k ) ) (68)
completing the proof.
The Effect of Non-Linearity
The key difference in the bound for the non-linear readouts is the inclusion of the within-group variance terms introduced by the non-linearity. By contrast, the bound for the linear readouts depends purely on the group-conditional means. The variance terms constitute a second and independent source of fairness violation. In particular, equalizing just the group means may not be sufficient, even when δ = 0 \delta=0 δ = 0 , a large within-group variance can still allow a classifier to recover the sensitive attribute. Figure 3 illustrates two subgroups with identical means but different spreads remain easily separable, so a classifier acting on such representations can still predict the sensitive attribute.
Figure 3. Illustrative example showing that mean matching is not enough, and that variance can still result in discrimination of sensitive attributes.
Exact Mean-Equalization Projection
For an embedding matrix H ∈ R n × d \mathbf{H} \in\mathbb{R}^{n \times d} H ∈ R n × d (n n n nodes, d d d features), in order to zero out the group-conditional mean δ \delta δ we need h ˉ S i = h ˉ S j \bar{\mathbf{h}}_{S_i} = \bar{\mathbf{h}}_{S_j} h ˉ S i = h ˉ S j , for every pair of subgroups S i , S j S_i, S_j S i , S j , where h ˉ S i = 1 ∣ S i ∣ e S i T H \bar{\mathbf{h}}_{S_i} = \frac{1}{|S_i|}\mathbf{e}_{S_i}^{\mathsf{T}}\mathbf{H} h ˉ S i = ∣ S i ∣ 1 e S i T H , with e S i \mathbf{e}_{S_i} e S i being the indicator vector of subgroup S i S_i S i . This is equivalent to h ˉ S k = h ˉ S 0 \bar{\mathbf{h}}_{S_k} = \bar{\mathbf{h}}_{S_0} h ˉ S k = h ˉ S 0 , for every k ∈ [ K ] ∖ { 0 } k \in[K] \setminus\{0\} k ∈ [ K ] ∖ { 0 } . Define the fairness constraint set
X 0 = { X : a k T X = 0 , k ∈ [ K ] ∖ { 0 } } , a k : = e S 0 n 0 − e S k n k . (70) \mathcal{X}_0 = \{\mathbf{X} : \mathbf{a}_k^{\mathsf{T}}\mathbf{X} = 0,\ k \in[K] \setminus\{0\}\}, \qquad\mathbf{a}_k := \frac{\mathbf{e}_{S_0}}{n_0} - \frac{\mathbf{e}_{S_k}}{n_k}. \tag*{(70)} X 0 = { X : a k T X = 0 , k ∈ [ K ] ∖ { 0 }} , a k := n 0 e S 0 − n k e S k . (70)
Then, projecting an embedding matrix H \mathbf{H} H onto X 0 \mathcal{X}_0 X 0 , amounts to solving:
min X ∈ X 0 { ∥ X − H ∥ 2 2 = ∑ j = 0 d − 1 ∥ X : , j − H : , j ∥ 2 2 } (71) \min_{\mathbf{X} \in\mathcal{X}_0} \left\{ \lVert\mathbf{X} - \mathbf{H} \rVert_2^2 = \sum_{j=0}^{d-1} \lVert\mathbf{X}_{:,j} - \mathbf{H}_{:,j} \rVert_2^2 \right\} \tag*{(71)} X ∈ X 0 min { ∥ X − H ∥ 2 2 = j = 0 ∑ d − 1 ∥ X : , j − H : , j ∥ 2 2 } (71)
with X : , j \mathbf{X}_{:,j} X : , j denoting the j j j -th column of X \mathbf{X} X . The above is equivalent to solving the following for each column vector h \mathbf{h} h of H \mathbf{H} H :
min x ∥ x − h ∥ 2 2 s.t. a k T x = 0 , k ∈ [ K ] ∖ { 0 } (72) \begin{aligned}
\min_{\mathbf{x}}\quad&\lVert\mathbf{x} - \mathbf{h} \rVert_2^2 \\
\text{s.t.}\quad&\mathbf{a}_k^{\mathsf{T}}\mathbf{x} = 0,\quad k \in[K] \setminus\{0\} \tag*{(72)}
\end{aligned} x min s.t. ∥ x − h ∥ 2 2 a k T x = 0 , k ∈ [ K ] ∖ { 0 } (72)
Each a k T x = 0 \mathbf{a}_k^{\mathsf{T}}\mathbf{x} = 0 a k T x = 0 constraint is ( e S 0 ∣ S 0 ∣ − e S k ∣ S k ∣ ) T x = 0 \left(\frac{\mathbf{e}_{S_0}}{|S_0|} - \frac{\mathbf{e}_{S_k}}{|S_k|}\right)^{\mathsf{T}}\mathbf{x} = 0 ( ∣ S 0 ∣ e S 0 − ∣ S k ∣ e S k ) T x = 0 . Hence, the Lagrangian is:
L ( x , λ ) = ∥ x − h ∥ 2 2 + ∑ k = 1 K − 1 λ k ( e S 0 ∣ S 0 ∣ − e S k ∣ S k ∣ ) T x (73) \mathcal{L}(\mathbf{x},\boldsymbol{\lambda}) = \lVert\mathbf{x} - \mathbf{h} \rVert_2^2 + \sum_{k=1}^{K-1} \lambda_k \left(\frac{\mathbf{e}_{S_0}}{|S_0|} - \frac{\mathbf{e}_{S_k}}{|S_k|}\right)^{\mathsf{T}}\mathbf{x} \tag*{(73)} L ( x , λ ) = ∥ x − h ∥ 2 2 + k = 1 ∑ K − 1 λ k ( ∣ S 0 ∣ e S 0 − ∣ S k ∣ e S k ) T x (73)
Using the KKT conditions, we have the following.
∇ x L ( x ∗ , λ ) = 0 ⟺ 2 ( x ∗ − h ) + ∑ k = 1 K − 1 λ k ( e S 0 ∣ S 0 ∣ − e S k ∣ S k ∣ ) = 0 \nabla_{\mathbf{x}}\mathcal{L}(\mathbf{x}^{*},\boldsymbol{\lambda}) = 0 \Longleftrightarrow2(\mathbf{x}^{*} - \mathbf{h}) + \sum_{k=1}^{K-1} \lambda_k \left(\frac{\mathbf{e}_{S_0}}{|S_0|} - \frac{\mathbf{e}_{S_k}}{|S_k|}\right) = 0 ∇ x L ( x ∗ , λ ) = 0 ⟺ 2 ( x ∗ − h ) + k = 1 ∑ K − 1 λ k ( ∣ S 0 ∣ e S 0 − ∣ S k ∣ e S k ) = 0
x ∗ = h − 1 2 ∑ k = 1 K − 1 λ k ( e S 0 ∣ S 0 ∣ − e S k ∣ S k ∣ ) (74) \mathbf{x}^{*} = \mathbf{h} - \frac{1}{2}\sum_{k=1}^{K-1} \lambda_k \left(\frac{\mathbf{e}_{S_0}}{|S_0|} - \frac{\mathbf{e}_{S_k}}{|S_k|}\right) \tag*{(74)} x ∗ = h − 2 1 k = 1 ∑ K − 1 λ k ( ∣ S 0 ∣ e S 0 − ∣ S k ∣ e S k ) (74)
Let’s define Λ = ∑ k = 1 K − 1 λ k \Lambda= \sum_{k=1}^{K-1} \lambda_k Λ = ∑ k = 1 K − 1 λ k , and express the above equality entry-wise:
x v ∗ = { h v − 1 2 n 0 Λ v ∈ S 0 h v + 1 2 n i λ i v ∈ S i , i ≠ 0 (75) x_v^{*} =
\begin{cases}
h_v - \frac{1}{2n_0}\Lambda& v \in S_0 \\
h_v + \frac{1}{2n_i}\lambda_i & v \in S_i,\ i \ne0
\end{cases} \tag*{(75)} x v ∗ = { h v − 2 n 0 1 Λ h v + 2 n i 1 λ i v ∈ S 0 v ∈ S i , i = 0 (75)
Taking averages over each group:
x ˉ S 0 ∗ = h ˉ S 0 − 1 2 n 0 Λ x ˉ S i ∗ = h ˉ S i + 1 2 n i λ i (76) \begin{aligned}
\bar{x}_{S_0}^{*} &= \bar{h}_{S_0} - \frac{1}{2n_0}\Lambda\\
\bar{x}_{S_i}^{*} &= \bar{h}_{S_i} + \frac{1}{2n_i}\lambda_i \tag*{(76)}
\end{aligned} x ˉ S 0 ∗ x ˉ S i ∗ = h ˉ S 0 − 2 n 0 1 Λ = h ˉ S i + 2 n i 1 λ i (76)
Primal Feasibility:
x ˉ S 0 ∗ = x ˉ S i ∗ ⟺ h ˉ S 0 − 1 2 n 0 Λ = h ˉ S i + 1 2 n i λ i ⟺ λ i = 2 n i ( h ˉ S 0 − h ˉ S i ) − n i n 0 Λ (77) \bar{x}_{S_0}^{*}=\bar{x}_{S_i}^{*}\Longleftrightarrow\bar{h}_{S_0}-\frac{1}{2n_0}\Lambda=\bar{h}_{S_i}+\frac{1}{2n_i}\lambda_i\Longleftrightarrow\lambda_i=2n_i(\bar{h}_{S_0}-\bar{h}_{S_i})-\frac{n_i}{n_0}\Lambda \tag*{(77)} x ˉ S 0 ∗ = x ˉ S i ∗ ⟺ h ˉ S 0 − 2 n 0 1 Λ = h ˉ S i + 2 n i 1 λ i ⟺ λ i = 2 n i ( h ˉ S 0 − h ˉ S i ) − n 0 n i Λ (77)
if we take the sums of both sides we get:
∑ i = 1 K − 1 λ i = 2 ∑ i = 1 K − 1 n i ( h ˉ S 0 − h ˉ S i ) − ∑ i = 1 K − 1 n i n 0 Λ ⟺ n n 0 Λ = 2 ∑ i = 1 K − 1 n i ( h ˉ S 0 − h ˉ S i ) \sum_{i=1}^{K-1}\lambda_i=2\sum_{i=1}^{K-1}n_i(\bar{h}_{S_0}-\bar{h}_{S_i})-\sum_{i=1}^{K-1}\frac{n_i}{n_0}\Lambda\Longleftrightarrow\frac{n}{n_0}\Lambda=2\sum_{i=1}^{K-1}n_i(\bar{h}_{S_0}-\bar{h}_{S_i}) i = 1 ∑ K − 1 λ i = 2 i = 1 ∑ K − 1 n i ( h ˉ S 0 − h ˉ S i ) − i = 1 ∑ K − 1 n 0 n i Λ ⟺ n 0 n Λ = 2 i = 1 ∑ K − 1 n i ( h ˉ S 0 − h ˉ S i )
Λ = 2 n 0 ( h ˉ S 0 − h ˉ ) (78) \Lambda=2n_0(\bar{h}_{S_0}-\bar{h}) \tag*{(78)} Λ = 2 n 0 ( h ˉ S 0 − h ˉ ) (78)
replacing this to equation 77, we get:
λ i = 2 n i ( h ˉ S 0 − h ˉ S i ) − n i n 0 2 n 0 ( h ˉ S 0 − h ˉ ) ⟺ λ i = 2 n i ( h ˉ − h ˉ S i ) (79) \lambda_i=2n_i(\bar{h}_{S_0}-\bar{h}_{S_i})-\frac{n_i}{n_0}2n_0(\bar{h}_{S_0}-\bar{h})\Longleftrightarrow\lambda_i=2n_i(\bar{h}-\bar{h}_{S_i}) \tag*{(79)} λ i = 2 n i ( h ˉ S 0 − h ˉ S i ) − n 0 n i 2 n 0 ( h ˉ S 0 − h ˉ ) ⟺ λ i = 2 n i ( h ˉ − h ˉ S i ) (79)
and then replacing this back to equation 75, we get:
x v ∗ = { h v − ( h ˉ S 0 − h ˉ ) h v + ( h ˉ − h ˉ S i ) v ∈ S i , i ≠ 0 (80) \mathbf{x}_{v}^{*}=
\begin{cases}
\mathbf{h}_{v}-(\bar{h}_{S_0}-\bar{h}) \\
\mathbf{h}_{v}+(\bar{h}-\bar{h}_{S_i}) & v\in S_i,\ i\ne0
\end{cases} \tag*{(80)} x v ∗ = { h v − ( h ˉ S 0 − h ˉ ) h v + ( h ˉ − h ˉ S i ) v ∈ S i , i = 0 (80)
Unifying both cases, we get:
x v ∗ = h v + h ˉ − h ˉ S i , v ∈ S i (81) \mathbf{x}_{v}^{*}=\mathbf{h}_{v}+\bar{h}-\bar{h}_{S_i},\ v\in S_i \tag*{(81)} x v ∗ = h v + h ˉ − h ˉ S i , v ∈ S i (81)
Matrix Form:
Define M : = ∑ k = 0 K − 1 e S k e S k T ∣ e S k ∣ ∈ R n × n M:=\sum_{k=0}^{K-1}\frac{\mathbf{e}_{S_k}\mathbf{e}_{S_k}^{\mathsf{T}}}{|\mathbf{e}_{S_k}|}\in\mathbb{R}^{n\times n} M := ∑ k = 0 K − 1 ∣ e S k ∣ e S k e S k T ∈ R n × n , then M h v = h ˉ S i M\mathbf{h}_{v}=\bar{h}_{S_i} M h v = h ˉ S i , v ∈ S i v\in S_i v ∈ S i . Then, for the projection matrix P : = I + e e T n − M P:=I+\frac{\mathbf{e}\mathbf{e}^{\mathsf{T}}}{n}-M P := I + n e e T − M , it holds that x ∗ = P ⋅ h \mathbf{x}^{*}=P\cdot\mathbf{h} x ∗ = P ⋅ h . It is easy to see that P P P is symmetric (P = P T P=P^{\mathsf{T}} P = P T ). So, for the full embedding matrices, we get:
X ∗ = P ⋅ H ⇒ d H = P ⋅ d X . (82) X^{*}=P\cdot H\Rightarrow dH=P\cdot dX. \tag*{(82)} X ∗ = P ⋅ H ⇒ d H = P ⋅ d X . (82)
Hence, the projection of the backward pass is exactly the same as that of the forward pass.
Relaxed Projection onto the Fairness Slab
The projection of Section 4.2 enforces δ = 0 \delta=0 δ = 0 exactly. However, this can be restrictive, a small value of δ \delta δ suffices to keep the fairness gap small, and forcing it to exact 0 can displace embeddings more than fairness demands. Hence, we consider the following relaxation of a slab of half-width δ \delta δ .
Let a : = a 1 = e S 0 n 0 − e S 1 n 1 \mathbf{a}:=\mathbf{a}_1=\frac{\mathbf{e}_{S_0}}{n_0}-\frac{\mathbf{e}_{S_1}}{n_1} a := a 1 = n 0 e S 0 − n 1 e S 1 be the group-contrast vector as in equation 5, and s : = H T a ∈ R d \mathbf{s}:=H^{\mathsf{T}}\mathbf{a}\in\mathbb{R}^{d} s := H T a ∈ R d . The slab requires the group-mean gap to be at most δ \delta δ (fairness tolerance ) in every feature coordinate
X δ : = { H ∈ R n × d : ∥ H T a ∥ ∞ ≤ δ } , (83) \mathcal{X}_{\delta}:=\left\{H\in\mathbb{R}^{n\times d}:\left\|H^{\mathsf{T}}\mathbf{a}\right\|_{\infty}\le\delta\right\}, \tag*{(83)} X δ := { H ∈ R n × d : H T a ∞ ≤ δ } , (83)
and recovers the exact constraint set X 0 \mathcal{X}_0 X 0 , at δ = 0 \delta=0 δ = 0 . It is an intersection of two half-spaces, of which at most one can be violated at a time, so the projection stays available in closed form,
Proj X δ ( H ) = H − a ∥ a ∥ 2 2 g ( s , δ ) T , g ( s , δ ) : = sign ( s ) ⊙ ( ∣ s ∣ − δ 1 ) + , (84) \operatorname{Proj}_{\mathcal{X}_{\delta}}(H)=H-\frac{\mathbf{a}}{\|\mathbf{a}\|_2^2}g(\mathbf{s},\delta)^{\mathsf{T}},\qquad g(\mathbf{s},\delta):=\operatorname{sign}(\mathbf{s})\odot\left(|\mathbf{s}|-\delta\mathbf{1}\right)_{+}, \tag*{(84)} Proj X δ ( H ) = H − ∥ a ∥ 2 2 a g ( s , δ ) T , g ( s , δ ) := sign ( s ) ⊙ ( ∣ s ∣ − δ 1 ) + , (84)
where ( x ) + = max { x , 0 } = ReLU ( x ) (x)_{+}=\max\{x,0\}=\operatorname{ReLU}(x) ( x ) + = max { x , 0 } = ReLU ( x ) , and g g g acts entrywise, [ g ( s , δ ) ] j = sign ( s j ) ( ∣ s j ∣ − δ ) + [g(\mathbf{s},\delta)]_j=\operatorname{sign}(s_j)(|s_j|-\delta)_{+} [ g ( s , δ ) ] j = sign ( s j ) ( ∣ s j ∣ − δ ) + .
Unlike the exact projection, which applies P P P to every column, this map is gated , i.e., a column for which ∣ s j ∣ ≤ δ |s_j|\le\delta ∣ s j ∣ ≤ δ has g ( s j , δ ) = 0 g(s_j,\delta)=0 g ( s j , δ ) = 0 and is returned unchanged, while only violating columns are shifted. Its backward pass is gated in the same way, d h = d h ∗ − 1 ∣ s ∣ > δ a a T ∥ a ∥ 2 2 d h ∗ d\mathbf{h}=d\mathbf{h}^{*}-\mathbf{1}_{|s|>\delta}\frac{\mathbf{a}\mathbf{a}^{\mathsf{T}}}{\|\mathbf{a}\|_2^2}d\mathbf{h}^{*} d h = d h ∗ − 1 ∣ s ∣ > δ ∥ a ∥ 2 2 a a T d h ∗ , so gradients pass through unchanged for columns inside the slab and get shifted otherwise. For K > 2 K>2 K > 2 the constraint set is the intersection of K − 1 K-1 K − 1 such slabs, hence a polytope on which equation 84 no longer applies directly. Then, the projection can be computed by Dykstra’s algorithm [6 ] . Derivations are provided in the following subsections.
Forward Pass
Given a vector h ∈ R n \mathbf{h} \in\mathbb{R}^{n} h ∈ R n , consider the slab defined by the constraint set X δ : = { h ∈ R n : ∣ a T h ∣ ≤ δ } \mathcal{X}_{\delta} := \{\mathbf{h} \in\mathbb{R}^{n} : |\mathbf{a}^{T}\mathbf{h}| \le\delta\} X δ := { h ∈ R n : ∣ a T h ∣ ≤ δ } . This for a matrix H ∈ R n × d \mathbf{H} \in\mathbb{R}^{n \times d} H ∈ R n × d results to X δ : = { H ∈ R n × d : ∥ H ⊤ a ∥ ∞ ≤ δ } \mathcal{X}_{\delta} := \{\mathbf{H} \in\mathbb{R}^{n \times d} : \|\mathbf{H}^{\top}\mathbf{a}\|_{\infty} \le\delta\} X δ := { H ∈ R n × d : ∥ H ⊤ a ∥ ∞ ≤ δ } . The following analysis will be on the vector level, and in the end we will generalize it for an n × d n \times d n × d matrix.
The problem of projecting a point d ∈ R n \mathbf{d} \in\mathbb{R}^{n} d ∈ R n onto X δ \mathcal{X}_{\delta} X δ is given by
Π X δ ( d ) : = arg min h ∈ X δ 1 2 ∥ h − d ∥ 2 2 (85) \Pi_{\mathcal{X}_{\delta}}(\mathbf{d}) := \underset{\mathbf{h} \in\mathcal{X}_{\delta}}{\arg\min}\ \frac{1}{2}\|\mathbf{h}-\mathbf{d}\|_{2}^{2} \tag*{(85)} Π X δ ( d ) := h ∈ X δ arg min 2 1 ∥ h − d ∥ 2 2 (85)
Before solving the problem, we first consider the simpler problem of projecting onto the half-space defined by X δ + : = { h ∈ R n : a T h ≤ δ } \mathcal{X}_{\delta}^{+} := \{\mathbf{h} \in\mathbb{R}^{n} : \mathbf{a}^{T}\mathbf{h} \le\delta\} X δ + := { h ∈ R n : a T h ≤ δ } . The solution is
Π X δ + ( d ) = d − ( a T d − δ ) + ∥ a ∥ 2 2 a , (86) \Pi_{\mathcal{X}_{\delta}^{+}}(\mathbf{d}) = \mathbf{d} - \frac{(\mathbf{a}^{T}\mathbf{d}-\delta)_{+}}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a}, \tag*{(86)} Π X δ + ( d ) = d − ∥ a ∥ 2 2 ( a T d − δ ) + a , (86)
where ( x ) + = max { x , 0 } (x)_{+} = \max\{x,0\} ( x ) + = max { x , 0 } . In other words, we first check whether the point is in the halfspace, and if not, we project onto the hyperplane defining the boundary of the halfspace.
Note that the slab X δ \mathcal{X}_{\delta} X δ is the intersection of the halfspaces X δ + : = { h ∈ R n : a T h ≤ δ } \mathcal{X}_{\delta}^{+} := \{\mathbf{h} \in\mathbb{R}^{n} : \mathbf{a}^{T}\mathbf{h} \le\delta\} X δ + := { h ∈ R n : a T h ≤ δ } and X δ − : = { h ∈ R n : − a T h ≤ δ } \mathcal{X}_{\delta}^{-} := \{\mathbf{h} \in\mathbb{R}^{n} : -\mathbf{a}^{T}\mathbf{h} \le\delta\} X δ − := { h ∈ R n : − a T h ≤ δ } . The projection is given by
Π X δ ( d ) = d − ( a T d − δ ) + ∥ a ∥ 2 2 a − ( − a T d − δ ) + ∥ a ∥ 2 2 a = d − [ ( a T d − δ ) + − ( − a T d − δ ) + ] a ∥ a ∥ 2 2 (87) \Pi_{\mathcal{X}_{\delta}}(\mathbf{d}) = \mathbf{d} - \frac{(\mathbf{a}^{T}\mathbf{d}-\delta)_{+}}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a} - \frac{(-\mathbf{a}^{T}\mathbf{d}-\delta)_{+}}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a} = \mathbf{d} - [(\mathbf{a}^{T}\mathbf{d}-\delta)_{+} - (-\mathbf{a}^{T}\mathbf{d}-\delta)_{+}] \frac{\mathbf{a}}{\|\mathbf{a}\|_{2}^{2}} \tag*{(87)} Π X δ ( d ) = d − ∥ a ∥ 2 2 ( a T d − δ ) + a − ∥ a ∥ 2 2 ( − a T d − δ ) + a = d − [( a T d − δ ) + − ( − a T d − δ ) + ] ∥ a ∥ 2 2 a (87)
This stems from the fact that a point lying outside the slab already satisfies one of the halfspace constraints X δ + \mathcal{X}_{\delta}^{+} X δ + or X δ − \mathcal{X}_{\delta}^{-} X δ − , and it remains to project the point onto the hyperplane defining the boundary of the halfspace of the other constraint. The result can be confirmed by analyzing the KKT conditions of problem equation 86.
KKT analysis: Let λ 1 ≥ 0 \lambda_{1} \ge0 λ 1 ≥ 0 and λ 2 ≥ 0 \lambda_{2} \ge0 λ 2 ≥ 0 denote the Lagrange multipliers of X δ + \mathcal{X}_{\delta}^{+} X δ + and X δ − \mathcal{X}_{\delta}^{-} X δ − respectively. The Lagrangian of equation 86 is given by
L ( h , λ 1 , λ 2 ) = 1 2 ∥ h − d ∥ 2 2 + λ 1 ( a T h − δ ) + λ 2 ( − a T h − δ ) (88) L(\mathbf{h},\lambda_{1},\lambda_{2}) = \frac{1}{2}\|\mathbf{h}-\mathbf{d}\|_{2}^{2} + \lambda_{1}(\mathbf{a}^{T}\mathbf{h}-\delta) + \lambda_{2}(-\mathbf{a}^{T}\mathbf{h}-\delta) \tag*{(88)} L ( h , λ 1 , λ 2 ) = 2 1 ∥ h − d ∥ 2 2 + λ 1 ( a T h − δ ) + λ 2 ( − a T h − δ ) (88)
The KKT conditions are then given by the complementary slackness conditions
λ 1 ( a T h − δ ) = 0 , λ 2 ( − a T h − δ ) = 0 , (89) \lambda_{1}(\mathbf{a}^{T}\mathbf{h}-\delta)=0,\lambda_{2}(-\mathbf{a}^{T}\mathbf{h}-\delta)=0, \tag*{(89)} λ 1 ( a T h − δ ) = 0 , λ 2 ( − a T h − δ ) = 0 , (89)
and setting the gradient of the Lagrangian w.r.t. h \mathbf{h} h equal to 0 0 0 , which yields
h − d + λ 1 a − λ 2 a = 0 (90) \mathbf{h}-\mathbf{d}+\lambda_{1}\mathbf{a}-\lambda_{2}\mathbf{a}=0 \tag*{(90)} h − d + λ 1 a − λ 2 a = 0 (90)
When λ 1 = λ 2 = 0 \lambda_{1}=\lambda_{2}=0 λ 1 = λ 2 = 0 , complementary slackness mandates that both halfspace constraints X δ + \mathcal{X}_{\delta}^{+} X δ + and X δ − \mathcal{X}_{\delta}^{-} X δ − are satisfied; i.e., d ∈ X δ \mathbf{d} \in\mathcal{X}_{\delta} d ∈ X δ , and the solution is h = d \mathbf{h}=\mathbf{d} h = d .
If λ 1 > 0 \lambda_{1}>0 λ 1 > 0 and λ 2 = 0 \lambda_{2}=0 λ 2 = 0 , then X δ − \mathcal{X}_{\delta}^{-} X δ − is satisfied but X δ + \mathcal{X}_{\delta}^{+} X δ + is violated. Hence, we obtain h = d − λ 1 a \mathbf{h}=\mathbf{d}-\lambda_{1}\mathbf{a} h = d − λ 1 a . From complementary slackness, we have a T h = δ \mathbf{a}^{T}\mathbf{h}=\delta a T h = δ . Solving for λ 1 \lambda_{1} λ 1 , we obtain
h = d − ( a T d − δ ) ∥ a ∥ 2 2 a (91) \mathbf{h}=\mathbf{d}-\frac{(\mathbf{a}^{T}\mathbf{d}-\delta)}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a} \tag*{(91)} h = d − ∥ a ∥ 2 2 ( a T d − δ ) a (91)
If λ 1 = 0 \lambda_{1}=0 λ 1 = 0 and λ 2 > 0 \lambda_{2}>0 λ 2 > 0 , then X δ + \mathcal{X}_{\delta}^{+} X δ + is satisfied but X δ − \mathcal{X}_{\delta}^{-} X δ − is violated. Solving for λ 2 \lambda_{2} λ 2 , we obtain
h = d − ( a T d + δ ) ∥ a ∥ 2 2 a (92) \mathbf{h}=\mathbf{d}-\frac{(\mathbf{a}^{T}\mathbf{d}+\delta)}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a} \tag*{(92)} h = d − ∥ a ∥ 2 2 ( a T d + δ ) a (92)
Note that the condition λ 1 > 0 \lambda_{1}>0 λ 1 > 0 and λ 2 > 0 \lambda_{2}>0 λ 2 > 0 is impossible, as it would mean that both halfspace constraints are simultaneously violated. Hence, the overall solution is
h = d − ( a T d − δ ) + ∥ a ∥ 2 2 a − ( − a T d − δ ) + ∥ a ∥ 2 2 a = d − [ ( a T d − δ ) + − ( − a T d − δ ) + ] a ∥ a ∥ 2 2 (93) \mathbf{h} = \mathbf{d} - \frac{(\mathbf{a}^{T}\mathbf{d}-\delta)_{+}}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a} - \frac{(-\mathbf{a}^{T}\mathbf{d}-\delta)_{+}}{\|\mathbf{a}\|_{2}^{2}}\mathbf{a} = \mathbf{d} - [(\mathbf{a}^{T}\mathbf{d}-\delta)_{+} - (-\mathbf{a}^{T}\mathbf{d}-\delta)_{+}] \frac{\mathbf{a}}{\|\mathbf{a}\|_{2}^{2}} \tag*{(93)} h = d − ∥ a ∥ 2 2 ( a T d − δ ) + a − ∥ a ∥ 2 2 ( − a T d − δ ) + a = d − [( a T d − δ ) + − ( − a T d − δ ) + ] ∥ a ∥ 2 2 a (93)
Backward Pass
Recall from the forward analysis that the projection of a single column h \mathbf{h} h onto X δ \mathcal{X}_{\delta} X δ is
x = Π X δ ( h ) = h − [ ( a T h − δ ) + − ( − a T h − δ ) + ] a ∥ a ∥ 2 2 . (94) \mathbf{x} = \Pi_{\mathcal{X}_{\delta}}(\mathbf{h}) = \mathbf{h} - \left[(\mathbf{a}^{\mathsf{T}}\mathbf{h}-\delta)_{+}-(-\mathbf{a}^{\mathsf{T}}\mathbf{h}-\delta)_{+}\right]\frac{\mathbf{a}}{\lVert\mathbf{a}\rVert_{2}^{2}}. \tag*{(94)} x = Π X δ ( h ) = h − [ ( a T h − δ ) + − ( − a T h − δ ) + ] ∥ a ∥ 2 2 a . (94)
Writing s : = a T h s := \mathbf{a}^{\mathsf{T}}\mathbf{h} s := a T h and collapsing the two hinges into a single map, this is soft-thresholding at δ \delta δ :
x = h − g ( s , δ ) a ∥ a ∥ 2 2 , g ( s , δ ) : = ( s − δ ) + − ( − s − δ ) + = sign ( s ) ( ∣ s ∣ − δ ) + . (95) \mathbf{x} = \mathbf{h} - g(s,\delta)\frac{\mathbf{a}}{\lVert\mathbf{a}\rVert_{2}^{2}}, \qquad g(s,\delta) := (s-\delta)_{+}-(-s-\delta)_{+} = \operatorname{sign}(s)(|s|-\delta)_{+}. \tag*{(95)} x = h − g ( s , δ ) ∥ a ∥ 2 2 a , g ( s , δ ) := ( s − δ ) + − ( − s − δ ) + = sign ( s ) ( ∣ s ∣ − δ ) + . (95)
Jacobian. Differentiating and using ∂ s ∂ h = a T \frac{\partial s}{\partial\mathbf{h}}=\mathbf{a}^{\mathsf{T}} ∂ h ∂ s = a T gives, and g ′ ( s , δ ) = 1 [ ∣ s ∣ > δ ] g'(s,\delta)=1[|s|>\delta] g ′ ( s , δ ) = 1 [ ∣ s ∣ > δ ] we get,
J : = ∂ x ∂ h = I − 1 [ ∣ s ∣ > δ ] P a , P a : = a a T ∥ a ∥ 2 2 , (96) \mathbf{J} := \frac{\partial\mathbf{x}}{\partial\mathbf{h}} = \mathbf{I}-1[|s|>\delta]\mathbf{P}_{a}, \qquad\mathbf{P}_{a}:=\frac{\mathbf{a}\mathbf{a}^{\mathsf{T}}}{\lVert\mathbf{a}\rVert_{2}^{2}}, \tag*{(96)} J := ∂ h ∂ x = I − 1 [ ∣ s ∣ > δ ] P a , P a := ∥ a ∥ 2 2 a a T , (96)
that is,
J = { I , ∣ s ∣ ≤ δ (inside the slab) , I − P a , ∣ s ∣ > δ (outside) . (97) \mathbf{J} =
\begin{cases}
\mathbf{I}, & |s|\le\delta\quad\text{(inside the slab)},\\
\mathbf{I}-\mathbf{P}_{a}, & |s|>\delta\quad\text{(outside)}.
\end{cases} \tag*{(97)} J = { I , I − P a , ∣ s ∣ ≤ δ (inside the slab) , ∣ s ∣ > δ (outside) . (97)
Backward pass. As P a \mathbf{P}_{a} P a is symmetric, J = J T \mathbf{J}=\mathbf{J}^{\mathsf{T}} J = J T , so calculating the gradient
d h = J T d x = d x − 1 [ ∣ s ∣ > δ ] a a T ∥ a ∥ 2 2 d x . (98) \mathrm{d}\mathbf{h}=\mathbf{J}^{\mathsf{T}}\mathrm{d}\mathbf{x}=\mathrm{d}\mathbf{x}-1[|s|>\delta]\frac{\mathbf{a}\mathbf{a}^{\mathsf{T}}}{\lVert\mathbf{a}\rVert_{2}^{2}}\mathrm{d}\mathbf{x}. \tag*{(98)} d h = J T d x = d x − 1 [ ∣ s ∣ > δ ] ∥ a ∥ 2 2 a a T d x . (98)
Matrix Form
For H ∈ R n × d \mathbf{H}\in\mathbb{R}^{n\times d} H ∈ R n × d , let s = H T a ∈ R d \mathbf{s}=\mathbf{H}^{\mathsf{T}}\mathbf{a}\in\mathbb{R}^{d} s = H T a ∈ R d , and let S d i a g = diag ( 1 [ ∣ s ∣ > δ ] ) ∈ { 0 , 1 } d × d \mathbf{S}_{\mathrm{diag}}=\operatorname{diag}(1[|s|>\delta])\in\{0,1\}^{d\times d} S diag = diag ( 1 [ ∣ s ∣ > δ ]) ∈ { 0 , 1 } d × d be the diagonal active-set matrix over columns. For a vector argument s ∈ R d \mathbf{s}\in\mathbb{R}^{d} s ∈ R d , g g g acts entrywise, [ g ( s , δ ) ] j : = sign ( s j ) ( ∣ s j ∣ − δ ) + [g(\mathbf{s},\delta)]_{j}:=\operatorname{sign}(s_{j})(|s_{j}|-\delta)_{+} [ g ( s , δ ) ] j := sign ( s j ) ( ∣ s j ∣ − δ ) + , equivalently
g ( s , δ ) = sign ( s ) ⊙ ( ∣ s ∣ − δ 1 ) + , (99) g(\mathbf{s},\delta)=\operatorname{sign}(\mathbf{s})\odot(|\mathbf{s}|-\delta\mathbf{1})_{+}, \tag*{(99)} g ( s , δ ) = sign ( s ) ⊙ ( ∣ s ∣ − δ 1 ) + , (99)
the element-wise soft-thresholding operator (⊙ \odot ⊙ : element-wise multiplication). Then,
Forward: X = H − a ∥ a ∥ 2 2 g ( s , δ ) T , (100) \operatorname{Forward:}\quad\mathbf{X}=\mathbf{H}-\frac{\mathbf{a}}{\lVert\mathbf{a}\rVert_{2}^{2}}g(\mathbf{s},\delta)^{\mathsf{T}}, \tag*{(100)} Forward: X = H − ∥ a ∥ 2 2 a g ( s , δ ) T , (100)
Backward: d H = d X − a a T ∥ a ∥ 2 2 d X ⋅ S d i a g . (101) \operatorname{Backward:}\quad\mathrm{d}\mathbf{H}=\mathrm{d}\mathbf{X}-\frac{\mathbf{a}\mathbf{a}^{\mathsf{T}}}{\lVert\mathbf{a}\rVert_{2}^{2}}\mathrm{d}\mathbf{X}\cdot\mathbf{S}_{\mathrm{diag}}. \tag*{(101)} Backward: d H = d X − ∥ a ∥ 2 2 a a T d X ⋅ S diag . (101)
Multiple Sensitive Subgroups
For K > 2 K>2 K > 2 , the relaxed constraint set X δ \mathcal{X}_{\delta} X δ is the intersection of K − 1 K-1 K − 1 slabs of the two-group form, X δ : = ⋂ k = 1 K − 1 X δ k \mathcal{X}_{\delta}:=\bigcap_{k=1}^{K-1}\mathcal{X}_{\delta}^{k} X δ := ⋂ k = 1 K − 1 X δ k , where X δ k : = { h : ∣ h T a k ∣ ≤ δ } \mathcal{X}_{\delta}^{k}:=\{\mathbf{h}:|\mathbf{h}^{\mathsf{T}}\mathbf{a}_{k}|\le\delta\} X δ k := { h : ∣ h T a k ∣ ≤ δ } , with a k \mathbf{a}_{k} a k as defined in equation (5) . For K = 3 K=3 K = 3 , this constrains the gaps between S 0 − S 1 S_{0}-S_{1} S 0 − S 1 and S 0 − S 2 S_{0}-S_{2} S 0 − S 2 . While each individual slab X δ k \mathcal{X}_{\delta}^{k} X δ k admits the closed-form projection equation (84) , their intersection X δ \mathcal{X}_{\delta} X δ forms a polytope. Because multiple constraints can be violated simultaneously, equation (84) does not apply directly. However, since each X δ k \mathcal{X}_{\delta}^{k} X δ k is closed, convex, and contains 0 0 0 , the projection Proj X δ \operatorname{Proj}_{\mathcal{X}_{\delta}} Proj X δ can be computed via Dykstra’s algorithm [6 ] by cycling through the slabs with individual correction terms. For the backward pass, we can differentiate though the KKT conditions of the problem using implicit differentiation [4 ] .
Variance Control Inside the Diffusion (Proof of Proposition 7)
Proof. Let Φ ( H ) : = P [ T η , λ H + η γ H ( 0 ) ] = Proj X ( T η , λ H + η γ H ( 0 ) ) \Phi(\mathbf{H}):=\mathbf{P}[\mathcal{T}_{\eta,\lambda}\mathbf{H}+\eta\gamma\mathbf{H}^{(0)}]=\operatorname{Proj}_{\mathcal{X}}(\mathcal{T}_{\eta,\lambda}\mathbf{H}+\eta\gamma\mathbf{H}^{(0)}) Φ ( H ) := P [ T η , λ H + η γ H ( 0 ) ] = Proj X ( T η , λ H + η γ H ( 0 ) ) denote the update of equation (9) . Because X \mathcal{X} X is a closed convex set, the projection on it is non-expansive, hence we have that
∥ Φ ( H ) − Φ ( Y ) ∥ F = ∥ Proj X ( T η , λ H + η γ H ( 0 ) ) − Proj X ( T η , λ Y + η γ H ( 0 ) ) ∥ F ≤ ∥ ( T η , λ H + η γ H ( 0 ) ) − ( T η , λ Y + η γ H ( 0 ) ) ∥ F = ∥ T η , λ ( H − Y ) ∥ F ≤ ∥ T η , λ ∥ 2 ∥ H − Y ∥ F . (102) \begin{aligned}
\lVert\Phi(\mathbf{H})-\Phi(\mathbf{Y})\rVert_{F}
&=\lVert\operatorname{Proj}_{\mathcal{X}}(\mathcal{T}_{\eta,\lambda}\mathbf{H}+\eta\gamma\mathbf{H}^{(0)})-\operatorname{Proj}_{\mathcal{X}}(\mathcal{T}_{\eta,\lambda}\mathbf{Y}+\eta\gamma\mathbf{H}^{(0)})\rVert_{F}\\
&\le\lVert(\mathcal{T}_{\eta,\lambda}\mathbf{H}+\eta\gamma\mathbf{H}^{(0)})-(\mathcal{T}_{\eta,\lambda}\mathbf{Y}+\eta\gamma\mathbf{H}^{(0)})\rVert_{F}
=\lVert\mathcal{T}_{\eta,\lambda}(\mathbf{H}-\mathbf{Y})\rVert_{F}\\
&\le\lVert\mathcal{T}_{\eta,\lambda}\rVert_{2}\lVert\mathbf{H}-\mathbf{Y}\rVert_{F}. \tag*{(102)}
\end{aligned} ∥ Φ ( H ) − Φ ( Y ) ∥ F = ∥ Proj X ( T η , λ H + η γ H ( 0 ) ) − Proj X ( T η , λ Y + η γ H ( 0 ) ) ∥ F ≤ ∥( T η , λ H + η γ H ( 0 ) ) − ( T η , λ Y + η γ H ( 0 ) ) ∥ F = ∥ T η , λ ( H − Y ) ∥ F ≤ ∥ T η , λ ∥ 2 ∥ H − Y ∥ F . (102)
We know that T η , λ = I − η Q λ T_{\eta,\lambda} = I - \eta Q_{\lambda} T η , λ = I − η Q λ is a contractive operator iff for all eigenvalues μ \mu μ of Q λ Q_{\lambda} Q λ we get
∣ 1 − η μ ∣ < 1 ⇔ 0 < η μ < 2. (103) \lvert1-\eta\mu\rvert< 1 \Leftrightarrow0 < \eta\mu< 2. \tag*{(103)} ∣ 1 − η μ ∣ < 1 ⇔ 0 < η μ < 2. (103)
Hence, it should hold that
0 < η < 2 μ max ( Q λ ) . (104) 0 < \eta< \frac{2}{\mu_{\max}(Q_{\lambda})}. \tag*{(104)} 0 < η < μ m a x ( Q λ ) 2 . (104)
We know that the Hessian of f λ f_{\lambda} f λ is Q λ = γ I + ( 1 − γ ) L S + 2 λ M Q_{\lambda} = \gamma I + (1-\gamma)L_{S} + 2\lambda M Q λ = γ I + ( 1 − γ ) L S + 2 λ M and is symmetric, so its eigenvalues are real. We also know that, L S ⪰ 0 L_{S} \succeq0 L S ⪰ 0 and M ⪰ 0 M \succeq0 M ⪰ 0 give Q λ ⪰ γ I Q_{\lambda} \succeq\gamma I Q λ ⪰ γ I , hence μ ≥ γ = μ min ( Q λ ) > 0 \mu\ge\gamma= \mu_{\min}(Q_{\lambda}) > 0 μ ≥ γ = μ m i n ( Q λ ) > 0 for every eigenvalue μ \mu μ of Q λ Q_{\lambda} Q λ . Moreover, we know:
λ max ( L S ) ≤ 2 \lambda_{\max}(L_{S}) \le2 λ m a x ( L S ) ≤ 2 , since − 1 ≤ σ ( S ) ≤ 1 -1 \le\sigma(S) \le1 − 1 ≤ σ ( S ) ≤ 1 . (equality holds for bipartite graphs)
∥ M ∥ 2 = 1 n min \lVert M\rVert_{2} = \frac{1}{n_{\min}} ∥ M ∥ 2 = n m i n 1 , because: ∥ M k ∥ 2 = 1 ⇒ ∥ B k T M k B k ∥ 2 = 1 \lVert M_{k}\rVert_{2} = 1 \Rightarrow\lVert B_{k}^{\mathsf{T}}M_{k}B_{k}\rVert_{2} = 1 ∥ M k ∥ 2 = 1 ⇒ ∥ B k T M k B k ∥ 2 = 1 . Also, M M M is a block diagonal with 1 n k M i \frac{1}{n_{k}}M_{i} n k 1 M i at each block. Hence, ∥ M ∥ 2 = max k ∥ 1 n k M k ∥ 2 = max k { 1 n k } = 1 min i n i n k = 1 n min \lVert M\rVert_{2} = \max_{k}\lVert\frac{1}{n_{k}}M_{k}\rVert_{2} = \max_{k}\{\frac{1}{n_{k}}\} = \frac{1}{\min_{i}n_{i}n_{k}} = \frac{1}{n_{\min}} ∥ M ∥ 2 = max k ∥ n k 1 M k ∥ 2 = max k { n k 1 } = m i n i n i n k 1 = n m i n 1
Hence,
μ max ( Q λ ) ≤ γ + 2 ( 1 − γ ) + 2 λ n min = 2 − γ + 2 λ n min ⇒ 2 2 − γ + 2 λ n min < 2 μ max ( ∇ 2 g ) (105) \mu_{\max}(Q_{\lambda}) \le\gamma+ 2(1-\gamma) + \frac{2\lambda}{n_{\min}} = 2-\gamma+\frac{2\lambda}{n_{\min}} \Rightarrow\frac{2}{2-\gamma+\frac{2\lambda}{n_{\min}}} < \frac{2}{\mu_{\max}(\nabla^{2}g)} \tag*{(105)} μ m a x ( Q λ ) ≤ γ + 2 ( 1 − γ ) + n m i n 2 λ = 2 − γ + n m i n 2 λ ⇒ 2 − γ + n m i n 2 λ 2 < μ m a x ( ∇ 2 g ) 2 (105)
meaning that a safe choice for η \eta η is
η < 2 2 − γ + 2 λ n min . (106) \eta< \frac{2}{2-\gamma+\frac{2\lambda}{n_{\min}}}. \tag*{(106)} η < 2 − γ + n m i n 2 λ 2 . (106)
Let’s define ρ : = ∥ T η , λ ∥ 2 = max { ∣ 1 − η μ min ∣ , ∣ 1 − η μ max ∣ } < 1 \rho:= \lVert T_{\eta,\lambda}\rVert_{2} = \max\{\lvert1-\eta\mu_{\min}\rvert,\lvert1-\eta\mu_{\max}\rvert\} < 1 ρ := ∥ T η , λ ∥ 2 = max {∣ 1 − η μ m i n ∣ , ∣ 1 − η μ m a x ∣} < 1 . Hence, equation (102) results in
∥ Φ ( H ) − Φ ( Y ) ∥ 2 ≤ ρ ∥ H − Y ∥ 2 . (107) \lVert\Phi(\mathbf{H})-\Phi(\mathbf{Y})\rVert_{2} \le\rho\lVert\mathbf{H}-\mathbf{Y}\rVert_{2}. \tag*{(107)} ∥ Φ ( H ) − Φ ( Y ) ∥ 2 ≤ ρ ∥ H − Y ∥ 2 . (107)
By the Banach fixed-point theorem [3 ] , Φ \Phi Φ admits a unique fixed point H ∗ \mathbf{H}^{*} H ∗ and the iterates H ( t + 1 ) = Φ ( H ( t ) ) \mathbf{H}^{(t+1)}=\Phi(\mathbf{H}^{(t)}) H ( t + 1 ) = Φ ( H ( t ) ) converge to it from any initialization. The rate follows by applying equation (107) with Y = H ∗ \mathbf{Y}=\mathbf{H}^{*} Y = H ∗ : since Φ ( H ∗ ) = H ∗ \Phi(\mathbf{H}^{*})=\mathbf{H}^{*} Φ ( H ∗ ) = H ∗ ,
∥ H ( t + 1 ) − H ∗ ∥ F = ∥ Φ ( H ( t ) ) − Φ ( H ∗ ) ∥ F ≤ ρ ∥ H ( t ) − H ∗ ∥ F , (108) \lVert\mathbf{H}^{(t+1)}-\mathbf{H}^{*}\rVert_{F}=\lVert\Phi(\mathbf{H}^{(t)})-\Phi(\mathbf{H}^{*})\rVert_{F}\le\rho\lVert\mathbf{H}^{(t)}-\mathbf{H}^{*}\rVert_{F}, \tag*{(108)} ∥ H ( t + 1 ) − H ∗ ∥ F = ∥ Φ ( H ( t ) ) − Φ ( H ∗ ) ∥ F ≤ ρ ∥ H ( t ) − H ∗ ∥ F , (108)
and induction on t t t gives
∥ H ( t ) − H ∗ ∥ F ≤ ρ t ∥ H ( 0 ) − H ∗ ∥ F . (109) \lVert\mathbf{H}^{(t)}-\mathbf{H}^{*}\rVert_{F}\le\rho^{t}\lVert\mathbf{H}^{(0)}-\mathbf{H}^{*}\rVert_{F}. \tag*{(109)} ∥ H ( t ) − H ∗ ∥ F ≤ ρ t ∥ H ( 0 ) − H ∗ ∥ F . (109)
Reaching accuracy ε \varepsilon ε requires t = O ( log ( 1 / ε ) / log ( 1 / ρ ) ) t=O(\log(1/\varepsilon)/\log(1/\rho)) t = O ( log ( 1/ ε ) / log ( 1/ ρ )) iterations.
The fixed point is the solution of the constrained problem. Writing the update as Φ ( H ) = P [ H − η ∇ f λ ( H ) ] \Phi(\mathbf{H})=\mathsf{P}[\mathbf{H}-\eta\nabla f_{\lambda}(\mathbf{H})] Φ ( H ) = P [ H − η ∇ f λ ( H )] , which is equivalent to Proj X ( H − η ∇ f λ ( H ) ) \operatorname{Proj}_{\mathcal{X}}(\mathbf{H}-\eta\nabla f_{\lambda}(\mathbf{H})) Proj X ( H − η ∇ f λ ( H )) , and using the fact that the projection onto a closed convex set C C C is characterized by ⟨ Π C ( z ) − z , Π C ( z ) − y ⟩ ≤ 0 \langle\Pi_{C}(z)-z,\Pi_{C}(z)-y\rangle\le0 ⟨ Π C ( z ) − z , Π C ( z ) − y ⟩ ≤ 0 for all y ∈ C y\in C y ∈ C [3 ] , H ∗ = Φ ( H ∗ ) \mathbf{H}^{*}=\Phi(\mathbf{H}^{*}) H ∗ = Φ ( H ∗ ) holds if and only if
⟨ H ∗ − η ∇ f λ ( H ∗ ) − H ∗ , Y − H ∗ ⟩ ≤ 0 for all Y ∈ X . (110) \langle\mathbf{H}^{*}-\eta\nabla f_{\lambda}(\mathbf{H}^{*})-\mathbf{H}^{*},\mathbf{Y}-\mathbf{H}^{*}\rangle\le0 \quad\text{for all }\mathbf{Y}\in\mathcal{X}. \tag*{(110)} ⟨ H ∗ − η ∇ f λ ( H ∗ ) − H ∗ , Y − H ∗ ⟩ ≤ 0 for all Y ∈ X . (110)
This is equivalent to ⟨ ∇ f λ ( H ∗ ) , Y − H ∗ ⟩ ≥ 0 \langle\nabla f_{\lambda}(\mathbf{H}^{*}),\mathbf{Y}-\mathbf{H}^{*}\rangle\ge0 ⟨ ∇ f λ ( H ∗ ) , Y − H ∗ ⟩ ≥ 0 for all Y ∈ X \mathbf{Y}\in\mathcal{X} Y ∈ X , using η > 0 \eta>0 η > 0 . This is precisely the first-order optimality condition for min H ∈ X f λ ( H ) \min_{\mathbf{H}\in\mathcal{X}}f_{\lambda}(\mathbf{H}) min H ∈ X f λ ( H ) , which is necessary and sufficient because f λ f_{\lambda} f λ is convex and X \mathcal{X} X is convex. Since f λ f_{\lambda} f λ is strictly convex the minimizer is unique, so H ∗ = arg min H ∈ X f λ ( H ) \mathbf{H}^{*}=\arg\min_{\mathbf{H}\in\mathcal{X}}f_{\lambda}(\mathbf{H}) H ∗ = arg min H ∈ X f λ ( H ) .
Per-step versus End-only Projection
Theorem 14. Let Y ∗ \mathbf{Y}^* Y ∗ denote the fixed point of the APPNP propagation, and let X \mathcal{X} X be the closed convex set defined by the inequality and equality constraints X = { X ∈ R n × d ∣ w i ( X ) ≤ 0 , i = 1 , … , p ; u j ( X ) = 0 , j = 1 , … , q } \mathcal{X} = \{\mathbf{X} \in\mathbb{R}^{n \times d} \mid w_i(\mathbf{X}) \le0,\ i = 1,\ldots,p;\ u_j(\mathbf{X}) = 0,\ j = 1,\ldots,q\} X = { X ∈ R n × d ∣ w i ( X ) ≤ 0 , i = 1 , … , p ; u j ( X ) = 0 , j = 1 , … , q } . Then the solution obtained by projecting once at the end is characterized by the KKT conditions as
X ∗ = Y ∗ − 1 2 z ( X ∗ ) , (111) \mathbf{X}^* = \mathbf{Y}^* - \frac{1}{2}z(\mathbf{X}^*), \tag*{(111)} X ∗ = Y ∗ − 2 1 z ( X ∗ ) , (111) whereas the solution of FairProp satisfies
X ∗ = Y ∗ − [ I − ( 1 − γ ) S + 2 λ M ] − 1 z ( X ∗ ) , (112) \mathbf{X}^* = \mathbf{Y}^* - [\mathbf{I} - (1-\gamma)\mathbf{S} + 2\lambda\mathbf{M}]^{-1}z(\mathbf{X}^*), \tag*{(112)} X ∗ = Y ∗ − [ I − ( 1 − γ ) S + 2 λ M ] − 1 z ( X ∗ ) , (112) where z ( X ) = ∑ i = 1 p ν i ∗ ∇ w i ( X ) + ∑ j = 1 q μ j ∗ ∇ u j ( X ) z(\mathbf{X}) = \sum_{i=1}^{p}\nu_i^*\nabla w_i(\mathbf{X}) + \sum_{j=1}^{q}\mu_j^*\nabla u_j(\mathbf{X}) z ( X ) = ∑ i = 1 p ν i ∗ ∇ w i ( X ) + ∑ j = 1 q μ j ∗ ∇ u j ( X ) , with ν i ∗ \nu_i^* ν i ∗ and μ j ∗ \mu_j^* μ j ∗ the optimal dual variables associated with the inequality and equality constraints, respectively.
Proof. The proof is strongly based on the proof of Theorem 5.1 by Kariotakis & Konar [21 ] . It comprises two parts. First, we show how just projection once after all the propagation steps produces results that are agnostic to the graph structure, and then show that for FairProp propagation is not. We make use of the fact that the constraint set X \mathcal{X} X is convex.
Propagation + Projection: Given that Y ∗ = γ [ I − ( 1 − γ ) S + 2 λ M ] − 1 H \mathbf{Y}^* = \gamma[\mathbf{I} - (1-\gamma)\mathbf{S} + 2\lambda\mathbf{M}]^{-1}\mathbf{H} Y ∗ = γ [ I − ( 1 − γ ) S + 2 λ M ] − 1 H is the fixed point of the regularized PPNP, and since X \mathcal{X} X is convex, the optimization problem that this method is solving, comprises the following inequality and equality constraints:
min X ∥ X − Y ∗ ∥ 2 2 s.t. w i ( X ) ≤ 0 , i = 1 , … , p u j ( X ) = 0 , j = 1 , … , q (113) \begin{aligned}
\min_{\mathbf{X}}\quad& \lVert\mathbf{X} - \mathbf{Y}^* \rVert_2^2 \\
\text{s.t.}\quad& w_i(\mathbf{X}) \le0,\ i = 1,\ldots,p \\
& u_j(\mathbf{X}) = 0,\ j = 1,\ldots,q \tag*{(113)}
\end{aligned} X min s.t. ∥ X − Y ∗ ∥ 2 2 w i ( X ) ≤ 0 , i = 1 , … , p u j ( X ) = 0 , j = 1 , … , q (113)
From the stationarity KKT condition we get that
∇ L ( X ∗ , ν , μ ) = 0 ⇔ ∇ ∥ X ∗ − Y ∗ ∥ 2 2 + ∑ i = 1 p ν i ∇ w i ( X ∗ ) + ∑ j = 1 q μ j ∇ u j ( X ∗ ) = 0 (114) \nabla\mathcal{L}(\mathbf{X}^*,\boldsymbol{\nu},\boldsymbol{\mu}) = 0 \Leftrightarrow\nabla\lVert\mathbf{X}^*-\mathbf{Y}^*\rVert_2^2 + \sum_{i=1}^{p}\nu_i\nabla w_i(\mathbf{X}^*) + \sum_{j=1}^{q}\mu_j\nabla u_j(\mathbf{X}^*) = 0 \tag*{(114)} ∇ L ( X ∗ , ν , μ ) = 0 ⇔ ∇ ∥ X ∗ − Y ∗ ∥ 2 2 + i = 1 ∑ p ν i ∇ w i ( X ∗ ) + j = 1 ∑ q μ j ∇ u j ( X ∗ ) = 0 (114)
2 ( X ∗ − Y ∗ ) + ∑ i = 1 p ν i ∇ w i ( X ∗ ) + ∑ j = 1 q μ j ∇ u j ( X ∗ ) = 0 (115) 2(\mathbf{X}^*-\mathbf{Y}^*) + \sum_{i=1}^{p}\nu_i\nabla w_i(\mathbf{X}^*) + \sum_{j=1}^{q}\mu_j\nabla u_j(\mathbf{X}^*) = 0 \tag*{(115)} 2 ( X ∗ − Y ∗ ) + i = 1 ∑ p ν i ∇ w i ( X ∗ ) + j = 1 ∑ q μ j ∇ u j ( X ∗ ) = 0 (115)
⇔ X ∗ = Y ∗ − 1 2 ( ∑ i = 1 p ν i ∇ w i ( X ∗ ) + ∑ j = 1 q μ j ∇ u j ( X ∗ ) ) . (116) \Leftrightarrow\mathbf{X}^* = \mathbf{Y}^* - \frac{1}{2}\left(\sum_{i=1}^{p}\nu_i\nabla w_i(\mathbf{X}^*) + \sum_{j=1}^{q}\mu_j\nabla u_j(\mathbf{X}^*)\right). \tag*{(116)} ⇔ X ∗ = Y ∗ − 2 1 ( i = 1 ∑ p ν i ∇ w i ( X ∗ ) + j = 1 ∑ q μ j ∇ u j ( X ∗ ) ) . (116)
As shown in the results above, applying a single projection after all propagation steps yields an outcome that is agnostic to the graph structure.
min { f λ ( X ) s.t. X ∈ X } , (117) \min\{f_\lambda(\mathbf{X})\ \text{s.t.}\ \mathbf{X} \in\mathcal{X}\}, \tag*{(117)} min { f λ ( X ) s.t. X ∈ X } , (117)
where
f λ ( X ) : = 1 2 γ ∥ X − H ∥ 2 + 1 2 ( 1 − γ ) tr ( X T L S X ) + λ tr ( X T M X ) , (118) f_\lambda(\mathbf{X}) := \frac{1}{2}\gamma\lVert\mathbf{X}-\mathbf{H}\rVert^2 + \frac{1}{2}(1-\gamma)\operatorname{tr}(\mathbf{X}^{\mathsf{T}}\mathbf{L}_{\mathbf{S}}\mathbf{X}) + \lambda\operatorname{tr}(\mathbf{X}^{\mathsf{T}}\mathbf{M}\mathbf{X}), \tag*{(118)} f λ ( X ) := 2 1 γ ∥ X − H ∥ 2 + 2 1 ( 1 − γ ) tr ( X T L S X ) + λ tr ( X T MX ) , (118)
with
∇ f λ ( X ) = [ I − ( 1 − γ ) S + 2 λ M ] X − γ H . (119) \nabla f_\lambda(\mathbf{X}) = [\mathbf{I} - (1-\gamma)\mathbf{S} + 2\lambda\mathbf{M}]\mathbf{X} - \gamma\mathbf{H}. \tag*{(119)} ∇ f λ ( X ) = [ I − ( 1 − γ ) S + 2 λ M ] X − γ H . (119)
Since X \mathcal{X} X is convex, the optimization problem comprises of the following inequality and equality constraints:
min X f λ ( X ) s.t. w i ( X ) ≤ 0 , i = 1 , … , p u j ( X ) = 0 , j = 1 , … , q (120) \begin{aligned}
\min_{\mathbf{X}}\quad& f_\lambda(\mathbf{X}) \\
\text{s.t.}\quad& w_i(\mathbf{X}) \le0,\ i = 1,\ldots,p \\
& u_j(\mathbf{X}) = 0,\ j = 1,\ldots,q \tag*{(120)}
\end{aligned} X min s.t. f λ ( X ) w i ( X ) ≤ 0 , i = 1 , … , p u j ( X ) = 0 , j = 1 , … , q (120)
From the stationarity KKT condition we get that
∇ L ( X ∗ , ν , μ ) = 0 ⇔ ∇ f ( X ∗ ) + ∑ i = 1 p ν i ∇ w i ( X ∗ ) + ∑ j = 1 q μ j ∇ u j ( X ∗ ) = 0 (121) \nabla\mathcal{L}(X^*,\nu,\mu)=0 \Leftrightarrow\nabla f(X^*)+\sum_{i=1}^{p}\nu_i\nabla w_i(X^*)+\sum_{j=1}^{q}\mu_j\nabla u_j(X^*)=0 \tag*{(121)} ∇ L ( X ∗ , ν , μ ) = 0 ⇔ ∇ f ( X ∗ ) + i = 1 ∑ p ν i ∇ w i ( X ∗ ) + j = 1 ∑ q μ j ∇ u j ( X ∗ ) = 0 (121)
⇔ [ I − ( 1 − γ ) S + 2 λ M ] X ∗ − γ H + ∑ i = 1 p ν i ∇ w i ( X ∗ ) + ∑ j = 1 q μ j ∇ u j ( X ∗ ) = 0 (122) \Leftrightarrow[I-(1-\gamma)S+2\lambda M]X^*-\gamma H+\sum_{i=1}^{p}\nu_i\nabla w_i(X^*)+\sum_{j=1}^{q}\mu_j\nabla u_j(X^*)=0 \tag*{(122)} ⇔ [ I − ( 1 − γ ) S + 2 λ M ] X ∗ − γ H + i = 1 ∑ p ν i ∇ w i ( X ∗ ) + j = 1 ∑ q μ j ∇ u j ( X ∗ ) = 0 (122)
⇔ X ∗ = Y ∗ − [ I − ( 1 − γ ) S + 2 λ M ] − 1 ( ∑ i = 1 p ν i ∇ w i ( X ∗ ) + ∑ j = 1 q μ j ∇ u j ( X ∗ ) ) (123) \Leftrightarrow X^*=Y^*-[I-(1-\gamma)S+2\lambda M]^{-1}\left(\sum_{i=1}^{p}\nu_i\nabla w_i(X^*)+\sum_{j=1}^{q}\mu_j\nabla u_j(X^*)\right) \tag*{(123)} ⇔ X ∗ = Y ∗ − [ I − ( 1 − γ ) S + 2 λ M ] − 1 ( i = 1 ∑ p ν i ∇ w i ( X ∗ ) + j = 1 ∑ q μ j ∇ u j ( X ∗ ) ) (123)
Equation not extracted
(124)
where Y ∗ = γ [ I − ( 1 − γ ) S + 2 λ M ] − 1 H Y^*=\gamma[I-(1-\gamma)S+2\lambda M]^{-1}H Y ∗ = γ [ I − ( 1 − γ ) S + 2 λ M ] − 1 H . Re-expressing [ I − ( 1 − γ ) S + 2 λ M ] − 1 = ∑ j = 0 ∞ [ ( 1 − γ ) S − 2 λ M ] j [I-(1-\gamma)S+2\lambda M]^{-1}=\sum_{j=0}^{\infty}[(1-\gamma)S-2\lambda M]^j [ I − ( 1 − γ ) S + 2 λ M ] − 1 = ∑ j = 0 ∞ [( 1 − γ ) S − 2 λ M ] j shows that FairProp corrects Y ∗ Y^* Y ∗ via a graph diffusion term in order to arrive at the solution, hence it is clear that it makes use of the graph structure. For λ = 0 \lambda=0 λ = 0 , i.e., only mean-equalization, we get [ I − ( 1 − γ ) S ] − 1 = ∑ j = 0 ∞ ( 1 − γ ) j S j [I-(1-\gamma)S]^{-1}=\sum_{j=0}^{\infty}(1-\gamma)^jS^j [ I − ( 1 − γ ) S ] − 1 = ∑ j = 0 ∞ ( 1 − γ ) j S j .
One Dimensional Embeddings and Mean-Equalization
End-Only Projection
Proposition 15. Let S 0 , S 1 S_0,S_1 S 0 , S 1 be the sensitive groups of nodes, with n k = ∣ S k ∣ > 0 n_k=|S_k|>0 n k = ∣ S k ∣ > 0 and n 0 + n 1 = n n_0+n_1=n n 0 + n 1 = n , and let the number of features be d = 1 d=1 d = 1 . Define the following fairness constraint set
X 0 : = { x ∈ R n : a T x = 0 } , a : = e S 0 n 0 − e S 1 n 1 ∈ R n . (125) \mathcal{X}_0:=\{x\in\mathbb{R}^n:\mathbf{a}^{\mathsf T}x=0\},\qquad\mathbf{a}:=\frac{\mathbf{e}_{S_0}}{n_0}-\frac{\mathbf{e}_{S_1}}{n_1}\in\mathbb{R}^n. \tag*{(125)} X 0 := { x ∈ R n : a T x = 0 } , a := n 0 e S 0 − n 1 e S 1 ∈ R n . (125) Let y ∈ R n y\in\mathbb{R}^n y ∈ R n be the given embedding vector and let δ : = a T y = y ˉ 0 − y ˉ 1 \delta:=\mathbf{a}^{\mathsf T}y=\bar{y}_0-\bar{y}_1 δ := a T y = y ˉ 0 − y ˉ 1 , with y ˉ k : = 1 n k ∑ i ∈ S k y ( i ) \bar{y}_k:=\frac{1}{n_k}\sum_{i\in S_k}y(i) y ˉ k := n k 1 ∑ i ∈ S k y ( i ) , be the difference of the two group means. Then the Euclidean projection of y y y onto X 0 \mathcal{X}_0 X 0 is unique and given entry-wise by
x ∗ ( i ) = { y ( i ) − n 1 n δ , i ∈ S 0 y ( i ) + n 0 n δ , i ∈ S 1 , (126) x^*(i)=
\begin{cases}
y(i)-\frac{n_1}{n}\delta, & i\in S_0\\
y(i)+\frac{n_0}{n}\delta, & i\in S_1,
\end{cases} \tag*{(126)} x ∗ ( i ) = { y ( i ) − n n 1 δ , y ( i ) + n n 0 δ , i ∈ S 0 i ∈ S 1 , (126) equivalently x ∗ = ( I − a a T ∥ a ∥ 2 2 ) y x^*=\left(I-\frac{\mathbf{a}\mathbf{a}^{\mathsf T}}{\lVert\mathbf{a}\rVert_2^2}\right)y x ∗ = ( I − ∥ a ∥ 2 2 a a T ) y .
Proof. X 0 \mathcal{X}_0 X 0 is a hyperplane through the origin and ∥ x − y ∥ 2 2 \lVert x-y\rVert_2^2 ∥ x − y ∥ 2 2 is strictly convex, so the problem
min x ∈ X 0 ∥ x − y ∥ 2 2 (127) \min_{x\in\mathcal{X}_0}\lVert x-y\rVert_2^2 \tag*{(127)} x ∈ X 0 min ∥ x − y ∥ 2 2 (127) has a unique solution, characterized by stationarity of the Lagrangian L ( x , λ ) = ∥ x − y ∥ 2 2 + 2 λ a T x \mathcal{L}(x,\lambda)=\lVert x-y\rVert_2^2+2\lambda\mathbf{a}^{\mathsf T}x L ( x , λ ) = ∥ x − y ∥ 2 2 + 2 λ a T x :
∇ x L = 2 ( x − y ) + 2 λ a = 0 ⟹ x = y − λ a . (128) \nabla_x\mathcal{L}=2(x-y)+2\lambda\mathbf{a}=0\quad\Longrightarrow\quad x=y-\lambda\mathbf{a}. \tag*{(128)} ∇ x L = 2 ( x − y ) + 2 λ a = 0 ⟹ x = y − λ a . (128) Imposing feasibility gives a T y − λ ∥ a ∥ 2 2 = 0 \mathbf{a}^{\mathsf T}y-\lambda\lVert\mathbf{a}\rVert_2^2=0 a T y − λ ∥ a ∥ 2 2 = 0 , and since e S 0 \mathbf{e}_{S_0} e S 0 and e S 1 \mathbf{e}_{S_1} e S 1 have disjoint supports,
∥ a ∥ 2 2 = 1 n 0 + 1 n 1 = n n 0 n 1 , hence λ ∗ = δ ∥ a ∥ 2 2 = n 0 n 1 n δ . (129) \lVert\mathbf{a}\rVert_2^2=\frac{1}{n_0}+\frac{1}{n_1}=\frac{n}{n_0n_1},\qquad\text{hence}\qquad\lambda^*=\frac{\delta}{\lVert\mathbf{a}\rVert_2^2}=\frac{n_0n_1}{n}\delta. \tag*{(129)} ∥ a ∥ 2 2 = n 0 1 + n 1 1 = n 0 n 1 n , hence λ ∗ = ∥ a ∥ 2 2 δ = n n 0 n 1 δ . (129) Substituting λ ∗ \lambda^* λ ∗ into equation 128 and using a ( i ) = 1 / n 0 a(i)=1/n_0 a ( i ) = 1/ n 0 for i ∈ S 0 i\in S_0 i ∈ S 0 and a ( i ) = − 1 / n 1 a(i)=-1/n_1 a ( i ) = − 1/ n 1 for i ∈ S 1 i\in S_1 i ∈ S 1 yields equation 126. ∎
Remark 16. The correction in equation 126 is constant within each group. The groups are shifted in opposite directions by amounts inversely proportional to their sizes, with the two displacements standing in ratio n 1 : n 0 n_1:n_0 n 1 : n 0 . The minority is thus moved further, and in the limit of a small minority the majority is left essentially untouched, while the minority absorbs the entire mean gap. The constraint equalizes the group means but not the price paid for doing so. Utility is sacrificed almost entirely on the minority side, so a criterion imposed for fairness reasons is itself satisfied unfairly.
Per-Step Projection of FairProp
Proposition 17. Let S 0 , S 1 S_0, S_1 S 0 , S 1 be the sensitive groups of nodes, with n k = ∣ S k ∣ > 0 n_k = \lvert S_k\rvert> 0 n k = ∣ S k ∣ > 0 and n 0 + n 1 = n n_0 + n_1 = n n 0 + n 1 = n , and let the number of features be d d d . Define the following fairness constraint set
X 0 : = { X ∈ R n : a T X = 0 } , a : = e S 0 n 0 − e S 1 n 1 ∈ R n . (130) \mathcal{X}_0 := \left\{X \in\mathbb{R}^n : \mathbf{a}^{\mathsf{T}}X = 0\right\}, \qquad\mathbf{a} := \frac{\mathbf{e}_{S_0}}{n_0} - \frac{\mathbf{e}_{S_1}}{n_1} \in\mathbb{R}^n. \tag*{(130)} X 0 := { X ∈ R n : a T X = 0 } , a := n 0 e S 0 − n 1 e S 1 ∈ R n . (130) Let Y ∗ \mathbf{Y}^* Y ∗ denote the fixed point of the APPNP propagation, then the solution of FairProp (for λ = 0 \lambda= 0 λ = 0 ) satisfies:
X ∗ = Y ∗ − Q − 1 a a T Y ∗ a T Q − 1 a = [ I − Q − 1 a a T a T Q − 1 a ] Y ∗ , (131) X^* = \mathbf{Y}^* - \frac{Q^{-1}\mathbf{a}\mathbf{a}^{\mathsf{T}}\mathbf{Y}^*}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}} = \left[I - \frac{Q^{-1}\mathbf{a}\mathbf{a}^{\mathsf{T}}}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}}\right]\mathbf{Y}^*, \tag*{(131)} X ∗ = Y ∗ − a T Q − 1 a Q − 1 a a T Y ∗ = [ I − a T Q − 1 a Q − 1 a a T ] Y ∗ , (131) with Q = [ I − ( 1 − γ ) S ] Q = [I - (1 - \gamma)S] Q = [ I − ( 1 − γ ) S ] .
Proof. We have shown that FairProp is solving the following constrained, strongly convex QP
min { f ( X ) s.t. X ∈ X 0 } , (132) \min\{f(X) \text{ s.t. } X \in\mathcal{X}_0\}, \tag*{(132)} min { f ( X ) s.t. X ∈ X 0 } , (132)
where
f ( X ) : = 1 2 γ ∥ X − H ∥ 2 + 1 2 ( 1 − γ ) tr ( X T L S X ) , (133) f(X) := \frac{1}{2}\gamma\lVert X - H\rVert^2 + \frac{1}{2}(1 - \gamma)\operatorname{tr}(X^{\mathsf{T}}L_SX), \tag*{(133)} f ( X ) := 2 1 γ ∥ X − H ∥ 2 + 2 1 ( 1 − γ ) tr ( X T L S X ) , (133)
with
∇ f ( X ) = Q X − γ H , Q = [ I − ( 1 − γ ) S ] ≻ 0. (134) \nabla f(X) = QX - \gamma H, \qquad Q = [I - (1 - \gamma)S] \succ0. \tag*{(134)} ∇ f ( X ) = QX − γ H , Q = [ I − ( 1 − γ ) S ] ≻ 0. (134)
Since X 0 \mathcal{X}_0 X 0 is convex, we have the Lagrangian
L ( X , μ ) = f ( X ) + tr ( X T a μ T ) (135) \mathcal{L}(X,\mu) = f(X) + \operatorname{tr}(X^{\mathsf{T}}\mathbf{a}\mu^{\mathsf{T}}) \tag*{(135)} L ( X , μ ) = f ( X ) + tr ( X T a μ T ) (135)
the following KKT conditions:
(Stationarity): ∇ X L = ∇ X f ( X ) + a μ T = 0 ⇔ Q X = γ H − a μ T \nabla_X\mathcal{L} = \nabla_Xf(X) + \mathbf{a}\mu^{\mathsf{T}} = 0 \Leftrightarrow QX = \gamma H - \mathbf{a}\mu^{\mathsf{T}} ∇ X L = ∇ X f ( X ) + a μ T = 0 ⇔ QX = γ H − a μ T
(Primal Feasibility): a T X = 0 \mathbf{a}^{\mathsf{T}}X = 0 a T X = 0
Since Q ≻ 0 Q \succ0 Q ≻ 0 ,
X = Q − 1 [ γ H − a μ T ] . (136) X = Q^{-1}[\gamma H - \mathbf{a}\mu^{\mathsf{T}}]. \tag*{(136)} X = Q − 1 [ γ H − a μ T ] . (136)
Substituting back to a T X = 0 \mathbf{a}^{\mathsf{T}}X = 0 a T X = 0 , we get:
γ a T Q − 1 H − a T Q − 1 a μ T = 0 ⇒ μ T = γ a T Q − 1 H a T Q − 1 a . (137) \gamma\mathbf{a}^{\mathsf{T}}Q^{-1}H - \mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}\mu^{\mathsf{T}} = 0 \Rightarrow\mu^{\mathsf{T}} = \gamma\frac{\mathbf{a}^{\mathsf{T}}Q^{-1}H}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}}. \tag*{(137)} γ a T Q − 1 H − a T Q − 1 a μ T = 0 ⇒ μ T = γ a T Q − 1 a a T Q − 1 H . (137)
Then, we have the following closed form for the solution X ∗ X^* X ∗ :
X ∗ = γ Q − 1 H − γ Q − 1 a a T Q − 1 H a T Q − 1 a . (138) X^* = \gamma Q^{-1}H - \gamma Q^{-1}\mathbf{a}\frac{\mathbf{a}^{\mathsf{T}}Q^{-1}H}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}}. \tag*{(138)} X ∗ = γ Q − 1 H − γ Q − 1 a a T Q − 1 a a T Q − 1 H . (138)
The solution of the unconstrained problem of APPNP min X { f ( X ) } \min_X \{f(X)\} min X { f ( X )} , is Y ∗ = γ Q − 1 H \mathbf{Y}^* = \gamma Q^{-1}H Y ∗ = γ Q − 1 H . Hence, we can express X ∗ X^* X ∗ it in terms of the unconstrained solution, as
X ∗ = Y ∗ − Q − 1 a a T Y ∗ a T Q − 1 a = [ I − Q − 1 a a T a T Q − 1 a ] Y ∗ . (139) X^* = \mathbf{Y}^* - \frac{Q^{-1}\mathbf{a}\mathbf{a}^{\mathsf{T}}\mathbf{Y}^*}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}} = \left[I - \frac{Q^{-1}\mathbf{a}\mathbf{a}^{\mathsf{T}}}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}}\right]\mathbf{Y}^*. \tag*{(139)} X ∗ = Y ∗ − a T Q − 1 a Q − 1 a a T Y ∗ = [ I − a T Q − 1 a Q − 1 a a T ] Y ∗ . (139)
Corollary 18. Let S 0 , S 1 S_0, S_1 S 0 , S 1 be the sensitive groups of nodes, with n k = ∣ S k ∣ > 0 n_k = \lvert S_k\rvert> 0 n k = ∣ S k ∣ > 0 and n 0 + n 1 = n n_0 + n_1 = n n 0 + n 1 = n , and let the number of features be d = 1 d = 1 d = 1 . Define the following fairness constraint set
X 0 : = { x ∈ R n : a T x = 0 } , a : = e S 0 n 0 − e S 1 n 1 ∈ R n . (140) \mathcal{X}_0 := \left\{x \in\mathbb{R}^n : \mathbf{a}^{\mathsf{T}}x = 0\right\}, \qquad\mathbf{a} := \frac{\mathbf{e}_{S_0}}{n_0} - \frac{\mathbf{e}_{S_1}}{n_1} \in\mathbb{R}^n. \tag*{(140)} X 0 := { x ∈ R n : a T x = 0 } , a := n 0 e S 0 − n 1 e S 1 ∈ R n . (140) Let y ∗ \mathbf{y}^* y ∗ denote the fixed point of the APPNP propagation, and let δ : = a T y ∗ = y ˉ 0 − y ˉ 1 \delta:= \mathbf{a}^{\mathsf{T}}\mathbf{y}^* = \bar{y}_0 - \bar{y}_1 δ := a T y ∗ = y ˉ 0 − y ˉ 1 , with y ˉ k : = 1 n k ∑ i ∈ S k y ∗ ( i ) \bar{y}_k := \frac{1}{n_k}\sum_{i \in S_k} y^*(i) y ˉ k := n k 1 ∑ i ∈ S k y ∗ ( i ) , be the difference of the two group means. Then the solution of FairProp satisfies:
x ∗ = y ∗ − Q − 1 a a T Q − 1 a δ . (141) x^* = y^* - \frac{Q^{-1}\mathbf{a}}{\mathbf{a}^{\mathsf{T}}Q^{-1}\mathbf{a}}\delta. \tag*{(141)} x ∗ = y ∗ − a T Q − 1 a Q − 1 a δ . (141)
In Figure 4 we can see an illustration of the Projection versus FairProp (proj) on a simulated two-group graph (n 0 = 40 n_0 = 40 n 0 = 40 , n 1 = 240 n_1 = 240 n 1 = 240 , d = 1 d = 1 d = 1 , γ = 0.1 \gamma= 0.1 γ = 0.1 , no variance regularization). The horizontal axis is the single feature and the vertical axis is a display-only jitter, identical in all panels. Left: the APPNP fixed point y ∗ \mathbf{y}^* y ∗ has a mean gap δ = a T y ∗ \delta= \mathbf{a}^{\mathsf{T}}\mathbf{y}^* δ = a T y ∗ between the minority and majority groups. Middle: the Euclidean projection onto { x : a T x = 0 } \{x : \mathbf{a}^{\mathsf{T}}x = 0\} { x : a T x = 0 } shifts every node in a group by the same amount ( n 1 n δ ) \left(\frac{n_1}{n}\delta\right) ( n n 1 δ ) and ( n 0 n δ ) \left(\frac{n_0}{n}\delta\right) ( n n 0 δ ) . The group means coincide, but each group keeps its spread. Right: FairProp shifts node i i i proportionally to ( Q − 1 a ) i (Q^{-1}\mathbf{a})_i ( Q − 1 a ) i , so nodes with many cross-group neighbours move less and nodes deep inside their group move more. This cancels the uneven propagation of the input mean gap through the graph, so the group means coincide and the within-group spread happens to shrink as well. Red brackets show the minority spread (mean ± 2 \pm2 ± 2 std).
Figure 4. Left: APPNP output y ∗ \mathbf{y}^* y ∗ with mean gap δ \delta δ . Middle: the Euclidean projection shifts each group uniformly, equalizing the means but preserving within-group spread. Right: FairProp shifts node i i i proportionally to ( Q − 1 a ) i (Q^{-1}\mathbf{a})_i ( Q − 1 a ) i , equalizing the means while also reducing within-group spread. Brackets: minority mean ± 2 \pm2 ± 2 std (γ = 0.1 \gamma= 0.1 γ = 0.1 , λ = 0 \lambda= 0 λ = 0 ).
In Figure 5 we can see the graph on which the previous experiments were run on. The minority contains bridge nodes (outlined), which have many edges to the majority, and core nodes, which have almost none; this makes ( Q − 1 a ) i (Q^{-1}\mathbf{a})_i ( Q − 1 a ) i vary within the minority and hence makes FairProp’s shifts node-dependent.
Figure 5. The simulated graph. Outlined minority nodes have edges to the majority; the remaining minority nodes have almost none.
Experiments
Experimental Setup
All experiments were performed on a single machine, with an Intel i7-13700K CPU @ 3.4GHz and 128GB of main memory, and an NVIDIA GeForce RTX 3070 GPU (8GB VRAM), running Python 3.10.19 and PyTorch 2.6.0.
FairProp Details:
MLP Architecture. All tasks, i.e., node classification (NC), link prediction (LP), node regression (NR), share a two-layer MLP from the original APPNP architecture (Gasteiger et al. [13 ] ),
Dropout ( x ) → Linear ( d i n , 64 ) → ReLU → Dropout → Linear ( 64 , d o u t ) \operatorname{Dropout}(x) \to\operatorname{Linear}(d_{\mathrm{in}},64) \to\operatorname{ReLU} \to\operatorname{Dropout} \to\operatorname{Linear}(64,d_{\mathrm{out}}) Dropout ( x ) → Linear ( d in , 64 ) → ReLU → Dropout → Linear ( 64 , d out )
where d o u t d_{\mathrm{out}} d out equals the number of classes for NC, 64 for LP, and 1 for NR, and dropout probability is p = 0.5 p = 0.5 p = 0.5 throughout. After the MLP, APPNP-style propagation runs for T = 10 T = 10 T = 10 steps.
Teleportation γ \gamma γ . We fix γ = 0.1 \gamma= 0.1 γ = 0.1 across all runs, unless stated otherwise.
Optimizer and Training. We train all models with the Adam optimizer for 200 epochs at a learning rate of 10 − 2 10^{-2} 1 0 − 2 . For NC and NR we apply weight decay 5 × 10 − 4 5 \times10^{-4} 5 × 1 0 − 4 ; for LP we use no weight decay. All results are averaged over 20 independent runs with different random seeds.
Loss Functions. For NC, we use negative log-likelihood on the training nodes. For LP, binary cross-entropy with logits and negative sampling, and for NR, the mean-squared error on the training nodes.
Datasets
For node classification, we use Credit ([41 ] ), a consumer lending network where nodes are clients connected by payment-behaviour similarity, with age as the sensitive attribute and payment default as the prediction target; Recidivism ([19 , 1 ] ), where nodes are criminal defendants linked by similar criminal profiles, with race as the sensitive attribute and re-offending as the target; and Pokec-z and Pokec-n ([9 ] ), two regional subgraphs of the Slovak social network Pokec (Zilina and Nitra regions), where nodes are users, edges are friendships, and gender is the sensitive attribute. For link prediction, we use the citation networks Cora, Citeseer, and Pubmed ([40 ] ), where nodes are academic papers and edges are citations; we adopt label parity (topic class mod 2) as a proxy sensitive attribute following standard LP fairness convention ([35 ] ). For node regression, we use GermanCredit ([2 ] ), a loan applicant network where nodes are connected by feature similarity and the target is credit score; and again Pokec-z and Pokec-n, where the regression target is profile completion percentage, with gender as the sensitive attribute. For the dataset statistics please refer to Table 4 .
Table 4. Datasets used in the experiments. Edges are counted without multiplicity (undirected). For node regression (NR) the Target column lists the predicted continuous quantity; for link prediction (LP) node classes are not used as a task label but are listed for reference.
Ablation Study: Effect of the mean-centering tolerance parameter δ \delta δ .
The parameter δ \delta δ controls the tightness of the mean-centering constraints in the FairProp projections, and as a consequence, the tightness of the upper bound on the fairness parity gap. Setting δ = 0 \delta= 0 δ = 0 enforces exact mean-centering, requires projecting onto a subspace, and yields the tightest bound on the parity gap (exact for node regression). Increasing δ > 0 \delta> 0 δ > 0 relaxes the mean-centering constraint, requires projecting onto a slab, and also loosens the upper-bound on the fairness parity gap. In the limit, as δ → ∞ \delta\to\infty δ → ∞ , the constraint vanishes, and the FairProp propagations become equivalent to its unconstrained APPNP counterpart. Hence, δ \delta δ can be viewed as a tunable parameter which interpolates between these two regimes. Our goal is to investigate how task utility and fairness are affected as δ \delta δ is varied. From our results in the previous subsection, we observe that setting δ = 0 \delta= 0 δ = 0 in FairProp causes a small drop in predictive accuracy compared to APPNP (δ → ∞ \delta\to\infty δ → ∞ ) while significantly reducing the parity gap. By varying δ > 0 \delta> 0 δ > 0 , we test if we can close the accuracy gap to APPNP while possibly incurring modest increase in the parity gap. Figure 6 showcases the results across different tasks and datasets. As δ \delta δ is increased from 0, the general trend is that both accuracy and parity gap stay roughly the same until a tipping point is reached, which usually occurs around δ = 10 − 2 \delta= 10^{-2} δ = 1 0 − 2 . Beyond this value, δ \delta δ begins to exhibit an influence on the results, with a noticeable increase in the fairness parity gap, while accuracy remains largely unchanged. The only exception is the GermanCredit dataset used for node regression, where relaxing the constraint reduces the MAE by 7% from 0.481 to 0.448. At δ → ∞ \delta\to\infty δ → ∞ , we recover the APPNP solution, empirically confirming that the slab constraint reduces to the unconstrained problem in the limit. This indicates that by varying δ \delta δ in the FairProp projections, offers a way to manage the utility-fairness trade-off in cases where exact projection leads to a significant drop in utility.
Detailed Experiments
Note that for link prediction, we also use methods originally proposed for node classification. We discard the classification head and replace it with an inner-product decoder applied to the learned node embeddings, optimizing binary cross-entropy loss. Moreover, for node regression, since there is only one available baseline, we also use methods originally proposed for node classification. We replace the classification head with a single linear output unit and optimized mean squared error loss in place of cross-entropy.
Table 5: Node classification results. Best and second best per column in bold and <u>underlined</u>, respectively, excluding the unfair baseline. Dashed results indicate out-of-memory (OOM) or time-consuming experiments. All results are presented by × 100 \times100 × 100 .
† Recidivism results for APPNP / FairProp (proj) use γ = 0.3 \gamma= 0.3 γ = 0.3 ; all other datasets use γ = 0.1 \gamma= 0.1 γ = 0.1 .
Table 5.
Table 6: Link prediction results. Best and second best per column in bold and <u>underlined</u>, respectively, excluding the unfair baseline.
Table 6.
Table 7. Node regression results. Best and second best per column in bold and <u>underlined</u>, respectively, excluding the unfair baseline. † Pokec-z/-n results for APPNP / FairProp (proj) use γ = 0.5 \gamma= 0.5 γ = 0.5 ; GermanCredit use γ = 0.1 \gamma= 0.1 γ = 0.1 .
Runtime Results
Figure 7. Runtime Results. OOT stands for Out-of-Time and OOM for Out-of-Memory.
Utility-Fairness Trade-Off Plots
Node Classification Scatter Plots
Figure 8. Utility-fairness trade-off on node classification. Each point shows mean accuracy (higher is better) against Δ D P N C \Delta^{\mathrm{NC}}_{\mathrm{DP}} Δ DP NC (lower is better) over 20 runs. Top-left is optimal.
Link Prediction Scatter Plots
Node Classification Bound Comparison