让神经网络像开卷考试一样调用所有训练样本,提升算法推理能力
Open-Book Neural Algorithmic Reasoning
- 训练和测试时可访问全部训练数据,实现类开卷学习
- 在CLRS基准上显著提升30个算法任务的推理准确率
- 通过注意力机制挖掘任务间关联,支持可解释的多任务学习
神经算法推理是机器学习中的新兴方向,旨在构建能解决复杂算法任务的神经网络。现有方法大多采用标准监督学习范式——每次输入一个独立问题实例,训练网络近似经典算法的执行步骤。我们挑战这一模式,提出一种新型开卷学习框架:在训练或测试时,网络可访问并利用整个训练数据集来推理当前实例。在包含30个多样化算法任务的CLRS算法推理基准上进行实证评估,该框架显著提升了神经推理能力。进一步观察到,近期文献表明在CLRS上进行多任务训练可提高某些任务的推理准确率,暗示不同算法任务间存在内在关联。我们通过开卷框架深入探索此方向:当网络为特定任务推理时,以注意力机制聚合其他任务的训练实例信息。结果表明,该开卷注意力机制揭示了基准中各类任务间的内在联系,并提供了一种可解释的多任务训练工具。
原文摘要 · Abstract (English)
Neural algorithmic reasoning is an emerging area of machine learning that focuses on building neural networks capable of solving complex algorithmic tasks. Recent advancements predominantly follow the standard supervised learning paradigm -- feeding an individual problem instance into the network each time and training it to approximate the execution steps of a classical algorithm. We challenge this mode and propose a novel open-book learning framework. In this framework, whether during training or testing, the network can access and utilize all instances in the training dataset when reasoning for a given instance. Empirical evaluation is conducted on the challenging CLRS Algorithmic Reasoning Benchmark, which consists of 30 diverse algorithmic tasks. Our open-book learning framework exhibits a significant enhancement in neural reasoning capabilities. Further, we notice that there is recent literature suggesting that multi-task training on CLRS can improve the reasoning accuracy of certain tasks, implying intrinsic connections between different algorithmic tasks. We delve into this direction via the open-book framework. When the network reasons for a specific task, we enable it to aggregate information from training instances of other tasks in an attention-based manner. We show that this open-book attention mechanism offers insights into the inherent relationships among various tasks in the benchmark and provides a robust tool for interpretable multi-task training.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。