Papers
Topics
Authors
Recent
Search
2000 character limit reached

Fair Modularity Optimization (FairFN)

Updated 11 June 2026
  • The paper introduces a fairness–modularity metric (Q^P) that quantifies statistical parity by comparing group distributions within communities.
  • It presents algorithmic realizations like FairFN and MOUFLON, using bi-objective optimization to balance traditional modularity with fairness constraints.
  • Empirical evaluations on synthetic and real-world networks show that FairFN achieves near-optimal fairness with competitive structural quality.

Fair Modularity Optimization (FairFN) is a principled approach to community partitioning in graphs that enforces statistical fairness for protected demographic groups while optimizing structural quality as measured by modularity. Unlike traditional modularity maximization, which may produce highly unrepresentative or biased clusters regarding the distribution of protected groups, FairFN operationalizes proportional group representation through a fairness-modularity metric, yielding partitions that are provably fair and competitive in structural quality. The framework encompasses both bi-objective formulations and algorithmic realizations such as Fair Fast Newman (FairFN) and multilevel scalable solvers exemplified by MOUFLON, enabling practical application to synthetic and real-world networks with challenging size and balance properties (Wang et al., 27 May 2025, Panayiotou et al., 14 Oct 2025).

1. Fairness–Modularity Metric: Theoretical Foundations

At the core of FairFN is the fairness–modularity metric, QPQ^P, defined on a network G=(V,E)G=(V,E) with n=Vn=|V| nodes and rr disjoint protected groups P1,,PrP_1,\ldots,P_r partitioning VV. Building on the conventional Newman–Girvan modularity, FairFN introduces a protected-group network GPG^P, whose adjacency matrix DD is block-diagonal, with blocks of all ones corresponding to each PwP_w. The degree vector KPK^P and G=(V,E)G=(V,E)0 characterize G=(V,E)G=(V,E)1.

Given a partition encoded by G=(V,E)G=(V,E)2, the fairness–modularity is: G=(V,E)G=(V,E)3 where G=(V,E)G=(V,E)4. Expanding,

G=(V,E)G=(V,E)5

with G=(V,E)G=(V,E)6 counting nodes from G=(V,E)G=(V,E)7 assigned to community G=(V,E)G=(V,E)8.

A central property (Fairness Characterization Theorem) is: G=(V,E)G=(V,E)9 i.e., exactly when each community represents protected groups in proportion to their global prevalence. Thus, minimizing n=Vn=|V|0 enforces statistical parity. The plausible implication is that n=Vn=|V|1 provides both a penalty and a certificate for group-proportional clustering.

2. Optimization Framework: Bi-Objective and Scalarized Formulations

Community detection with fairness constraints under FairFN becomes an inherently bi-objective problem:

  • maximize classic modularity n=Vn=|V|2 for structural quality,
  • minimize n=Vn=|V|3 for fairness.

Formally, this yields: n=Vn=|V|4 or, scalarized,

n=Vn=|V|5

In this setup, n=Vn=|V|6 or n=Vn=|V|7 controls the trade-off between fairness and structure. Both n=Vn=|V|8 and n=Vn=|V|9 are combinatorial and make optimal partitioning NP-hard. Greedy modularity-based methods are therefore adapted, augmented with fairness-modularity compliance or penalty checks at each iterative step (Wang et al., 27 May 2025, Panayiotou et al., 14 Oct 2025).

3. Algorithmic Realizations

Fair Fast Newman (FairFN)

FairFN modifies the classic Fast Newman (FN) greedy merging procedure:

  • Each node starts as its own community.
  • For each pair rr0, compute modularity increments rr1 and fairness–modularity increments rr2.
  • At each step, among pairs with rr3 and rr4, merge the pair with maximum rr5.
  • Stop when no such merge remains.

This one-line modification—filtering merges through rr6—enforces non-increasing unfairness. The algorithm exhibits complexity rr7 in time and rr8 space per run, with practical data structure optimizations reducing overhead (Wang et al., 27 May 2025).

MOUFLON: Scalable Louvain-Style Optimization

MOUFLON implements FairFN in a multilevel Louvain-style framework for large-scale graphs and multi-group settings (Panayiotou et al., 14 Oct 2025). The method proceeds in repeated two-phase passes per graph level:

  • Phase 1: Pure modularity maximization (local node moves).
  • Phase 2: Joint optimization of rr9, where P1,,PrP_1,\ldots,P_r0 is a proportional-balance fairness metric (responsive to multi-group and imbalance).
  • Super-node aggregation and reiteration on the induced graph. Termination occurs when P1,,PrP_1,\ldots,P_r1 gain falls below threshold P1,,PrP_1,\ldots,P_r2.

MOUFLON achieves running time P1,,PrP_1,\ldots,P_r3 empirically (for up to P1,,PrP_1,\ldots,P_r4 nodes), with P1,,PrP_1,\ldots,P_r5 space for maintaining group counts.

4. Evaluation: Datasets, Metrics, and Comparative Performance

Experiments in (Wang et al., 27 May 2025) and (Panayiotou et al., 14 Oct 2025) cover synthetic (LFR, ER, Gaussian blobs, rewired cliques) and real tabular and network datasets (e.g., Adult, Bank, Census1990, Creditcard, Facebook, Deezer, Twitch, Pokec). Protected attributes span gender, marital status, age, etc., with controlled balance or severe group size skew.

Metrics include:

  • Modularity P1,,PrP_1,\ldots,P_r6 (structural quality; higher is better),
  • Fairness–modularity P1,,PrP_1,\ldots,P_r7 (lower is better),
  • Fairness ratio FR = P1,,PrP_1,\ldots,P_r8,
  • Average Wasserstein distance (AWD) between local and global group distributions,
  • Proportional-balance metric P1,,PrP_1,\ldots,P_r9 (for multi-group fairness),
  • NMI to ground-truth (in synthetic settings).

Key findings:

  • FairFN rapidly drives VV0, achieving FRVV1 and AWDVV2 while incurring only a small decrease in modularity VV3 relative to FN.
  • On highly imbalanced synthetic settings, FairFN attains FRVV4 and AWDVV5; state-of-the-art competitors plateau at FRVV6–VV7, AWDVV8.
  • On real-world datasets, FairFN consistently yields near-optimal fairness (FRVV9), low GPG^P0, and modularity close to or exceeding that of unconstrained methods.
  • MOUFLON produces a continuous Pareto front by tuning trade-off parameter GPG^P1, achieving scalable (up to over GPG^P2M nodes) and flexible performance; for mid-range GPG^P3, modularity remains GPG^P4 and proportional-fairness GPG^P5.

A comparative summary is as follows:

Method Fairness Constraint Modularity GPG^P6 Fairness (FR/GPG^P7/F) Scalability
FN None High Low GPG^P8
FairFN GPG^P9 High High (provable) DD0
MOUFLON DD1 Flexible Flexible/High DD2

5. Practical Insights, Hyperparameter Choices, and Trade-Offs

In both FairFN and MOUFLON, fairness–modularity and proportional-fairness metrics provide tunable levers. The key hyperparameter is:

  • DD3 (in merge thresholding or Louvain-like passes): small DD4 enforces strict fairness (DD5), larger DD6 relaxes fairness in exchange for possible modularity gains. Empirical guidance suggests setting DD7 just above DD8 for convergence; in MOUFLON, DD9 delivers stable results, while mission-critical fairness may require PwP_w0.

For multi-group and highly imbalanced data, proportional-balance PwP_w1 should always be used; naive balance metrics can mask true disparities and produce degenerate solutions.

6. Limitations and Future Directions

The FairFN framework offers a suite of advantages but remains subject to scalability and theoretical challenges:

  • The PwP_w2 complexity of classic FairFN is nontrivial for PwP_w3; however, the fairness-filter concept integrates with scalable algorithms like Louvain and CNM.
  • Both FairFN and MOUFLON rely on greedy merging; local maxima may require global moves or refinement such as Kernighan–Lin.
  • Current fairness metrics assume proportional representation and single sensitive attributes; extensions to overlapping, dynamic communities, and intersectional fairness are open.
  • Scaling beyond millions of edges may require low-level or external-memory implementations.

A plausible implication is that continued development will focus on integrating fairness guarantees into high-throughput modularity frameworks, exploring richer notions of null models, and addressing intersectional and temporal fairness in evolving networks (Wang et al., 27 May 2025, Panayiotou et al., 14 Oct 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Fair Modularity Optimization (FairFN).