Abstract
Traditional task representation methods map datasets to single points in a high-dimensional space, failing to capture the inherent asymmetry in task relationships, such as hierarchical containment or directional transferability. We introduce TASK2BOX, a framework that represents machine learning tasks as axis-aligned hyperrectangles (box embeddings). By leveraging volumetric overlap and containment, TASK2BOX naturally models asymmetric similarities. Our evaluation across biological taxonomy and semantic hierarchies demonstrates that TASK2BOX significantly outperforms point-based baselines in hierarchy prediction and transfer affinity estimation, while maintaining interpretability and generalizability to unseen tasks.
Introduction
In the growing ecosystem of AI, understanding how different datasets and tasks relate to one another is crucial for meta-tasks like dataset discovery and transfer learning. Traditionally, tasks are represented as points in a high-dimensional space. However, the distance between two points is symmetric, whereas real-world task relationships are often asymmetric. For example, in a biological hierarchy, "Mammal" contains "Dog," but "Dog" does not contain "Mammal."
Standard visualization tools like t-SNE or UMAP fail to capture these directional, "subset-of" relationships. TASK2BOX addresses this by mapping tasks into a $k$-dimensional box, providing a geometric inductive bias that allows one task to naturally "swallow" another.
Methodology
The TASK2BOX framework maps a dataset’s base representation—such as CLIP embeddings, Task2Vec (Fisher Information Matrix), or attribute-based vectors—into the coordinates of a hyperrectangle (a "box") via a learned neural mapping.
The relationship between two boxes, $z_i$ and $z_j$, is calculated as the volume of their intersection divided by the volume of the first box. This asymmetric similarity score is 1 if box A is entirely contained within box B, and 0 if they do not overlap. The model is trained using a multi-part loss function that encourages boxes to overlap according to ground-truth relationships while regularizing them to maintain non-zero volumes and "nice" shapes.
Experiments and Results
The authors evaluated TASK2BOX across several diverse benchmarks, including iNaturalist (biological taxonomy), ImageNet (semantic hierarchies), and Taskonomy (transfer affinities).
Key results include:
- Hierarchy Prediction: On iNaturalist + CUB, TASK2BOX achieved an 84.67% F1 score, vastly outperforming standard MLP classifiers (45.25%) and linear models (4.40%).
- Transferability: On the Taskonomy benchmark, the model achieved a Spearman correlation of 0.94 with ground-truth task affinities, demonstrating its ability to predict transfer success from simple task descriptions.
- Generalization: When tested on unseen datasets, TASK2BOX maintained high accuracy (e.g., ~77% F1 on ImageNet), suggesting it learns the underlying concept of the hierarchy rather than a simple lookup table.
Key Insights and Conclusion
TASK2BOX offers a visually interpretable way to understand task relationships. By observing 2D projections, researchers can identify "generalist" tasks (large boxes) and "specialist" tasks (small, contained boxes). Interestingly, CLIP-based features provided a better foundation for learning these hierarchies than Task2Vec, likely due to CLIP’s broad multi-modal pre-training.
While powerful, future work could explore dynamic task relationships and more sophisticated training procedures. Overall, TASK2BOX demonstrates that geometric inductive biases can significantly improve our ability to model the complex, asymmetric structures inherent in machine learning tasks.
Summary updated