Abstract
Current machine learning methods struggle to solve Bongard problems, which are a type of IQ test that requires deriving an abstract “concept” from a set of positive and negative “support” images, and then classifying whether or not a new query image depicts the key concept. On Bongard-HOI, a benchmark for natural-image Bongard problems, most existing methods have reached at best 69% accuracy. This work points out that many existing methods are forfeiting accuracy because they do not adapt image features given information contained in the support set as a whole. We explore simple methods to incorporate this context, leading to new state-of-the-art accuracy on Bongard-LOGO (75.3%) and Bongard-HOI (76.4%). Code is available at https://github.com/nraghuraman/bongard-context.
Introduction: The Bongard Challenge
Bongard problems, introduced in the 1960s, represent a foundational challenge in artificial intelligence: the ability to derive abstract concepts from limited visual evidence. A typical problem presents a "positive" support set sharing a common concept and a "negative" set where that concept is absent. The task is to determine if a new query image belongs to the positive set.
Despite the rise of deep learning, models have struggled with these puzzles, often failing to reach human-level performance. While many researchers point to a lack of symbolic reasoning, this work identifies a more fundamental issue: the failure to utilize support-set context.
The Importance of Context
Most existing models process images individually. However, in Bongard problems, the "key concept" is defined by the relationship between the positive and negative sets. For instance, if both sets contain laptops, the presence of a laptop is irrelevant; the model must instead focus on the action being performed (e.g., using vs. repairing). To solve the puzzle, the model must understand what makes the positive set different from the negative set.
Methodology: Standardization and Mimicry
The authors propose two primary ways to inject "support-set context" into the learning process:
1. Support-Set Standardization
This is a surprisingly simple, parameter-free technique. For every individual Bongard problem, the model calculates the mean and variance of the image features across the entire support set. It then standardizes all features using these local statistics. This effectively "mutes" common background features and "amplifies" the unique attributes that distinguish the two sets.
2. The "Mimic" Approach (Transformer-based)
The authors designed a Transformer encoder that takes the standardized features of the support set as input. Instead of just predicting a label, the Transformer is trained to perform "SVM-Mimic," where it learns to output a decision hyperplane that matches the one a traditional Support Vector Machine (SVM) would find if it had access to all the data. This allows the model to learn a "prior"—a general understanding of what kinds of rules are likely to exist across many different Bongard puzzles.
Experimental Results
The study evaluates these methods across three major benchmarks: Bongard-LOGO (synthetic geometric shapes), Bongard-HOI (natural images of human-object interactions), and Bongard-Classic (the original 100 puzzles).
The proposed methods set new state-of-the-art (SOTA) benchmarks:
- Bongard-HOI: Achieved 76.4% accuracy.
- Bongard-LOGO: Achieved 75.3% accuracy, notably outperforming GPT-4o, which managed only 65.0%.
- Bongard-Classic: Reached 60.8% accuracy, performing well even without specific training on this set.
Conclusion
This research demonstrates that context is a "force multiplier." Simply adding the standardization step boosted the accuracy of existing baseline methods by 5 to 10 percentage points. Before reaching for complex neuro-symbolic architectures, we should ensure our models are actually using the contextual information already present in the task. Future work may involve bridging the gap between classification and human-readable concept naming using vision-language models.
Summary updated