Testing Alignment of Node Attributes with Network Structure Through Label Propagation

Natalie Stanley, Marc Niethammer, Peter J. MuchaarXiv 2018

Abstract

Attributed network data is becoming increasingly common across fields, as we are often equipped with information about nodes in addition to their pairwise connectivity patterns. This extra information can manifest as a classification, or as a multidimensional vector of features. Recently developed methods that seek to extend community detection approaches to attributed networks have explored how to most effectively combine connectivity and attribute information to identify quality communities. These methods often rely on some assumption of the dependency relationships between attributes and connectivity. In this work, we seek to develop a statistical test to assess whether node attributes align with network connectivity. The objective is to quantitatively evaluate whether nodes with similar connectivity patterns also have similar attributes. To address this problem, we use a node sampling and label propagation approach. We apply our method to several synthetic examples that explore how network structure and attribute characteristics affect the empirical p-value computed by our method. Finally, we apply the test to a network generated from a single cell mass cytometry (CyTOF) dataset and show that our test can identify markers associated with distinct sub populations of single cells.

Introduction

In network science, attributed networks—where nodes possess both structural connections and metadata—are ubiquitous. A fundamental question in analyzing these networks is whether the attributes align with the structural topology. Most community detection algorithms assume "homophily," where connected nodes share similar attributes. However, attributes can be noisy or irrelevant. This paper introduces a general, algorithm-agnostic statistical framework to test this relationship by asking: can the network structure successfully predict a node's attributes? If it can, the attributes and structure are aligned.

Methodology

The proposed method utilizes Label Propagation (LP) to quantify the alignment between network structure and node attributes. The workflow functions as a statistical "sanity check" for data alignment:

  1. Initial Labeling: Nodes are categorized based on attributes (e.g., via discrete metadata or clustering).
  2. Sampling: A subset of nodes ($l$) retains their labels, while others are treated as unlabeled.
  3. Propagation: Labels are propagated from labeled to unlabeled nodes using the network's transition probability matrix. This uses the adjacency matrix to "push" labels based on edge weights.
  4. Uncertainty Measurement: The cross-entropy between predicted and actual labels is calculated. High certainty (low entropy) indicates strong alignment.
  5. Permutation Testing: To determine statistical significance, labels are shuffled to create a "null" distribution of entropy. An empirical $p$-value is then derived from the overlap between the true and null distributions.
Workflow of the proposed statistical test for attribute-network alignment.

Experimental Results

The framework was validated using synthetic Stochastic Block Models (SBM) and real-world biological data.

Synthetic Validation

In synthetic tests, the method demonstrated high sensitivity to noise. As the proportion of permuted (incorrect) labels increased, the empirical $p$-value rose, reflecting the loss of alignment. Furthermore, the test effectively identified alignment when community structure was sufficiently distinct (specifically, when the ratio of internal to external connections, $p_{in}/p_{out}$, was greater than 3).

Performance on synthetic data: (A) tSNE visualization of communities, (B) p-value response to label permutation, and (C) p-value vs. mean entropy.

Biological Application: CyTOF Data

Applying the test to a CyTOF dataset of 51 immune markers, the method successfully distinguished between significant markers and noise. Markers like CD8 and TNFa yielded $p \approx 0$, indicating perfect alignment with cell communities. In contrast, markers like IL4 ($p=0.47$) and CD14 ($p=0.97$) were identified as irrelevant to the network structure, consistent with biological expectations for the studied populations.

Conclusion

This label propagation-based test provides a flexible, model-agnostic tool for evaluating attribute-structure alignment. While the stability of the $p$-value depends on parameters like the number of initially labeled nodes ($l$), it offers significant potential for feature selection in high-dimensional data, helping researchers identify which metadata truly reflects the underlying structural organization of a system.

Summary updated

BibTeX
@misc{stanley2018testing,
  author = {Natalie Stanley and Marc Niethammer and Peter J. Mucha},
  title = {{Testing Alignment of Node Attributes with Network Structure Through Label Propagation}},
  year = {2018},
  eprint = {1805.07375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07375},
}
Figure