arXiv:2402.00854 · 中英对照阅读
SymbolicAI框架:一种结合生成模型与求解器的基于逻辑的方法框架
SymbolicAI: A framework for logic-based approaches combining generative models and solvers
中文速览
面对大语言模型容易胡编、难以稳定完成多步骤任务的问题,SymbolicAI 把语言模型当作“语义解析器”,让它把自然语言需求拆成可组合的步骤,再接上逻辑规则、搜索、数学工具等求解器一起工作。框架还能把这些步骤组织成可检查的计算图,并提出 VERTEX 评分方法和一套复杂任务基准,用来衡量整条处理流程是否在语义上达成目标。作者展示了这种设计能够串联不同模型和工具,支持多模态、编程与逻辑等工作流,并让流程更容易解释和评估。它的意义在于尝试把语言模型的灵活性与符号工具的可靠性结合起来,为构建更可控、可验证的生成式 AI 系统提供一套通用框架。
摘要
We introduce SymbolicAI, a versatile and modular framework employing a logic-based approach to concept learning and flow management in generative processes. SymbolicAI enables the seamless integration of generative models with a diverse range of solvers by treating large language models (LLMs) as semantic parsers that execute tasks based on both natural and formal language instructions, thus bridging the gap between symbolic reasoning and generative AI. We leverage probabilistic programming principles to tackle complex tasks, and utilize differentiable and classical programming paradigms with their respective strengths. The framework introduces a set of polymorphic, compositional, and self-referential operations for multi-modal data that connects multi-step generative processes and aligns their outputs with user objectives in complex workflows. As a result, we can transition between the capabilities of various foundation models with in-context learning capabilities and specialized, fine-tuned models or solvers proficient in addressing specific problems. Through these operations based on in-context learning our framework enables the creation and evaluation of explainable computational graphs. Finally, we introduce a quality measure and its empirical score for evaluating these computational graphs, and propose a benchmark that compares various state-of-the-art LLMs across a set of complex workflows. We refer to the empirical score as the ”Vector Embedding for Relational Trajectory Evaluation through Cross-similarity”, or VERTEX score for short. The framework codebase11 1 SymbolicAI framework: https://github.com/ExtensityAI/symbolicai and benchmark22 2 Evaluation benchmark: https://github.com/ExtensityAI/benchmark * Correspondence to: dinu@ml.jku.at, {marius, leo}@extensity.ai ‖ Work done outside of Amazon. are linked below.
术语表
- SymbolicAI
- SymbolicAI框架
- large language models (LLMs)
- 大语言模型(LLMs)
- neuro-symbolic (NeSy) AI
- 神经符号人工智能(NeSy AI)
- semantic parser
- 语义解析器
- semantic parsing
- 语义解析
- concept learning
- 概念学习
- flow management
- 流程管理
- generative process
- 生成过程
- symbolic reasoning
- 符号推理
- probabilistic programming
- 概率编程
- differentiable programming
- 可微编程
- classical programming
- 经典编程
- in-context learning
- 上下文学习
- foundation model
- 基础模型
- fine-tuned model
- 微调模型
- multi-modal data
- 多模态数据
- self-referential structure
- 自指结构
- functional primitive
- 函数式原语
- solver
- 求解器
- theorem prover
- 定理证明器
- computational graph
- 计算图
- hallucination
- 幻觉
- program synthesis
- 程序合成
- BLEU
- BLEU
- CIDEr
- CIDEr
- SPICE
- SPICE
- VERTEX score
- VERTEX评分
- cross-similarity
- 交叉相似度
- reinforcement learning
- 强化学习
- benchmark
- 基准测试