Contextures: Representations from Contexts

Runtian Zhai, Kai Yang, Che-Ping Tsai, Burak Varici, Zico Kolter +1 more
5/2/2025
cs.LGcs.AIstat.ML

No confident code implementation found for this paper.

Abstract

Despite the empirical success of foundation models, we do not have a systematic characterization of the representations that these models learn. In this paper, we establish the contexture theory. It shows that a large class of representation learning methods can be characterized as learning from the association between the input and a context variable. Specifically, we show that many popular methods aim to approximate the top-d singular functions of the expectation operator induced by the context, in which case we say that the representation learns the contexture. We demonstrate the generality of the contexture theory by proving that representation learning within various learning paradigms -- supervised, self-supervised, and manifold learning -- can all be studied from such a perspective. We also prove that the representations that learn the contexture are optimal on those tasks that are compatible with the context. One important implication of the contexture theory is that once the model is large enough to approximate the top singular functions, further scaling up the model size yields diminishing returns. Therefore, scaling is not all we need, and further improvement requires better contexts. To this end, we study how to evaluate the usefulness of a context without knowing the downstream tasks. We propose a metric and show by experiments that it correlates well with the actual performance of the encoder on many real datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhai2025contextures,
  title  = {Contextures: Representations from Contexts},
  author = {Runtian Zhai and Kai Yang and Che-Ping Tsai and Burak Varici and Zico Kolter and Pradeep Ravikumar},
  year   = {2025},
  eprint = {2505.01557},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.01557v1},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.01557.svg)](https://codeofpaper.com/paper/2505.01557)

Discussion