[论文解读] Differentiable Causal Computations via Delayed Trace
本文提出了一种基于新颖的“延迟迹”构造的可微因果计算的范畴论框架,用于建模具有状态和时序依赖的流程,如循环神经网络。证明了若基范畴为笛卡尔微分范畴,则所得到的因果计算范畴继承微分结构,从而实现对反向传播时间(BPTT)的有限、抽象表示,且完全符合链式法则与施瓦茨定理。
We investigate causal computations taking sequences of inputs to sequences of outputs where the $n$th output depends on the first $n$ inputs only. We model these in category theory via a construction taking a Cartesian category $C$ to another category $St(C)$ with a novel trace-like operation called "delayed trace", which misses yanking and dinaturality axioms of the usual trace. The delayed trace operation provides a feedback mechanism in $St(C)$ with an implicit guardedness guarantee. When $C$ is equipped with a Cartesian differential operator, we construct a differential operator for $St(C)$ using an abstract version of backpropagation through time, a technique from machine learning based on unrolling of functions. This obtains a swath of properties for backpropagation through time, including a chain rule and Schwartz theorem. Our differential operator is also able to compute the derivative of a stateful network without requiring the network to be unrolled.
研究动机与目标
- 将因果计算(如循环神经网络和信号流图)形式化为一种范畴论构造,隐式地体现保护性(guardedness)
- 构建一个原则性、抽象的框架,用于状态函数的微分,避免显式展开(unrolling)
- 证明反向传播时间(BPTT)并非仅是一种启发式方法,而是满足微分的基本性质
- 为状态系统提供一种有限、紧凑的导数表示,而非展开函数的序列
- 为机器学习中基于梯度的学习(尤其是具有内部状态的模型)奠定范畴论基础
提出的方法
- 从笛卡尔范畴 C 构造一个范畴 St(C),通过延迟迹操作建模因果、时序计算,以强制实现保护性
- 定义一个延迟迹算子,满足除“yanking”外的所有迹公理,并采用修改形式的共变性(dinaturality)
- 通过基范畴的笛卡尔微分结构,为 St(C) 赋予微分算子,从而实现抽象的反向传播
- 通过迭代复合与导数的重新卷绕(re-rolling),恢复出表示导数的单个状态函数
- 将该框架应用于 Euc∞,证明其与循环神经网络中的标准 BPTT 一致
- 证明 St(C) 中的导数满足关键微积分性质,如链式法则与施瓦茨定理
实验结果
研究问题
- RQ1反向传播时间能否被形式化为具有标准微积分性质的范畴导数运算?
- RQ2状态函数的导数是否能在范畴框架内获得有限、紧凑的表示?
- RQ3延迟迹构造如何在确保保护性并避免无限循环的同时,建模因果依赖?
- RQ4何种范畴结构可确保因果系统微分过程保留基本微分性质?
- RQ5该框架能否通过嵌套延迟迹扩展以建模元优化或超参数调优?
主要发现
- 当笛卡尔范畴 C 为笛卡尔微分范畴时,由 C 构造的范畴 St(C) 支持微分算子,使得 St(C) 本身也成为笛卡尔微分范畴
- St(C) 中的微分算子正确重现了反向传播时间的结果,包括链式法则与施瓦茨定理
- 因果函数的导数以单个状态函数表示,而非展开函数的序列,从而实现紧凑表示
- 延迟迹操作通过隐式保护性捕捉因果计算,避免反馈回路中的非终止问题
- 该框架可推广至高阶结构,如 St0(St0(C)),其可建模类似于神经网络训练循环更新的元延迟行为
- 该构造为状态系统中的基于梯度的学习提供了理论基础,且可通过微分限制范畴(differential restriction categories)扩展至非光滑或部分函数
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。