arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.16123cs.LGcs.AImath.ATmath.CT
收藏

基于高阶归纳类型的函子神经架构

Functorial Neural Architectures from Higher Inductive Types

Institute of Chemistry, Academia Sinica, Taipei, Taiwan(中国科学院化学研究所,台湾台北)

Karen Sargsyan

AI总结:

提出通过高阶归纳类型规范编译为神经架构,强制解码器满足严格幺半函子性质,从而在组合泛化任务上比非函子方法提升2-10倍。

摘要:

神经网络通常能学习任务的各个部分,但在这些部分的新组合上失败。我们认为这种失败是架构性的:只有当解码器尊重任务的代数法则,即从自由生成的序列下降到由这些法则确定的商时,它才能组合泛化。我们通过将高阶归纳类型(HIT)规范编译为神经架构,使这一原则具有建设性。基点、路径构造子和2-胞腔分别映射为基约束、生成器网络、结构拼接和学习到的同伦。由此产生的传输解码器在构造上是严格幺半函子:解码一个拼接的词是独立生成的环段的拼接。相反,我们证明softmax自注意力无法同时满足严格幺半组合和下降到任何非平凡组合商。在环面、圆楔和克莱因瓶上的实验验证了预期的层次结构:函子解码器比非函子替代方案性能提升2-10倍,而学习到的2-胞腔恰好在使用克莱因瓶关系的词上缩小了46%的误差差距。这些结果表明,组合泛化应作为架构中的函子结构强制执行,而非仅从示例中学习。

英文摘要:

Neural networks often learn the parts of a task but fail on novel combinations of those parts. We argue that this failure is architectural: a decoder generalizes compositionally only when it respects the algebraic laws of the task, i.e. when it descends from freely generated sequences to the quotient determined by those laws. We make this principle constructive by compiling Higher Inductive Type (HIT) specifications into neural architectures. Basepoints, path constructors, and 2-cells are mapped to base constraints, generator networks, structural concatenation, and learned homotopies. The resulting transport decoders are strict monoidal functors by construction: decoding a concatenated word is concatenation of independently generated loop segments. In contrast, we prove that softmax self-attention cannot simultaneously satisfy strict monoidal composition and descent to any non-trivial compositional quotient. Experiments on the torus, wedge of circles, and Klein bottle validate the predicted hierarchy: functorial decoders outperform non-functorial alternatives by $2$--$10\times$, and a learned 2-cell closes a $46\%$ error gap precisely on words exercising the Klein-bottle relation. These results suggest that compositional generalization should be enforced as functorial structure in the architecture, rather than learned from examples alone.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑