從專用計算器到自治計算平台:Benchmark、路由與 AI Orchestration
系列:外掛式物理計算機與現場計算設備研究,第 7 篇
英文系列名:External Physical Compute Appliances and Field Computing Systems
英文篇名:From Dedicated Calculators to Autonomous Compute Platforms: Benchmarking, Routing, and AI Orchestration
版本:v0.1
作者: Neo.K
機構: EveMissLab/一言諾科技有限公司
日期:2026-08-29
狀態:公開草稿/EPCA 系列收斂篇;Benchmark、Requirement Manifest、Execution Planning、Deterministic Orchestration 與 Optional AI Orchestration 架構
摘要
Paper 00 至 Paper 06 已依序建立 External Physical Compute Appliance(EPCA)的設備總綱、Carrier-Generalized Abacus、Observable Physical Computation、Supervisor–Physical-Core Separation、Offline-First Field Autonomy、Multi-Substrate Compute Backplane,以及 Mixed-Precision Evidence-Bearing Computation。到此為止,一台 EPCA 已可以具有 optical、RF、acoustic、analog、FPGA、compute-in-memory(CIM)或其他 physical compute module;它能在本地啟動、失聯運作、更新恢復、校正模組、保存 raw evidence,並把最終輸出交付為帶有 provenance 的 computation object。
然而,當同一設備同時存在多條可執行路徑時,新的問題立即出現:
同一個任務到底應該送到哪一個 compute substrate?
這個問題不能只用「誰的 FLOPS 高」回答。某個 optical path 可能具有極低 latency,卻需要 warm-up 與 calibration;某個 analog/CIM path 可能很省能,卻只能在特定 error envelope 內工作;FPGA 可能具有可預測 real-time latency,但 configuration cost 不低;CPU 可能最慢,卻具有最高 deterministic exactness 與最完整 software support。更重要的是,EPCA 的選擇還必須同時遵守 Paper 02 至 Paper 06 已建立的 evidence、authority、offline、module 與 result assurance 約束。
本文提出 EPCA Benchmark and Orchestration Framework(EBOF)。其核心不是建立一個新的單一 benchmark 排名,而是建立:
Task Requirement Manifest+Capability/Benchmark Snapshot+Hard Constraint Gate+Candidate Route Set+Cost/Assurance Model+Deterministic Execution Plan
本文將任務需求寫成:
Rτ=(F,D,Q,L,E,A,O,C,S,P),
其中包含 functional requirement、data/shape domain、quality/precision、latency、energy、assurance minima、offline requirement、physical contribution constraint、safety/security constraint 與 provenance/evidence policy。每個 module 或 execution path 則以 versioned capability descriptor:
Ki(t)=(Φi,Ωi,Λi,Ei,Qi,Ai,Ki,Hi,Wi)
描述其 operator set、valid operating domain、latency、energy、quality/error envelope、assurance ceiling、calibration state、health 與 wear/configuration state。
本文主張,EPCA routing 的第一步不是 optimization,而是 eligibility:
Cτ(t)={p∣p⊨Hτ(t)}.
只有通過所有 hard constraints 的 route 才能進入後續成本比較。其後才使用 Pareto frontier、lexicographic policy 或明確 versioned objective policy 進行 deterministic selection。這避免「低 assurance 但很快」的路徑用一個漂亮的加權總分蓋過真正不可違反的科研或工程要求。
本文同時提出五層 benchmark family:primitive benchmark、module benchmark、pipeline benchmark、field-state benchmark 與 assurance/evidence benchmark。Benchmark result 必須綁定 module identity、firmware/runtime、algorithm mapping、calibration version、environment envelope、sample size 與 uncertainty,而不是把歷史上某次最佳數字永久當成設備能力。
在 orchestration 上,本文首先定義完全不需要 AI 的 deterministic planner:
ΠD:(Rτ,St,Bv,Pv)↦X
其中 St 是 system state, Bv 是 benchmark/capability database version, Pv 是 planner policy version, X 是完整 execution plan。對相同輸入快照與相同版本,planner 應具有 reproducibility:
ΠD(R,S,Bv,Pv)=ΠD(R,S,Bv,Pv).
未來 AI 可以加入,但 AI 的位置被限定為 proposal/search/explanation layer,而不是最終 authority:
AI Proposal→Deterministic Validation→Plan Commit→Execution.
AI 不得自行降低 assurance、偽造 benchmark、跳過 calibration、把 digital fallback 偽裝成 physical-primary,或繞過 Paper 02 至 Paper 06 的任何 evidence gate。
本文新增 Orchestration Assurance(ORA-O0 至 ORA-O5),並將 EPCA 最終 assurance 座標收斂為:
QEPCA=(OPC\mbox−V,ESA\mbox−S,LFA\mbox−F,MSA\mbox−M,CRA\mbox−R,ORA\mbox−O).
Paper 07 因而完成 EPCA-4:Autonomously Orchestrated Compute Platform 的理論閉合。但「autonomous」在此不表示不可控的 AI;它表示 appliance 能在 task constraints、module state、benchmark evidence 與明確 authority boundary 下,自主形成、驗證、執行、監測與必要時重新規劃計算路徑。
關鍵詞: EPCA、Heterogeneous Computing、Benchmarking、Task Routing、Accelerator Scheduling、Execution Planning、Capability Descriptor、Requirement Manifest、Deterministic Orchestration、AI Orchestration、Pareto Routing、Provenance、Assurance、Field Computing、Physical Computing
1. 最後一個缺口:誰決定「在哪裡算」
Paper 05 已允許:
P1,P2,…,Pn
同時存在於同一台 appliance。
Paper 06 又允許:
physical+digital+refinement+verification
形成多階段計算鏈。
這意味著對同一個任務 τ,可能同時存在:
p1,p2,…,pk.
它們都「可以算」,但不代表都「應該被選」。
2. Routing 不只是 device selection
最簡單的 heterogeneous offload 問題常被寫成:
task→device.
EPCA 更接近:
task graph→execution path
因為一條 path 可能包括:
- preprocessing;
- module configuration;
- warm-up;
- calibration check;
- physical primitive;
- readout;
- digital refinement;
- cross-validation;
- evidence commit;
- final result commit。
因此選擇的不是一顆晶片,而是一條計算因果鏈。
3. Execution Path
定義 execution path:
p=(v1,v2,…,vn),
其中每個 vj 可以是:
- CPU step;
- FPGA step;
- optical/RF/acoustic physical step;
- ADC/DAC/readout;
- calibration step;
- verification step;
- refinement step;
- storage/evidence step。
路徑成立不只要求 functional compatibility,還要求整條鏈符合 task contract。
4. Task Requirement Manifest
本文使用:
Rτ=(F,D,Q,L,E,A,O,C,S,P).
這不是單一 API 必須採用的欄位格式,而是一個 canonical semantic model。
5. Functional Requirement F
F 描述任務要做什麼,例如:
F=FFTN,
或:
F=Ax,
或:
F=root solve,
或一個 DAG:
F=Gτ=(Vτ,Eτ).
6. Data Domain D
同一 operator 在不同輸入 domain 下可能完全不同。
因此必須聲明:
D=(shape,range,sparsity,stream/batch,rate).
一個只在 64×64 matrix 上校正過的 photonic module,不能因為名字叫 matrix multiplier 就自動承諾任意大小。
7. Quality Requirement Q
Q 可以包含:
Q=(ϵmax,umax,qmin,confidence).
其中:
- ϵmax:最大允許 numerical/task error;
- umax:允許 uncertainty;
- qmin:最低品質等級;
- confidence:統計或驗證要求。
8. Latency Requirement L
Latency 不只是一個平均值。
可能需要:
L=(Tdeadline,Tp99,Jmax),
其中 Jmax 是 jitter constraint。
對 real-time field appliance,平均很快但 tail latency 很差,可能不可用。
9. Energy Requirement E
可以寫成:
E=(Emax,Pmax,Pthermal).
這使 battery-powered、passively cooled 或熱受限現場設備可以使用不同 policy。
10. Assurance Requirement A
Paper 02 至 Paper 06 已提供五個 assurance 維度。
因此:
Amin=(Vmin,Smin,Fmin,Mmin,Rmin).
任何候選 route 若低於其中一個 hard minimum:
p∈/Cτ.
11. Offline Requirement O
任務可聲明:
O∈{network-allowed,offline-preferred,offline-required}.
若:
O=offline-required,
則 Paper 04 的:
LECτ(t)=1
成為硬門檻。
12. Physical Contribution Constraint C
有些任務只是要答案。
另一些科研任務要求 physical core 真的參與。
因此:
C∈{digital-allowed,hybrid,physical-primary,physical-required}.
這直接連到 Paper 06 的 Physical Contribution Class。
13. Safety and Security Constraint S
某些 module 可能具有:
- laser emission;
- RF emission;
- high-voltage analog front end;
- thermal limit;
- mechanical/acoustic power limit。
因此某條 route 在 laboratory mode 合法,不代表在 field enclosure 下合法。
14. Provenance/Evidence Policy P
任務可要求:
P=(retention,raw-evidence,replay,signing,audit).
因此 benchmark winner 不一定是 evidence cost 最低者。
15. Capability Descriptor 不是規格表廣告
對 module i:
Ki(t)=(Φi,Ωi,Λi,Ei,Qi,Ai,Ki,Hi,Wi).
這是 runtime 可用能力,不是 datasheet peak number。
16. Operator Set Φi
Φi 描述:
Φi={f1,f2,…,fm}.
但每個 operator 都必須綁定 operating domain。
17. Valid Operating Domain Ωi
例如:
Ωi=[Tmin,Tmax]×[Vmin,Vmax]×calibration-state.
只要離開:
st∈/Ωi,
能力聲明就應降級或失效。
18. Latency Profile Λi
不應只存:
T=3 ns.
而應至少區分:
Ttotal=Tsetup+Ttransfer+Tcompute+Treadout+Tverify+Trefine.
19. Energy Profile Ei
同樣地:
Etotal=Eidle+Econfigure+Ecompute+Econversion+Ecooling+Everify.
因此只報 core operation energy 可能嚴重誤導。
20. Quality Envelope Qi
Qi 必須與 Paper 06 的 calibration/error model 相容。
它不是:
accuracy=99.9%.
而是 task/domain-relative:
Qi=Q(F,D,κt,θt).
21. Assurance Ceiling Ai
某 module 即使速度極快,若只能提供 OPC-V1:
AiV=1,
就不能執行要求 OPC-V4 的科研任務。
22. Calibration State Ki
Routing 必須知道:
κi∈{valid,stale,invalid,unknown}.
若 calibration 是 hard requirement:
κi=valid⇒pi∈/Cτ.
23. Health State Hi
包含:
- temperature;
- voltage;
- laser/transducer health;
- sensor health;
- ECC/error counters;
- drift;
- fault history。
24. Wear and Reconfiguration State Wi
對 phase-change、memristive、flash-like、mechanical 或有有限 configuration lifetime 的 module,routing 不應假設每一次使用成本相同。
可以加入:
Wi=estimated wear cost.
25. Benchmark 不是一張排行榜
EPCA benchmark 的目的不是回答:
哪一個 substrate 最強?
而是回答:
在明確條件下,它現在能對哪些任務作出什麼可驗證承諾?
26. Benchmark Family B0:Primitive Benchmark
測試最小 primitive:
- add;
- MAC;
- transform;
- routing;
- correlation;
- convolution;
- threshold;
- matrix tile。
Primitive benchmark 用來建立底層模型,不直接代表 end-to-end performance。
27. Benchmark Family B1:Module Benchmark
Module benchmark 包含:
input→module→readout.
開始納入:
- conversion;
- transfer;
- calibration;
- readout;
- module-local control。
28. Benchmark Family B2:Pipeline Benchmark
測量:
encode→P→readout→refine→y.
這才接近實際可交付計算。
29. Benchmark Family B3:Field-State Benchmark
在不同:
(T,V,H,network,battery,load)
條件下量測。
Field appliance 不應只在實驗室最佳狀態有 benchmark。
30. Benchmark Family B4:Assurance/Evidence Benchmark
測量 verification 本身的成本:
Tevidence,Eevidence,Sevidence.
因為 OPC-V5 / CRA-R5 並不是免費的。
31. Benchmark Snapshot
每一筆 benchmark 應被視為:
b=(m,f,d,vfw,vrt,κ,θ,n,μ,σ,t).
至少包含 module、operator、domain、版本、calibration、operating condition、sample count、統計與時間。
32. Peak Number 不能永久成為 Capability
如果某次在最佳條件測得:
Tmin=1,
不代表所有後續任務都能假設:
T=1.
因此:
Benchmark Observation=Permanent Capability Guarantee.
33. Capability 由 Benchmark + Contract + Current State 形成
runtime capability 更接近:
Ki(t)=G(Bi,Ci,Si(t)).
也就是歷史 benchmark、module contract 與現在 state 的交集。
34. Routing 的第一步:Hard Constraint Gate
定義:
Hτ={h1,h2,…,hn}.
候選 path 集:
Cτ(t)={p∣∀h∈Hτ, h(p,t)=1}.
35. 不可用 Weighted Score 赦免 Hard Failure
若:
V(p)<Vmin,
即使:
T(p)→0,
也不能靠速度分數補回來。
因此:
Hard Constraint↔Soft Tradeoff.
36. Candidate Set 為空時
若:
Cτ(t)=∅,
planner 必須回:
UNSATISFIABLE
或明確的:
DEGRADED_OPTION_REQUIRES_AUTHORIZATION.
不能偷偷降低要求。
37. Soft Objectives
通過 hard gate 後,才比較:
J(p)=(T,E,U,W,Ccfg,Cevid,Rrisk).
38. Pareto Frontier
若:
pa
在所有 objective 都不比 pb 差,而且至少一項更好,則 pb 可被支配。
定義:
Pτ=Pareto(Cτ).
先縮小 candidate,避免不透明總分。
39. Lexicographic Policy
例如 field real-time policy 可以定義:
deadline≻assurance margin≻energy≻wear.
科研 policy 可以是:
assurance≻uncertainty≻replayability≻latency.
40. Weighted Policy 不是禁止,但必須 Versioned
若使用:
S(p)=i∑wiJi(p),
則:
wi
必須成為 policy version 的一部分。
否則相同任務為何今天走 optical、明天走 FPGA 將無法重現。
41. Execution Plan
Planner 輸出:
X=(GX,BX,KX,VX,RX,FX),
其中:
- GX:execution DAG;
- BX:module/route bindings;
- KX:required calibration;
- VX:verification actions;
- RX:refinement actions;
- FX:fallback/recovery policy。
42. Execution Plan 不是建議文字
可執行 plan 必須明確到能被 supervisor 驗證。
例如:
v3↦(m2,operator7,κ42,q3).
而不是:
大概用光學比較快。
43. Plan Identity
可以定義:
IDX=H(Rτ∥St∥Bv∥Pv∥X).
它讓 result provenance 能回溯到「為什麼當時走這條路」。
44. Deterministic Planner 是第一個正式版本
本文首先要求:
ΠD:(Rτ,St,Bv,Pv)↦X.
不需要 AI。
45. Deterministic Reproducibility
對相同:
Rτ,St,Bv,Pv,
必須:
ΠD(Rτ,St,Bv,Pv)=ΠD(Rτ,St,Bv,Pv).
如果使用 randomized optimization,random seed 也必須進入 provenance。
46. Planner Policy Version
Pv 應包括:
- hard constraint semantics;
- objective order;
- tie-break rules;
- fallback policy;
- route blacklist;
- risk budget;
- benchmark freshness policy。
47. Tie-Break 必須明確
若兩條 route 完全同等,仍需 deterministic tie-break:
module ID≺route ID
或其他固定規則。
否則 plan replay 可能不一致。
48. Scheduling 與 Routing 的差異
Routing 回答:
which path?
Scheduling 回答:
when and in what order?
EPCA-4 同時需要兩者。
49. Task Graph
對 DAG:
Gτ=(V,E),
每個 node 都可能有多個候選 substrate:
C(vj)={ma,mb,mc}.
此時 planner 同時解 mapping 與 ordering。
50. Communication/Conversion Cost
跨 substrate 的 edge:
eij
可能包含:
- memory copy;
- ADC/DAC;
- serialization;
- optical/electrical conversion;
- RF/acoustic transduction;
- format conversion。
因此:
Tedge=0.
51. 「最快核心」可能讓整體更慢
如果:
TcoreA<TcoreB,
但:
TtransferA≫TtransferB,
就可能:
TtotalA>TtotalB.
這正是 heterogeneous scheduling 必須看 end-to-end chain 的原因。
52. Contention
多個 task 可能競爭:
- memory bus;
- ADC;
- DAC;
- PCIe/CXL link;
- optical source;
- RF front-end;
- shared FPGA fabric;
- evidence storage。
因此:
T(p,t)
是 system-state dependent。
53. Static Benchmark 不等於 Runtime Prediction
需要:
T^(p∣St).
Planner 可以從 benchmark database 建 model,但必須保留:
prediction=measurement.
54. Runtime Monitor
執行時監測:
Mt=(T,E,Q,U,H,C).
若實際值越過 contract:
Mt⊨Rτ,
才觸發 replan 或 fail policy。
55. Replanning 不是任意改路
動態 replanning 必須再次經過:
Requirement Gate→Capability Gate→Authority Gate.
它不能因為「原 route 慢」就改去一個 assurance 不合格的 route。
56. Plan Commit Gate
Paper 03 的 supervisor authority 可以擴展出:
Plan Commit Gate.
只有通過 validator 的 X 才能進入 execution。
57. Benchmark Integrity
Benchmark database 若可被任意修改,routing assurance 就失去意義。
因此:
Bv
必須 versioned、signed 或至少具有 immutable lineage。
58. Benchmark Freshness
對容易漂移的 substrate:
age(b)>Tmax
時,benchmark 只能作 historical prior,不應直接作 current guarantee。
59. Calibration-Aware Routing
若 route p1 要重新校正:
Tcal(p1)>0,
planner 應比較:
Tcal+Texec
而不是只看 compute time。
60. Warm-Up-Aware Routing
Laser、analog front-end、temperature-sensitive module 可能需要:
Twarm.
短任務可能根本不值得啟動最快的物理核心。
61. Batch-Amortized Routing
如果:
N≫1,
setup/calibration cost 可以被攤薄。
因此最優 route 可能隨 batch size 改變:
p∗(N1)=p∗(N2).
62. Energy-Amortized Routing
同理:
Esetup
對短任務和長任務的影響不同。
63. Evidence Cost-Aware Routing
如果任務要求 CRA-R5,某 route 需要保存巨大 raw waveform:
Sevid≫0.
另一個 route 可能較慢,但 evidence 更容易閉合。
科研模式下後者可能更好。
64. Wear-Aware Routing
若兩條 route 都符合 hard constraints,planner 可以避免總是選同一個有有限壽命的 module。
例如:
JW(p)=Δwear(p).
65. Risk-Aware Routing
可以加入:
Rrisk=P(failure∣St)×C(failure).
但 risk model 必須可審計,不能變成不透明黑箱。
66. Benchmark 不應只測 Speedup
EPCA 至少應同時保留:
(T,E,Q,U,A,Cevid,Ccfg,H).
否則「10 倍快」沒有足夠工程含義。
67. Cross-Substrate Benchmark
真正有用的比較單位應是同一 task contract:
Rτ.
而不是拿 optical MAC peak 與 CPU general workload peak 直接比。
68. Same Task, Same Evidence Boundary
比較時必須確保:
input boundary,output boundary,verification boundary
一致。
否則某一方只算 core、另一方算 full pipeline,數字不可比較。
69. Benchmark Claim Scope
任何 benchmark claim 都應寫成:
Claim=(τ,D,S,A,Bv).
而不是:
EPCA 比 GPU 快 100 倍。
70. No Universal Winner Principle
只要不同 task 對:
T,E,Q,A,O,P
的權重不同,就不存在單一 universal winner。
因此:
Heterogeneous Platform⇒Contextual Optimality.
71. 這正是 EPCA-4 的理由
EPCA-3 已有多 substrate。
EPCA-4 的必要條件不是再多裝一顆 accelerator,而是:
the appliance can decide among valid compute paths.
72. Autonomous 不等於 AI
本文定義:
Autonomous=local closed-loop planning under declared constraints.
因此 deterministic planner 完全可以是 autonomous。
73. AI 不應是架構成立的前提
第一代:
EPCA\mbox−4 can be fully deterministic.
這對 offline field operation、verification 與 certification 更容易。
74. AI 最適合加入哪裡
AI 比較適合:
- task decomposition proposal;
- unknown operator mapping suggestion;
- benchmark anomaly explanation;
- multi-objective search heuristic;
- route candidate generation;
- natural-language requirement compilation;
- experiment design;
- failure diagnosis。
而不是直接擁有 final execution authority。
75. AI Proposal Layer
定義:
ΠAI(Rτ,St,Bv)→{X1,…,Xk}.
AI 可以提出候選 plan。
76. Deterministic Validator
每個 AI proposal 必須經:
VD(X,Rτ,St,Bv,Pv)∈{ACCEPT,REJECT}.
77. AI 沒有權限改 Requirement Manifest
如果:
Rτ
要求 OPC-V4,AI 不可以因為「速度更快」改成 OPC-V2。
只有具有明確 authority 的使用者/policy layer 才能建立新 manifest。
78. AI 不得偽造 Benchmark
AI 可以估計:
T^,
但估計必須標為:
predicted.
不能寫入:
Bv
當成 measured benchmark,除非真的執行 benchmark protocol。
79. AI 不得跳過 Calibration
若:
κi=invalid,
validator 必須拒絕依賴該 calibration 的 physical-primary route。
AI 的信心不能取代 calibration evidence。
80. AI 不得 Silent Substitute
如果 physical route 失敗,AI 不能把 CPU 重算結果偷偷包成原 route 結果。
Paper 03 與 Paper 06 的:
No Silent Substitution+Refinement Non-Erasure
仍然成立。
81. AI Plan 必須可編譯成 Canonical Plan
自然語言:
用較快的光學路徑,必要時補數位修正。
不能直接執行。
必須被 lowering 成:
X.
82. Requirement Compiler
未來可以有:
CR:Human/AI Intent→Rτ.
但生成後必須顯示/驗證 hard constraints。
83. Plan Compiler
可以有:
CX:High-Level Plan→Executable DAG.
這與現有 heterogeneous compiler infrastructure 的精神相容,但 EPCA 額外保留 assurance/evidence semantics。
84. MLIR 類中介層的啟示
現有 MLIR 的核心目標之一就是降低 heterogeneous hardware compiler fragmentation,允許多層 intermediate representation 與 target-specific lowering。
EPCA 可以借用這種思想:
Task IR→EPCA Plan IR→Module Binding.
但 EPCA Plan IR 還必須帶有:
assurance+calibration+evidence+offline
語義。
85. OpenMP / SYCL 的啟示
OpenMP target offload 與 SYCL 都已經證明:
one application→heterogeneous devices
可以有標準化 programming model。
EPCA 的差異是:
device compatibility+physical evidence compatibility.
86. EPCA 不必重新發明所有 Compiler
EPCA 可以把:
- MLIR;
- LLVM;
- OpenMP;
- SYCL;
- vendor SDK;
- FPGA toolchain
當作下層 backend。
新工作主要位於:
requirement+routing+assurance+evidence.
87. Planning Snapshot
在 plan commit 時保存:
Splan=(Rτ,St,Bv,Pv,X).
88. Execution Snapshot
執行開始保存:
Sexec.
如果 hardware state 已大幅改變:
d(Splan,Sexec)>δ,
應重新驗證。
89. Runtime Drift
若執行中:
κt→stale,
或 thermal state 超出 envelope,planner 需要依 policy:
- pause;
- recalibrate;
- replan;
- fail closed;
- explicit fallback。
90. Fallback 是 Plan 的一部分
不能等失敗後才臨時「想辦法」。
應在 X 中聲明:
FX=(f1,f2,…).
91. Fallback 也有 Assurance
若 primary route 是:
QEPCA≥q,
fallback 若低於要求:
qF<q,
就只能:
stop
或要求新的授權。
92. Retry Budget
Physical system 可能有 stochastic noise。
可以定義:
Nretry≤Nmax.
但 retry 不能無限重試直到「剛好得到想要答案」。
93. Adaptive Verification
若 first-pass confidence 足夠:
u≤utarget,
可使用低成本 verification。
若:
u>utarget,
再升級到 cross-path verification。
94. Adaptive Precision
同理:
coarse physical result→residual→refine only if needed.
Paper 06 的 mixed precision 在 Paper 07 變成 planner 的決策空間。
95. Planner 不只選 Module,也選 Precision Path
可能有:
p1:CIM 4-bit→CPU refine,
p2:FPGA fixed-point,
p3:CPU FP64.
三條都是 candidate path。
96. Planner 不只選 Precision,也選 Evidence Path
例如:
pa:OPC\mbox−V2,
pb:OPC\mbox−V5.
如果 task 只要求 V2,選 V5 可能浪費時間與儲存。
97. Assurance Is a Resource
因此:
Assurance has cost.
這不是要降低 assurance,而是讓 planner 知道不同任務需要多少 evidence。
98. Over-Verification 也可能是浪費
展示模式可能只需要:
V1/R1.
科研 publication mode 可能需要:
V5/R5.
兩者不應被強迫使用同一成本。
99. Mode Profiles
可以定義:
Demonstration Profile
優先:
observability+human legibility.
Field Profile
優先:
deadline+offline closure+recovery.
Research Profile
優先:
evidence+replay+uncertainty.
Throughput Profile
優先:
steady-state throughput+energy.
100. Profile 仍不能改 Hard Constraints
Profile 只是 soft policy template。
如果 task manifest 明確要求:
CRA\mbox−R5,
Throughput Profile 也不能降級。
101. Orchestration Assurance ORA
本文新增第六軸:
ORA\mbox−O0→ORA\mbox−O5.
102. ORA-O0 — Ad Hoc Routing
特徵:
- manual;
- undocumented;
- no requirement manifest;
- no reproducible plan。
適合原型,不適合正式聲明自治。
103. ORA-O1 — Declared Requirements
至少具有:
Rτ.
能說明為何某 route 被選。
104. ORA-O2 — Deterministic Eligibility Gate
具有:
Cτ={p∣p⊨Hτ}.
不允許硬約束被 soft score 蓋過。
105. ORA-O3 — Costed and Provenance-Bound Planning
保存:
Bv,Pv,St,X,IDX.
可以 replay「當時為什麼選這條路」。
106. ORA-O4 — Monitored and Recoverable Dynamic Orchestration
具備:
- runtime monitor;
- drift detection;
- bounded retry;
- declared fallback;
- replan gate;
- evidence-preserving recovery。
107. ORA-O5 — Independently Auditable Orchestration
要求:
- requirement manifest 可審計;
- benchmark/capability lineage 可審計;
- planner version 固定;
- plan commit 可重播;
- dynamic replan 有完整證據;
- 若 AI 參與,AI 僅 proposal,deterministic validator 保留 final gate。
108. ORA-O5 不等於一定需要 AI
ORA\mbox−O5⇒AI required.
完全 deterministic 的 planner 也可以達到 O5。
109. AI 的 Assurance 不是另一套物理真理
AI 只增加:
search capacity+proposal flexibility+explanation.
不增加:
physical authority.
110. 最終六軸座標
系列收斂為:
QEPCA=(OPC\mbox−V,ESA\mbox−S,LFA\mbox−F,MSA\mbox−M,CRA\mbox−R,ORA\mbox−O).
111. 六軸不能平均
例如:
(5,5,0,5,5,5)
不能因平均很高就稱為良好 field appliance。
因為:
LFA\mbox−F0
表示它仍是 network-bound。
112. 六軸是 Capability Vector
因此:
QEPCA
應被視為 constraint vector,而不是 maturity scalar。
113. EPCA-0 至 EPCA-4 的最終解釋
EPCA-0
Observable Physical Calculator。
EPCA-1
Supervised Physical Calculator。
EPCA-2
Offline-First Field Appliance。
EPCA-3
Modular Multi-Substrate Appliance。
EPCA-4
Autonomously Orchestrated Compute Platform。
114. EPCA-4 的最低定義
本文建議至少:
ORA\mbox−O2
才能宣稱有基本 autonomous routing。
正式科研/工程平台則應往:
ORA\mbox−O4/O5
前進。
115. 第一代 MVP 不需要做到 EPCA-4 全部
如果未來真正實作,可以先:
one physical module+one digital reference+one deterministic planner.
116. 最小 Demonstrator Route
例如:
Rτ→{pphysical,pdigital}→ΠD→X.
兩條 path 已足以證明 routing architecture。
117. 第一代 Benchmark Database 也可以很小
只要:
- 10 至 20 種 task;
- 幾種 input size;
- latency;
- error;
- energy;
- calibration validity;
- evidence cost。
即可開始。
118. 最重要的是 Semantic Correctness
MVP 不必一開始追求:
maxperformance.
更重要是:
route selection can be explained, reproduced, and falsified.
119. 為什麼這跟一般 Accelerator Runtime 不完全相同
一般 accelerator runtime 主要關心:
compatibility+performance+resource utilization.
EPCA 額外把:
physical causality+calibration+assurance+evidence+offline closure
放進 first-class semantics。
120. 為什麼這跟 Scientific Instrument 也不完全相同
傳統 scientific instrument 通常:
instrument function
相對固定。
EPCA 則:
replaceable compute substrate+replaceable algorithm package+dynamic route.
所以它介於 calculator、instrument、accelerator 與 computer 之間,但不能完全被其中任何一個類別吸收。
121. 這也完成「讓計算機回到計算本身」
Paper 00 的起點是:
Machine exists because there is something to compute.
Paper 07 回到同一命題,但現在機器不只會算,還會在限制內決定:
how this computation should physically happen.
122. 從算盤到自治路由
整個系列真正的演化可以壓縮成:
bead→carrier→field/wave state→observable physical computation→verified compute core→field appliance→replaceable substrates→evidence-bearing result→autonomous routing.
123. 但自主性沒有消除因果責任
即使未來 AI planner 很強:
proposal quality↑,
仍不推出:
authority↑
到可以繞過 architecture。
這延續 Paper 03:
Capability=Authority.
124. 未來 AI 可以做更高階的事情
例如從 task 自動發現:
F=f3∘f2∘f1
並提出:
f1↦RF,
f2↦CIM,
f3↦CPU refine.
但每一步仍須被 compiler/validator 證明符合 contract。
125. AI 也可以主動要求 Benchmark
如果 AI 發現:
Var[T^(p)]
太大,它可以提出:
先跑 calibration/benchmark probe,再選 route。
這是 AI 很適合的角色。
126. Active Benchmarking
定義 probe:
b∗=argbmaxInformationGain(b).
未來 planner 可以在運算前先花少量成本,降低 route uncertainty。
127. 這會讓 EPCA 變成會「認識自己硬體」的計算機
不是神秘自我意識,而是很工程化地:
self-characterizing compute appliance.
它持續知道:
- 哪些 module 可用;
- 哪些 benchmark 已過期;
- 哪些 calibration 需要更新;
- 哪些 route 最近失敗;
- 哪些 workload 最適合哪條 path。
128. Local Learning 也不必是 AI
最簡單可以只是:
EWMA,Kalman-like estimator,Bayesian update,table update.
用來更新 runtime cost model。
129. Learned Cost Model 必須與 Measured Evidence 分開
預測:
T^
不能覆寫實測:
Tobs.
兩者都進 provenance。
130. Model Drift
若:
∣T^−Tobs∣>δ
持續發生,planner 應降低 model confidence。
131. Offline Autonomy 與 Orchestration 相容
Paper 04 的核心是:
LECτ(t)=1.
因此 planner、benchmark snapshot、policy、module contract 都應可本地使用。
132. Cloud 不是控制平面的單點依賴
網路存在時可以:
- 更新 benchmark corpus;
- 下載新 algorithm package;
- 取得新 planner policy;
- 遠端審計;
- 協同模型。
斷網時:
existing authorized compute remains local.
133. Remote AI 也只是 Enhancement
若 AI orchestration 依賴 cloud model,斷網後仍應:
ΠD
接管基本 routing。
因此:
AI-enhanced=AI-dependent.
134. On-Device AI 的位置
未來 local model 可以:
ΠAIlocal.
但一樣經過:
VD.
135. 安全模式
若 planner database 損壞:
Bv=invalid,
設備應回到:
- known-safe route;
- digital reference route;
- restricted manual mode;
- fail closed。
而不是猜一條路。
136. Known-Safe Route
可以為每個 critical task 預先保存:
psafe.
它可能不是最快,但具有最強已知保證。
137. Emergency Compute
某些現場設備甚至可以定義:
Rτemergency
允許不同的 latency/energy policy,但 assurance 下限仍明確。
138. Benchmark Portability
不同 EPCA 之間可以交換 benchmark schema,但不能直接交換 performance truth。
因為:
Bi
綁定具體 module identity/environment。
139. Capability Template 與 Local Benchmark 的分離
Vendor 或研究者可以提供:
Kitemplate.
設備本地再形成:
Kilocal.
Planner 應優先相信 local validated state。
140. 公開研究的好處
由於本系列目前可以公開,未來可以讓不同研究團隊提交:
- module adapter;
- capability descriptor;
- benchmark protocol;
- task manifest;
- deterministic planner;
- AI proposal agent。
而不用共享相同 physical substrate。
141. 一個真正可互通的生態系不要求同一硬體
它要求:
same semantic contracts
而不是:
same physical implementation.
這再次呼應 Paper 05:
Common Contract=Common Physics.
142. Series-Level Invariant 1:Physical Core Must Remain Falsifiable
從 Paper 02 到 Paper 07:
physical computation claim⇒falsifiable physical evidence.
Routing 不能破壞它。
143. Series-Level Invariant 2:Supervisor/Planner Cannot Silently Substitute
No Silent Substitution.
無論是 deterministic planner 或 AI planner 都一樣。
144. Series-Level Invariant 3:Offline Is a Property of the Task Closure
LECτ(t)
仍是 task-relative,而不是機器貼上「offline capable」就結束。
145. Series-Level Invariant 4:Module Is Replaceable, Evidence Is Not Anonymous
模組可以換:
ma→mb,
但 result provenance 必須知道到底是哪一顆算的。
146. Series-Level Invariant 5:Refinement Cannot Erase Physical Lineage
Refinement Non-Erasure.
Planner 不能用 route optimization 規避。
147. Series-Level Invariant 6:Orchestration Cannot Downgrade Hard Requirements
Optimization⊂Feasible Region.
而不是 optimization 決定 feasible region。
148. 最終形式
整個 EPCA 可以寫成:
E=(M,R,K,B,Π,V,E),
其中:
- M:module set;
- R:task requirement semantics;
- K:capability/calibration state;
- B:benchmark corpus;
- Π:planner/orchestrator;
- V:validator/assurance gates;
- E:evidence/provenance system。
149. EPCA 的最終 execution loop
Task↓Requirement Manifest↓System/Calibration Snapshot↓Candidate Enumeration↓Hard Constraint Gate↓Pareto / Policy Selection↓Plan Validation↓Plan Commit↓Physical/Digital Execution↓Runtime Monitoring↓Evidence Commit↓Evidence-Bearing Result.
150. AI 版只是在候選生成處增加一層
AI Proposal→Canonical Plan→Deterministic Validation.
其餘 loop 不需要改寫。
151. 因此 AI 可以被移除而系統仍成立
這是一個很重要的 architecture test:
Remove AI⇒EPCA still computes correctly.
如果移除 AI 後連基本 authorized compute 都無法運作,那它已變成 AI-dependent cloud appliance,而不是本文要定義的 offline-first EPCA。
152. 最後的 benchmark 原則
本文將 benchmark 壓縮成五條:
- Same task boundary;
- End-to-end cost;
- State/calibration binding;
- Assurance/evidence binding;
- Versioned and replayable observation。
153. 最後的 routing 原則
Routing 壓縮成:
Filter First→Optimize Second→Commit Explicitly.
154. 最後的 AI 原則
AI orchestration 壓縮成:
AI may propose more=AI may authorize more.
155. 系列結論:新的「計算機」類別
最初的思維實驗只是:
如果算盤的珠子換成光、RF、聲、電或其他 carrier,會怎麼樣?
系列最後得到的答案比「光學算盤」更大。
算盤提醒我們:
computation
可以被理解為:
state+geometry+transition+observation.
一旦 carrier 可以替換,geometry 可以重構,physical core 可以 modularize,embedded supervisor 可以管理而不替算,Linux-class appliance 可以離線更新,mixed precision 可以帶著 evidence 交付,而 planner 可以在多條有效因果路徑間做 constraint-aware routing,我們得到的就不再只是某一種新 accelerator。
它更接近:
a computer whose primary identity is the organization of computation itself.
它可以沒有 desktop。
可以沒有 browser。
可以沒有 cloud。
甚至可以沒有 AI。
但只要:
task→authorized physical/digital computation→evidence-bearing result
在設備內形成閉合,它就是一台完整的計算機。
而當它進一步能回答:
這個任務此刻應該用哪一種物理方式算?
EPCA 就從 calculator 走到了 autonomous compute platform。
因此整個系列最後可以壓縮為:
讓計算機回到計算本身, 再讓計算本身重新擁有多種物理形式。
參考文獻與工程資料
- Lattner, C., Amini, M., Bondhugula, U., et al. MLIR: Scaling Compiler Infrastructure for Domain Specific Computation. MLIR project and related publications. MLIR 的公開目標包括降低 heterogeneous hardware compiler fragmentation、支援多層 IR 與 reusable/extensible compiler infrastructure. https://mlir.llvm.org/
- OpenMP Architecture Review Board. OpenMP Application Programming Interface Specification Version 6.0. November 2024. OpenMP 6.0 持續提供 target device/offload 與 heterogeneous execution semantics. https://www.openmp.org/specifications/
- Khronos Group. SYCL 2020 Specification, Revision 12. 6 August 2026. SYCL 提供 single-source C++ heterogeneous programming model,支援跨 CPU、GPU、FPGA 與其他 accelerator backend 的 device selection/dispatch。https://registry.khronos.org/SYCL/
- Zou, A., Xu, Y., Ni, Y., et al. (2025). A Survey of Real-time Scheduling on Accelerator-based Heterogeneous Architecture for Time Critical Applications. arXiv:2505.11970. 該綜述整理 CPU-GPU、CPU-TPU、CPU-FPGA 等 accelerator-based heterogeneous architecture 的 soft/hard real-time scheduling 問題。https://arxiv.org/abs/2505.11970
- Shi, H., Hu, J., Xu, H., et al. (2026). Dynamic contention-aware workflow scheduling on shared bus-based CPU-FPGA heterogeneous computing systems. Expert Systems with Applications, 300, 130421. DOI: 10.1016/j.eswa.2025.130421. 該研究直接處理 task mapping、communication routing 與 shared-bus contention 對 workflow makespan 的影響。https://doi.org/10.1016/j.eswa.2025.130421
- Review of Task-Scheduling Methods for Heterogeneous Chips. Electronics 14(6), 1191 (2025). DOI: 10.3390/electronics14061191. 該綜述討論 CPU/GPU/FPGA 等 heterogeneous chip task scheduling 與 resource mapping。https://www.mdpi.com/2079-9292/14/6/1191
- CXL Consortium. Compute Express Link 4.0 Specification. 18 November 2025. CXL 4.0 提升 coherent heterogeneous memory/device connectivity,並持續支援 accelerator 與 memory expansion/fabric use cases。https://computeexpresslink.org/
- Kubernetes. Kubernetes v1.36: More Drivers, New Features, and the Next Era of Dynamic Resource Allocation. 7 May 2026. DRA 是大型平台如何描述、claim、allocate specialized hardware resource 的鄰近工程參考;EPCA 不直接採用 Kubernetes,但其 resource-claim 思想證明 hardware-agnostic allocation semantics 的實際需求。https://kubernetes.io/blog/2026/05/07/kubernetes-v1-36-dra-136-updates/
- Williams, S., Waterman, A., Patterson, D. (2009). Roofline: An Insightful Visual Performance Model for Multicore Architectures. Communications of the ACM, 52(4), 65-76. Roofline model 說明單一 peak metric 不足以描述不同 arithmetic intensity 與 memory bandwidth 限制下的 performance;本文借用其「performance 必須置於 workload/resource context」的基本精神,而非直接套用 Roofline 作為 EPCA benchmark。
- Paper 02 至 Paper 06 所引用的 photonic、RF wave computing、acoustic computing、mixed-precision CIM、metrological traceability 與 provenance 文獻,構成本文 physical evidence、calibration、result assurance 與 multi-substrate execution 的前置技術背景。
前置系列與本系列銜接
- 《跨尺度構成與動態約束域研究》v0.1:approximability、finite-cost exactness、effective physical equivalence、dynamic reachability 與 constraint domain。
- 《認知功能體的物理實現與自然可觀測性研究》v0.1:存在、可觀測、可辨識、跨 substrate functional realization 與 causal history separation。
- Paper 00:EPCA、Local Execution Closure、Physical-Core Non-Substitution 與 Evidence-Bearing Result 的初步提出。
- Paper 01:Carrier-Generalized Abacus、position coding、mode coding、relation coding 與 dynamical geometry。
- Paper 02:OPC-V0 至 OPC-V5、causal intervention、ablation、independent challenge 與 falsifiable physical evidence。
- Paper 03:Declared Compute Boundary、No Silent Substitution、Reference-Path Isolation、Evidence Before Refinement 與 ESA-S0 至 ESA-S5。
- Paper 04:Local Execution Closure、transactional update、offline evidence queue、field recovery 與 LFA-F0 至 LFA-F5。
- Paper 05:Multi-Substrate Compute Backplane、Physical Module Contract、capability descriptor、calibration gate、module lifecycle、fault containment 與 MSA-M0 至 MSA-M5。
- Paper 06:Mixed-Precision Evidence-Bearing Computation、calibration lifecycle、precision negotiation、Refinement Non-Erasure、Physical Contribution Class、Evidence Envelope 與 CRA-R0 至 CRA-R5。
本篇新增 Task Requirement Manifest、versioned Capability/Benchmark Snapshot、five-family benchmark architecture、hard-constraint-first candidate filtering、Pareto/lexicographic routing、deterministic execution planner、plan identity、runtime monitored replanning、fallback semantics、AI proposal-only orchestration,以及 ORA-O0 至 ORA-O5。至此 EPCA 系列完成從 carrier-generalized physical computation 到 autonomous multi-substrate compute platform 的完整理論閉合。