Table of Contents
Fetching ...

On the Power of Foundation Models

Yang Yuan

TL;DR

This paper proves that a foundation model with the minimum required power can theoretically solve downstream tasks for the category defined by pretext task, with fine tuning and enough resources, and provides a categorical framework for supervised and self-supervised learning.

Abstract

With infinitely many high-quality data points, infinite computational power, an infinitely large foundation model with a perfect training algorithm and guaranteed zero generalization error on the pretext task, can the model be used for everything? This question cannot be answered by the existing theory of representation, optimization or generalization, because the issues they mainly investigate are assumed to be nonexistent here. In this paper, we show that category theory provides powerful machinery to answer this question. We have proved three results. The first one limits the power of prompt-based learning, saying that the model can solve a downstream task with prompts if and only if the task is representable. The second one says fine tuning does not have this limit, as a foundation model with the minimum required power (up to symmetry) can theoretically solve downstream tasks for the category defined by pretext task, with fine tuning and enough resources. Our final result can be seen as a new type of generalization theorem, showing that the foundation model can generate unseen objects from the target category (e.g., images) using the structural information from the source category (e.g., texts). Along the way, we provide a categorical framework for supervised and self-supervised learning, which might be of independent interest.

On the Power of Foundation Models

TL;DR

This paper proves that a foundation model with the minimum required power can theoretically solve downstream tasks for the category defined by pretext task, with fine tuning and enough resources, and provides a categorical framework for supervised and self-supervised learning.

Abstract

With infinitely many high-quality data points, infinite computational power, an infinitely large foundation model with a perfect training algorithm and guaranteed zero generalization error on the pretext task, can the model be used for everything? This question cannot be answered by the existing theory of representation, optimization or generalization, because the issues they mainly investigate are assumed to be nonexistent here. In this paper, we show that category theory provides powerful machinery to answer this question. We have proved three results. The first one limits the power of prompt-based learning, saying that the model can solve a downstream task with prompts if and only if the task is representable. The second one says fine tuning does not have this limit, as a foundation model with the minimum required power (up to symmetry) can theoretically solve downstream tasks for the category defined by pretext task, with fine tuning and enough resources. Our final result can be seen as a new type of generalization theorem, showing that the foundation model can generate unseen objects from the target category (e.g., images) using the structural information from the source category (e.g., texts). Along the way, we provide a categorical framework for supervised and self-supervised learning, which might be of independent interest.
Paper Structure (23 sections, 12 theorems, 5 equations)

This paper contains 23 sections, 12 theorems, 5 equations.

Key Result

Lemma 1

A functor $F:\mathcal{C}\rightarrow \mathcal{B}$ is a full embedding if and only if there exists a full subcategory $\mathcal{A}$ of $\mathcal{B}$ with inclusion functor $E:\mathcal{A}\hookrightarrow \mathcal{B}$ and an isomorphism $G:\mathcal{C}\rightarrow \mathcal{A}$ with $F=E\circ G$.

Theorems & Definitions (26)

  • Lemma 1: adamek1990abstract
  • Definition 1: Reproducing kernel Hilbert space
  • Definition 2: Foundation model induced category
  • Theorem 1
  • proof
  • Theorem 2
  • proof
  • Definition 3: Yoneda embedding $h_\mathcal{C}$
  • Lemma 2: Yoneda lemma
  • Definition 4: Task
  • ...and 16 more