---
title: Federated Temporal Graph Clustering
url: https://www.emergentmind.com/topics/federated-temporal-graph-clustering-ftgc
type: topic
---

# Federated Temporal Graph Clustering

Federated Temporal Graph Clustering (FTGC) is a decentralized approach for clustering dynamic graph data distributed across multiple clients, each holding a private sequence of temporal graph snapshots. FTGC addresses the challenges of temporal graph clustering under data privacy constraints, enabling collaborative discovery of evolving graph structures without centralizing raw data. The framework uses graph neural networks (GNNs) with a specialized temporal aggregation mechanism and a federated learning protocol, balancing clustering fidelity, temporal smoothness, communication efficiency, and privacy preservation [2410.12343].

## 1. Formalization and Clustering Objective

FTGC operates over $K$ clients, each storing a temporal graph sequence:
$$
\Gamma_k = \bigl\{\,G_t^{(k)}=(V_t^{(k)},E_t^{(k)},X_t^{(k)})\bigr\}_{t=1}^T,
$$
with $V_t^{(k)}$ the node set, $E_t^{(k)}$ the edge set, and $X_t^{(k)} \in \mathbb{R}^{|V_t^{(k)}|\times d}$ node features at time $t$. The clustering task is to compute, for each $t$, a soft assignment $F_t^{(k)} \in \mathbb{R}^{|V_t^{(k)}|\times C}$ into $C$ clusters, co-clustering nodes with strong temporal and spatial connectivity and ensuring cluster assignment smoothness over time.

The global objective aggregates local clustering losses, subject to model consistency enforced via federated aggregation:
$$
\min_{\{\theta_k\}_{k=1}^K} \frac{1}{K}\sum_{k=1}^K \mathcal{L}_k(\theta_k; \Gamma_k),
$$
where $\theta_k$ are client-local parameters. The core clustering subproblem per client $k$ is
$$
\min_{F_t^{(k)}}  \sum_{t=1}^T \left[ \operatorname{Tr}((F_t^{(k)})^\top L_t^{(k)} F_t^{(k)}) + \beta \|F_t^{(k)} - F_{t-1}^{(k)}\|_F^2 \right],
$$
where $L_t^{(k)}$ is the graph Laplacian and $\beta$ regulates temporal smoothness.

## 2. Temporal Aggregation and Embedding Construction

Each client computes node embeddings $H_t^{(k)}$ by integrating spatial and temporal information. Spatial aggregation uses a graph convolutional approach:
$$
H^{(k),(spatial)}_t = \sigma\left(A_t^{(k)} X_t^{(k)} W_1\right),
$$
where $W_1\in\mathbb{R}^{d\times d}$ and $\sigma$ is a nonlinear activation. Temporal aggregation leverages a temporal window of size $k$:
$$
H^{(k),(temporal)}_t = \sigma\left(\sum_{i=-k}^k \alpha_i\,A_{t+i}^{(k)} X_{t+i}^{(k)} W_{i+k+1}\right),
$$
with learnable attention weights $\alpha_i$ (softmax-normalized) and per-offset matrices $W_{i+k+1}$. The final temporal-spatial node embedding is
$$
H_t^{(k)} = H^{(k),(spatial)}_t + H^{(k),(temporal)}_t.
$$
This mechanism captures both local graph structure and its temporal evolution, enabling the model to learn temporally coherent cluster representations.

## 3. Federated Optimization and Training Process

FTGC employs a federated averaging (FedAvg) protocol augmented with model update compression for scalable and communication-efficient training. The training proceeds over $R$ rounds:

1. Server broadcasts global model $\theta^{(r)}$.
2. Each client (in parallel):
   - Receives $\theta^{(r)}$, initializes $\theta_k \leftarrow \theta^{(r)}$.
   - Performs $E$ local epochs: computes temporal embeddings $H_t^{(k)}$ for all $t$, evaluates and optimizes local loss $\mathcal{L}_k(\theta_k)$.
   - Computes update $g = \theta_k - \theta^{(r)}$, sparsifies to top $s\%$ entries ($g_s = \text{Top}_s(g)$), quantizes ($\hat{g} = Q(g_s)$), and uploads $\hat{g}$.
3. Server aggregates updates:
   $$
   \theta^{(r+1)} \leftarrow \theta^{(r)} + \frac{1}{K} \sum_{k=1}^K \hat{g}^{(k)}
   $$

Raw graph data $\Gamma_k$ and features $X_t^{(k)}$ remain on client devices, ensuring privacy at all stages.

## 4. Loss Function and Regularization

The per-client loss optimized during local training is composed of a clustering term and a temporal smoothness regularizer:
$$
\mathcal{L}_k = \underbrace{\sum_{t=1}^T \operatorname{Tr}\left( (H_t^{(k)})^\top L_t^{(k)} H_t^{(k)} \right)}_{\mathcal{L}_{\text{cluster}}}
+ \underbrace{\alpha \sum_{t=1}^T \left\| H_t^{(k)} - H_{t-1}^{(k)} \right\|_F^2}_{\mathcal{L}_{\text{smooth}}}
$$
Optionally, an $\ell_2$ penalty may be applied to $\theta_k$:
$$
\mathcal{L}_k^{\text{total}} = \mathcal{L}_{\text{cluster}} + \alpha\,\mathcal{L}_{\text{smooth}} + \lambda \|\theta_k\|_2^2
$$
Global optimization minimizes the average total loss $\frac{1}{K}\sum_k \mathcal{L}_k^{\text{total}}$ via the federated loop.

## 5. Experimental Protocol and Performance

Experiments are conducted on a range of real-world temporal graph datasets partitioned across $K$ clients:
- DBLP (co-author network)
- Brain (functional connectivity)
- Patent (citation network)
- School (contact network)

Key experimental hyperparameters include temporal window $k=2$, cluster count $C$ (dataset-dependent), local epochs $E=5$, rounds $R=50$, learning rate $\eta=0.01$, and compression sparsity $s=20\%$. Evaluation metrics encompass Clustering Accuracy (ACC), Normalized Mutual Information (NMI), Adjusted Rand Index (ARI), and F1-score (F1).

| Dataset | ACC [%] | NMI [%] | ARI [%] | F1 [%] |
|---------|---------|---------|---------|--------|
| DBLP    | 49.50   | 38.00   | 23.50   | 46.00  |
| Brain   | 45.00   | 51.00   | 31.00   | 45.00  |
| Patent  | 51.00   | 26.00   | 19.50   | 39.50  |
| School  | 99.80   | 99.50   | 99.40   | 99.80  |

FTGC (with $K=20$ clients) consistently matches or outperforms centralized methods such as TGC and TREND, without centralizing raw data.

## 6. Communication Efficiency and Privacy Protection

Communication overhead is minimized via:
- Transmission of only parameter deltas ($g$) instead of full model weights
- Sparsification to transmit only the top $s\%$ of gradient entries (e.g., $s=20\%$)
- Quantization $Q(\cdot)$ to 8/16-bit precision

Clients perform multiple local updates before transmitting, reducing synchronization frequency. Data privacy is maintained since neither graph structures $\Gamma_k$ nor node features $X_t^{(k)}$ are uploaded. Additional protections, such as secure aggregation or differential privacy noise addition to $\hat{g}$, can further enhance privacy properties as needed.

---

FTGC establishes a robust framework for federated clustering of dynamic graphs, balancing synchronization efficiency, privacy, and clustering quality in a decentralized setting [2410.12343].

Source: https://www.emergentmind.com/topics/federated-temporal-graph-clustering-ftgc