Mathematical reading note · UML-MATH-ASSUMPTIONS-001
一条公式不是一个真理
当前 Unit Mechanism 模型为什么长成 Cauchy–bilinear?哪些是假设,哪些是权重,还有哪些合理候选?
先给短答案
当前公式是一条“最小可解析路线”,不是框架唯一允许的模型
世界侧先有固定的真实 token realization \(U=u^\star\),unit outcome 由 \(Y=f_\theta(x,E;u^\star)\) 生成。learner 只看到 predictors \(X=x\),所以先做 point、Gaussian 或 Cauchy abduction,再把同一个 \(x\) 作为 factual query 送入 generator。abduction uncertainty 是对同一个 actual token 的认识,不是把 identity 随机化。
Injective identity encoding 是 standing modeling assumption,不是 one-shot identification theorem,也不要求 \(u\mapsto[x\mapsto p_\theta(y\mid x,u)]\) injective。至于 Cauchy 与 bilinear,则是当前默认,并非框架唯一允许的模型:
- 01允许不同 unit 对输入有不同反应。
不是只有 unit-specific intercept,还要允许 unit-specific slope。
- 02让 unit-specific mechanisms 在 shared family 中足够简单。
把每个 unit 的 intercept 和 slope 写成低维 \(U\) 的 affine function。
- 03让 one-shot likelihood 可以精确计算。
选择独立 Cauchy candidate coordinates 与 Cauchy event noise,使 affine propagation 保持闭式。
Where the equation comes from
从 unit-specific regression,自然走到 bilinear
先暂时不谈 Cauchy。候选 representation \(u\) 在共享 family 中配置一个 mechanism;假设给定 \(u\) 后,结果对 mechanism input \(X\) 是线性的。world-side actual \(u^\star\) 固定;sampled candidate \(\widetilde u\sim q_\phi(u\mid X=x)\) 只表达 learner-side uncertainty:
如果 \(c(U)\) 和 \(b(U)\) 都是任意神经网络,这个 mechanism 很灵活,却很难解释其可观测限制。当前模型继续做一个最小选择:让它们对 \(U\) 都是 affine。
代回第一式,就得到当前 outcome equation:
所有 unit 与 input 共享的基准。
不经过 \(U\) 的平均 input slope。
candidate unit representation 对 intercept 的调制。
不同 unit 对 \(X\) 有不同 slope。
给定 unit 与 input 后仍发生的新事件随机性。
其中最有内容的是 \(B\)。它不是一张“每个 unit 一套回归系数”的表,而是共享的 slope directions。对 evidence \(O=o\),有效 slope 是
因此所有 evidence-indexed slopes 都被限制在 affine subspace \(\beta+\operatorname{col}(B)\) 中。当 \(d=\dim(U)\ll p=\dim(X)\) 时,这才形成可检验的 low-rank geometry。
Why Cauchy appears
Cauchy 不是因为 unit “本质上重尾”,而是因为它让传播闭合
Evidence encoder 不输出一个确定的 physical identity,也不改变真实 unit;它输出 candidate-representation law 的 location 与 scale。以下随机变量写法比直接操作测度更容易读:
Cauchy 的 \(m_\phi\) 是 location,不是 mean;\(\gamma_\phi\) 是 scale,不是 standard deviation,而且该分布没有有限 mean / variance。再假设 coordinates 条件独立,且 \(E\sim\operatorname{Cauchy}(0,1)\),affine composition 保持 Cauchy:
\[m_Y(o,x)=\alpha+\beta^\top x+\{a+B^\top x\}^\top m_\phi(o).\]
location 使用普通带符号权重。\[s(o,x)=\sum_j|a_j+(B^\top x)_j|\gamma_j(o)+\sigma.\]
独立 Cauchy scale 按绝对权重相加。这一步的预测含义是对 learner 的 candidate embeddings 调用同一个 generator,再综合 outcomes:
训练因此只需最小化 factual Cauchy negative log likelihood:
Assumption ledger
这条公式实际上承诺了八件事
world side 先有 \(U=u^\star\);token→embedding injective 是 assumption,不是 one-shot 已识别 latent coordinate,也不要求 response map injective。
ordinary prediction 先用 \(X=x\) 得到 \(\widehat u_\phi(x)\) 或 \(q_\phi(u\mid x)\);随机性表达 learner uncertainty,而非 identity resampling。
\(\alpha,\beta,a,B,\sigma\) 跨 token 共享;每个 candidate \(u\) 配置 \(f_\theta(x,E;u)\)。
当前 outcome location 没有 \(X^2\)、\(U^2\) 或更一般 nonlinear interaction。
若 \(d<p\),evidence-dependent slope 只能在至多 \(d\) 维方向中变化。
给定 factual evidence 后,\(q_\phi(u\mid O)\) 的 latent coordinates 被建模为独立 Cauchy。
新事件噪声与 candidate \(U\) 独立,并使用全局共同的 \(\sigma\)。
每个 unit 一条 factual row 直接约束的是 composed prediction \(p_{\phi,\theta}(y\mid O,x)\),不是 unit identity、单条选中的 mechanism 或原生 function posterior。
What is actually learned
模型学习的是共享权重,不是给每个 unit 建一行自由参数
| 模块 | 可学习对象 | 形状 | 作用 |
|---|---|---|---|
| Evidence backbone | \(\phi_{\mathrm{backbone}}\) | MLP weights/biases | 把 \(O\) 转换为共享 hidden representation。 |
| Location head | \(\phi_m\)(implementation may call it mu) | 输出 \(d\) 维 | 产生 Cauchy location \(m_\phi(O)\),不是 mean。 |
| Scale head | \(\phi_\gamma\) | 输出 \(d\) 维 | 经 softplus 产生正的 \(\gamma(O)\)。 |
| Mechanism baseline | \(\alpha,\beta\) | \(1\) 与 \(p\) | global intercept 与 direct input slope。 |
| Unit modulation | \(a\) | \(d\) | unit-dependent intercept directions。 |
| Interaction basis | \(B\) | \(p\times d\) | unit-dependent slope directions。 |
| Event scale | \(\rho_\sigma\) | \(1\) | 经 softplus 变成正的 \(\sigma\)。 |
不是独立学习参数的东西
- world-side actual token realization \(U=u^\star\):不是 embedding table 中的一行。
- \(m_\phi(O),\gamma_\phi(O)\):是 encoder 输出的 Cauchy location / scale,不是 mean / standard deviation。
- \(m_Y(o,x),s(o,x)\):由共享权重计算出来。
训练前固定的 hyperparameters
- latent dimension \(d\);当前主要实现默认 \(d=4\)。
- encoder widths;当前默认 \(64,64\) 与 GELU。
- Cauchy family、coordinate independence、\(\gamma_{\min}=10^{-3}\)。
- one-shot protocol 与优化配置。
在 synthetic 默认维度 \(q=8,p=1,d=4\) 下,当前模型共有 5,267 个可学习参数:5,256 个属于 evidence encoder,11 个属于 mechanism head。所有参数都只通过 factual response likelihood 接受梯度,没有 latent-\(U\) supervision。
Candidate hypothesis space
至少有九类值得认真比较的候选模型
Direct conditional law
不引入 \(U\),直接预测 location/scale 或完整 density。
回答:factorization 是否真的增加价值?Direct function generator
由 evidence 直接生成一条 response function,不先表达候选 unit representations。
这是竞争性邻近方案,不是当前“abduct candidate \(u\) → 调用 \(f_\theta\) → 合成 \(p_{\phi,\theta}\)”的另一种写法。Causal Regression branch
Observed features 只作为 abduction evidence。
回答:explicit input 是否真的必要?No unit-specific slope
保留 unit intercept heterogeneity,但令 \(B=0\)。
回答:真正有用的是 \(U\),还是 \(X\times U\)?Cauchy–bilinear Unit
当前最小的 closed-form unit-specific slope model。
优势:解析;风险:linear/affine/Cauchy 限制同时存在。Varying coefficient
直接学习 observable intercept/slope,不解释为 latent \(U\)。
回答:latent factorization 是否超过 observable reduction?Low-rank direct slope
保留 low-rank slope geometry,但不建立 unit distribution。
若它追平 M3,证据支持 low rank,不支持 latent-unit story。Mixture / latent types
把 continuous \(U\) 换成有限 latent types 或 mixture of experts。
回答:异质性是否更像少数 response regimes?Nonlinear unit mechanism
允许 nonlinear interaction、heteroscedasticity、flow 或 implicit noise。
代价:失去闭式传播和清晰 slope geometry。Axes, not a single ladder
候选模型不是一条升级路线,而是四个可独立替换的轴
| 轴 | 当前选择 | 主要候选 | 改变后在问什么 |
|---|---|---|---|
| Abduction law | point / factorized Cauchy \(q_\phi(u\mid x)\) | Gaussian、full-covariance、mixture、flow | learner 对同一 actual token 的 uncertainty 需要什么形状与 tails? |
| Outcome mechanism | bilinear \(X,U\) | evidence-only、additive、varying coefficient、nonlinear neural | 异质性只改变 level,还是也改变 response slope? |
| Event law | global Cauchy scale | Gaussian、Laplace、Student-\(t\)、heteroscedastic、mixture | robustness 来自 unit structure,还是 likelihood family? |
| Query semantics | prediction \(p_{\phi,\theta}(y\mid O,x)\) | treatment heads、continuous dose、multi-context transport | 改变 \(X\) 是预测查询、介入,还是跨 context 外推? |
Current scientific judgment
现在最诚实的定位:M3 是工作假设,不是胜出的最终模型
Current Cauchy–bilinear Unit Mechanism is a minimal analytically tractable hypothesis for low-dimensional unit-modulated response geometry. Its value must be established against direct, varying-coefficient, low-rank-direct, and alternative-noise models.
下一轮最重要的比较是在 high-dimensional \(X\)、low-rank response slope 和 held-out input support 下同时比较 M0、M3、M4、M5。这样才能判断收益究竟来自 Unit factorization、low-rank geometry,还是 Cauchy objective。