arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.08654cs.PLcs.AIcs.ROcs.SE
收藏

一种受行为树启发的自主智能体编程语言

A Behavior Tree-inspired programming language for autonomous agents

Oliver Biggar, Iman Shames

AI总结:

针对传统行为树模型随应用规模扩大显现的功能局限,本文提出受行为树启发的自主智能体函数式编程语言,解决响应式选择等核心问题并给出规范与Haskell实现,验证了其处理复杂行为的能力。

摘要:

我们提出了一种面向自主智能体的函数式编程语言设计,其构建基于行为树(Behavior Trees, BTs)的理念与设计动机。行为树是机器人技术与人工智能领域中用于设计智能体行为的流行模型。然而,随着其应用规模急剧增长,行为树的简单模型已逐渐显现出局限性。目前业界正不断推动提升行为树的功能,最终目标是让行为树发展为一门独立的编程语言,同时保留其模块化与响应性这两大核心特性。\n在本文中,我们研究了行为树模型需要如何扩展才能发展为这样一门语言。我们明确了若干必须解决的根本问题:实现“响应式”选择、“监控”安全关键条件,以及在不同动作间传递数据。我们提供了多个小型示例,证明这些问题具有复杂性,且当前的行为树方法无法以符合模块化要求的方式处理这些问题。对此,我们提出了一套简洁的模块化编程原语来应对这些使用场景,并展示了如何通过组合这些原语构建复杂程序。我们给出了这门受行为树启发的语言的完整规范,并使用函数式编程语言Haskell实现了该语言。最后,我们将一个大型复杂行为树转换为简洁、无歧义的程序,以此演示了我们的语言的功能。

英文摘要:

We propose a design for a functional programming language for autonomous agents, built off the ideas and motivations of Behavior Trees (BTs). BTs are a popular model for designing agents behavior in robotics and AI. However, as their growth has increased dramatically, the simple model of BTs has come to be limiting. There is a growing push to increase the functionality of BTs, with the end goal of BTs evolving into a programming language in their own right, centred around the defining BT properties of modularity and reactiveness. In this paper, we examine how the BT model must be extended in order to grow into such a language. We identify some fundamental problems which must be solved: implementing `reactive' selection, 'monitoring' safety-critical conditions, and passing data between actions. We provide a variety of small examples which demonstrate that these problems are complex, and that current BT approaches do not handle them in a manner consistent with modularity. We instead provide a simple set of modular programming primitives for handling these use cases, and show how they can be combined to build complex programs. We present a full specification for our BT-inspired language, and give an implementation in the functional programming language Haskell. Finally, we demonstrate our language by translating a large and complex BT into a simple, unambiguous program.

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

↑