Abstract
Multi-Instance Learning (MIL) has traditionally focused on flat data structures where labels are assigned to sets of instances. However, many real-world data sources, such as hierarchical documents or graph neighborhoods, are naturally organized as "bags of bags." This paper presents Multi-Multi-Instance Learning (MMIL), a framework that extends MIL to handle nested hierarchies through a novel neural network architecture. By utilizing stacked, permutation-invariant "bag-layers," the model learns to aggregate information across multiple levels of nesting. Furthermore, the authors introduce a symbolic rule extraction method that transforms the neural network's internal representations into human-readable logic. Experimental results across text, graphs, and point clouds show that MMIL achieves state-of-the-art performance while maintaining high interpretability.
The Multi-Multi-Instance Learning Problem
Standard MIL models data as a collection of instances (a "bag"). A common example is image classification where a bag is positive if at least one instance contains the target object. However, this "flat" view fails to capture the inherent hierarchy in many domains. A text document is not just a bag of words; it is a bag of sentences, which are themselves bags of words. Similarly, a graph can be viewed as a bag of local neighborhoods, each being a bag of nodes.
MMIL formalizes this by allowing for arbitrarily nested sets, preserving the structural relationships that are often lost during the flattening process required by standard MIL.
Methods
The authors propose two primary innovations: a hierarchical neural architecture and a post-hoc rule extraction framework.
The Bag-Layer Architecture
To process nested sets, the network employs "bag-layers." Each bag-layer applies a shared transformation to every element in a set and then uses a permutation-invariant aggregation function (such as max or mean) to produce a single representation for the entire set. By stacking these layers, the network can process data at various levels of granularity—for instance, moving from word embeddings to sentence embeddings, and finally to document embeddings.
Rule Extraction for Interpretability
To address the "black-box" nature of deep learning, the authors develop a method to extract symbolic rules. They apply K-Means clustering to the latent embeddings generated at each level of the hierarchy. These clusters serve as "synthetic labels" (e.g., "Sentence Type A"). Simple decision trees are then trained to approximate the mapping between these clusters across levels. This results in Prolog-like rules (e.g., "A document is Positive if it contains a Sentence of Type A") that provide a transparent explanation of the model's decision-making process.
Experimental Results
The MMIL framework was evaluated on a diverse range of datasets:
- Graphs: On node classification tasks (e.g., Cora, Citeseer), MMIL matched or outperformed specialized Graph Convolutional Networks (GCNs), achieving 83.6% accuracy on Cora compared to GCN's 81.2%.
- Text: In sentiment analysis on IMDB movie reviews, the model achieved high accuracy while providing interpretable rules with ~90% fidelity to the original network.
- Synthetic Logic: Using nested MNIST bags, the model achieved 98.42% accuracy and perfectly recovered the hidden logical rules used to generate the data.
- Real-world Ecology: The model successfully predicted plant species distributions in a novel botanical dataset, outperforming traditional spatial models like Gaussian Processes.
Discussion and Conclusion
MMIL demonstrates that generic, set-based neural architectures can be highly effective for complex, structured data if the hierarchy is respected. The ability to extract high-fidelity symbolic rules bridges the gap between the performance of deep learning and the transparency of traditional logic-based systems. While the framework currently requires human inspection to assign semantic meaning to clusters, it provides a robust foundation for interpretable hierarchical learning. Future work may focus on automating semantic labeling and extending the framework to more complex instance-level classification tasks.
Summary updated