A Large-Scale Database for Graph Representation Learning

Scott Freitas, Yuxiao Dong, Joshua Neil, Duen Horng Chau

TL;DR

The authors introduce MALNET, a massive new graph database for representation learning containing over 1.2 million function call graphs extracted from Android malware. By offering 105× more graphs and 39× larger graphs than existing benchmarks, MALNET provides a much-needed "MNIST-scale" challenge for the graph community, highlighting the limitations of current models in handling extreme class imbalance and structural complexity.

What Problem Does This Paper Address?

Graph Representation Learning (GRL) has seen an explosion of interest, yet the field relies on benchmark datasets that are often too small, structurally simple, or lacking in class diversity. Popular datasets like REDDIT-12K or PROTEINS are useful for prototyping but fail to differentiate modern techniques effectively.

The authors identify three critical missing components in current benchmarks:

  1. Large Graphs: Most benchmarks have very few nodes/edges per graph.
  2. Many Graphs: Total dataset sizes are often in the thousands, not millions.
  3. Class Diversity: Real-world problems often involve hundreds of categories with extreme "long-tail" imbalances.

Without these, it is difficult to assess how GRL models scale or how they handle the "class hardness" and imbalance typical of real-world applications like cybersecurity.

Methods

The researchers constructed MALNET by extracting Function Call Graphs (FCGs) from 1.26 million Android APK files. In an FCG, nodes represent functions and edges represent inter-procedural calls (see Figure 3).

A Function Call Graph (FCG) showing a potential execution path in malware.

To label this massive collection, they used the Euphony classification structure to unify inconsistent antivirus vendor labels into a clean hierarchy of 47 types (e.g., Adware, Trojan) and 696 families (e.g., Spybot, Allaple).

The hierarchical labeling structure of MALNET, showing the "Worm" type and its associated families.

The authors then benchmarked seven state-of-the-art techniques, including Graph Neural Networks (GCN, GIN) and traditional graph mining methods (Feather, LDP), to establish baseline performance on this new scale.

Datasets

  • MALNET (New): 1,262,024 graphs, 696 classes, averaging 15k nodes and 35k edges per graph.
  • MALNET-Tiny (New): A balanced subset of 5,000 graphs across 5 types, limited to 5k nodes each, designed for rapid prototyping.
  • Existing Benchmarks: The paper compares MALNET against 24 common datasets across cybersecurity, small molecule, computer vision, bioinformatics, and social network domains (see Table 2).
Comparison of MALNET against common graph classification datasets, highlighting its unprecedented scale.

Key Insights and Ideas

  • The "Simple Baseline" Surprise: One of the most striking findings is that simple graph statistics (like LDP) often perform as well as, or better than, complex Graph Neural Networks at this scale. This suggests that current GNNs may not be fully capturing non-attributed graph topology.
  • Class Hardness vs. Data Volume: More data doesn't always mean better performance. Some classes are inherently "harder" to distinguish based on structure alone. For instance, some smaller classes outperformed much larger ones in F1-score (see Figure 4).
  • The Challenge of the Long Tail: MALNET features extreme imbalance (up to 16,901×). Most models struggle with rare classes, highlighting a major research gap in imbalanced graph classification.
  • Scale as a Differentiator: MALNET's size makes it a "stress test." Running a hyperparameter search for a standard GCN on the full dataset took over 26 days on a high-end Nvidia DGX A100 server.

Key Results

  • Unprecedented Scale: Compared to the popular REDDIT-12K, MALNET offers 105× more graphs, 39× larger graphs, and 63× more classes.
  • Performance Drop with Diversity: As the task moves from 47 "types" to 696 "families," the best macro-F1 score dropped from 0.41 to 0.34, illustrating how increased class diversity makes the learning task significantly more difficult.
  • Model Benchmarking: While GIN performed best on the balanced MALNET-Tiny (90% accuracy), the Feather and LDP methods were more robust on the full, imbalanced dataset.
Class-wise comparison of model predictions, showing that some malware types are significantly harder to classify than others.

Limitations and Future Work

  • Computational Intensity: The sheer size of MALNET makes it difficult for researchers without massive GPU resources to train models on the full dataset.
  • Non-attributed Graphs: Currently, MALNET provides only structural information. Future versions could include node/edge attributes (e.g., function names or opcodes), though this raises privacy and reverse-engineering concerns.
  • Explainability: The authors suggest MALNET is a prime candidate for research into why certain graph structures are harder to classify, which could lead to more interpretable GRL models.

Summary updated

BibTeX
@inproceedings{freitas2021large,
  author = {Scott Freitas and Yuxiao Dong and Joshua Neil and Duen Horng Chau},
  title = {{A Large-Scale Database for Graph Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=piGx3yYgNn},
}
Figure