A Picture of the Space of Typical Learnable Tasks

Rahul Ramesh, Jialin Mao, Itay Griniasty, Rubing Yang, Han Kheng Teoh, Mark K. Transtrum, James P. Sethna, Pratik Chaudhari

Deep learning is a highly fragmented field. Researchers employ supervised learning, meta-learning, semi-supervised learning, and contrastive learning, each with its own architectures and optimization tricks. While these methods are often successful at "transferring" knowledge from one task to another, the field has lacked a unified mathematical framework to describe why or how these tasks relate to one another.

The challenge is that comparing neural networks is like comparing snowflakes; even if two models perform the exact same task, their internal weights consist of billions of numbers that look nothing alike. To address this, researchers have developed a way to visualize the "geometry" of how deep networks learn. By shifting the focus from the weight space (internal parameters) to the prediction space (actual output probabilities), they reveal that the seemingly infinite space of possible tasks is actually a low-dimensional manifold.

Mapping the Prediction Space

To treat a deep network as a probabilistic model, the authors employ Information Geometry, utilizing several clever technical maneuvers to map the space of tasks:

  • Bhattacharyya Distance: Instead of standard metrics like the Hellinger distance (which "saturates" and becomes less informative in high dimensions), they use the Bhattacharyya distance to measure how far apart two models' predictions are.
  • Intensive Principal Component Analysis (InPCA): To visualize models that exist in a $10^8$-dimensional prediction space, they use InPCA. Unlike standard PCA, this technique can handle the non-Euclidean "Minkowski space" of probabilistic models, allowing them to project complex training trajectories into 3D plots.
  • The "Progress" Metric: They define "progress" not by training epochs, but by the model's position along a mathematical "geodesic" (the shortest path) between total ignorance and the ground-truth labels.
  • Imprinting: To compare a model trained on a specific subset (like "Dogs") to a different task (like "Vehicles"), they use a technique called imprinting to quickly adapt the final layer. This allows them to measure how much the "Dog" representation helps in the "Vehicle" world.

Key Insights into the Space of Tasks

Using classification tasks derived from CIFAR-10 and ImageNet, the researchers uncovered several striking phenomena about how AI models organize information.

The World is Low-Dimensional

One of the most significant findings is that the manifold of models trained on thousands of ImageNet tasks is effectively low-dimensional.

3D InPCA embedding of training trajectories for different tasks, alongside the explained stress of the top eigenvectors.

For ImageNet models with $10^7$ dimensions, just the top three InPCA dimensions preserve 80.02% of the pairwise distances (the "stress" or variance) between 2,430 different models. This suggests a massive shared structure across all visual tasks.

AI Learns the "Tree of Life"

The authors used the WordNet hierarchy to create specific sub-tasks (e.g., "Dogs," "Vertebrates," "Instruments," "Conveyance") to see how semantic relationships in human language mirror the geometric relationships in the model's prediction space.

Training trajectories overlaid with the WordNet hierarchy, showing how model representations naturally branch according to semantic relationships.

Remarkably, the trajectories of models trained on different biological categories naturally recreate parts of the WordNet phylogenetic tree. The geometry of the "task space" directly reflects the evolutionary and semantic history of the objects being classified.

Universal Representations and Transfer Efficiency

Training on a diverse set of classes provides a massive head start on almost any other task. The study found that training on a random subset of just 333 ImageNet classes results in 92% progress toward the full ImageNet solution. Even training exclusively on "Dogs" still results in over 60% progress toward understanding the entire ImageNet dataset.

Algorithm Similarity: The Scenic Route vs. the Shortcut

The mapping technique also highlights how different learning algorithms traverse this space:

  • Meta-Learning vs. Supervised: Episodic meta-learning (learning how to learn) and standard supervised learning eventually reach similar models, but meta-learning takes a much more "winding" path—its trajectory is roughly 40 times longer in terms of Riemann length.
  • Contrastive and Semi-Supervised: Contrastive learning (like SimCLR) and semi-supervised learning (like FixMatch) traverse trajectories that are remarkably similar to supervised learning, especially in the later stages of training.

Limitations and Future Work

The primary limitation of this geometric mapping is the sheer computational cost; the experiments required approximately 30,000 GPU-hours, making the technique difficult to apply for everyday model debugging.

Additionally, the current framework is tailored for classification. Extending this "picture of task space" to generative models (like LLMs or Diffusion models) would be significantly more complex because the output spaces are much larger and harder to normalize than a set of discrete classes. However, this work provides a foundational step toward a unified theory of how neural networks navigate the vast space of learnable tasks.

Summary updated

BibTeX
@inproceedings{ramesh2023picture,
  author = {Rahul Ramesh and Jialin Mao and Itay Griniasty and Rubing Yang and Han Kheng Teoh and Mark K. Transtrum and James P. Sethna and Pratik Chaudhari},
  title = {{A Picture of the Space of Typical Learnable Tasks}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=XMH3N8rteD},
}
Figure