Abstract
The problem of multi-instance multi-label learning (MIML) requires a bag of instances to be assigned a set of labels most relevant to the bag as a whole. The problem finds numerous applications in machine learning, computer vision, and natural language processing settings where only partial or distant supervision is available. We present a novel method for optimizing multivariate performance measures in the MIML setting. Our approach, MIML-perf, uses a novel plug-in technique and offers a seamless way to optimize a vast variety of performance measures such as macro and micro-F measure and average precision, which are performance measures of choice in multi-label learning domains. MIML-perf offers two key benefits over the state of the art. Firstly, across a diverse range of benchmark tasks, ranging from relation extraction to text categorization and scene classification, MIML-perf offers superior performance as compared to state-of-the-art methods designed specifically for these tasks. Secondly, MIML-perf operates with significantly reduced running times as compared to other methods, often by an order of magnitude or more.
Introduction
In many real-world scenarios—such as identifying relations between entities in massive text corpora or classifying objects in images—perfect instance-level labels are often unavailable. Instead, we work with "bags" of data (e.g., all sentences mentioning a specific pair of entities) and a set of labels for the whole bag (e.g., "founder_of"). This is the core of Multi-Instance Multi-Label (MIML) learning.
Two major hurdles persist in MIML research:
- Complex Objectives: Standard machine learning often optimizes simple decomposable losses like accuracy. However, in imbalanced datasets, researchers prefer multivariate measures like the F-measure or Average Precision. These are difficult to optimize because they depend on the entire dataset's predictions simultaneously.
- Scalability: Existing MIML algorithms often rely on computationally expensive graphical models or integer linear programming, making them unsuitable for web-scale datasets.
Methodology: The MIML-perf Framework
The authors introduce MIML-perf, which utilizes a plug-in classifier strategy. The core idea is to learn a model that estimates the probability of a label (Class Probability Estimate or CPE) and then identifies the optimal threshold to convert those probabilities into hard classifications.
The algorithm employs an alternating optimization strategy:
- Step 1 (Update Classifiers): Assuming hidden labels are known, the algorithm trains a standard binary classifier for each label. It then tunes a threshold for each label to specifically maximize the target multivariate measure (e.g., Macro-F1).
- Step 2 (Update Hidden Labels): Using the newly trained classifiers, the algorithm re-estimates which instances in the training bags are most likely responsible for the bag-level labels.
MIML-perf is notably streaming-friendly, processing data in passes without requiring the entire dataset to be held in memory, which is critical for large-scale applications.
Experimental Evaluation
The model was evaluated on three diverse benchmarks: the Riedel Distant Supervision Dataset (Relation Extraction), MIML Scene Classification, and MIML Text Classification (Reuters).
Key Results and Insights
- Direct Optimization Gains: MIML-perf demonstrates that explicitly tuning thresholds for the target metric during training leads to significant gains, particularly for the "heavy tail" of rare labels. In the Riedel dataset, which has a highly skewed distribution, MIML-perf successfully predicted rare relations that baseline models missed entirely.
- Exceptional Scalability: Training time improvements were dramatic. On the Scene dataset, MIML-perf was 280x faster than MIMLSVM. On the Riedel dataset, it achieved a 145-fold speedup over the previous best-specialized method (MM-F$\beta$).
- Metric Flexibility: The framework allows the same underlying probability model to be reused to optimize different metrics (e.g., Macro-F vs. Micro-F) simply by adjusting the threshold-tuning step.
Conclusion
MIML-perf provides a highly scalable and effective solution for multi-instance multi-label learning. By directly optimizing multivariate performance measures and leveraging an efficient alternating optimization scheme, it achieves state-of-the-art results while being orders of magnitude faster than existing methods. Future work includes exploring the framework's potential in distributed computing environments and applying it to more complex structured prediction tasks.
Summary updated