掌握符号运算:用编译神经网络增强语言模型
Mastering Symbolic Operations: Augmenting Language Models with Compiled Neural Networks
AI总结:
针对语言模型符号推理能力有限的问题,提出集成编译神经网络(CoNNs)的神经理解框架,通过显式规则编码增强符号任务表现,在多方面优于现有方法且适配不同模型规模。
摘要:
语言模型(LMs)由于依赖对文本数据的隐式学习,在处理确定性符号推理和基于规则的任务方面的能力仍然有限。为赋予语言模型真正的规则理解能力,我们提出“神经理解”框架,该框架将编译神经网络(CoNNs)协同集成到标准transformer架构中。CoNN是一类神经模块,旨在通过人工生成的注意力权重显式编码规则。通过引入CoNN模块,神经理解框架使语言模型能够准确、稳健地执行规则密集型符号任务。大量实验表明,我们的方法在符号运算的长度泛化性、效率和可解释性方面优于现有技术。此外,该框架可应用于不同规模的语言模型,在算术推理任务中表现优于工具调用方法,同时保持更优的推理效率。我们的工作凸显了通过CoNN实现的显式规则学习与语言模型中的隐式模式学习无缝融合的潜力,为实现真正的符号理解能力铺平了道路。
英文摘要:
Language models' (LMs) proficiency in handling deterministic symbolic reasoning and rule-based tasks remains limited due to their dependency implicit learning on textual data. To endow LMs with genuine rule comprehension abilities, we propose "Neural Comprehension" - a framework that synergistically integrates compiled neural networks (CoNNs) into the standard transformer architecture. CoNNs are neural modules designed to explicitly encode rules through artificially generated attention weights. By incorporating CoNN modules, the Neural Comprehension framework enables LMs to accurately and robustly execute rule-intensive symbolic tasks. Extensive experiments demonstrate the superiority of our approach over existing techniques in terms of length generalization, efficiency, and interpretability for symbolic operations. Furthermore, it can be applied to LMs across different model scales, outperforming tool-calling methods in arithmetic reasoning tasks while maintaining superior inference efficiency. Our work highlights the potential of seamlessly unifying explicit rule learning via CoNNs and implicit pattern learning in LMs, paving the way for true symbolic comprehension capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。