Abstract
We propose the chainization algorithm for effective order learning when only partially ordered data are available. First, we develop a binary comparator to predict missing ordering relations between instances. Then, by extending Kahn’s algorithm, we form a chain representing a linear ordering of instances. We fine-tune the comparator over pseudo-pairs, which are sampled from the chain, and then re-estimate the linear ordering alternately. As a result, we obtain a more reliable comparator and a more meaningful linear ordering. Experimental results show that the proposed algorithm yields excellent rank estimation performances under various weak supervision scenarios, including semi-supervised learning, domain adaptation, and bipartite cases.
Introduction
In many real-world tasks like facial age estimation or aesthetic assessment, assigning an absolute score (e.g., "this person is exactly 34 years old") is difficult and subjective. It is much easier for humans to provide relative labels ("Person A is older than Person B"). This is the basis of Order Learning.
However, obtaining a complete set of pairwise comparisons for $N$ objects requires $O(N^2)$ annotations, which is often impossible. Most existing datasets are partially ordered, containing only a fraction of the possible comparisons. Standard topological sorting algorithms (like Kahn’s) can produce a linear order from these fragments, but they often do so arbitrarily, ignoring the underlying features of the data. This paper introduces Chainization to fill these gaps intelligently and create a data-driven linear ordering.
Problem Statement: Learning from Incomplete Data
Existing order learning methods often struggle when labels are sparse or structured in specific ways. This paper addresses three common weak-supervision scenarios:
- Random Edges: A small percentage of random pairs are labeled.
- Clique-Edgeless (Semi-supervised/Domain Adaptation): A subset of data is fully labeled (a clique), while the rest remains unlabeled (edgeless).
- Bipartite Graphs: Comparisons are only available between broad categories (e.g., "young" vs. "old"), with no internal ordering within categories.
The Chainization Algorithm
The core contribution is the Chainization algorithm, which iterates between two main phases to transform sparse comparisons into a robust linear ordering.
1. Smart Topological Sorting
The authors modify Kahn’s algorithm by replacing arbitrary node selection with a Siamese Pairwise Comparator. Instead of picking any node with zero incoming edges (indegree), the comparator calculates a "priority score" to identify which instance is most likely to be the "smallest" (e.g., youngest) among the candidates. This ensures the resulting chain is data-driven rather than random.
2. Iterative Refinement via Pseudo-Pairs
Once a linear chain is formed, the algorithm samples "pseudo-pairs"—pairs of instances whose relative order is estimated by their position in the new chain. These pairs are used to fine-tune the Siamese comparator. This creates a virtuous cycle: a better comparator leads to a more accurate chain, which in turn provides more reliable pseudo-pairs for training. To stabilize training, the model focuses on high-confidence relations by sampling pairs that are far apart in the estimated chain.
3. Chain Shortening
To handle cases where multiple instances belong to the same rank (e.g., several people of the same age), the algorithm includes a Chain Shortening step that merges adjacent nodes in the chain if the comparator is uncertain about their relative order.
Experimental Results
The researchers evaluated their method across four diverse tasks: facial age estimation (MORPH II), age group classification (Adience), aesthetic scoring, and facial expression recognition (FER+).
- Extreme Data Efficiency: On the Adience dataset, the model achieved state-of-the-art results using less than 0.1% of all possible training pairs.
- Robustness to Sparsity: On MORPH II, with only 0.05% of pairs available, the model reached a Spearman’s $\rho$ (rank correlation) of 0.918, significantly outperforming standard order learning baselines.
- Uncovering Latent Structure: In the "Bipartite" case (e.g., only knowing Sad vs. Happy), the model successfully sorted images within the "Sad" category from "weeping" to "wailing" without ever being told those sub-categories existed.
Conclusion
Chainization turns traditional combinatorial sorting into a machine learning problem. By using a neural network to guide the sorting process, the "arbitrariness" of classical algorithms is replaced with learned feature representations. While the iterative nature of the algorithm may be computationally intensive for massive datasets, its ability to "hallucinate" missing relationships makes it a powerful tool for ranking problems where partial feedback is the norm.
Source codes are available at https://github.com/seon92/Chainization.
Summary updated