Internalizing Tools as Morphisms in Graded Transformers

Abstract

We introduce a graded formulation of internal symbolic computation for transformers. The hidden space is endowed with a grading V=g∈ GVg, and symbolic operations are realized as typed block maps (morphisms) φh← g:Vg Vh that are activated selectively by a differentiable routing policy. A self-supervised graded utility functional, defined as the loss reduction induced by a candidate morphism, governs activation and yields sparse, interpretable behavior. We develop the algebraic and geometric foundations: an internal model category whose objects are homogeneous components and whose morphisms are admissible grade transitions; adjoint pairs encoding typed round trips; and information-geometric interpretations in terms of KL gain, mirror descent with Bregman divergences, and Fisher natural gradients. Methodologically, we specify a utility--aware routing mechanism and objective that remain fully end-to-end differentiable. Analytic case studies and lightweight sanity checks illustrate selective morphic activation on hybrid symbolic-linguistic tasks. The framework unifies symbolic computation, geometry, and self--supervised learning within the graded transformer formalism sh-89,sh-95, while subsuming prior external-tool paradigms (e.g., Toolformer toolformer2023) as a special case via functorial internalization.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…