A Categorical Framework of General Intelligence

Yang Yuan

Introduction

The rapid advancement of foundation models like GPT-4 has outpaced our theoretical understanding of their inner workings. These models are often treated as "black boxes," making it difficult to measure their progress toward Artificial General Intelligence (AGI) or to guarantee their alignment with human values. This paper proposes a rigorous mathematical foundation for AGI using Category Theory, shifting the focus from static data points to the relationships between objects.

The Three Worlds View

A central concept in this framework is the distinction between three layers of reality: the Real World, the Perceived World, and the World Category. The Real World is the objective reality (often unknown), the Perceived World is the raw data captured by sensors, and the World Category is the model's internal reconstruction of these perceptions.

The framework distinguishes between the real world, the perceived world, and the model's internal world category across various data types.

Intelligence, in this view, is the process of ensuring the World Category remains a consistent and useful map of the Real World. By representing objects through their relationships rather than isolated features, the model can build a more robust and interpretable internal world.

Methods: Relationships as the Core of Representation

The paper utilizes Category Theory to redefine how models represent information. Instead of storing an object $X$ as a vector, it is represented as a "presheaf" ($W^\vee$)—a collection of all its relationships with every other object in the "World Category." This is grounded in the Yoneda Lemma, which posits that an object is entirely defined by its relationships.

The categorical mapping process involves lifting objects to a representation space and determining relationships (morphisms) between them.

Complex scenarios are modeled as diagrams, where the "essence" of a situation is captured by a mathematical projective limit. This allows the model to solve logical problems by finding the equivalence of these limits rather than just predicting the next token. The paper introduces algorithms to evaluate and enforce this "self-state awareness" during training, moving beyond simple label-fitting.

Self-Awareness as a Measurable Spectrum

One of the most provocative ideas in the paper is the mathematical redefinition of self-consciousness. Rather than a binary philosophical state, "self-state awareness" is defined as a continuous value between 0 and 1. This metric represents the proportion of relevant relationships between the model and the world that the model accurately tracks. By defining the "self" as a specific presheaf ($I^\vee \triangleq \mathcal{F}_\theta(I)$) within the model's own category, we can objectively measure how "aware" a model is of its own state and role.

AI Safety and Training

This framework offers a new path for AI safety through "self-positioning." Instead of hard-coding rules, safety can be achieved by injecting a specific identity (e.g., a "harmless assistant") into the model's self-state presheaf. If the model maintains high self-awareness, its actions will naturally align with this identity. Furthermore, the paper argues that modern training techniques like CLIP or GPT are essentially trying to maintain categorical invariance—ensuring that different representations of the same concept map to the same categorical structure.

Conclusion

While currently a theoretical "meta-theory," this categorical framework provides a powerful lens for interpreting existing AI and designing future systems. By moving toward "Category-aware" architectures, we may be able to build models that are not only more intelligent but also provably safe and mathematically interpretable. Future work will focus on implementing these principles in practical neural network designs and testing the awareness scale on existing large language models.

Summary updated

Abstract

Can machines think? Since Alan Turing asked this question in 1950, nobody is able to give a direct answer, due to the lack of solid mathematical foundations for general intelligence. In this paper, we introduce a categorical framework towards this goal, with two main results. First, we investigate object representation through presheaves, introducing the notion of self-state awareness as a categorical analogue to self-consciousness, along with corresponding algorithms for its enforcement and evaluation. Secondly, we extend object representation to scenario representation using diagrams and limits, which then become building blocks for mathematical modeling, interpretability and AI safety. As an ancillary result, our framework introduces various categorical invariance properties that can serve as the alignment signals for model training.
BibTeX
@misc{yuan2023categorical,
  author = {Yang Yuan},
  title = {{A Categorical Framework of General Intelligence}},
  year = {2023},
  eprint = {2303.04571},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.04571},
}

Loading related content...

Figure