Introduction
Humans possess a remarkable ability to abstract concepts. If one understands that "5 is greater than 3," they can intuitively apply that logic to physical objects, such as recognizing that a stack of 5 blocks is higher than a stack of 3 blocks. In machine learning, however, this level of abstraction is difficult to achieve. Most models learn relations tied strictly to their training data; a model trained on MNIST digits often fails to order block stacks because it has learned pixel mappings rather than the underlying concept of ordinality. This research, presented at NeSy '21, investigates the conditions under which a model can learn a system of relations that remains logically consistent across entirely different domains.
Methodology
The researchers propose a framework for Partial Relation Transfer (PRT). In this setup, a system of relations (e.g., "greater than," "successor") learned on a source dataset is applied to a target dataset with minimal guidance.
The PRT Process
- Source Training: A model learns a full set of ordinal relations—isSuccessor, isPredecessor, isGreater, isLess, isEqual—using the MNIST dataset.
- Target Transfer: A new encoder is trained on a target dataset (BlockStacks). Crucially, this encoder is only guided by a single pretrained relation (isSuccessor). The model is then tested to see if the remaining relations (like isGreater) function correctly on the new data without further training.
Model and Metrics
To facilitate this transfer, the authors introduce the Dynamic Comparator (DC), a low-complexity model that uses attention masks to focus on specific dimensions of a latent space. They also define two critical metrics:
- Consistency Metric (Con-A): Measures if model predictions follow logical truth tables (e.g., if $A > B$, then $B$ cannot be $> A$).
- Gradient Conformity (GC): Measures the similarity between the gradients of different relation-decoders. High GC suggests that related functions (like "isGreater" and "isSuccessor") respond synchronously to input changes.
Datasets
- MNIST: Used as the source domain for learning numerical ordering.
- BlockStacks: A new benchmark consisting of 12,000 images of colored block stacks (heights 1–10). The task is to order images based on the height of a specific red block, representing a more visually complex domain than digit recognition.
Key Results and Insights
The experimental results highlight the superiority of the Dynamic Comparator in maintaining logical consistency during transfer. While standard relational models like Neural Tensor Networks (NTN) and HolE showed significant performance degradation when moving from the source to the target domain, the DC model maintained nearly 100% accuracy.
The Role of Gradient Conformity
A major finding is that Gradient Conformity is a strong predictor of transfer success. For a concept to be transferable, the internal logic for different relations must "move together." If the model's logic for "successor" aligns with its logic for "greater than," anchoring the new dataset to just one relation allows the model to automatically "unlock" the rest of the relational system for the new domain.
Conclusion
This work demonstrates that by focusing on logical consistency and gradient alignment, models can achieve true conceptual abstraction. While the current study focuses on ordinality within relatively simple datasets, it provides a foundation for exploring how these principles might apply to more complex, non-linear concepts like social hierarchies or causal webs in high-resolution, real-world data.
Summary updated