Multi-Label Contrastive Learning for Abstract Visual Reasoning

Mikolaj Malkinski, Jacek MandziukIEEE TNNLS 2020 · DOI

TL;DR

This paper introduces a novel Multi-Label Contrastive Learning (MLCL) framework to improve abstract visual reasoning, specifically for Raven's Progressive Matrices (RPMs). By treating RPMs as multi-label problems where labels represent underlying rules, and adapting Noise Contrastive Estimation (NCE) for this setting, the authors achieve state-of-the-art results on benchmark datasets without requiring large batch sizes.

What Problem Does This Paper Address?

Abstract visual reasoning, exemplified by Raven's Progressive Matrices (RPMs), is a key measure of human intelligence. While deep learning models have surpassed human performance on RPMs, their approach often differs significantly. Humans tend to identify underlying rules and concepts, whereas current DL models often rely on pattern matching and dataset biases, lacking true understanding. This paper aims to bridge this gap by combining the strengths of deep learning with a more human-like approach to rule identification and reasoning.

Methods

The core contribution is the Multi-Label Contrastive Learning (MLCL) framework. This approach reframes RPM solving as a multi-label classification problem, where each RPM is associated with multiple "labels" corresponding to the abstract rules governing it.

Key methodological components include:

  • Multi-Label Contrastive Loss: An adaptation of the Noise Contrastive Estimation (NCE) loss. Unlike standard NCE which treats samples with identical labels as positive pairs, MLCL considers samples sharing at least one label as positive pairs. This is crucial for handling the multi-label nature of RPMs.
  • Sparse Rule Encoding: A novel scheme for representing the abstract rules of RPMs. This method encodes each rule as a one-hot vector, preserving more explicit information about the rules compared to previous "dense" multi-hot encoding methods. This is argued to provide a stronger training signal.
  • Auxiliary Training: The MLCL framework is combined with an auxiliary training objective that encourages the model to predict symbolic explanations (rules) for its answers. This is inspired by human problem-solving strategies.
  • Data Augmentation: The authors explore the use of data augmentation techniques (flips, rotations, shuffles) for RPMs, which is unusual for this task but found to be beneficial for contrastive learning.

Datasets

The proposed MLCL framework is evaluated on two prominent RPM benchmark datasets:

  • Balanced-RAVEN: A modified version of the original RAVEN dataset, designed to address biases in candidate answer generation. It features visually diverse RPMs with complex compositional structures.
  • PGM (Procedurally Generated Matrices): A large-scale dataset designed to test generalization abilities across various regimes, with meta-target annotations encoding the relations between objects and attributes.

Key Insights and Ideas

  • RPMs as Multi-Label Problems: Framing RPMs as multi-label classification problems, where labels are the underlying rules, is a powerful way to encourage models to learn explicit rule representations.
  • NCE Adaptation for Multi-Label: Modifying NCE to consider samples with shared labels as positive pairs is effective for multi-label scenarios, allowing for more robust representation learning.
  • Sparse Encoding's Advantage: The sparse rule encoding scheme provides a more explicit and informative training signal, especially for datasets with a higher average number of rules per RPM (like Balanced-RAVEN), leading to better performance.
  • Contrastive Learning Benefits from Augmentation: Contrary to common practice in RPM research, data augmentation significantly boosts the performance of MLCL, aligning with findings in other contrastive learning domains.
  • Joint Optimization is Crucial: Combining both contrastive and auxiliary losses is essential. Relying on only one component leads to significant performance degradation, highlighting the importance of both learning representations and understanding the underlying rules.

Key Results

The proposed MLCL method, particularly when combined with data augmentation and sparse rule encoding, achieves state-of-the-art results on the Balanced-RAVEN dataset. For instance, with the CoPINet encoder, MLCL+AUG significantly outperforms previous benchmarks. On the PGM dataset, MLCL demonstrates strong performance across various regimes, often matching or exceeding supervised methods, especially in its ability to generalize to unseen distributions. The paper also shows that MLCL achieves these results without the need for large batch sizes, a common requirement for other contrastive learning methods.

Limitations and Future Work

  • Dataset Specificity: While MLCL shows strong results, its effectiveness might vary across different types of visual reasoning tasks.
  • Hyperparameter Sensitivity: The performance of MLCL is shown to be sensitive to hyperparameters like the balancing factor $\beta$ for the auxiliary loss, requiring careful tuning.
  • Future Work: The authors suggest further exploration of different rule encoding schemes and contrastive learning strategies. Investigating the interplay between contrastive learning and other forms of auxiliary tasks could also be a promising direction. The paper also hints at the potential for MLCL to be applied to other abstract reasoning tasks beyond RPMs.

Summary updated

BibTeX
@article{malkinski2020multi,
  author = {Mikolaj Malkinski and Jacek Mandziuk},
  title = {{Multi-Label Contrastive Learning for Abstract Visual Reasoning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2020},
  doi = {10.1109/tnnls.2022.3185949},
}
Figure