arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09206cs.NEcs.AIcs.LGq-bio.NC
收藏

pyhgf:用于预测编码的神经网络库

pyhgf: A neural network library for predictive coding

Interacting Minds Centre, Aarhus University(阿arhus大学交互心智中心);Department of Psychiatry, University of Oxford(牛津大学精神病学系);Scuola Internazionale Superiore di Studi Avanzati (SISSA)(国际先进研究科学学院);Department of Cognition, Emotion, and Methods in Psychology, Faculty of Psychology, University of Vienna(维也纳大学心理学系认知、情感与方法部)

Nicolas Legrand, Lilian Weber, Peter Thestrup Waade, Anna Hedvig Møller Daugaard, Mojtaba Khodadadi, Nace Mikuš, Chris Mathys

AI总结:

本文提出pyhgf,一个基于JAX和Rust的Python库,用于创建和操作预测编码动态网络,通过透明模块化变量支持自组织推理,实现高效灵活的结构学习与因果发现。

摘要:

认知的贝叶斯模型已在计算神经科学和精神病学领域获得相当大的关注。其应用范围现在预计将迅速扩展到人工智能领域,提供通用的推理框架以支持具身、适应性强且能效高的自主智能体。该领域的一个核心理论是预测编码,它认为学习和行为是由对感觉输入原因的分层概率推断所驱动的。生物现实性约束这些网络依赖于精度加权预测和预测误差形式的简单局部计算。这可以使该框架非常高效,但其实现带来了软件开发方面的独特挑战。将此类模型嵌入标准神经网络库常常变得受限,因为这些库的编译和微分后端可能迫使优化算法与被优化的系统之间产生概念上的分离。这严重偏离了其他生物原则,如自我监控、自组织、细胞生长和功能可塑性。在本文中,我们介绍了pyhgf:一个由JAX和Rust支持的Python包,用于创建、操作和采样用于预测编码的动态网络。我们通过将网络组件封装为消息传递步骤中透明、模块化和可变的变量,改进了其他框架。由此产生的图可以实现任意计算复杂度作为信念传播。但核心变量的透明性也可以转化为利用自组织原则的推理过程,并将结构学习、元学习或因果发现表达为网络结构对意外输入适应的结果。代码、教程和文档托管于:https://github.com/ilabcode/pyhgf。

英文摘要:

Bayesian models of cognition have gained considerable traction in computational neuroscience and psychiatry. Their scopes are now expected to expand rapidly to artificial intelligence, providing general inference frameworks to support embodied, adaptable, and energy-efficient autonomous agents. A central theory in this domain is predictive coding, which posits that learning and behaviour are driven by hierarchical probabilistic inferences about the causes of sensory inputs. Biological realism constrains these networks to rely on simple local computations in the form of precision-weighted predictions and prediction errors. This can make this framework highly efficient, but its implementation comes with unique challenges on the software development side. Embedding such models in standard neural network libraries often becomes limiting, as these libraries' compilation and differentiation backends can force a conceptual separation between optimization algorithms and the systems being optimized. This critically departs from other biological principles such as self-monitoring, self-organisation, cellular growth and functional plasticity. In this paper, we introduce \texttt{pyhgf}: a Python package backed by JAX and Rust for creating, manipulating and sampling dynamic networks for predictive coding. We improve over other frameworks by enclosing the network components as transparent, modular and malleable variables in the message-passing steps. The resulting graphs can implement arbitrary computational complexities as beliefs propagation. But the transparency of core variables can also translate into inference processes that leverage self-organisation principles, and express structure learning, meta-learning or causal discovery as the consequence of network structural adaptation to surprising inputs. The code, tutorials and documentation are hosted at: https://github.com/ilabcode/pyhgf.

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

↑