Learning Representations for Hierarchies with Minimal Support

Benjamin Rozonoyer, Michael Boratko, Dhruvesh Patel, Wenlong Zhao, Shib Sankar Dasgupta, Hung Le, Andrew McCallum

Introduction

When training node embedding models to represent large directed graphs (digraphs), it is impossible to observe all entries of the adjacency matrix during training. Consequently, most methods employ sampling. For massive hierarchies—like family trees or web taxonomies—this means many entries remain unobserved. However, if we know a graph possesses a specific property, such as being a transitively-closed Directed Acyclic Graph (DAG), many of these entries are logically redundant.

Researchers have developed a novel framework to train node embedding models for massive hierarchies using up to 99% less data. By identifying the "minimal support"—the smallest set of positive and negative relationships needed to uniquely define a hierarchy—and pairing it with models that have a built-in "transitivity bias," they achieve faster convergence and better performance than standard sampling methods.

The Challenge of Redundant Sampling

Typically, teaching a model to represent a large directed graph involves looking at an adjacency matrix—a massive grid detailing every node's connection to every other node. Because this grid scales quadratically with the number of nodes, standard training relies heavily on random sampling.

Visualizing positive and negative edges in a hierarchy

Unfortunately, standard sampling is often "blind" to the underlying structure of the graph. In a hierarchy, if node A is the parent of B, and B is the parent of C, the model should inherently understand that A is an ancestor of C. Showing the model this third, redundant connection during training wastes computational resources. The core question this paper addresses is: What is the absolute smallest number of entries we need to show a model to uniquely identify the graph?

Finding the Minimal Support

To solve this, the authors introduce a framework based on Sidigraphs (signed digraphs), where edges are explicitly labeled as positive (+), negative (-), or missing. They provide a novel algorithm called FINDMINDISTINGUISHER that identifies the provably minimal set of entries required to distinguish a specific hierarchy from all other possible hierarchies.

Reducing the adjacency matrix to a minimal sidigraph

The reduction process relies on three key components:

  1. Transitive Reduction: For positive edges, the algorithm retains only the "skeleton" of the graph, such as direct parent-child links, discarding implied ancestor-descendant connections.
  2. Negative Pruning: Using transitivity rules, the framework discards negative examples that are logically implied by the positive structure.
  3. Transitivity Bias: This is a crucial property required of the embedding model itself. A model possesses transitivity bias if learning $A \to B$ and $B \to C$ automatically leads it to assume $A \to C$. The authors prove that Box Embeddings (which represent nodes as hyper-rectangles in space, like the GT-BOX model) naturally possess this bias, whereas standard vector-dot-product models (like SIM-VEC) do not.

Empirical Results and Insights

The authors evaluated their approach on synthetic hierarchies (Balanced trees, nested Chinese Restaurant Process, Price’s model) and a large real-world taxonomy, the Medical Subject Headings (MeSH), which contains nearly 30,000 nodes.

  • Massive Data Reduction: On the MeSH taxonomy, the minimal support framework reduced the set of negative training examples by an astounding 99.78%.
  • The Synergy of Bias and Data: Pruning 99% of training data is usually detrimental. It succeeds here exclusively because the GT-BOX model has the inductive bias necessary to "fill in the blanks." Without this transitivity bias, models like SIM-VEC completely fail to converge on the reduced dataset (e.g., scoring an AUF1C of ~0.494 compared to GT-BOX's ~0.909 on Price's model).
  • Superior Convergence: In resource-constrained settings where only a few negative examples can be sampled per positive one, training on the minimal set leads to better final performance. By removing "easy" or redundant negatives, the model focuses its learning capacity entirely on the most informative boundaries, reaching higher F1 scores faster than standard random sampling.

Limitations and Future Directions

While highly effective, the current algorithm is specifically designed for transitively-closed DAGs. It does not yet extend to graphs with cycles or "noisy" hierarchies that deviate from perfect transitive closure. If a graph is almost a hierarchy but has a few structural deviations, the proofs of optimality may no longer hold, potentially degrading performance.

A promising next step for this research is extending the "minimal support" framework to accommodate other types of graph properties and inductive biases beyond simple transitivity, opening the door to highly efficient training across a broader range of complex networks.

Summary updated

BibTeX
@inproceedings{rozonoyer2024learning,
  author = {Benjamin Rozonoyer and Michael Boratko and Dhruvesh Patel and Wenlong Zhao and Shib Sankar Dasgupta and Hung Le and Andrew McCallum},
  title = {{Learning Representations for Hierarchies with Minimal Support}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=HFS800reZK},
}
Figure