TL;DR: ProtoPairNet brings "case-based reasoning" to regression tasks by comparing inputs to pairs of learned examples (prototypes) rather than single ones. By positioning an input on a geometric axis between two prototypes, the model provides highly accurate continuous predictions (like age or steering angle) that are inherently interpretable to humans.
The Challenge of Interpretable Regression
Deep learning models are notoriously "black boxes," making them difficult to trust in high-stakes fields like healthcare or autonomous driving. To solve this, researchers developed prototype-based models that use case-based reasoning: the model explains a decision by saying, "This input looks like this specific example from the training set."
While this works well for classification (e.g., "This looks like a bird, so it's a bird"), it struggles with regression—predicting continuous numbers. If a model says, "This face looks like a 20-year-old," it doesn't tell you if the person is actually 18 or 22. Furthermore, existing regression models often average the influence of all prototypes, leading to "interference" where irrelevant examples muddy the final prediction. The authors identify a lack of directional information as the primary hurdle for interpretable regression.
Introducing ProtoPairNet
To address these limitations, the authors introduce ProtoPairNet, which redefines the role of prototypes through a few clever architectural choices:
- Prototypical Pairs: Instead of individual points, the model learns pairs of prototypes $(p_1, p_2)$ that define a "reasoning axis."
- Geometric Projection: When the model sees a new input, it projects that input's latent representation onto the axis defined by a prototype pair. The prediction is calculated based on where the input falls along that line (e.g., "It is 30% of the way from the 10-year-old prototype to the 50-year-old prototype").
- Sparse Selection (The Pair Relevance Branch): Unlike previous models that average many prototypes, ProtoPairNet uses a Gumbel-softmax trick to select the single most relevant pair for any given input. This ensures the explanation is concise and avoids interference from unrelated examples.
The model undergoes a three-stage training process: first optimizing the latent space so similar items cluster near the axes, then replacing abstract learned prototypes with actual images from the training set (ensuring the "cases" are real and viewable), and finally fine-tuning the model with these fixed, real-image prototypes.
Key Insights and Performance
The core intuition behind ProtoPairNet is that regression is about relative positioning. By using two prototypes, the model creates a spectrum, allowing it to say not just "who" the input resembles, but "where" it sits between two known extremes. By forcing the model to rely on only one pair, the authors ensure that if an input perfectly matches a prototype, the prediction perfectly matches that prototype's label.
The model was evaluated on two distinct domains:
- UTKFace (Age Prediction): ProtoPairNet achieved a Mean Absolute Error (MAE) of 4.59 years, outperforming standard black-box ResNet50 and VGG19 models. In head-to-head comparisons with other interpretable models (like INSightR-Net), ProtoPairNet was vastly more accurate (the competitor had an MAE of ~14 years).
- Car Racing (OpenAI Gym): In this reinforcement learning environment, the model performs behavioral cloning to predict steering, acceleration, and braking. ProtoPairNet achieved an average reward of 223.97, surpassing the "expert" black-box model (221.36) it was designed to mimic.
Crucially, human-centric design was validated through extensive user studies. In a study with 120 participants, over 60% preferred ProtoPairNet’s justifications ("it's between A and B") over traditional single-prototype explanations ("it's somewhat similar to C").
Limitations and Future Work
Currently, the model uses "global" prototypes (the whole image). The authors acknowledge that part-based prototypes (e.g., focusing specifically on the eyes or jawline to predict age) would be a powerful next step for even more granular interpretability. Additionally, while the model learns distinct pairs, ensuring a diverse and "well-distributed" set of prototypes across the entire range of possible target values remains a complex training challenge. Future work could also explore dynamically adjusting the number of pairs based on the complexity of the task.
Summary updated