語料內在深度場與異構自適應學習
——從廣度加速器、深度引擎到嵌套語義表徵的 AI 計算架構
Intrinsic Corpus Depth Fields and Heterogeneous Adaptive Learning: From Breadth Accelerators and Depth Engines to Nested Semantic Representations
作者:Neo.K(概念提出) 版本:v0.1 理論草稿 日期:2026 文件性質:理論方法論論文/AI 架構草案/可檢驗研究命題
摘要
現代人工智慧的「深度」通常主要指神經網路層數、遞歸步數、測試時計算量或 token 經過的計算路徑長度。然而,本文提出另一個需要被獨立建模的問題:語料、命題、理論、因果鏈、概念系譜與遞歸結構本身,可能具有不同的候選內在深度。
同樣長度的兩段文本,不必具有相同理解成本;同樣語義相似度的兩個命題,不必具有相同依賴深度;同樣位於向量空間附近的兩篇論文,其真正關係可能分別屬於直接同義、跨越多層中介命題的理論繼承、反例關係、元理論吸收或跨領域結構同構。若此判斷成立,則將所有語料均以固定計算深度、固定表示容量與單一相似度幾何處理,可能造成結構性浪費與表示失真。
本文提出「語料內在深度場」(Intrinsic Corpus Depth Field, ICDF)與「異構自適應學習」(Heterogeneous Adaptive Learning, HAL)框架。其核心不是將 CPU 簡化為「深度處理器」、GPU 簡化為「廣度處理器」,而是先在算法層區分三種基本資源角色:
A I = B r e a d t h + D e p t h + M e m o r y \boxed{
AI
=
Breadth
+
Depth
+
Memory
} A I = B r e a d t h + D e pt h + M e m or y
其中:
Breadth :大規模平行候選生成、統計相關、批次表示與矩陣計算;
Depth :依賴鏈、分支控制、遞歸推進、圖遍歷、長因果鏈與高價值稀疏計算;
Memory :原文、外部記憶、RAG、知識圖、事件記憶、版本歷史與可回放狀態。
本文進一步提出,學習不應被等同於記憶:
L e a r n ≠ M e m o r i z e ≠ D e e p e n \boxed{
Learn
\neq
Memorize
\neq
Deepen
} L e a r n = M e m or i z e = D ee p e n
某些資訊只需要外部保存;某些模式適合透過大規模廣度統計學習;某些內容則需要增加關係深度、因果深度、邏輯深度、理論系譜深度或遞歸深度。為此,本文將每個語料單元 x i x_i x i 的深度表示為多維向量:
D ( x i ) = ( d i l e x , d i s e m , d i c o n t e x t , d i c a u s a l , d i l o g i c a l , d i g e n e , d i m e t a , d i r e c u r s i v e ) \mathbf D(x_i)
=
\left(
d_i^{lex},
d_i^{sem},
d_i^{context},
d_i^{causal},
d_i^{logical},
d_i^{gene},
d_i^{meta},
d_i^{recursive}
\right) D ( x i ) = ( d i l e x , d i se m , d i co n t e x t , d i c a u s a l , d i l o g i c a l , d i g e n e , d i m e t a , d i r ec u r s i v e )
並對語料對之間的關係定義:
D i j = D ( x i ↔ x j ) \mathbf D_{ij}
=
D(x_i\leftrightarrow x_j) D ij = D ( x i ↔ x j )
本文進一步提出「深度條件化嵌套表徵」:
Z i = { Z i ( 0 ) , Z i ( 1 ) , … , Z i ( L i ) } \mathcal Z_i
=
\left\{
Z_i^{(0)},
Z_i^{(1)},
\dots,
Z_i^{(L_i)}
\right\} Z i = { Z i ( 0 ) , Z i ( 1 ) , … , Z i ( L i ) }
其中:
L i = g ( x i , τ , C , B ) L_i
=
g(x_i,\tau,C,B) L i = g ( x i , τ , C , B )
不再固定,而由內容、任務、上下文與資源預算共同決定。
最終,本文提出核心路由式:
D c o m p u t e ∗ ( x , τ ) = F θ ( D s e m a n t i c ( x ) , D r e l a t i o n a l ( x ) , τ , B ) \boxed{
D_{compute}^{\ast}(x,\tau)
=
F_\theta
\left(
D_{semantic}(x),
D_{relational}(x),
\tau,
B
\right)
} D co m p u t e ∗ ( x , τ ) = F θ ( D se man t i c ( x ) , D r e l a t i o na l ( x ) , τ , B )
即:最佳計算深度不應只由模型架構預先固定,而應由語料的候選內在深度、關係深度、當前任務與資源預算共同決定。
本文將此方法與 Mixture-of-Depths、Universal Transformer、Mixture-of-Recursions、Matryoshka Representation Learning 等既有方向區分。本文不宣稱首次提出動態計算、遞歸模型或嵌套表示,而主張將「語料與關係的內在深度估計」提升為資源路由、嵌套表徵與異構硬體映射的共同中介變量。
本文最後提出一組可證偽命題、最小系統架構、訓練目標與消融實驗,用以檢驗語料深度是否具有跨模型穩定性、是否能預測額外計算收益,以及是否能提升長因果鏈、理論系譜、跨文獻依賴、反例搜尋與複雜研究任務之效率。
關鍵詞: 語料內在深度場、異構自適應學習、Adaptive Computation、Mixture-of-Depths、Nested Representation、Semantic Depth、Relational Depth、CPU-GPU Heterogeneous Computing、Memory Routing、AI Architecture
1. 緒論
現代大型模型通常在兩種尺度上被描述:
模型寬度;
模型深度。
若以 Transformer 為例,可將表示寫成:
H ( ℓ + 1 ) = F ℓ ( H ( ℓ ) ) H^{(\ell+1)}
=
F_\ell
\left(
H^{(\ell)}
\right) H ( ℓ + 1 ) = F ℓ ( H ( ℓ ) )
其中:
ℓ = 0 , 1 , … , L − 1 \ell=0,1,\dots,L-1 ℓ = 0 , 1 , … , L − 1
模型深度通常由:
L L L
表示。
但本文提出:
模型有計算深度,不代表資料本身沒有深度。
同一模型處理:
簡單事實;
一字多義;
長距離依賴;
多步因果鏈;
數學證明;
理論系譜;
元理論;
遞歸自指結構;
其合理計算需求可能完全不同。
因此必須區分:
D c o m p u t e D_{compute} D co m p u t e
與:
D i n t r i n s i c D_{intrinsic} D in t r in s i c
前者是模型執行了多少層、多少步、多少 FLOPs。
後者則是:
為了在指定任務下保留某段內容的重要關係結構,至少需要辨識、保持或穿越多少層候選語義、依賴、因果、系譜或遞歸結構。
本文稱之為:
語料候選內在深度
2. 問題起點:並行廣度與稀疏深度不是同一件事
GPU、TPU、NPU 與其他 AI 加速器擅長:
大規模矩陣乘法;
高吞吐並行;
批次計算;
規則張量操作;
大量相似工作單元。
而 CPU 與其他延遲導向、控制流導向處理器通常更適合:
複雜分支;
不規則資料依賴;
少量高價值串行工作;
作業系統與調度;
動態圖遍歷;
低延遲控制。
然而,本文不提出:
C P U = D e p t h CPU=Depth C P U = D e pt h
也不提出:
G P U = B r e a d t h GPU=Breadth GP U = B r e a d t h
作為永久本體關係。
更精確的抽象是:
B r e a d t h − O p t i m i z e d C o m p u t e ≠ D e p t h − O p t i m i z e d C o m p u t e \boxed{
Breadth\!-\!Optimized\ Compute
\neq
Depth\!-\!Optimized\ Compute
} B r e a d t h − O pt imi z e d C o m p u t e = D e pt h − O pt imi z e d C o m p u t e
以及:
H a r d w a r e M a p p i n g = I m p l e m e n t a t i o n C h o i c e \boxed{
Hardware\ Mapping
=
Implementation\ Choice
} H a r d w a r e M a pp in g = I m pl e m e n t a t i o n C h o i ce
算法角色與硬體角色必須分離。
未來的 Depth Engine 可能由:
CPU;
高效能通用核心;
圖處理器;
recurrent accelerator;
control-flow accelerator;
專用 AI 核心;
承擔。
3. 從「學習更多」到「學習更深」
一般大規模訓練容易將改進方向理解成:
M o r e D a t a + M o r e P a r a m e t e r s + M o r e C o m p u t e More\ Data
+
More\ Parameters
+
More\ Compute M or e D a t a + M or e P a r am e t er s + M or e C o m p u t e
本文提出另一個問題:
若 AI 不需要將所有資訊永久寫入權重,那麼有限的高成本計算應該花在哪裡?
外部記憶允許:
M e x t e r n a l = D o c u m e n t s + R A G + G r a p h + E p i s o d i c S t o r e + V e r s i o n e d S t a t e M_{external}
=
Documents
+
RAG
+
Graph
+
Episodic\ Store
+
Versioned\ State M e x t er na l = D oc u m e n t s + R A G + G r a p h + E p i so d i c S t or e + V er s i o n e d S t a t e
因此:
M e m o r i z a t i o n Memorization M e m or i z a t i o n
不必與:
R e p r e s e n t a t i o n L e a r n i n g Representation\ Learning R e p r ese n t a t i o n L e a r nin g
完全等價。
本文正式區分:
3.1 記憶
M e m o r i z e ( x ) Memorize(x) M e m or i z e ( x )
目標:未來可再次取回。
3.2 學習
L e a r n ( x ) Learn(x) L e a r n ( x )
目標:改變泛化、預測或決策能力。
3.3 深化
D e e p e n ( x ) Deepen(x) D ee p e n ( x )
目標:增加對關係鏈、依賴、因果、系譜、元層或遞歸結構的可保持能力。
因此:
L e a r n ≠ M e m o r i z e ≠ D e e p e n \boxed{
Learn
\neq
Memorize
\neq
Deepen
} L e a r n = M e m or i z e = D ee p e n
4. 語料內在深度場
令語料單元集合為:
X = { x 1 , x 2 , … , x n } \mathcal X
=
\{
x_1,x_2,\dots,x_n
\} X = { x 1 , x 2 , … , x n }
其中 x i x_i x i 可以是:
token;
phrase;
sentence;
paragraph;
document;
theorem;
proof;
code block;
event;
theory。
本文定義深度函數:
D : X × T × C → R ≥ 0 m \mathcal D:
\mathcal X
\times
\mathcal T
\times
\mathcal C
\rightarrow
\mathbb R_{\ge0}^{m} D : X × T × C → R ≥ 0 m
其中:
T \mathcal T T :任務空間;
C \mathcal C C :上下文空間。
因此:
D ( x i ∣ τ , C ) \mathbf D(x_i\mid\tau,C) D ( x i ∣ τ , C )
不是永恆固定值。
同一句話在:
任務下可具有不同有效深度。
5. 深度不是單一標量
本文反對簡化為:
D ( x ) ∈ R D(x)\in\mathbb R D ( x ) ∈ R
更合理的是:
D ( x ) = ( d l e x , d s e m , d c o n t e x t , d c a u s a l , d l o g i c a l , d g e n e , d m e t a , d r e c u r s i v e ) \mathbf D(x)
=
\left(
d^{lex},
d^{sem},
d^{context},
d^{causal},
d^{logical},
d^{gene},
d^{meta},
d^{recursive}
\right) D ( x ) = ( d l e x , d se m , d co n t e x t , d c a u s a l , d l o g i c a l , d g e n e , d m e t a , d r ec u r s i v e )
5.1 詞義深度
d l e x d^{lex} d l e x
描述符號的多義分叉。
若:
s → { m 1 , m 2 , … , m k } s
\rightarrow
\{
m_1,m_2,\dots,m_k
\} s → { m 1 , m 2 , … , m k }
則不能只依 k k k 判斷深度,還需考慮:
A m b i g u i t y ( s , C ) Ambiguity(s,C) A mbi g u i t y ( s , C )
與語境區分難度。
5.2 語義深度
d s e m d^{sem} d se m
描述理解某內容所需的抽象層次:
L i t e r a l → C o n c e p t u a l → S t r u c t u r a l → M e t a Literal
\rightarrow
Conceptual
\rightarrow
Structural
\rightarrow
Meta L i t er a l → C o n ce pt u a l → S t r u c t u r a l → M e t a
5.3 上下文深度
d c o n t e x t d^{context} d co n t e x t
表示理解當前內容需要追溯多少有效上下文:
x t ← x t − k x_t
\leftarrow
x_{t-k} x t ← x t − k
但 k k k 不是唯一指標,因為遠距內容可能不重要。因此更精確:
d c o n t e x t ( x t ) = F ( R e l e v a n t D e p e n d e n c y S p a n ) d^{context}(x_t)
=
F(
Relevant\ Dependency\ Span
) d co n t e x t ( x t ) = F ( R e l e v an t D e p e n d e n cy S p an )
5.4 因果深度
d c a u s a l d^{causal} d c a u s a l
若:
A → B A\rightarrow B A → B
則深度較低。
若:
A → M 1 → M 2 → ⋯ → B A
\rightarrow
M_1
\rightarrow
M_2
\rightarrow
\dots
\rightarrow
B A → M 1 → M 2 → ⋯ → B
則有效因果深度提高。
但:
P a t h L e n g t h ≠ C a u s a l D e p t h Path\ Length
\neq
Causal\ Depth P a t h L e n g t h = C a u s a l D e pt h
因為不同中介節點信息量不同。
5.5 邏輯深度
d l o g i c a l d^{logical} d l o g i c a l
例如:
P 1 , P 2 ⊢ L 1 P_1,P_2
\vdash
L_1 P 1 , P 2 ⊢ L 1
L 1 , P 3 ⊢ L 2 L_1,P_3
\vdash
L_2 L 1 , P 3 ⊢ L 2
L 2 , L 3 ⊢ C L_2,L_3
\vdash
C L 2 , L 3 ⊢ C
則 C C C 依賴多層推導。
5.6 理論系譜深度
d g e n e d^{gene} d g e n e
若:
T 0 → T 1 → T 2 → T 3 T_0
\rightarrow
T_1
\rightarrow
T_2
\rightarrow
T_3 T 0 → T 1 → T 2 → T 3
理解 T 3 T_3 T 3 可能需要追溯:
T 0 , T 1 , T 2 T_0,T_1,T_2 T 0 , T 1 , T 2
5.7 元理論深度
d m e t a d^{meta} d m e t a
一階:
T ( x ) T(x) T ( x )
元層:
M ( T ) M(T) M ( T )
更高:
M ( M ( T ) ) M(M(T)) M ( M ( T ))
5.8 遞歸深度
d r e c u r s i v e d^{recursive} d r ec u r s i v e
對:
F ( x ) F(x) F ( x )
F ( F ( x ) ) F(F(x)) F ( F ( x ))
F n ( x ) F^n(x) F n ( x )
研究固定點、循環、遞歸狀態與自指結構。
6. 內容深度與關係深度必須分離
某個語料單元本身可以簡單,但它與另一單元之間的關係可能很深。
因此定義:
D i = D ( x i ) \mathbf D_i
=
\mathbf D(x_i) D i = D ( x i )
以及:
D i j = D ( x i ↔ x j ) \mathbf D_{ij}
=
\mathbf D(x_i\leftrightarrow x_j) D ij = D ( x i ↔ x j )
例如:
S i m ( x i , x j ) = 0.92 Sim(x_i,x_j)=0.92 S im ( x i , x j ) = 0.92
不推出:
D i j g e n e D_{ij}^{gene} D ij g e n e
高。
也不推出:
D i j c a u s a l D_{ij}^{causal} D ij c a u s a l
高。
因此:
S e m a n t i c S i m i l a r i t y ≠ R e l a t i o n a l D e p t h \boxed{
Semantic\ Similarity
\neq
Relational\ Depth
} S e man t i c S imi l a r i t y = R e l a t i o na l D e pt h
7. 語料深度場的局部幾何
定義:
D = { D i , D i j } \mathfrak D
=
\{
\mathbf D_i,
\mathbf D_{ij}
\} D = { D i , D ij }
則整個 corpus 形成:
語料深度場
其不是單純向量集合:
{ v 1 , … , v n } \{
v_1,\dots,v_n
\} { v 1 , … , v n }
而是:
C = ( V , E , D V , D E ) \mathfrak C
=
(
V,
E,
\mathbf D_V,
\mathbf D_E
) C = ( V , E , D V , D E )
其中:
V V V :語料節點;
E E E :關係;
D V \mathbf D_V D V :節點深度;
D E \mathbf D_E D E :邊深度。
8. 從向量嵌入到深度條件化嵌套表徵
一般 embedding:
x i ↦ v i ∈ R d x_i
\mapsto
v_i\in\mathbb R^d x i ↦ v i ∈ R d
本文提出:
x i ↦ Z i x_i
\mapsto
\mathcal Z_i x i ↦ Z i
其中:
Z i = { Z i ( 0 ) , Z i ( 1 ) , … , Z i ( L i ) } \mathcal Z_i
=
\left\{
Z_i^{(0)},
Z_i^{(1)},
\dots,
Z_i^{(L_i)}
\right\} Z i = { Z i ( 0 ) , Z i ( 1 ) , … , Z i ( L i ) }
且:
L i = g ( x i , τ , C , B ) L_i
=
g(
x_i,
\tau,
C,
B
) L i = g ( x i , τ , C , B )
其中:
τ \tau τ :任務;
C C C :上下文;
B B B :預算。
因此:
L i ≠ C o n s t a n t L_i
\neq
Constant L i = C o n s t an t
9. 嵌套不只是維度截斷
Matryoshka 類表徵已研究同一表示按不同容量保留粗到細資訊。
本文不宣稱重新發明嵌套表徵。
本文新增問題是:
表徵層級是否可以由語料內在關係深度決定?
也就是:
N e s t e d C a p a c i t y Nested\ Capacity N es t e d C a p a c i t y
與:
I n t r i n s i c D e p t h Intrinsic\ Depth I n t r in s i c D e pt h
建立條件關係:
Z i ( ℓ ) = F ( x i , D i , τ ) Z_i^{(\ell)}
=
F(
x_i,
D_i,
\tau
) Z i ( ℓ ) = F ( x i , D i , τ )
而非只依:
E m b e d d i n g D i m e n s i o n Embedding\ Dimension E mb e dd in g D im e n s i o n
決定。
10. 深度層級的候選解釋
一個可實作版本:
Z i ( 0 ) Z_i^{(0)} Z i ( 0 )
粗粒度語義。
Z i ( 1 ) Z_i^{(1)} Z i ( 1 )
局部上下文。
Z i ( 2 ) Z_i^{(2)} Z i ( 2 )
關係與依賴。
Z i ( 3 ) Z_i^{(3)} Z i ( 3 )
因果/邏輯。
Z i ( 4 ) Z_i^{(4)} Z i ( 4 )
理論系譜。
Z i ( 5 ) Z_i^{(5)} Z i ( 5 )
元理論。
Z i ( 6 + ) Z_i^{(6+)} Z i ( 6 + )
遞歸、長鏈與高階結構。
本文不主張此分層是唯一真實語義本體。它只是:
可檢驗工程分解
11. 自適應深度
不同語料需要不同:
L i L_i L i
因此:
L i = g θ ( x i , τ , C ) L_i
=
g_\theta
(
x_i,
\tau,
C
) L i = g θ ( x i , τ , C )
對簡單內容:
L i ≈ 1 L_i\approx1 L i ≈ 1
對複雜證明:
L i ≫ 1 L_i\gg1 L i ≫ 1
但不能人工假設「數學一定比日常語言深」。
真正深度必須由任務收益驗證。
12. 廣度—深度—記憶三分架構
本文提出三種資源角色。
12.1 廣度引擎
記為:
E B \mathcal E_B E B
適合:
大規模 embedding;
全局候選生成;
大批次相關性;
dense tensor operations;
大範圍模式統計。
E B : X → C \mathcal E_B:
X
\rightarrow
\mathcal C E B : X → C
其中 C \mathcal C C 為候選集。
12.2 深度引擎
記為:
E D \mathcal E_D E D
適合:
長依賴;
分支推理;
遞歸;
圖遍歷;
高價值稀疏樣本;
反例;
多步驗證;
關係展開。
E D : C → C ∗ \mathcal E_D:
\mathcal C
\rightarrow
\mathcal C^\ast E D : C → C ∗
12.3 記憶引擎
記為:
E M \mathcal E_M E M
適合:
原文保存;
RAG;
graph memory;
episodic memory;
version history;
external state。
E M : x → A d d r e s s a b l e ( x ) \mathcal E_M:
x
\rightarrow
Addressable(x) E M : x → A dd r ess ab l e ( x )
13. 三分路由
對每個單元 x i x_i x i 定義資源分配:
R ( x i ) = ( b i , d i , m i ) R(x_i)
=
(
b_i,
d_i,
m_i
) R ( x i ) = ( b i , d i , m i )
其中:
b i b_i b i :breadth budget;
d i d_i d i :depth budget;
m i m_i m i :memory budget。
滿足:
b i + d i + m i ≤ B i b_i+d_i+m_i
\leq
B_i b i + d i + m i ≤ B i
router:
π θ ( x i , τ , C , D i ) → ( b i , d i , m i ) \pi_\theta
(
x_i,
\tau,
C,
\mathbf D_i
)
\rightarrow
(
b_i,d_i,m_i
) π θ ( x i , τ , C , D i ) → ( b i , d i , m i )
14. 為什麼需要記憶路由
若某資訊:
重要;
稀有;
未必需要改變模型泛化;
未必值得大量重複訓練;
則:
m i ≫ d i m_i
\gg
d_i m i ≫ d i
可能更合理。
例如:
精確日期;
API 回傳;
特定版本;
長尾事實;
原始文件。
因此:
S t o r e ( x ) Store(x) S t or e ( x )
可能優於:
O v e r t r a i n ( x ) Overtrain(x) O v er t r ain ( x )
15. 為什麼需要深度路由
若某內容:
長依賴;
多層證明;
多中介因果;
高反例價值;
元理論;
遞歸;
則:
d i ≫ b i d_i
\gg
b_i d i ≫ b i
可能更合理。
16. 為什麼需要廣度路由
若任務是:
候選搜索;
模式統計;
高召回;
大規模分類;
表徵預訓練;
則:
b i ≫ d i b_i
\gg
d_i b i ≫ d i
可能更合理。
17. 核心計算深度映射
本文提出:
D c o m p u t e ∗ ( x , τ ) = F θ ( D s e m a n t i c ( x ) , D r e l a t i o n a l ( x ) , τ , B ) \boxed{
D_{compute}^{\ast}(x,\tau)
=
F_\theta
\left(
D_{semantic}(x),
D_{relational}(x),
\tau,
B
\right)
} D co m p u t e ∗ ( x , τ ) = F θ ( D se man t i c ( x ) , D r e l a t i o na l ( x ) , τ , B )
其中:
D s e m a n t i c D_{semantic} D se man t i c :內容深度;
D r e l a t i o n a l D_{relational} D r e l a t i o na l :關係深度;
τ \tau τ :任務;
B B B :資源預算。
這是本文最核心命題。
18. 與 Mixture-of-Depths 的關係
Mixture-of-Depths 的核心方向是:
不讓所有 token 在每層均使用相同計算量。
可抽象:
r i ( ℓ ) ∈ { 0 , 1 } r_i^{(\ell)}
\in
\{0,1\} r i ( ℓ ) ∈ { 0 , 1 }
決定 token i i i 在層 ℓ \ell ℓ 是否進入高成本運算。
本文接受其基本啟發,但提出不同問題:
W h y M o r e C o m p u t e ? Why\ More\ Compute? W h y M or e C o m p u t e ?
本文希望 router 不只學習:
T o k e n D i f f i c u l t y Token\ Difficulty T o k e n D i f f i c u l t y
而能顯式或弱顯式利用:
I n t r i n s i c S e m a n t i c / R e l a t i o n a l D e p t h Intrinsic\ Semantic/Relational\ Depth I n t r in s i c S e man t i c / R e l a t i o na l D e pt h
19. 與 Universal Transformer 的關係
Universal Transformer 使用 recurrent refinement,並可結合 adaptive computation time。
其核心方向:
h ( t + 1 ) = F ( h ( t ) ) h^{(t+1)}
=
F(
h^{(t)}
) h ( t + 1 ) = F ( h ( t ) )
直到 halting。
本文的差異在於:
遞歸多少次與「語料為何需要更深」之間建立候選可解釋中介層。
即:
H a l t i n g = g ( S t a t e , D e p t h E s t i m a t e , T a s k , B u d g e t ) Halting
=
g(
State,
DepthEstimate,
Task,
Budget
) H a l t in g = g ( S t a t e , D e pt h E s t ima t e , T a s k , B u d g e t )
20. 與 Mixture-of-Recursions 的關係
Mixture-of-Recursions 將:
parameter sharing;
adaptive computation;
recursive depth;
結合。
本文不取代此方向。
本文新增的是:
D i n t r i n s i c → R o u t i n g D_{intrinsic}
\rightarrow
Routing D in t r in s i c → R o u t in g
假說。
即:
若能估計內容與關係深度,是否能更早預測哪些 token、節點或理論鏈值得增加 recursion?
21. 與 Matryoshka Representation Learning 的關係
Matryoshka Representation Learning 主要解決:
R e p r e s e n t a t i o n C a p a c i t y Representation\ Capacity R e p r ese n t a t i o n C a p a c i t y
可按不同維度預算使用。
本文提出:
R e p r e s e n t a t i o n C a p a c i t y + S e m a n t i c D e p t h + R e l a t i o n a l D e p t h Representation\ Capacity
+
Semantic\ Depth
+
Relational\ Depth R e p r ese n t a t i o n C a p a c i t y + S e man t i c D e pt h + R e l a t i o na l D e pt h
共同決定嵌套層級。
因此:
M R L ≠ I C D F MRL
\neq
ICDF M R L = I C D F
但二者可組合。
22. 一個可能的完整模型
輸入:
X = { x 1 , … , x n } X
=
\{
x_1,\dots,x_n
\} X = { x 1 , … , x n }
第一步,廣度表徵:
V i = E B ( x i ) V_i
=
E_B(x_i) V i = E B ( x i )
第二步,深度估計:
D ^ i = H ϕ ( V i , C , τ ) \hat{\mathbf D}_i
=
H_\phi(V_i,C,\tau) D ^ i = H ϕ ( V i , C , τ )
第三步,關係深度:
D ^ i j = J ψ ( V i , V j , G ) \hat{\mathbf D}_{ij}
=
J_\psi(
V_i,
V_j,
G
) D ^ ij = J ψ ( V i , V j , G )
第四步,路由:
( b i , d i , m i ) = π θ ( V i , D ^ i , D ^ i j , τ ) (b_i,d_i,m_i)
=
\pi_\theta(
V_i,
\hat{\mathbf D}_i,
\hat{\mathbf D}_{ij},
\tau
) ( b i , d i , m i ) = π θ ( V i , D ^ i , D ^ ij , τ )
第五步,深度展開:
Z i ( ℓ + 1 ) = F ℓ ( Z i ( ℓ ) , N i ( ℓ ) ) Z_i^{(\ell+1)}
=
F_\ell
(
Z_i^{(\ell)},
N_i^{(\ell)}
) Z i ( ℓ + 1 ) = F ℓ ( Z i ( ℓ ) , N i ( ℓ ) )
第六步,外部記憶:
M i = S t o r e O r R e t r i e v e ( x i , m i ) M_i
=
StoreOrRetrieve(
x_i,
m_i
) M i = S t or e O r R e t r i e v e ( x i , m i )
第七步,融合:
Y i = F u s e ( Z i ( L i ) , M i , V i ) Y_i
=
Fuse(
Z_i^{(L_i)},
M_i,
V_i
) Y i = F u se ( Z i ( L i ) , M i , V i )
23. 深度估計不應只靠模型自我感覺
若:
D ^ i \hat D_i D ^ i
完全由模型自己輸出,可能產生循環:
M o d e l B e l i e v e s H a r d → M o r e C o m p u t e → C o n f i r m s H a r d Model\ Believes\ Hard
\rightarrow
More\ Compute
\rightarrow
Confirms\ Hard M o d e l B e l i e v es H a r d → M or e C o m p u t e → C o n f i r m s H a r d
因此需外部監督或間接效標。
24. 候選深度標籤
可由以下方法產生:
24.1 依賴圖深度
D d e p D_{dep} D d e p
來自 dependency graph。
24.2 證明深度
D p r o o f D_{proof} D p r oo f
來自 theorem prover trace。
24.3 因果鏈深度
D c a u s e D_{cause} D c a u se
來自已知 causal graph。
24.4 理論系譜深度
D g e n e D_{gene} D g e n e
來自 citation/theory genealogy。
24.5 最小充分上下文
D c o n t e x t D_{context} D co n t e x t
透過刪除上下文實驗估計。
25. 最小充分深度
本文提出一個更可操作定義。
對任務 τ \tau τ 定義最小充分計算深度:
D M S C ( x , τ ) = min { d : P e r f ( x , τ , d ) ≥ η } D_{MSC}(x,\tau)
=
\min
\left\{
d:
Perf(x,\tau,d)
\geq
\eta
\right\} D M S C ( x , τ ) = min { d : P er f ( x , τ , d ) ≥ η }
其中 η \eta η 為性能門檻。
這不是語料本體深度,但可作為:
操作性深度代理
26. 邊際計算收益
定義:
Δ U d ( x ) = U ( x , d + 1 ) − U ( x , d ) \Delta U_d(x)
=
U(x,d+1)-U(x,d) Δ U d ( x ) = U ( x , d + 1 ) − U ( x , d )
若:
Δ U d ( x ) > 0 \Delta U_d(x)>0 Δ U d ( x ) > 0
則增加深度有收益。
若:
Δ U d ( x ) ≈ 0 \Delta U_d(x)\approx0 Δ U d ( x ) ≈ 0
則可停止。
因此:
D ∗ = arg max d [ U ( x , d ) − λ C ( d ) ] D^\ast
=
\arg\max_d
\left[
U(x,d)-\lambda C(d)
\right] D ∗ = arg d max [ U ( x , d ) − λ C ( d ) ]
27. 深度不是越大越好
本文明確反對:
M o r e D e p t h = B e t t e r More\ Depth
=
Better M or e D e pt h = B e tt er
因為可能出現:
O v e r t h i n k i n g Overthinking O v er t hink in g
E r r o r A c c u m u l a t i o n Error\ Accumulation E r r or A cc u m u l a t i o n
R e p r e s e n t a t i o n D r i f t Representation\ Drift R e p r ese n t a t i o n D r i f t
L a t e n c y E x p l o s i o n Latency\ Explosion L a t e n cy E x pl os i o n
因此:
D ∗ < ∞ D^\ast
<
\infty D ∗ < ∞
在有限資源下是合理假設。
28. 適量層數原則
本文提出:
適量層數原則
對任務 τ \tau τ 與樣本 x x x ,存在候選最優深度區間:
D ∗ ( x , τ ) ∈ [ d m i n , d m a x ] D^\ast(x,\tau)
\in
[d_{min},d_{max}] D ∗ ( x , τ ) ∈ [ d min , d ma x ]
當:
d < d m i n d<d_{min} d < d min
可能欠計算。
當:
d > d m a x d>d_{max} d > d ma x
可能浪費或退化。
29. 深度分層與異構分機
在系統層可分成:
Node Group A
├─ Breadth Accelerator
├─ Large Batch
└─ Candidate Expansion
Node Group B
├─ Depth Engine
├─ Low-Latency Irregular Compute
└─ Recursive / Graph / Causal Work
Node Group C
├─ Memory Engine
├─ Retrieval
└─ Versioned State
這是邏輯分層。
實際硬體可不同。
30. CPU 的合理角色
CPU 可作 Depth Engine 候選,尤其:
branch-heavy routing;
irregular graphs;
orchestration;
dynamic scheduling;
sparse control。
但不能預設:
C P U > G P U CPU
>
GPU C P U > GP U
於所有深度任務。
因此:
H a r d w a r e C h o i c e = arg min ( L a t e n c y , E n e r g y , C o m m u n i c a t i o n , C o s t ) HardwareChoice
=
\arg\min
(
Latency,
Energy,
Communication,
Cost
) H a r d w a r e C h o i ce = arg min ( L a t e n cy , E n er g y , C o mm u ni c a t i o n , C os t )
31. 手機式 SoC 與分散式 AI 節點
現代手機/邊緣 SoC 常同時包含:
CPU;
GPU;
NPU;
unified or shared memory;
media engines。
因此其架構哲學天然接近:
H e t e r o g e n e o u s L o c a l C o m p u t e Heterogeneous\ Local\ Compute H e t er o g e n eo u s L oc a l C o m p u t e
若大量節點互連,可形成:
H = { H 1 , H 2 , … , H n } \mathcal H
=
\{
H_1,H_2,\dots,H_n
\} H = { H 1 , H 2 , … , H n }
但實際訓練效率受限於:
interconnect;
synchronization;
memory bandwidth;
fault rate;
collective communication。
因此本文不主張:
手機 SoC 堆疊必然優於資料中心加速器。
本文只提出:
異構 SoC 的角色分工思想,可作為廣度—深度—記憶架構的工程參考之一。
32. 路由函數
最小形式:
π θ ( x ) = S o f t m a x ( W h x ) \pi_\theta(x)
=
Softmax(
W h_x
) π θ ( x ) = S o f t ma x ( W h x )
輸出:
p B , p D , p M p_B,p_D,p_M p B , p D , p M
滿足:
p B + p D + p M = 1 p_B+p_D+p_M=1 p B + p D + p M = 1
33. 多資源預算路由
更一般:
π θ : x → ( b , d , m , e , l ) \pi_\theta
:
x
\rightarrow
(
b,
d,
m,
e,
l
) π θ : x → ( b , d , m , e , l )
其中:
b b b :廣度;
d d d :深度;
m m m :記憶;
e e e :能耗;
l l l :延遲。
34. 訓練目標
本文提出:
L = L p r e d + λ 1 L d e p t h + λ 2 L r e l a t i o n + λ 3 L r o u t i n g + λ 4 L c o n s i s t e n c y + λ 5 L b u d g e t \mathcal L
=
\mathcal L_{pred}
+
\lambda_1\mathcal L_{depth}
+
\lambda_2\mathcal L_{relation}
+
\lambda_3\mathcal L_{routing}
+
\lambda_4\mathcal L_{consistency}
+
\lambda_5\mathcal L_{budget} L = L p r e d + λ 1 L d e pt h + λ 2 L r e l a t i o n + λ 3 L r o u t in g + λ 4 L co n s i s t e n cy + λ 5 L b u d g e t
34.1 預測損失
L p r e d \mathcal L_{pred} L p r e d
維持主任務能力。
34.2 深度損失
L d e p t h = ∥ D ^ − D ∗ ∥ 2 \mathcal L_{depth}
=
\|
\hat{\mathbf D}
-
\mathbf D^\ast
\|^2 L d e pt h = ∥ D ^ − D ∗ ∥ 2
其中 D ∗ \mathbf D^\ast D ∗ 可來自 proxy。
34.3 關係損失
L r e l a t i o n \mathcal L_{relation} L r e l a t i o n
學習:
x i → r x j x_i
\xrightarrow{r}
x_j x i r x j
而非只有相似。
34.4 路由損失
L r o u t i n g \mathcal L_{routing} L r o u t in g
鼓勵把高成本深度計算分配給高邊際收益樣本。
34.5 跨層一致性
L c o n s i s t e n c y \mathcal L_{consistency} L co n s i s t e n cy
避免淺層與深層表徵無約束漂移。
34.6 預算損失
L b u d g e t = max ( 0 , C u s e d − B ) \mathcal L_{budget}
=
\max
(
0,
C_{used}-B
) L b u d g e t = max ( 0 , C u se d − B )
35. 深度蒸餾
若深模型:
F D F_D F D
能建立高深度表示,可蒸餾至:
F S F_S F S
使部分深度結構壓縮:
Z S ≈ C o m p r e s s ( Z D ) Z_S
\approx
Compress(
Z_D
) Z S ≈ C o m p r ess ( Z D )
因此深度引擎可:
36. 廣度先行、深度選擇
本文提出一個高效率流程:
X → B r e a d t h C → D e p t h R o u t e r C D → D e p t h C ∗ X
\xrightarrow{Breadth}
\mathcal C
\xrightarrow{Depth\ Router}
\mathcal C_D
\xrightarrow{Depth}
\mathcal C^\ast X B r e a d t h C D e pt h R o u t er C D D e pt h C ∗
其中:
∣ C D ∣ ≪ ∣ C ∣ |\mathcal C_D|
\ll
|\mathcal C| ∣ C D ∣ ≪ ∣ C ∣
即:
先廣泛找到候選,再只對少量高價值候選深算。
37. 深度先行、廣度擴散
反向也可能成立。
對一個核心命題:
p 0 p_0 p 0
先建立深度結構:
G D ( p 0 ) G_D(p_0) G D ( p 0 )
再由廣度引擎搜尋:
{ x : I s o m o r p h i c ( x , G D ) } \{
x:
Isomorphic(x,G_D)
\} { x : I so m or p hi c ( x , G D )}
因此:
D e p t h → B r e a d t h Depth
\rightarrow
Breadth D e pt h → B r e a d t h
同樣重要。
38. 廣度—深度循環
完整系統:
B → D → B → D B
\rightarrow
D
\rightarrow
B
\rightarrow
D B → D → B → D
可表示:
S ( t + 1 ) = F B ( F D ( S ( t ) ) ) S^{(t+1)}
=
F_B(
F_D(
S^{(t)}
)
) S ( t + 1 ) = F B ( F D ( S ( t ) ))
這比固定單向 pipeline 更符合研究搜索。
39. 與 SGCD 的接口
若既有 SGCD 邊為:
e i j e_{ij} e ij
耦合向量:
c i j \mathbf c_{ij} c ij
本文增加:
d i j \mathbf d_{ij} d ij
因此:
e i j = ( c i j , d i j ) e_{ij}
=
(
\mathbf c_{ij},
\mathbf d_{ij}
) e ij = ( c ij , d ij )
其中:
c i j \mathbf c_{ij} c ij :有多相關;
d i j \mathbf d_{ij} d ij :理解此關係需要多深。
40. 與 CRSIL 的接口
若研究物件:
o i o_i o i
已具有:
時間;
版本;
provenance;
invocation trace;
則本文可增加:
D e p t h B u n d l e i DepthBundle_i D e pt h B u n d l e i
例如:
depth:
semantic: 0.71
causal: 0.33
logical: 0.82
genealogical: 0.64
recursive: 0.11
confidence: 0.76
因此 AI 搜尋不只問:
哪篇相關?
還問:
這條關係值得多深計算?
41. 語義關係深度幾何
對圖:
G = ( V , E ) G=(V,E) G = ( V , E )
每條邊具有:
δ ( e ) \delta(e) δ ( e )
則路徑深度:
D ( π ) = ∑ e ∈ π δ ( e ) D(\pi)
=
\sum_{e\in\pi}
\delta(e) D ( π ) = e ∈ π ∑ δ ( e )
兩節點間:
D ( i , j ) = min π : i → j D ( π ) D(i,j)
=
\min_{\pi:i\to j}
D(\pi) D ( i , j ) = π : i → j min D ( π )
但這仍只是最小模型。
42. 非加性深度
某些關係存在協同效應:
δ ( e 1 ∘ e 2 ) ≠ δ ( e 1 ) + δ ( e 2 ) \delta(e_1\circ e_2)
\neq
\delta(e_1)+\delta(e_2) δ ( e 1 ∘ e 2 ) = δ ( e 1 ) + δ ( e 2 )
因此更一般:
D ( π ) = A ( e 1 , … , e k ) D(\pi)
=
\mathcal A(
e_1,\dots,e_k
) D ( π ) = A ( e 1 , … , e k )
其中 A \mathcal A A 可為非線性聚合器。
43. 深度吸引子
若多個語料路徑:
x 1 , x 2 , … , x n x_1,x_2,\dots,x_n x 1 , x 2 , … , x n
在深度推進後收斂到:
a k a_k a k
則 a k a_k a k 可能是候選深層結構。
例如:
同一因果機制;
同一理論骨架;
同一固定點;
跨領域同構。
44. 深度與困難度不能混同
本文強調:
D i f f i c u l t y ≠ D e p t h Difficulty
\neq
Depth D i f f i c u l t y = D e pt h
某題可能難,因為:
但不一定深。
反之某題可能深,但規則清楚。
因此:
H a r d n e s s = f ( D e p t h , B r e a d t h , N o i s e , U n c e r t a i n t y , S e a r c h ) Hardness
=
f(
Depth,
Breadth,
Noise,
Uncertainty,
Search
) H a r d n ess = f ( D e pt h , B r e a d t h , N o i se , U n cer t ain t y , S e a r c h )
45. 深度與長度不能混同
L e n g t h ( x ) ≠ D e p t h ( x ) Length(x)
\neq
Depth(x) L e n g t h ( x ) = D e pt h ( x )
一篇長文章可能高度重複。
一句短命題可能依賴極深理論。
46. 深度與置信度不能混同
C o n f i d e n c e ≠ D e p t h Confidence
\neq
Depth C o n f i d e n ce = D e pt h
模型低置信可能只是陌生。
不必然需要更多 reasoning depth。
47. 深度與新穎性不能混同
N o v e l t y ≠ D e p t h Novelty
\neq
Depth N o v e l t y = D e pt h
新概念可能淺。
舊理論可能極深。
48. 可檢驗命題一:深度異質性命題
對語料集合:
X \mathcal X X
若固定計算深度:
d d d
則樣本的邊際收益不同:
Δ U d ( x i ) ≠ Δ U d ( x j ) \Delta U_d(x_i)
\neq
\Delta U_d(x_j) Δ U d ( x i ) = Δ U d ( x j )
49. 可檢驗命題二:深度可預測命題
若存在:
D ^ ( x ) \hat D(x) D ^ ( x )
使:
C o r r ( D ^ ( x ) , D M S C ( x ) ) > 0 Corr(
\hat D(x),
D_{MSC}(x)
)
>0 C or r ( D ^ ( x ) , D M S C ( x )) > 0
則語料深度估計具有操作價值。
50. 可檢驗命題三:深度路由優勢命題
在相同平均 compute budget 下:
P e r f ( D e p t h A w a r e R o u t i n g ) > P e r f ( U n i f o r m D e p t h ) Perf(
DepthAwareRouting
)
>
Perf(
UniformDepth
) P er f ( D e pt h A w a r e R o u t in g ) > P er f ( U ni f or m D e pt h )
至少在長依賴與多步結構任務上應可檢驗。
51. 可檢驗命題四:三分路由命題
在包含:
的混合任務中:
B r e a d t h + D e p t h + M e m o r y Breadth+Depth+Memory B r e a d t h + D e pt h + M e m or y
應優於只增加單一路徑 compute。
52. 可檢驗命題五:關係深度命題
對相似度接近的語料對:
S i m ( i , j ) ≈ S i m ( k , l ) Sim(i,j)\approx Sim(k,l) S im ( i , j ) ≈ S im ( k , l )
其最佳額外計算需求仍可能顯著不同:
D i j ∗ ≠ D k l ∗ D^\ast_{ij}
\neq
D^\ast_{kl} D ij ∗ = D k l ∗
53. 可檢驗命題六:嵌套深度表徵命題
若:
Z i = { Z i ( 0 ) , … , Z i ( L i ) } \mathcal Z_i
=
\{
Z_i^{(0)},\dots,Z_i^{(L_i)}
\} Z i = { Z i ( 0 ) , … , Z i ( L i ) }
與深度 supervision 結合,則在多預算任務下可較固定 embedding 提升效率或可解釋性。
54. 可證偽條件
本文不是不可證偽理論。
54.1 深度估計無法預測計算收益
若:
C o r r ( D ^ , Δ U ) ≈ 0 Corr(
\hat D,
\Delta U
)
\approx0 C or r ( D ^ , Δ U ) ≈ 0
則深度場缺乏路由價值。
54.2 深度只等同困難度
若控制:
entropy;
uncertainty;
length;
rarity;
後:
D D D
不再有額外解釋力,則本文新變量可能冗餘。
54.3 多模型不穩定
若:
D ϕ 1 ( x ) ≉ D ϕ 2 ( x ) D_{\phi_1}(x)
\not\approx
D_{\phi_2}(x) D ϕ 1 ( x ) ≈ D ϕ 2 ( x )
且無法建立校準,則深度可能只是模型產物。
54.4 動態路由不如固定深度
若在等算力條件下:
P e r f a d a p t i v e ≤ P e r f f i x e d Perf_{adaptive}
\leq
Perf_{fixed} P er f a d a pt i v e ≤ P er f f i x e d
則工程價值不足。
55. 最小實驗一:語料深度預測
建立樣本:
短事實;
長文本;
多步因果;
證明;
理論系譜;
遞歸程序。
對每個樣本測:
P e r f ( x , d ) Perf(x,d) P er f ( x , d )
其中:
d = 1 , … , L d=1,\dots,L d = 1 , … , L
計算:
D M S C D_{MSC} D M S C
再訓練:
D ^ ( x ) \hat D(x) D ^ ( x )
預測。
56. 最小實驗二:相同長度不同深度
控制:
L e n g t h ( x i ) ≈ L e n g t h ( x j ) Length(x_i)\approx Length(x_j) L e n g t h ( x i ) ≈ L e n g t h ( x j )
但人工或圖結構設計:
D ( x i ) ≠ D ( x j ) D(x_i)\neq D(x_j) D ( x i ) = D ( x j )
測試自適應路由。
57. 最小實驗三:相同相似度不同關係深度
選擇:
S i m ( i , j ) ≈ S i m ( k , l ) Sim(i,j)\approx Sim(k,l) S im ( i , j ) ≈ S im ( k , l )
但:
D r e l ( i , j ) ≠ D r e l ( k , l ) D_{rel}(i,j)\neq D_{rel}(k,l) D r e l ( i , j ) = D r e l ( k , l )
檢驗 embedding similarity 是否不足。
58. 最小實驗四:記憶與深化替代
比較:
寫入權重;
外部記憶;
額外深度;
三分路由。
測:
A c c u r a c y + L a t e n c y + E n e r g y + U p d a t e a b i l i t y Accuracy
+
Latency
+
Energy
+
Updateability A cc u r a cy + L a t e n cy + E n er g y + U p d a t e abi l i t y
59. 最小實驗五:異構硬體映射
同一 workload:
W W W
分成:
W B , W D , W M W_B,W_D,W_M W B , W D , W M
比較:
all-GPU;
CPU+GPU;
CPU+GPU+NPU;
simulator-based specialized depth engine。
60. 評估指標
定義:
M = ( A c c u r a c y , C o m p u t e , L a t e n c y , E n e r g y , M e m o r y , T r a c e a b i l i t y , D e p t h C a l i b r a t i o n ) M
=
(
Accuracy,
Compute,
Latency,
Energy,
Memory,
Traceability,
DepthCalibration
) M = ( A cc u r a cy , C o m p u t e , L a t e n cy , E n er g y , M e m or y , T r a ce abi l i t y , D e pt h C a l ib r a t i o n )
其中深度校準:
E C E D ECE_D E C E D
可類比 calibration error。
61. 消融實驗
依次移除:
depth estimator;
relational depth;
memory router;
breadth router;
nested representation;
heterogeneous scheduler。
觀察:
Δ P e r f o r m a n c e \Delta Performance Δ P er f or man ce
62. 最小可行架構
Input Corpus
↓
Breadth Encoder
↓
Candidate Graph
↓
Intrinsic Depth Estimator
↓
Breadth / Depth / Memory Router
├─ Breadth Accelerator
├─ Depth Engine
└─ Memory Engine
↓
Nested Representation Fusion
↓
Task Output
63. 最小資料結構
unit_id: X-001
content:
hash: ...
depth:
lexical: 0.12
semantic: 0.61
contextual: 0.48
causal: 0.77
logical: 0.83
genealogical: 0.20
meta: 0.33
recursive: 0.08
routing:
breadth_budget: 0.25
depth_budget: 0.60
memory_budget: 0.15
confidence:
depth_estimate: 0.72
64. 與高維向量矩陣的結合
一般矩陣:
X ∈ R n × d X
\in
\mathbb R^{n\times d} X ∈ R n × d
本文增加深度軸:
X ∈ R n × d × L \mathcal X
\in
\mathbb R^{n\times d\times L} X ∈ R n × d × L
但 L L L 可變。
因此更接近:
X i ∈ R d × L i \mathcal X_i
\in
\mathbb R^{d\times L_i} X i ∈ R d × L i
65. Ragged Nested Tensor
由於:
L i ≠ L j L_i
\neq
L_j L i = L j
可採:
Z = { Z 1 1 : L 1 , … , Z n 1 : L n } \mathcal Z
=
\{
Z_1^{1:L_1},
\dots,
Z_n^{1:L_n}
\} Z = { Z 1 1 : L 1 , … , Z n 1 : L n }
形成 ragged nested representation。
66. 效率問題
若直接保存:
O ( n d L ) O(ndL) O ( n d L )
成本可能過高。
因此需要:
sparse depth;
shared prefixes;
low-rank depth states;
checkpointing;
quantization;
conditional materialization。
67. 只在需要時實體化深層
定義:
Z i ( ℓ ) Z_i^{(\ell)} Z i ( ℓ )
只有當:
p i ( ℓ ) > θ p_i^{(\ell)}
>
\theta p i ( ℓ ) > θ
才生成。
因此:
C o m p u t e ∝ ∑ i L i Compute
\propto
\sum_i L_i C o m p u t e ∝ i ∑ L i
而非:
n L m a x nL_{max} n L ma x
68. 深度狀態壓縮
對:
Z i ( 0 : L ) Z_i^{(0:L)} Z i ( 0 : L )
可壓縮:
Z ~ i = C o m p r e s s ( Z i ( 0 : L ) ) \tilde Z_i
=
Compress(
Z_i^{(0:L)}
) Z ~ i = C o m p r ess ( Z i ( 0 : L ) )
並保留重展開索引。
69. 自適應與穩定性的衝突
高度動態路由可能造成:
training instability;
load imbalance;
device underutilization;
non-determinism。
因此需要:
L b a l a n c e \mathcal L_{balance} L ba l an ce
與:
C a p a c i t y C o n s t r a i n t CapacityConstraint C a p a c i t y C o n s t r ain t
70. 硬體負載平衡
若大量樣本同時被判為深:
∑ i d i ≫ C a p a c i t y D \sum_i d_i
\gg
Capacity_D i ∑ d i ≫ C a p a c i t y D
則需要:
queue;
defer;
approximate;
spillover。
需要 scheduler:
S : T a s k s → D e v i c e s S:
Tasks
\rightarrow
Devices S : T a s k s → D e v i ces
71. 深度預算市場
可將資源分配寫成:
max ∑ i U i ( d i ) \max
\sum_i U_i(d_i) max i ∑ U i ( d i )
subject to:
∑ i C i ( d i ) ≤ B \sum_i C_i(d_i)
\leq
B i ∑ C i ( d i ) ≤ B
形成 compute allocation optimization。
72. 深度權重更新
並非所有深層結果都應寫回權重。
可定義:
W i = g ( N o v e l t y , S t a b i l i t y , G e n e r a l i z a b i l i t y , R e u s e ) W_i
=
g(
Novelty,
Stability,
Generalizability,
Reuse
) W i = g ( N o v e l t y , S t abi l i t y , G e n er a l i z abi l i t y , R e u se )
只有高價值結構才:
U p d a t e W e i g h t s UpdateWeights U p d a t e W e i g h t s
其他保留:
E x t e r n a l M e m o r y ExternalMemory E x t er na l M e m or y
73. 從「多看幾次」到「多理解幾層」
傳統重複訓練可能:
x , x , x , x x,x,x,x x , x , x , x
本文提出另一方向:
x ( 0 ) → x ( 1 ) → x ( 2 ) x^{(0)}
\rightarrow
x^{(1)}
\rightarrow
x^{(2)} x ( 0 ) → x ( 1 ) → x ( 2 )
其中每層增加:
即:
重複暴露與結構深化是不同訓練操作。
74. 深度學習的另一重含義
本文不改寫既有「Deep Learning」術語。
但提出:
未來可區分 network depth 與 corpus depth。
即:
D e e p N e t w o r k Deep\ Network D ee p N e tw or k
與:
D e e p C o r p u s S t r u c t u r e Deep\ Corpus\ Structure D ee p C or p u s S t r u c t u r e
不是同一概念。
75. 可能的新學習範式
本文暫稱:
Depth-Conditioned Learning
或:
Intrinsic-Depth Adaptive Learning
核心:
D a t a → D e p t h E s t i m a t e → R e s o u r c e R o u t i n g → N e s t e d L e a r n i n g Data
\rightarrow
DepthEstimate
\rightarrow
ResourceRouting
\rightarrow
NestedLearning D a t a → D e pt h E s t ima t e → R eso u r ce R o u t in g → N es t e d L e a r nin g
76. 與人類學習的類比限制
人類可被粗略類比:
但本文不主張:
H u m a n B r a i n = C P U / G P U HumanBrain
=
CPU/GPU H u man B r ain = C P U / GP U
此類比只作啟發。
77. 研究限制
77.1 內在深度可能不存在唯一值
D ( x ) D(x) D ( x )
高度任務依賴。
77.2 深度標籤昂貴
人工標註可能主觀。
77.3 表徵深度可能模型依賴
不同模型看見不同深度。
77.4 硬體分工可能被未來架構推翻
本文不綁死 CPU/GPU。
77.5 嵌套層數可能增加記憶成本
需要稀疏化。
78. 主要總猜想
語料內在深度異質性猜想
給定語料:
X \mathcal X X
存在:
x i , x j x_i,x_j x i , x j
使:
L e n g t h ( x i ) ≈ L e n g t h ( x j ) Length(x_i)\approx Length(x_j) L e n g t h ( x i ) ≈ L e n g t h ( x j )
D i f f i c u l t y ( x i ) ≈ D i f f i c u l t y ( x j ) Difficulty(x_i)\approx Difficulty(x_j) D i f f i c u l t y ( x i ) ≈ D i f f i c u l t y ( x j )
但:
D M S C ( x i , τ ) ≠ D M S C ( x j , τ ) D_{MSC}(x_i,\tau)
\neq
D_{MSC}(x_j,\tau) D M S C ( x i , τ ) = D M S C ( x j , τ )
且差異可由關係、因果、邏輯、系譜或遞歸結構部分解釋。
深度可路由猜想
若:
D ^ ( x ) \hat{\mathbf D}(x) D ^ ( x )
具有足夠校準能力,則:
D c o m p u t e ∗ = F ( D ^ , τ , B ) D_{compute}^{\ast}
=
F(
\hat{\mathbf D},
\tau,
B
) D co m p u t e ∗ = F ( D ^ , τ , B )
可在固定平均資源下提高效用。
三分資源猜想
在混合 AI 工作負載中:
B r e a d t h + D e p t h + M e m o r y Breadth
+
Depth
+
Memory B r e a d t h + D e pt h + M e m or y
比單純:
M o r e U n i f o r m C o m p u t e More\ Uniform\ Compute M or e U ni f or m C o m p u t e
更接近高效率資源分配。
79. 核心總公式
本文核心可壓縮為:
D ( x ) = ( D s e m a n t i c , D r e l a t i o n a l , D c a u s a l , D l o g i c a l , D g e n e a l o g i c a l , D m e t a , D r e c u r s i v e ) \boxed{
\mathbf D(x)
=
(
D_{semantic},
D_{relational},
D_{causal},
D_{logical},
D_{genealogical},
D_{meta},
D_{recursive}
)
} D ( x ) = ( D se man t i c , D r e l a t i o na l , D c a u s a l , D l o g i c a l , D g e n e a l o g i c a l , D m e t a , D r ec u r s i v e )
R ( x ) = ( b , d , m ) \boxed{
R(x)
=
(
b,
d,
m
)
} R ( x ) = ( b , d , m )
D c o m p u t e ∗ ( x , τ ) = F θ ( D ( x ) , D r e l ( x ) , τ , B ) \boxed{
D_{compute}^{\ast}(x,\tau)
=
F_\theta
\left(
\mathbf D(x),
\mathbf D_{rel}(x),
\tau,
B
\right)
} D co m p u t e ∗ ( x , τ ) = F θ ( D ( x ) , D r e l ( x ) , τ , B )
80. 結論
本文提出「語料內在深度場」與「異構自適應學習」框架。
其最核心的轉換不是:
C P U → D e e p CPU
\rightarrow
Deep C P U → D ee p
G P U → W i d e GPU
\rightarrow
Wide GP U → W i d e
而是:
U n i f o r m C o m p u t e → D e p t h − A w a r e R e s o u r c e A l l o c a t i o n \boxed{
Uniform\ Compute
\rightarrow
Depth\!-\!Aware\ Resource\ Allocation
} U ni f or m C o m p u t e → D e pt h − A w a r e R eso u r ce A l l oc a t i o n
以及:
F l a t E m b e d d i n g → D e p t h − C o n d i t i o n e d N e s t e d R e p r e s e n t a t i o n \boxed{
Flat\ Embedding
\rightarrow
Depth\!-\!Conditioned\ Nested\ Representation
} F l a t E mb e dd in g → D e pt h − C o n d i t i o n e d N es t e d R e p r ese n t a t i o n
本文認為,未來 AI 的資料處理可能不只問:
這段語料與什麼相似?
還應問:
這段語料自身有多深?
它與另一段語料之間的關係有多深?
此任務值得投入多少額外計算?
這部分應學入權重、深入推進,還是只需寫入記憶?
因此,AI 資源路由可由:
S i m i l a r i t y Similarity S imi l a r i t y
逐步擴展至:
S i m i l a r i t y + D e p t h + T a s k + B u d g e t Similarity
+
Depth
+
Task
+
Budget S imi l a r i t y + D e pt h + T a s k + B u d g e t
最終形成:
B r e a d t h ↔ D e p t h ↔ M e m o r y \boxed{
Breadth
\leftrightarrow
Depth
\leftrightarrow
Memory
} B r e a d t h ↔ D e pt h ↔ M e m or y
的動態循環。
若本文主要命題成立,則「深度」將不再只是神經網路有幾層,而可能成為:
語料結構、理論關係、計算資源與異構硬體之間的共同中介座標。
附錄 A:一句話版本
不是所有語料都應被同樣深地計算;最佳計算深度應由語料自身的候選語義深度、關係深度、當前任務與資源預算共同決定。
附錄 B:三分架構
A I = B r e a d t h + D e p t h + M e m o r y \boxed{
AI
=
Breadth
+
Depth
+
Memory
} A I = B r e a d t h + D e pt h + M e m or y
附錄 C:三分路由
π θ ( x , τ , C , D ) → ( b , d , m ) \boxed{
\pi_\theta
(
x,
\tau,
C,
\mathbf D
)
\rightarrow
(
b,d,m
)
} π θ ( x , τ , C , D ) → ( b , d , m )
附錄 D:嵌套表示
Z i = { Z i ( 0 ) , Z i ( 1 ) , … , Z i ( L i ) } \boxed{
\mathcal Z_i
=
\{
Z_i^{(0)},
Z_i^{(1)},
\dots,
Z_i^{(L_i)}
\}
} Z i = { Z i ( 0 ) , Z i ( 1 ) , … , Z i ( L i ) }
其中:
L i = g ( x i , τ , C , B ) \boxed{
L_i
=
g(
x_i,
\tau,
C,
B
)
} L i = g ( x i , τ , C , B )
附錄 E:最小系統流程
Input
↓
Breadth Encoder
↓
Candidate Graph
↓
Depth Estimator
↓
Breadth / Depth / Memory Router
├─ Breadth Compute
├─ Depth Compute
└─ External Memory
↓
Nested Representation Fusion
↓
Output
附錄 F:與既有方向的概念邊界
Mixture-of-Depths
└─ 動態分配 token 計算量
Universal Transformer
└─ 共享轉換與自適應重複計算
Mixture-of-Recursions
└─ 參數共享 + 動態遞歸深度
Matryoshka Representation Learning
└─ 粗到細、不同容量的嵌套表示
本文
└─ 候選語料內在深度
+ 關係深度
+ 廣度/深度/記憶路由
+ 嵌套表示
+ 異構硬體映射
附錄 G:可直接實作的 MVP 模組
1. Corpus Encoder
2. Intrinsic Depth Estimator
3. Relational Depth Estimator
4. Candidate Graph
5. Breadth Router
6. Depth Router
7. Memory Router
8. Nested Representation Store
9. Heterogeneous Scheduler
10. Evaluation Harness
附錄 H:特別聲明
本文不宣稱:
語料存在唯一客觀深度;
CPU 必然最適合所有深度任務;
GPU 只能處理廣度;
嵌套表示本身為本文首次提出;
動態計算深度為本文首次提出;
所有深度都能由單一模型正確估計;
增加計算深度必然改善結果;
AI 應將所有知識寫入權重;
外部記憶可完全取代模型學習。
本文的定位是:
提出一個將語料候選內在深度、關係深度、自適應計算、外部記憶與異構硬體路由統一到同一方法論框架中的可檢驗研究方向。
參考資料
Raposo, D. et al. (2024). Mixture-of-Depths: Dynamically allocating compute in transformer-based language models . arXiv:2404.02258.
Dehghani, M. et al. (2018). Universal Transformers . arXiv:1807.03819.
Kusupati, A. et al. (2022). Matryoshka Representation Learning . arXiv:2205.13147.
Bae, S. et al. (2025). Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation . arXiv:2507.10524.
Sapunov, G. et al. (2026). Depth-State Trade-offs in Adaptive Recursive Reasoning . arXiv:2604.21999.
文件結束