From the Transformer to a Formal Semantics of Coordinated Transformations

Marco Giunti, Fabrizia Giulia GaravagliaarXiv 2026

TL;DR

This paper moves beyond treating Transformers as mere "black box" numerical engines, proposing a formal semantic framework where vectors are transformee concepts and transformations are transforming concepts. By decoupling the mathematical implementation from the functional architecture, the authors provide a rigorous way to explain how AI systems manipulate meaning through mechanisms like attention and residual connections.

What Problem Does This Paper Address?

While we have a deep understanding of the calculus and linear algebra behind Large Language Models (LLMs), we lack a formal language to describe their semantic organization. Most philosophical debates in AI focus on "grounding"—how a vector comes to represent a "cat" or a "concept."

However, authors Marco Giunti and Fabrizia Giulia Garavaglia argue there is an analytically prior question: Once we assume these vectors represent something, what is the formal structure of their transformations? The challenge is that current descriptions are often tied to specific mathematical choices (like the Softmax function or specific matrix dimensions). This paper seeks a generalized, "math-agnostic" semantics that holds true even if the underlying numerical operations change.

Methods

The authors develop a multi-layered framework that bridges the gap between raw numbers and abstract meaning:

  1. The Value Algebra: They generalize the math of vectors and matrices using a "blank-extended" domain. This allows them to treat different operations (like addition or component-wise multiplication) as occupying abstract "additive" or "multiplicative" roles.
  2. Intensional-Extensional Semantics:
    • Extensional: A representational vector refers to an object in the world.
  3. Intensional: Each position in that vector corresponds to a specific property (a "feature").
  4. Transforming Concepts: This is the paper's core innovation. A transformation is not just a matrix multiplication; it is a "transforming concept" where a numerical action is strictly coordinated with a property-level map.
  5. Property Algebra: They introduce a formal way to combine properties using an "idempotent sum" ($Q \oplus Q = Q$). This explains how a system can aggregate information from multiple sources without losing the distinct identity of the properties involved.
  6. Functional Abstraction: They distinguish between the Abstract Functional Architecture (the "blueprint"), the Mathematical Instantiation (the specific formulas), and the Mechanical Realization (the physical hardware or neural network).

Datasets

Not discussed in the paper. As a theoretical and formal methods paper, it focuses on architectural proofs and semantic definitions rather than empirical training or benchmarks.

Key Insights and Ideas

  • Meaning vs. Math: The framework establishes "functional-architectural invariance." This means two different AI models could use entirely different math but be semantically identical because they share the same "transforming concept" structure.
  • Attention as Abstraction: The authors analyze the attention mechanism not just as "weighting," but as a process that constructs a new, more abstract property ($A$) from a set of "keys" and applies it to "queries." It explains how neural networks produce progressively more abstract representations.
  • The Asymmetry of Residuals: In a residual connection ($x + o$), the math is symmetric, but the semantics are not. The input $x$ acts as the argument, while the module output $o$ acts as a dynamic parameter. This shows that mathematical similarity does not entail semantic identity.
  • Dimensionality $\neq$ Meaning: A key finding is that a transformation can be "dimension-preserving" (the vector stays the same size) but "intensionally changing" (the meaning of the positions in the vector shifts). This is exactly what happens in residual connections.

Key Results

The paper formalizes three major pillars (C1, C2, and C3):

  • C1 (Formal Semantics): Successfully distinguishes the object-referring nature of representational vectors from the non-referring, second-level nature of parameter structures.
  • C2 (Transformational Semantics): Defines a "transforming concept" as a coordinated pair of a value-level transformation and a property-level map.
  • C3 (Architectural Invariance): Proves that the semantic core of a system is independent of its physical or numerical implementation, providing "two routes to the physical level": computational simulation or mechanical realization.

Limitations and Future Work

  • Presupposition of Representation: The framework assumes that vectors already represent objects; it does not explain how a model learns to represent a "cat" from scratch (the "metasemantic grounding" problem).
  • Preliminary Genetic Classification: The authors provide a basic table for how parameter values arise (training vs. architectural determination) but acknowledge this is not yet a complete theory of content acquisition.
  • Conjecture T: The paper leaves for future work the "Conjecture T"—the hypothesis that human neural systems might realize a functional architecture similar to the Transformer.
  • Mechanical Realization: While the paper distinguishes between math and mechanics, it does not provide a detailed theory of how these abstract types are physically built into hardware.

Summary updated

Abstract

We develop a formal semantics for a general class of coordinated systems of parameterized transformations, taking the Transformer as a paradigmatic starting point but abstracting from its particular mathematical instantiation. Representational vectors receive both extensional reference and ordered intensional interpretations, while parameter structures acquire relative, second-level interpretations that determine how argument properties are preserved, replaced, or combined. This yields the notion of a transforming concept: a parameterized transformation whose numerical action is coordinated with a corresponding property-level map. We then distinguish the common algebraic-semantic core of these systems from their architecture-specific functional organization, allowing different mathematical instantiations and mechanical realizations of the same abstract system type. The framework is applied to attention heads and residual connections, providing semantic explanations that depend only on the shared algebraic-semantic core and their local functional organization and therefore generalize beyond the standard Transformer. These analyses also reveal the modularity of the framework: complex architectures can be decomposed into simpler semantically coordinated subsystems whose organization may recur across different abstract system types.
BibTeX
@misc{giunti2026from,
  author = {Marco Giunti and Fabrizia Giulia Garavaglia},
  title = {{From the Transformer to a Formal Semantics of Coordinated Transformations}},
  year = {2026},
  eprint = {2610.39735},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.39735},
}
Figure