[Paper Review] Learning Perceptual Inference by Contrasting
CoPINet introduces a permutation-invariant contrastive perception framework with an inferred rule module to tackle Raven’s Progressive Matrices, achieving state-of-the-art results on RAVEN and PGM datasets.
"Thinking in pictures," [1] i.e., spatial-temporal reasoning, effortless and instantaneous for humans, is believed to be a significant ability to perform logical induction and a crucial factor in the intellectual history of technology development. Modern Artificial Intelligence (AI), fueled by massive datasets, deeper models, and mighty computation, has come to a stage where (super-)human-level performances are observed in certain specific tasks. However, current AI's ability in "thinking in pictures" is still far lacking behind. In this work, we study how to improve machines' reasoning ability on one challenging task of this kind: Raven's Progressive Matrices (RPM). Specifically, we borrow the very idea of "contrast effects" from the field of psychology, cognition, and education to design and train a permutation-invariant model. Inspired by cognitive studies, we equip our model with a simple inference module that is jointly trained with the perception backbone. Combining all the elements, we propose the Contrastive Perceptual Inference network (CoPINet) and empirically demonstrate that CoPINet sets the new state-of-the-art for permutation-invariant models on two major datasets. We conclude that spatial-temporal reasoning depends on envisaging the possibilities consistent with the relations between objects and can be solved from pixel-level inputs.
Motivation & Objective
- Motivate improved spatial-temporal and relational reasoning for RPM tasks beyond pure perception.
- Incorporate an explicit contrastive mechanism to compare candidate solutions and distill distinguishing features.
- Enforce permutation invariance to prevent reliance on candidate ordering or grid positioning.
- Integrate a simple perceptual-inference module trained jointly with perception to capture hidden rules.
Proposed method
- Introduce a two-level contrast: a model-level contrast that computes Contrast(F_{O∪a}) = F_{O∪a} − h(Σ_{a′∈A} F_{O∪a′}) and a corresponding contrast module that preserves permutation invariance.
- Adopt an objective-level contrast via a Noise-Contrastive Estimation (NCE) variant with a baseline b(·) to push the correct candidate’s potential relative to incorrect ones; optimize a sigmoid-based loss (Eq. 8) that favors large margins.
- Incorporate a perceptual inference branch that jointly reasons about hidden rules T given observations O, modeling p(T|O) and sampling T̂ to condition the final scoring f(O∪a, T̂).
- Ensure permutation invariance by designing a shared encoder and repeated contrast+residual blocks that do not rely on candidate order or row/column positioning.
- Describe a CoPINet architecture: perception branch with contrast modules and residual blocks, an inference branch with (Gumbel-)SoftMax outputs, and an MLP producing a negative potential used in the contrastive objective.
Experimental results
Research questions
- RQ1Can explicit contrasting mechanisms improve RPM-style relational reasoning beyond perception-only models?
- RQ2Does permutation invariance prevent shortcut solutions based on candidate ordering and enforce genuine reasoning about relations?
- RQ3Does jointly learning perception and a simple inference module yield better generalization on RPM datasets?
- RQ4How does a contrastive objective with a baseline compare to standard cross-entropy in guiding RPM reasoning?
Key findings
- CoPINet achieves state-of-the-art performance among permutation-invariant models on both RAVEN and PGM datasets.
- On the RAVEN dataset, CoPINet attains 91.42% overall accuracy (vs. human 84.41%), approaching human-level reasoning in some configurations.
- On the PGM dataset, CoPINet achieves 56.37% overall accuracy, outperforming other permutation-invariant baselines.
- Ablation studies show the contrast module, contrast loss, and perceptual inference branch each contribute significantly, with removing the contrast module causing a drastic drop.
- Lowering training data size still yields strong performance, with CoPINet reaching near-human performance with substantially fewer examples on RAVEN, and maintaining strong gains on PGM.
- The results emphasize the importance of permutation invariance to prevent shortcut learning via positional cues and to foster genuine relational reasoning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.