[论文解读] Universal Approximation Under Constraints is Possible with Transformers
本文建立了首个满足精确约束条件的变换器(transformer)通用近似定理,证明了概率性变换器能够统一近似任意连续函数至紧致约束集 K(凸或非凸),同时确保所有随机输出均位于 K 内。核心贡献是一项深度神经网络版本的贝尔日最大值定理,支持端到端学习,保证约束满足与近似最优性。
Many practical problems need the output of a machine learning model to satisfy a set of constraints, $K$. Nevertheless, there is no known guarantee that classical neural network architectures can exactly encode constraints while simultaneously achieving universality. We provide a quantitative constrained universal approximation theorem which guarantees that for any non-convex compact set $K$ and any continuous function $f:\mathbb{R}^n ightarrow K$, there is a probabilistic transformer $\hat{F}$ whose randomized outputs all lie in $K$ and whose expected output uniformly approximates $f$. Our second main result is a "deep neural version" of Berge's Maximum Theorem (1963). The result guarantees that given an objective function $L$, a constraint set $K$, and a family of soft constraint sets, there is a probabilistic transformer $\hat{F}$ that approximately minimizes $L$ and whose outputs belong to $K$; moreover, $\hat{F}$ approximately satisfies the soft constraints. Our results imply the first universal approximation theorem for classical transformers with exact convex constraint satisfaction. They also yield that a chart-free universal approximation theorem for Riemannian manifold-valued functions subject to suitable geodesically convex constraints.
研究动机与目标
- 填补深度学习模型在精确约束满足条件下通用近似理论方面的空白。
- 证明变换器能够对紧致约束集 K(无论凸或非凸)统一近似连续函数。
- 建立约束优化中概率注意力的深度神经网络类比贝尔日最大值定理。
- 在测地线凸约束下,实现黎曼流形值函数的通用近似。
- 通过概率注意力机制克服非欧几里得通用近似中的拓扑障碍。
提出的方法
- 提出一种概率性变换器架构,采用单个自注意力机制作为输出层,以强制实现约束满足。
- 利用注意力机制生成的随机输出,确保几乎必然满足约束预测,其支撑集包含于约束集 K。
- 借助可测最大值定理与 Wasserstein-1 距离,控制近似误差与最优性差距。
- 引入非仿射随机投影与概率注意力,以编码非凸与非线性约束。
- 应用贝尔日最大值定理的深度神经网络版本,保证在约束下,期望输出近似真实损失函数的最小化器。
- 通过使用测地线距离并假设约束集 K 的测地线凸性,将结果推广至黎曼流形。
实验结果
研究问题
- RQ1经典变换器网络能否在精确满足任意紧致约束集 K 的条件下实现通用近似?
- RQ2能否构建一个深度神经网络,在确保所有输出位于给定约束集 K 内的前提下最小化损失函数?
- RQ3概率注意力机制如何克服非欧几里得通用近似中的拓扑障碍?
- RQ4该框架能否扩展至在测地线凸约束下的黎曼流形值输出?
- RQ5在精确强制约束条件下,近似误差与最优性可提供哪些理论保证?
主要发现
- 为变换器建立了通用近似定理,保证精确约束满足:对任意连续函数 f: R^n → K,存在一个概率性变换器 F̂,使得 E[ F̂(x)] 统一近似 f(x),且所有随机输出均位于 K 内。
- 近似误差在到约束集的最坏距离下有界,满足 sup_x ||E[ F̂(x)] - argmin_y∈K L(x,y)|| ≤ ϵ。
- 对于凸 K 与严格凸 L,注意力机制的期望输出满足 E[Y^x] ∈ K,并以误差 ≤ ϵ 近似唯一最小化器 y⋆(x)。
- 在黎曼情形下,假设测地线凸性,概率注意力输出满足 dg(P-attention( F̂(x), Y), y⋆(x)) ≤ ϵ,确保测地线近似。
- 该框架首次提供了在测地线凸约束下,黎曼流形值函数的无图册(chart-free)通用近似定理。
- 概率注意力机制通过使用随机投影与可测选择理论,绕过了非欧几里得近似中的拓扑障碍。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。