NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Node Classification in Random Trees

Wouter W. L. Nuijten, Vlado Menkovski

TL;DR

This paper introduces "Neural Factor Trees," a novel method for classifying nodes in random tree structures where neither the tree's topology nor node labels are known beforehand. By leveraging Graph Neural Networks to parameterize a Gibbs distribution over node labels, their approach effectively models dependencies within the tree structure, outperforming existing methods on sentiment analysis tasks.

What Problem Does This Paper Address?

The core challenge addressed is node classification in graphs with unknown and varying topologies, specifically focusing on trees. Traditional node classification methods often assume a fixed graph structure or require some pre-existing node labels (semi-supervised learning). However, in many real-world scenarios, like analyzing compositional sentiment in sentences or classifying complex hierarchical data, the structure itself can vary, and all labels need to be inferred from scratch. This problem is exacerbated by the "curse of dimensionality," where modeling the joint probability distribution of all node labels grows exponentially with the number of nodes. Existing methods that attempt to model these dependencies often rely on assumptions like conditional independence of labels or require observed labels, which are not met in this setting.

Methods

The paper proposes Neural Factor Trees, a method that frames node classification as learning a joint probability distribution over node labels within a tree structure. Key methodological components include:

  • Markov Network Representation: The tree's topology is directly used to construct a Markov Network, where nodes represent random variables (node labels) and edges represent dependencies.
  • Gibbs Distribution: A Gibbs Distribution is employed to model the joint probability distribution over node labels, factorizing over the Markov Network.
  • Graph Neural Network (GNN) for Parameterization: A Gated Graph Neural Network (specifically, an MPNN with GRU updates) is used as a universal function approximator. This GNN takes the input tree and node attributes (embeddings) and learns to parameterize the factor functions of the Gibbs Distribution. This is the core novelty, as it allows the model to learn a generative function that can handle varying tree topologies and produce node embeddings that capture local neighborhood information.
  • MCMC Sampling (Gibbs Sampling): To obtain node label assignments, the authors use Gibbs Sampling, a Markov Chain Monte Carlo method, to draw samples from the learned Gibbs Distribution. This allows for modeling the full distribution and obtaining a histogram of probable label assignments.

Datasets

  • Stanford Sentiment Treebank (SST) [21]: This dataset is used for evaluation. It consists of fully labeled parse trees of movie reviews, where each node is labeled with a sentiment score (very negative to very positive). The paper uses the unlabeled version of this dataset, meaning no node labels are provided during training or inference. GloVe [16] word embeddings are used as node attributes.

Key Insights and Ideas

  • Learning a Generative Model for Dependencies: The most significant insight is the shift from directly predicting labels to learning a generative model (parameterized by a GNN) that captures the complex dependencies between node labels within a tree structure. This is crucial when labels are entirely unknown.
  • GNNs as Universal Function Approximators for PGMs: The paper demonstrates the power of GNNs not just for node embeddings but for learning the parameters of probabilistic graphical models (like Gibbs distributions), especially in settings with varying graph structures.
  • The Challenge of Unknown Topologies: The authors highlight that when graph topologies are not fixed, traditional PGM parameter learning becomes difficult. Their GNN-based approach elegantly sidesteps this by learning a function that maps any given tree topology and node attributes to a valid Gibbs distribution.
  • Mean-Field Approximation Degrades to Independent Classification: A key hypothesis confirmed by their results is that when no node labels are known, the mean-field approximation used in methods like GMNN effectively reduces to independent classification for each node, failing to capture inter-node dependencies.

Key Results

  • Outperformance on SST Dataset: Neural Factor Trees achieved a higher log-likelihood and accuracy (78.3%) compared to baseline methods, including independent classification using GNNs (73.9%) and the Graph Markov Neural Network (GMNN) (74.0%) on the Stanford Sentiment Treebank dataset.
  • Improved Distribution Modeling: The higher log-likelihood indicates that the learned distributions from Neural Factor Trees better represent the underlying data distribution of the SST dataset.
  • GMNN's Limited Advantage: The results suggest that GMNN, despite being a state-of-the-art method for semi-supervised node classification, offers only a marginal improvement over independent classification when no labels are provided, supporting the paper's hypothesis.

Limitations and Future Work

  • Tree Structure Assumption: The primary limitation acknowledged is that the method's tractability, particularly in computing the normalization constant (partition function), relies heavily on the input graphs being trees. This makes generalizing to arbitrary graphs (non-tree structures) challenging without approximate inference.
  • Modeling Direct Dependencies Only: The current method models dependencies only between directly connected nodes in the tree. It doesn't explicitly capture dependencies between nodes that are further apart, relying on the path between them to implicitly convey this information.
  • Future Work: The authors suggest extending the work to handle arbitrary graph topologies through approximate inference techniques (e.g., belief propagation). They also propose investigating the performance of their method under different forms of approximate inference.

Summary updated

BibTeX
@inproceedings{nuijten2024node,
  author = {Wouter W. L. Nuijten and Vlado Menkovski},
  title = {{Node Classification in Random Trees}},
  booktitle = {IDA},
  year = {2024},
  doi = {10.1007/978-3-031-58547-0\_9},
}
Figure