Repository navigation
Expand file tree
/
Copy pathgeometry_of_constraints.tex
More file actions
1448 lines (1256 loc) · 75.1 KB
/
Copy pathgeometry_of_constraints.tex
File metadata and controls
1448 lines (1256 loc) · 75.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{mathtools}
\usepackage{geometry}
\usepackage{hyperref}
\usepackage[protrusion=true,expansion=false]{microtype}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{tikz-cd}
\usetikzlibrary{positioning,arrows,arrows.meta,calc,matrix}
\usepackage{booktabs}
\usepackage{array}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\geometry{
top=1.1in,
bottom=1.1in,
left=1.25in,
right=1.25in
}
\onehalfspacing
\hypersetup{
colorlinks=true,
linkcolor=black,
citecolor=black,
urlcolor=black
}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{remark}[theorem]{Remark}
\newcommand{\E}{\mathcal{E}}
\newcommand{\B}{\mathcal{B}}
\newcommand{\C}{\mathcal{C}}
\newcommand{\D}{\mathcal{D}}
\newcommand{\Hom}{\mathrm{Hom}}
\newcommand{\id}{\mathrm{id}}
\newcommand{\op}{\mathrm{op}}
\newcommand{\Type}{\mathrm{Type}}
\newcommand{\sign}{\mathrm{sign}}
\title{\textbf{The Geometry of Constraints}\\[0.6em]
\large Adversarial Representations, Fibrational Semantics,\\
and the Dependency Architecture of Formal Systems}
\author{Flyxion}
\date{}
\begin{document}
\maketitle
\thispagestyle{empty}
\begin{abstract}
This essay traces a structural continuity running from the empirical
phenomenon of adversarial vulnerability in machine learning through the
differential geometry of neural representation spaces, and ultimately to
the categorical foundations of dependent type theory. Beginning with the
observation that adversarial perturbations are not isolated anomalies but
geometric features of learned representation manifolds, the essay develops
a unified conceptual framework in which adversarial subspaces, Grothendieck
fibrations, comprehension categories, and the $\lambda$-cube all emerge as
manifestations of the same underlying architecture: a geometry of constraints
governing how structures vary across contexts and interact across levels of
abstraction. The Cox--Bunzel representational similarity framework and
Centered Kernel Alignment are interpreted geometrically as instruments for
probing the foliation structure of high-dimensional semantic manifolds. The
$\lambda$-cube is reinterpreted not as a syntactic taxonomy but as the minimal
coordinate system for a stratified dependency lattice, whose axes correspond to
adjunctions between levels of a formal hierarchy. Comprehension categories are
shown to generate the cube's structure automatically from the minimal data of a
fibration equipped with context extension. Transformer attention mechanisms are
analysed as dynamic metric tensors inducing context-dependent curvature on the
representation manifold. Representation learning is interpreted as a
renormalization flow whose fixed points are the semantic foliations whose
transverse directions constitute the adversarial attack surface. A Geometric
Summary Theorem unifies all of these observations into a single formal
statement. The essay concludes that type theory, categorical semantics,
information geometry, and adversarial machine learning are all partial
descriptions of a single geometry: the geometry of constraint fields defined
over spaces of contexts.
\end{abstract}
\newpage
\tableofcontents
\newpage
%% ======================================================================
\section{Robustness, Regulation, and the Limits of Verification}
%% ======================================================================
Modern neural networks achieve predictive performance that would have appeared
extraordinary a generation ago, yet they remain fragile in a manner that has no
analogue in classical engineering systems. Minor manipulations of input
data---manipulations that appear insignificant or even imperceptible to human
observers---can produce large, discontinuous changes in model behavior. These
adversarial perturbations are not isolated pathological cases. They occupy
large, geometrically structured regions of the input space, and their existence
is not contingent on implementation details of any particular architecture.
They are, as the subsequent analysis will argue, necessary consequences of the
geometry of learned representations in high-dimensional spaces.
This fragility has become a matter not merely of theoretical interest but of
regulatory consequence. As artificial intelligence systems become embedded in
critical infrastructure, financial decision-making, healthcare, and public
governance, their resistance to adversarial manipulation becomes a precondition
of responsible deployment. The European Union's AI Act requires organizations to
demonstrate robustness and security as core properties of high-risk systems.
Similar frameworks are emerging across multiple jurisdictions. Yet these
regulatory demands run immediately into a mathematical obstacle: the adversarial
attack surface of a deep neural network is combinatorially enormous, and
complete verification of robustness with respect to that surface is
computationally infeasible. Even verifying robustness within a small
perturbation radius around a single input is NP-hard in the general case.
The central tension of adversarial machine learning research is therefore not
primarily a tension between safe and unsafe systems but a tension between the
theoretical completeness required by rigorous guarantees and the statistical
coverage achievable in practice. Organizations cannot enumerate all adversarial
inputs. They can only probe the adversarial landscape using surrogate methods
and hope that their probes provide representative coverage. Understanding what
``representative'' means in this context requires understanding the geometry of
representation spaces, which in turn opens onto mathematical structures far
deeper than the applied setting might initially suggest.
This essay traces that depth. It begins with the applied problem of adversarial
transferability and the representational similarity metrics developed to address
it, then passes through the differential geometry of transformer attention
mechanisms and high-dimensional embedding spaces, and ultimately arrives at
Grothendieck fibrations, comprehension categories, and the $\lambda$-cube. The
claim developed throughout is that these apparently disparate topics are unified
by a single structural insight: complex systems, from neural networks to logical
languages, can be understood as layered spaces of states, constraints, and
meta-constraints, and the behavior of adversarial perturbations, program
evaluation, and logical proof are all instances of motion through such layered
spaces.
%% ======================================================================
\section{Geometric Thesis and Essay Roadmap}
%% ======================================================================
The argument of this essay turns on the recognition that three apparently
independent technical domains---adversarial machine learning, dependent type
theory, and categorical semantics---share a common geometric skeleton. Stating
that identification explicitly at the outset will allow the subsequent sections
to be read as coordinate charts on a single underlying structure rather than as
a sequence of loosely related technical expositions.
The three structural parallels are as follows.
The first concerns the degeneracy structure of neural embedding manifolds. A
trained network defines a representation map $h : X \to \mathbb{R}^d$ whose
Jacobian field determines two complementary distributions on the input tangent
bundle: the tangent directions along which representation varies negligibly
(the leaves of the semantic equivalence foliation) and the transverse directions
along which small displacements produce large output changes (the adversarial
subspace). Adversarial vulnerability is the existence of an abundant, wide
adversarial cone in the transverse distribution; robustness corresponds to
minimizing its width or geodesic accessibility from typical data.
The second concerns the fibrational structure of dependent type theory. A
dependent type judgment $\Gamma \vdash A : *$ describes an object in the fiber
of a Grothendieck fibration $p : \E \to \B$ over the context $\Gamma$. A term
inhabiting a dependent type is a section of the resulting bundle. Substitution
is reindexing along base morphisms. Dependent products are right adjoints to
reindexing; dependent sums are left adjoints. Computation is flow along
constraint manifolds; the subject-reduction theorem is the condition that this
flow respects the fibration structure.
The third concerns the categorical structure of comprehension categories and the
$\lambda$-cube. A comprehension category formalizes the minimal data required
for a language to describe objects together with predicates on those objects.
From this minimal data the three axes of the $\lambda$-cube emerge automatically
as the three ways in which the comprehension fibration's levels may depend on
one another. The cube is therefore not a syntactic classification but the
dependency skeleton of any self-describing formal system.
The central thesis of the essay can now be stated precisely.
\begin{quote}
\textit{The degeneracy geometry of neural representation manifolds, the
fibrational semantics of dependent type theory, and the categorical structure
of comprehension categories are all manifestations of the same underlying
phenomenon: constraint fields defined over spaces of contexts, whose sections
describe coherent global objects, whose transverse directions describe
instability, and whose leaf structure encodes the equivalences that the system
has learned or been designed to respect.}
\end{quote}
The essay proceeds as follows. Sections~\ref{sec:transfer}--\ref{sec:foliation}
develop the geometry of adversarial machine learning, from transferability and
CKA through representation manifolds, Jacobian metric structure, and singular
foliations. Section~\ref{sec:attention} analyses transformer attention as a
dynamic metric tensor. Section~\ref{sec:bundles} interprets representation maps
as fiber bundle sections and then as sections of Grothendieck fibrations.
Sections~\ref{sec:cube}--\ref{sec:adjunctions} develop the type-theoretic
material: the $\lambda$-cube as a dependency coordinate system,
comprehension categories, Grothendieck fibrations, and the adjoint lattice
underlying the cube. Sections~\ref{sec:infogeo}--\ref{sec:hott} connect these
structures to information geometry and homotopy type theory.
Section~\ref{sec:renorm} interprets representation learning as a renormalization
flow. Section~\ref{sec:cones} derives adversarial attacks as geodesic escape
from foliation leaves. Section~\ref{sec:summary} states the Geometric Summary
Theorem. Section~\ref{sec:convergence} is the conclusion. The appendix provides
the explicit categorical construction.
%% ======================================================================
\section{Adversarial Transferability and Representational Similarity}
\label{sec:transfer}
%% ======================================================================
The phenomenon of adversarial transferability was among the first indications
that adversarial vulnerability is a structural property of learned
representations rather than an idiosyncratic flaw of individual architectures.
Early work by Goodfellow, Shlens, and Szegedy established that neural networks
exhibit large connected regions of input space in which small perturbations
produce dramatic changes in output classification. These adversarial examples
arise because the learned decision boundary of a network is highly nonlinear
yet locally almost linear in high-dimensional regions. A perturbation aligned
with the gradient of the loss function can push an input across the boundary
with minimal displacement in input space. The fast gradient sign method
formalizes this intuition: given a model $M$ with loss $L_M$ evaluated at
input $x$, the perturbation
\[
\delta_M \;=\; \epsilon\,\sign\!\bigl(\nabla_x L_M(x)\bigr)
\]
produces an adversarial example $x + \delta_M$ that is geometrically close to
$x$ yet behaviorally distant.
The transferability observation sharpened this understanding considerably.
Adversarial examples crafted on one model frequently deceive other models
trained on the same task, even when the architectures differ substantially.
This cross-model transfer implies that adversarial directions are not
idiosyncratic to individual networks but are aligned with structural features
of the shared task geometry. An attack transfers from surrogate $S$ to target
$T$ when the gradients are sufficiently aligned:
\[
\bigl\langle \nabla_x L_S(x),\; \nabla_x L_T(x) \bigr\rangle \;>\; 0.
\]
The question of when this alignment holds, and how to measure it without direct
access to the target model, is the practical problem that representational
similarity metrics are designed to address.
Centered Kernel Alignment (CKA) offers one principled answer. Given two
networks $f$ and $g$ that map a common set of inputs to activation matrices
$X$ and $Y$, CKA measures the similarity between the pairwise relationship
structures induced by these activations. Formally, with $K = XX^\top$ and
$L = YY^\top$,
\[
\mathrm{CKA}(K, L) \;=\; \frac{\|L^\top K\|_F^2}{\|K^\top K\|_F \,\|L^\top L\|_F},
\]
where centering is applied to remove mean effects. CKA produces a value in
$[0,1]$ that is invariant to orthogonal transformations and isotropic scaling.
High CKA similarity indicates that two networks organize data into similar
geometric patterns within their representation spaces. Because adversarial
vulnerabilities are closely tied to the geometry of learned representations,
models with similar CKA scores are more likely to share adversarial directions.
The Cox--Bunzel framework operationalizes this observation into a testing
protocol for organizations required to demonstrate adversarial robustness.
The protocol partitions surrogate models into two groups based on their CKA
similarity to the target model. The high-similarity group, characterized by
CKA scores above approximately $0.55$ for convolutional architectures, provides
proxy models that are geometrically close to the target; attacks generated on
these surrogates are likely to transfer. The low-similarity group, with CKA
scores below approximately $0.35$, ensures that the testing protocol also
explores adversarial regions orthogonal to those shared with the
high-similarity cluster. By combining attacks from both groups, the protocol
approximates coverage of the adversarial landscape without attempting an
impossible exhaustive search. The Diagonal Box Similarity metric supplements
this global picture with layer-by-layer granularity, allowing comparison of
local representation structure at different network depths.
This framework converts the theoretical impossibility of complete robustness
verification into a tractable statistical testing problem. But to understand
why this conversion works---why representational similarity should predict
attack transferability---requires understanding the geometry of the
representation spaces themselves.
%% ======================================================================
\section{The Geometry of Representation Spaces}
%% ======================================================================
Neural networks of sufficient capacity learn to map inputs into
high-dimensional embedding spaces in which semantic relationships become
approximately linear. This approximate linearity is not incidental. It follows
from the interaction between the loss landscape, the implicit biases of gradient
descent, and the functional form of the network.
The resulting representation spaces are not smooth Riemannian manifolds in any
classical sense. A neural network computes a piecewise smooth map from input
space to representation space, assembled from compositions of affine maps and
nonlinearities. The geometry of this map determines the network's sensitivity
to perturbations. At a point $x$ in input space, the Jacobian
\[
J_M(x) \;=\; \frac{\partial h_M(x)}{\partial x}
\]
describes how small displacements in input space propagate into representation
space. When $J_M(x)$ has large singular values along certain directions, small
movements in those directions produce large changes in the representation, and
consequently in the model's output. These high-gain directions constitute the
adversarial subspace local to $x$.
The softmax aggregation inherent in transformer attention also produces a
distinctive geometric phenomenon: many distinct inputs can collapse onto nearly
identical internal representations. The representation space therefore contains
broad regions of approximate equivalence---submanifolds along which the
network's internal state remains nearly constant despite large variation in the
input.
These regions of approximate equivalence form structures resembling degenerate
foliations. A foliation of a manifold is a decomposition into layered
submanifolds of lower dimension, called leaves, that fit together without
crossing. In a standard foliation the leaves are smooth and uniform; in the
degenerate foliations that appear in neural representation spaces, the
dimensionality and smoothness of the leaves vary across the space. Along
directions tangent to the leaves, model behavior remains approximately
invariant. Along directions transverse to the leaves---directions crossing
from one leaf to another---small displacements produce large changes in model
output. The adversarial perturbation problem is precisely the problem of
finding these transverse directions efficiently.
%% ======================================================================
\section{The Metric Structure of Representation Maps}
%% ======================================================================
The foliation interpretation of adversarial subspaces can be made precise by
examining the differential structure induced by the representation map.
Let $h : X \to \mathbb{R}^d$ be the representation map of a trained model,
where $X$ denotes the input space and $\mathbb{R}^d$ the embedding space. The
Jacobian
\[
J_h(x) \;=\; \frac{\partial h(x)}{\partial x}
\]
defines a linear map between tangent spaces
\[
J_h(x) : T_x X \;\longrightarrow\; T_{h(x)} \mathbb{R}^d.
\]
This map induces a pullback metric on the input manifold. If $\langle
\cdot, \cdot \rangle$ denotes the standard inner product in $\mathbb{R}^d$,
the induced metric on $T_x X$ is
\[
g_x(u, v) \;=\; \bigl\langle J_h(x)\,u,\; J_h(x)\,v \bigr\rangle.
\]
The geometry relevant for adversarial perturbations is therefore not the
Euclidean geometry of input space but the Riemannian geometry defined by this
pullback metric. Directions in which the Jacobian has small singular values
correspond to directions along which the representation changes minimally; these
form approximate tangent spaces to the semantic equivalence leaves. Conversely,
directions associated with large singular values correspond to directions in
which representation varies rapidly---precisely the directions in which small
perturbations produce large changes in network output.
The adversarial structure of the model therefore emerges directly from the
spectral geometry of the Jacobian field over the input manifold. Training
implicitly factors the representation space into equivalence classes of inputs
sharing semantic invariants. Two inputs $x$ and $x'$ lie on the same leaf
whenever their downstream classifications agree: $f(h(x)) = f(h(x'))$. The
tangent space to the leaf at $x$ is
\[
T_x \mathcal{F} \;=\; \ker D(f \circ h)_x,
\]
and it is precisely the directions discarded by the Jacobian's low singular
values. The adversarial subspace is the orthogonal complement of this kernel
under $g_x$.
%% ======================================================================
\section{Transformer Attention as a Dynamic Metric Tensor}
\label{sec:attention}
%% ======================================================================
Transformer architectures introduce an additional layer of geometric
complexity through the attention mechanism. Unlike feedforward networks,
where the pullback metric is fixed by the model's parameters, transformer
attention induces a context-dependent metric that varies dynamically with
each input.
For a sequence of token embeddings $H = (h_1, h_2, \dots, h_n)$, the
attention mechanism computes query, key, and value projections
\[
Q = H W_Q, \qquad K = H W_K, \qquad V = H W_V,
\]
and produces the transformed representation
\[
\mathrm{Attn}(H) \;=\;
\mathrm{softmax}\!\left(\frac{Q K^\top}{\sqrt{d_k}}\right) V.
\]
The attention matrix
\[
A \;=\; \mathrm{softmax}\!\left(\frac{Q K^\top}{\sqrt{d_k}}\right)
\]
defines a similarity kernel over the token representations. Each row of $A$
determines how strongly one token representation is influenced by all others in
the sequence. The inner product $\langle q_i, k_j \rangle$ measures the
interaction strength between tokens $i$ and $j$, so attention defines a
bilinear form over the embedding manifold that varies with the input context.
In differential-geometric terms, this is a context-dependent metric tensor
\[
g_x : T_x M \times T_x M \;\longrightarrow\; \mathbb{R}
\]
over the representation manifold $M$, whose components shift with every
new sequence.
This dynamic metric structure explains several empirical properties of
transformer models. Tokens whose query-key similarity is high become strongly
coupled under the induced metric, effectively collapsing nearby directions of
representation space and producing the semantic equivalence leaves described
in the previous section. Small perturbations of the input can alter the
query-key similarity matrix, which in turn perturbs the metric tensor itself,
amplifying the effect of the perturbation in a way that is absent from
purely feedforward architectures. Adversarial attacks on transformers
therefore do not merely exploit sensitive directions in a fixed geometry:
they exploit the instability of the metric, destabilizing the geometry and
thereby widening the adversarial cone in a self-reinforcing manner.
Each input sequence produces a slightly different metric structure. The
representation manifold of a transformer is therefore better understood as a
bundle of metrics over input space than as a single Riemannian manifold. The
fibers of this bundle are the possible instantiated metrics, and the dynamics
of attention determine how the section of this bundle---the metric associated
to a given input---varies as the input changes. This structure is precisely
that of a fiber bundle, and the neural network's behavior under the attention
mechanism is a section of that bundle, exactly as formalized in the categorical
treatment developed in later sections.
%% ======================================================================
\section{Adversarial Subspaces and Singular Foliations}
\label{sec:foliation}
%% ======================================================================
The foliation picture allows a precise geometric account of why adversarial
examples exist and why they are so abundant. Training progressively separates
the singular values of the Jacobian into two regimes. Let $\sigma_1(x) \geq
\sigma_2(x) \geq \cdots$ denote the singular values of $J_h(x)$. After
training, one observes empirically that
\[
\sigma_1(x), \dots, \sigma_k(x) \;\gg\; \sigma_{k+1}(x), \dots .
\]
The large singular values correspond to directions that remain relevant to the
task; the small ones correspond to directions whose variation the network has
learned to suppress. This spectral separation produces the foliation. However,
the foliation that arises is not smooth in the classical sense.
\begin{definition}[Singular Foliation]
A \emph{singular foliation} on a manifold $M$ is a partition of $M$ into
immersed submanifolds---called leaves---whose dimensions may vary across
the space.
\end{definition}
Neural representation spaces exhibit exactly this structure. Regions of high
semantic compression correspond to low-dimensional leaves, where the network
has learned to ignore many directions of variation. Regions of semantic
ambiguity correspond to higher-dimensional leaves, where multiple directions of
variation influence the representation. Adversarial perturbations arise with
particular potency near the boundaries between these regions: at such boundaries
the foliation becomes singular, with the leaf dimension changing discontinuously.
The adversarial subspace at $x$ is the transverse bundle $T_x X / T_x
\mathcal{F}$. When the foliation is singular, this quotient space changes
dimension across the manifold, creating regions where the transverse directions
become unusually large. These regions correspond precisely to the unstable
decision boundaries observed empirically.
\begin{definition}[Adversarial Subspace]
The \emph{adversarial subspace} at $x$ is the orthogonal complement
\[
A_x \;=\; (T_x \mathcal{F})^\perp
\]
with respect to the pullback metric $g_x$.
\end{definition}
\begin{theorem}[Adversarial Directions as Transversals]
\label{thm:adversarial}
Let $h : X \to \mathbb{R}^d$ be a differentiable representation map and let
$f \circ h$ be the associated classifier. Adversarial perturbations correspond
to vectors in $A_x$. If $v \in A_x$, then the first-order change in the
classifier loss is maximized along $v$ under the metric induced by $J_h(x)$.
\end{theorem}
\begin{proof}
Let $L(x)$ denote the loss function. The first-order change under perturbation
$v$ is
\[
L(x + v) \;=\; L(x) + \langle \nabla_x L(x),\, v \rangle + O(\|v\|^2).
\]
Since $\nabla_x L(x) = J_h(x)^\top \nabla_{h} L(h(x))$, the gradient lies in
the image of the Jacobian transpose and is therefore orthogonal (under $g_x$)
to $\ker J_h(x)$. The loss-maximizing perturbation under any norm constraint
therefore has nonzero projection onto $A_x = (\ker J_h(x))^\perp$, and under
the pullback metric $g_x$ the maximizer lies entirely in $A_x$. \qed
\end{proof}
This theorem formalizes the intuition underlying gradient-based adversarial
methods: the fast gradient sign method computes an approximation to the
transverse direction, and the attack succeeds because the pullback metric
concentrates sensitivity in the adversarial subspace. The singular foliation
picture further explains the empirical clustering of adversarial examples near
classification boundaries: these boundaries are precisely the singular strata
of the foliation, where the transverse bundle expands abruptly.
Transferability also acquires a clean formulation. Two models $S$ and $T$ share
adversarial directions when their foliations have similar leaf structures.
CKA similarity is a proxy for foliation alignment: it measures whether the two
models impose similar pairwise distances on the same inputs, which is equivalent
to asking whether their local equivalence classes are organized similarly. High
CKA implies that the foliations are approximately aligned, so the transverse
cones are similarly oriented and attacks transfer. Low CKA implies foliation
divergence and near-orthogonal transverse cones.
The scaling behavior follows from dimensional considerations. As model size
increases, the effective rank of $J_h(x)$ grows, the adversarial subspace
expands in dimension, and independently trained models develop foliations whose
orientations are less correlated. In high-dimensional spaces the expected
overlap between two adversarial subspaces $U_S$ and $U_T$ scales roughly as
\[
\mathbb{E}\!\left[\frac{\dim(U_S \cap U_T)}{\dim(U_S)}\right] \;\sim\; \frac{1}{d}.
\]
Larger models therefore possess richer adversarial geometry but lower
cross-model alignment, explaining the empirical observation that attacks become
less transferable as model size grows, while each individual model remains
vulnerable.
%% ======================================================================
\section{Representation Fields as Fiber Bundles and Grothendieck Fibrations}
\label{sec:bundles}
%% ======================================================================
The representation map of a neural network can be interpreted naturally as a
section of a fiber bundle over the input manifold, and this interpretation
admits a canonical categorical formalization as a section of a Grothendieck
fibration.
Let $X$ denote the input space and let $E = X \times \mathbb{R}^d$ be the
trivial bundle whose fibers represent the embedding space. The neural network
determines a section
\[
s : X \;\longrightarrow\; E, \qquad s(x) = (x,\, h(x)).
\]
Under this interpretation the learned representation is a field assigning to
each point in input space a vector in the embedding fiber. The degeneracy
structures discussed above correspond to singularities in the differential
structure of this section: regions of semantic invariance correspond to
directions along which $s$ varies negligibly, while adversarial directions
correspond to directions in which $s$ exhibits large gradients.
The bundle interpretation makes it possible to interpret adversarial
perturbations as failures of transversality between the section $s$ and the
classification boundary in the total space $E$. Training can be understood as
shaping the section so that it aligns with the semantic foliation of the input
space induced by the task. Robustness corresponds to maximizing the angle
between the classification boundary and the leaves of the foliation, measured
in the metric induced by the section's derivative.
The categorical formalization replaces the topological bundle with a
Grothendieck fibration. Let $\B$ be a category whose objects represent input
contexts---local regions $U \subseteq X$ together with admissible
transformations within those regions---and whose morphisms $f : U \to V$
represent context transformations such as preprocessing operations, token
substitutions, or small perturbations. Define the total category $\E$ whose
objects are pairs $(U, r)$ with $U \in \B$ and $r : U \to \mathbb{R}^d$ a
representation assignment over that context. The projection functor
$p(U, r) = U$ forgets the representation. For each morphism $f : U \to V$ and
representation $r : V \to \mathbb{R}^d$, the pullback $f^* r = r \circ f$
satisfies the cartesian lifting property, making $p : \E \to \B$ a Grothendieck
fibration.
The neural network determines a section $s : \B \to \E$ of this fibration,
assigning to each context $U$ the restricted representation $s(U) = (U, h|_U)$.
By construction, $p \circ s = \mathrm{id}_\B$.
Under this interpretation adversarial perturbations correspond to morphisms in
$\B$ that induce large displacements in the fiber through the section $s$. The
geometric problem of adversarial robustness therefore becomes a problem about
how sections of a representation fibration behave under base category
morphisms. This is precisely the categorical language in which the subsequent
sections will describe dependent type theory: in both settings, objects vary
over a base space of contexts, and coherent global behavior is described by
sections of a fibration. The representation map of a neural network occupies
the same formal role as a term inhabiting a dependent type---both are sections
assigning values consistently across a space of contexts.
%% ======================================================================
\section{The $\lambda$-Cube as a Coordinate System for Constraint Spaces}
\label{sec:cube}
%% ======================================================================
The geometric language developed to describe neural representation
spaces---manifolds, foliations, sections, bundles---is not merely metaphorical.
The same mathematical structures arise in the categorical semantics of dependent
type theory, and understanding this connection reveals a deeper unity between
adversarial machine learning, formal logic, and geometry. The $\lambda$-cube
provides the clearest entry point.
The $\lambda$-cube is traditionally introduced as a diagram classifying typed
$\lambda$-calculi by their expressive power. From this perspective it appears
to be primarily a taxonomy. This presentation obscures what the cube actually
represents. At the deepest level, the $\lambda$-cube is a coordinate system
for a space of dependency relations between levels of abstraction. Any typed
formal system involves at least three levels: \emph{terms}, the executable
expressions; \emph{types}, which classify terms; and \emph{kinds} (or
universes), which classify types. The cube arises from asking a precise question
about how these levels may depend on one another. Each of the three axes
corresponds to one permitted cross-level dependency:
\begin{itemize}[leftmargin=2em]
\item \emph{Types depending on terms.} This axis introduces dependent types.
When a type $B(x)$ may mention a specific term $x : A$, the type acts not as a
static predicate but as a constraint whose shape varies with the position in the
base space. The typing judgment $x : A \vdash B(x) : *$ describes a family of
types parameterized by elements of $A$.
\item \emph{Terms depending on types.} This axis introduces polymorphism. A
term $\Lambda\alpha.\, t$ abstracts over a type variable, producing an
expression that inhabits a type for every type substituted for $\alpha$.
Polymorphic terms are uniform sections across the entire universe of types.
\item \emph{Types depending on types.} This axis introduces type operators,
allowing types to be constructed by applying higher-order type-level functions.
A type operator $F : * \to *$ transforms one type into another; its existence
requires that types themselves be treatable as objects manipulable by the formal
language.
\end{itemize}
A formal system becomes self-describing when it can express objects, constraints
on those objects, and constraints on those constraints. The $\lambda$-cube
represents the minimal dependency lattice required for this reflexive structure.
When no cross-level dependency is permitted, the result is $\lambda_\to$. Each
additional axis adds one cross-level dependency. At the top vertex, where all
three dependencies coexist, lies the Calculus of Constructions $\lambda C$.
\begin{figure}[ht]
\centering
\begin{tikzpicture}[scale=1.5, every node/.style={font=\small}]
\coordinate (lto) at (0,0,0);
\coordinate (lP) at (2,0,0);
\coordinate (l2) at (0,2,0);
\coordinate (lw) at (0,0,2);
\coordinate (lPw) at (2,0,2);
\coordinate (l2P) at (2,2,0);
\coordinate (l2w) at (0,2,2);
\coordinate (lC) at (2,2,2);
\fill (lto) circle (1.5pt); \node[below left] at (lto) {$\lambda_\to$};
\fill (lP) circle (1.5pt); \node[below right] at (lP) {$\lambda P$};
\fill (l2) circle (1.5pt); \node[above left] at (l2) {$\lambda 2$};
\fill (lw) circle (1.5pt); \node[left] at (lw) {$\lambda\underline\omega$};
\fill (lPw) circle (1.5pt); \node[right] at (lPw) {$\lambda P\underline\omega$};
\fill (l2P) circle (1.5pt); \node[above right] at (l2P) {$\lambda 2P$};
\fill (l2w) circle (1.5pt); \node[above left] at (l2w) {$\lambda 2\underline\omega$};
\fill (lC) circle (1.5pt); \node[above right] at (lC) {$\lambda C$};
\draw[thin] (lto)--(lP) node[midway,below,font=\tiny]{dep.\ types};
\draw[thin] (lto)--(l2) node[midway,left,font=\tiny]{poly};
\draw[thin] (lto)--(lw);
\draw[thin] (lP)--(l2P);
\draw[thin] (lP)--(lPw);
\draw[thin] (l2)--(l2P);
\draw[thin] (l2)--(l2w);
\draw[thin] (lw)--(lPw) node[midway,below,font=\tiny]{type ops};
\draw[thin] (lw)--(l2w);
\draw[thin] (lPw)--(lC);
\draw[thin] (l2P)--(lC);
\draw[thin] (l2w)--(lC);
\end{tikzpicture}
\caption{The $\lambda$-cube. Axes correspond to types depending on terms (depth),
terms depending on types (height), and types depending on types (width). The
Calculus of Constructions $\lambda C$ occupies the top vertex.}
\end{figure}
This interpretation of the cube as a coordinate system for dependency relations
carries the key insight: the cube does not classify programming languages. It
describes the minimal skeleton of cross-level dependency relations needed for a
formal system to be self-describing. Any system capable of expressing objects,
their constraints, and the constraints on those constraints must acquire
structures equivalent to the three axes of the cube. The neural network context
makes this resonance visible: neural networks are precisely systems whose
internal representations describe constraints over input manifolds, and the
$\lambda$-cube describes the minimal architecture for reasoning about such
constraint hierarchies.
%% ======================================================================
\section{Comprehension Categories and the Emergence of the Cube}
%% ======================================================================
The fact that the $\lambda$-cube arises naturally from minimal categorical
data is made precise by the theory of comprehension categories. A comprehension
category provides the minimal structural account of the relationship between
contexts, types, and terms, and from this account the cube's structure emerges
automatically.
\begin{definition}[Comprehension Category]
A \emph{comprehension category} consists of a fibration $p : \E \to \C$
together with, for every object $A$ lying over $\Gamma$ in $\E$, a chosen
morphism
\[
\chi_A \;:\; \Gamma.A \;\longrightarrow\; \Gamma
\]
in $\C$, called the \emph{context extension} map, with the property that the
pullback of $A$ along $\chi_A$ is the generic element of $A$.
\end{definition}
The base category $\C$ represents contexts: its objects are environments $\Gamma
= (x_1 : A_1, \dots, x_n : A_n)$, and its morphisms are substitutions between
contexts. The total category $\E$ contains dependent types together with their
context information. A type judgment $\Gamma \vdash A : *$ corresponds to an
object $A \in \E$ with $p(A) = \Gamma$. The context extension $\Gamma.A$ is
the context obtained by adding a fresh variable of type $A$; the comprehension
map $\chi_A$ expresses the projection forgetting that variable. Geometrically,
$\Gamma.A$ behaves like the total space of a bundle whose base is $\Gamma$ and
whose fiber at each point consists of the possible values of $A$.
This minimal structure generates the fundamental operations of type theory
through adjunctions. Given a substitution $f : \Delta \to \Gamma$, the
fibration provides a reindexing functor $f^* : \E_\Gamma \to \E_\Delta$.
Dependent products appear when this functor possesses a right adjoint:
\[
\Pi_f \;\dashv\; f^*.
\]
The right adjoint $\Pi_f$ maps a type $B$ over $\Delta$ to a type $\Pi_f B$
over $\Gamma$ that aggregates all coherent selections from $B$---the space
of sections of the bundle. Dependent sums appear as the corresponding left
adjoint:
\[
f^* \;\dashv\; \Sigma_f,
\]
constructing the total space by pairing each base element with an element of
its fiber. When both adjoints exist for every projection in the fibration,
the comprehension category models a locally cartesian closed category.
Once this structure is in place, the three axes of the $\lambda$-cube emerge
automatically from the question of how many levels of the comprehension
structure may serve as bases for further comprehension. Allowing types to serve
as bases for further type families introduces the dependent-type axis. Allowing
types to parameterize terms polymorphically introduces the polymorphism axis.
Allowing types to depend on other types introduces the type-operator axis. The
Calculus of Constructions arises when all three levels may serve as base spaces
for fibrations and the comprehension structure is closed under all three forms
of dependency.
The cube is therefore not a classification imposed from outside but a structure
that grows organically from the minimal categorical data of a comprehension
category. It is the dependency skeleton of any self-describing formal system.
%% ======================================================================
\section{Grothendieck Fibrations and the Geometry of Dependent Types}
%% ======================================================================
The connection between type theory and Grothendieck fibrations is where the
geometric interpretation of logic becomes fully explicit.
\begin{definition}[Grothendieck Fibration]
A functor $p : \E \to \B$ is a \emph{Grothendieck fibration} if for every
object $e \in \E$ and every morphism $f : b \to p(e)$ in $\B$, there exists a
\emph{cartesian lifting}: a morphism $\bar f : \bar b \to e$ in $\E$ with
$p(\bar f) = f$, through which every other morphism over $f$ factors uniquely.
\end{definition}
The base category $\B$ represents contexts. For each $\Gamma \in \B$, the
fiber category $\E_\Gamma$ is the category of types in context $\Gamma$. The
correspondence with type-theoretic judgments is nearly perfect:
\begin{align*}
\Gamma \in \B \quad &\longleftrightarrow \quad \text{a context} \\[2pt]
A \in \E_\Gamma \quad &\longleftrightarrow \quad \Gamma \vdash A : * \\[2pt]
t \in \E_\Gamma(A, B) \quad &\longleftrightarrow \quad \Gamma \vdash t : A \to B
\end{align*}
A morphism $f : \Delta \to \Gamma$ in the base induces a reindexing functor
$f^* : \E_\Gamma \to \E_\Delta$ via cartesian lifting. This is substitution.
The dependent product $\Pi_{x:A} B(x)$ arises as the right adjoint of
reindexing along the projection $p_A : \Gamma.A \to \Gamma$:
\[
\begin{tikzcd}
\E_{\Gamma.A} \arrow[r, shift left=2, "\Pi_{p_A}"] &
\E_\Gamma \arrow[l, shift left=2, "p_A^*"'] \arrow[l, phantom, "\dashv"]
\end{tikzcd}
\]
The right adjoint assembles all coherent sections of the bundle into a single
object. In logical terms this is universal quantification; in geometric terms it
is the space of sections of a fiber bundle. The dependent sum $\Sigma_{x:A}
B(x)$ appears as the left adjoint, constructing the total space.
Under sheaf semantics this structure acquires additional geometric content. A
context acts like an open region of a base space, a type describes how objects
vary across that region, and a term is a consistent section. Logical proof
becomes the construction of global sections from local constraints. The
subject-reduction property of typed calculi---the fact that evaluation preserves
typing---is the condition that the evaluation flow remains within the fibers of
the fibration, never leaving the constraint manifold defined by the type.
%% ======================================================================
\section{The $\lambda$-Cube as a Lattice of Adjunctions}
\label{sec:adjunctions}
%% ======================================================================
The deepest way to understand the $\lambda$-cube is through adjoint functors.
Each axis of the cube corresponds to a distinct adjoint pair becoming available
inside the internal language.
The simply typed $\lambda$-calculus $\lambda_\to$ lives in a cartesian closed
category. The function type $A \to B$ is the exponential $B^A$, and the currying
isomorphism
\[
\Hom(X \times A,\, B) \;\cong\; \Hom(X,\, B^A)
\]
expresses the adjunction $(- \times A) \dashv (-)^A$. The $\lambda$-abstraction
rule is the internal language of this adjunction.
The dependent-type axis introduces, for each projection $p_A : \Gamma.A \to
\Gamma$, the triple adjunction
\[
\Sigma_{p_A} \;\dashv\; p_A^* \;\dashv\; \Pi_{p_A}.
\]
This corresponds to the categorical transition from cartesian closed categories
to locally cartesian closed categories. The polymorphism axis introduces the
ability to quantify over the universe of types, requiring the universe to be
treated as an object and polymorphic terms to correspond to natural
transformations. The type-operator axis introduces internal hom-objects at the
level of types, adding exponentials between kinds.
The Calculus of Constructions $\lambda C$ occupies the vertex where all three
adjoint structures coexist. The Curry--Howard--Lambek correspondence makes the
full triangulation explicit:
\begin{center}
\begin{tabular}{lll}
\toprule
\textbf{Logic} & \textbf{Type Theory} & \textbf{Category Theory} \\
\midrule
Propositions & Types & Objects \\
Proofs & Terms & Morphisms \\
Universal quantification & $\Pi$-type & Right adjoint to reindexing \\
Existential quantification & $\Sigma$-type & Left adjoint to reindexing \\
Implication & Function type & Exponential / internal hom \\
Substitution & $\beta$-reduction & Adjoint transpose \\
\bottomrule
\end{tabular}
\end{center}
The adjoint lattice extends naturally beyond three dimensions. Modal type
theories arise from adjunctions between modalities and inclusion functors.
Linear type theories arise from adjunctions between tensor products and linear
internal homs. Universe hierarchies $\Type_0 : \Type_1 : \Type_2 : \cdots$
arise from adjunctions between universe levels. The $\lambda$-cube is the
three-dimensional shadow of this larger structure: the most visible
cross-section because it is the minimal one containing all three fundamental
modes of dependency.
%% ======================================================================
\section{Type Theory as Information Geometry}
\label{sec:infogeo}
%% ======================================================================
Once the $\lambda$-cube is interpreted geometrically as a space of constraints
and flows, its structure becomes comparable to the manifolds studied in
information geometry and statistical field theory. The comparison reveals that
typed computation and statistical inference share a common geometric skeleton.
In information geometry, a statistical model is a Riemannian manifold whose
coordinates parameterize probability distributions. A point corresponds to a
particular distribution; a curve corresponds to a continuous transformation of
that distribution. The Fisher information metric equips the manifold with an
intrinsic notion of distance, and divergence measures define the geodesic
structure. Learning and inference are motion through this manifold.
The typing judgment $\Gamma \vdash t : T$ can be interpreted in a parallel way.
The context $\Gamma$ specifies a coordinate system; $T$ defines a constraint
surface within the space of program states; and the judgment asserts that $t$
lies on that surface. Beta reduction in the $\lambda$-calculus is a dynamical
flow on this space: each reduction step transforms a term while preserving its
type, so the flow remains on the constraint manifold. The subject-reduction
theorem is the condition that the flow never leaves the manifold.
Dependent types introduce fiber bundle structure. A family $x : A \vdash B(x)$
defines a bundle over $A$ whose fiber at each $a$ is the constraint manifold
$B(a)$. A dependent function of type $\Pi_{x:A} B(x)$ is a section. This is
the exact structure of a physical field: a field assigns to each spacetime event
an element of a fiber determined by the gauge structure. The $\Pi$-type performs
the same role as integration of a field over a base space.
The $\lambda$-cube describes which kinds of fields over constraint manifolds are
permitted. The dependent-type axis allows the constraint manifold to vary with
the base point. The polymorphism axis allows programs to be uniform across the
entire universe of manifolds. The type-operator axis allows manifolds to depend
on other manifolds. The Calculus of Constructions permits fields over fields
over fields, allowing constraints, programs, and meta-structures to interact
recursively. In information-geometric terms, the system can describe statistical
models over statistical models---manifolds parameterized by manifolds.
%% ======================================================================
\section{Homotopy Type Theory and the Extension Beyond the Cube}
\label{sec:hott}
%% ======================================================================
Homotopy type theory (HoTT) demonstrates that the geometric interpretation of
type theory can be pushed to the point where the logic of type theory and the
logic of homotopy theory become provably equivalent. In HoTT, types are
topological spaces, elements are points, and equality proofs are paths. The
identity type $\mathrm{Id}_A(a, b)$ is the space of paths from $a$ to $b$ in
$A$. Higher identity types correspond to surfaces connecting paths, and so on.
Under this interpretation, dependent types become genuine fibrations in the
topological sense. The family $x : A \vdash B(x)$ is a continuous map from the
total space $\Sigma_{x:A} B(x)$ to the base $A$ with the standard path-lifting
properties. The $\Pi$-type is the space of sections of this fibration.
The univalence axiom asserts that equivalent types are identical. In categorical
terms, the identity type of the universe is homotopy equivalent to the space of
type equivalences. The universe therefore carries the structure of a classifying
space: paths are equivalences, surfaces are natural isomorphisms, and
higher-dimensional cells are higher coherences.
Higher topos theory provides the categorical framework for this extension. An
$(\infty, 1)$-topos is a category whose internal language is precisely HoTT.
The $\lambda$-cube describes the internal language of an ordinary topos---the
$0$-dimensional case---while HoTT describes the internal language of an
$(\infty, 1)$-topos. Between these extremes lie the internal languages of
$n$-toposes for each natural number $n$, forming an infinite hierarchy extending
the cube in a direction orthogonal to all three of its original axes.
Derived algebraic geometry extends this picture further. The $\lambda$-cube
therefore appears, in the longest view, as the minimal coordinate patch of an
infinite-dimensional space of type theories parameterized by their homotopical
dimension and homological depth.
%% ======================================================================
\section{Representation Learning as a Renormalization Flow}
\label{sec:renorm}
%% ======================================================================
The geometric interpretation of neural representation spaces admits a natural
analogy with renormalization group (RG) flows in statistical physics. In both
settings a complex high-dimensional system is described at multiple levels of
resolution, and the effective behavior observed at a given scale depends on how
fine-grained degrees of freedom have been integrated out.
Let $h_\theta : X \to \mathbb{R}^d$ denote the representation map parameterized
by $\theta$. Training modifies $\theta$ through gradient descent, producing a
trajectory
\[
\theta_0 \;\longrightarrow\; \theta_1 \;\longrightarrow\; \cdots
\]
that induces a corresponding evolution of representation geometries. At early
stages of training the representation map tends to preserve fine-grained
variations in the input. As training progresses, the model learns to collapse
directions irrelevant to the task---the small-singular-value directions discussed
in the spectral analysis above. This collapse is directly analogous to the
separation of relevant and irrelevant operators under renormalization group flow.
Relevant operators dominate the large-scale behavior; irrelevant operators decay
under coarse-graining.
The foliation structure of representation space emerges as a fixed point of this
renormalization-like process. Directions associated with small singular values
form the tangent bundle of the semantic equivalence foliation. Directions
associated with large singular values define the transverse bundle along which
classification changes occur. Training flows the system toward a configuration
in which this spectral separation is maximized, just as RG flows drive a system
toward a fixed point by integrating out high-frequency fluctuations.
This perspective also clarifies the scaling behavior of adversarial
transferability. As model size increases, the dimensionality of the
representation manifold grows and the number of relevant directions increases.
However, independently trained models tend to develop different orientations for
their relevant subspaces. In high-dimensional spaces the expected overlap
between two adversarial subspaces $U_S$ and $U_T$ scales as $1/d$, so larger
models possess richer adversarial geometry but lower cross-model alignment. The
renormalization interpretation suggests that large models develop
non-renormalizable degrees of freedom---gradient directions that cannot be
described by a simple shared effective theory---which is why their adversarial
directions decorrelate across independently trained instances.
Within the broader framework developed in this essay, this renormalized
representation manifold functions as a constraint field over the space of inputs.
Neural inference corresponds to evaluating sections of this field; adversarial
perturbations correspond to trajectories that leave the local constraint leaf
and move along unstable transverse directions. Seen from this perspective,
representation learning, dependent type theory, and categorical semantics all
describe systems in which structures evolve under constraint-preserving flows.
The renormalization analogy provides a physical intuition for the essay's central
claim: intelligence, logic, and learning are all governed by the geometry of
constraint fields defined over spaces of contexts.
%% ======================================================================