On the power of foundation models

Yang Yuan

Abstract

As foundation models scale to trillions of tokens, traditional machine learning theories focused on optimization and generalization become insufficient to describe their ultimate capabilities. This paper introduces a theoretical framework based on Category Theory to analyze the structural relationship between a model’s pretext task and its downstream performance. We establish that while prompt tuning is mathematically constrained to tasks representable within the model's learned category, fine-tuning provides a universal mechanism for task resolution. Furthermore, we provide a formal proof for the "creative" zero-shot generalization observed in multimodal models like CLIP.

Introduction

The current era of machine learning is defined by the "scaling hypothesis"—the observation that increasing data and parameters leads to emergent capabilities. However, a fundamental question remains: if we had a perfect model with zero generalization error on its pretext task, what are the theoretical limits of its utility? Most existing theories focus on the "how" of training (optimization) rather than the "what" of the resulting structure.

This research departs from standard statistical learning theory to adopt a "bird’s-eye view" through Category Theory. By treating data and their learned relationships as mathematical structures, the authors define the boundaries of what foundation models can achieve through prompting versus fine-tuning.

The Categorical Framework

The authors propose that a foundation model, through its pretext task (e.g., next-token prediction), induces a mathematical category, denoted as $\mathcal{C}_f$. In this framework:

  • Objects: Individual data points or features.
  • Morphisms: The relationships learned during pretraining, such as semantic similarity or sequential dependency.
  • Yoneda Embedding: The model's feature layer acts as a "Yoneda embedding." According to the Yoneda Lemma, an object is entirely defined by its relationships to other objects. Thus, the feature layer stores the structural essence of the data.

Downstream tasks are then modeled as functors—mappings that preserve the structure of the model's internal category while translating it into a target category, such as the category of sets (Set).

Prompting vs. Fine-tuning: A Theoretical Boundary

One of the paper's most significant contributions is the formal distinction between prompting and fine-tuning paradigms.

The Limits of Prompting

Theorem 3 (Prompt Tuning) establishes that prompt-based learning is mathematically equivalent to searching for a "representative object" within the induced category $\mathcal{C}_f$. This implies that a model can solve a task via prompting if and only if that task is already "representable" within the structure learned during pretraining.

This limitation is illustrated by Corollary 1, which proves that a model trained on a simple pretext task, such as image rotation prediction, cannot solve complex tasks like semantic segmentation through prompting, regardless of its parameter count. The necessary structural morphisms simply do not exist in the "boring" category induced by rotation prediction.

The Power of Fine-tuning

In contrast, Theorem 5 (Fine-tuning) proves that an ideal foundation model can solve any downstream task for its category via fine-tuning. While prompting is a search within existing structures, fine-tuning acts as a "bridge" to the specific output format required by the task. This suggests that the true "power" of a foundation model resides in its features; fine-tuning merely unlocks them for specific applications.

Structural Generalization and Multimodal Creativity

The paper also addresses the phenomenon of zero-shot creativity, such as CLIP’s ability to understand concepts like an "avocado chair."

Theorem 6 (Multimodal Generalization) introduces a Generalization Theorem for Structural Learning. It posits that if the structure of one domain (e.g., language) is aligned with the structure of another (e.g., images), the model can recover target objects in the feature space using structural information alone. If the concept of "avocado" and "chair" exists in the language category and the model has learned the mapping between language and image structures, it can synthesize the representation of the combined concept even without prior exposure to the specific image.

Conclusion and Limitations

The research concludes that the utility of a foundation model is determined not just by its size, but by the complexity of the category its pretext task induces. Pretext task design is the primary driver of a model's downstream potential.

However, the authors acknowledge several limitations to this theoretical approach:

  1. The "Ideal" Assumption: The proofs assume infinite resources and perfect training, leaving a gap between theoretical "zero error" and practical implementation.
  2. Data-Oblivious Functions: The reliance on specific function types ($k_f$) may not fully capture complex, non-linear feature interactions.
  3. Noise and Uncertainty: The current framework assumes a noise-free environment. Future work could integrate Bayesian perspectives to handle real-world data uncertainty more effectively.

By shifting the focus from optimization to structural relationships, this work provides a rigorous foundation for understanding why some models generalize while others fail, offering a roadmap for the design of future pretext tasks.

Summary updated

BibTeX
@inproceedings{yuan2023power,
  author = {Yang Yuan},
  title = {{On the power of foundation models}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=PVTjHXANRB},
}
Figure