arXiv:2512.01113cs.LGcs.AI2025-12KDD

提出分支神经网络,让模型同时高效推理多个算法任务。

Efficiently Learning Branching Networks for Multitask Algorithmic Reasoning

  • 构建递归树结构划分多任务,用梯度亲和度聚类减少训练干扰。
  • 在CLRS基准上提升3.7%,运行时间减少48%,内存降26%。
  • 适合需要多任务协同推理的研究者,尤其擅长算法层级建模。

算法推理——执行逐步逻辑推断的能力——是评估多步推理能力的综合基准,适用于图神经网络和变压器模型。以往工作仅评估单一算法任务的推理能力,而更理想的目标是同时执行多个算法推理任务。我们注意到,这本质上具有挑战性,因为不同算法的执行轨迹(如深度优先与广度优先搜索)差异导致联合训练时产生干扰。本文提出“分支神经网络”,一种面向多任务算法推理的新架构。核心思想是将n个算法任务递归地划分为k叉树结构(共L层)。朴素搜索需O(k^{nL})复杂度,我们通过每层求解凸松弛近似最优划分,将其降低至O(nL)。该方法基于梯度亲和度聚类任务,可兼容任意基础模型。我们在算法推理基准及其带文本描述的扩展版本上验证了该方法。结果表明,梯度亲和度得分可低于5%误差估计真实性能,涵盖八种不同架构,参数量达340亿。在CLRS基准上,本方法相比现有图神经网络提升3.7%,优于基线1.2%,同时降低48%运行时间与26%内存占用。学习到的分支结构展现出相关算法的层次聚类特性。在三个基于文本的图推理基准上,性能较基线提升3.2%。最后,我们验证了其在重叠社区检测中的有效性。

原文摘要 · Abstract (English)

Algorithmic reasoning -- the ability to perform step-by-step logical inference -- is a synthetic benchmark for evaluating multi-step reasoning abilities, designed for graph neural networks and also for transformer models. Prior work has evaluated reasoning for executing a single algorithmic task, whereas a more desirable objective is to perform multiple algorithmic reasoning tasks simultaneously. We start by noting that this is inherently difficult due to differences arising from the execution traces of the algorithms (such as depth- vs. breadth-first search), which cause interference when they are trained together. In this paper, we introduce {branching neural networks}, a new architecture for multitask algorithmic reasoning. The main idea is to search for a recursive tree-structured partition of $n$ algorithmic tasks into a $k$-ary tree (divided into $L$ layers). Naive search requires $O(k^{nL})$ complexity; we develop an algorithm that reduces this to $O(nL)$ by solving a convex relaxation at each layer to approximate an optimal partition. Our approach clusters these tasks using gradient-based affinity and can be used on top of any base model. We validate our approach on algorithmic reasoning benchmarks and their extensions with text descriptions. We show that gradient-based affinity scores help estimate true performance with less than 5% error, measured across eight different architectures with up to 34 billion parameters. On the CLRS benchmark, our approach outperforms existing graph neural networks by 3.7% and baselines by 1.2%, while reducing runtime by 48% and memory usage by 26%. The learned branching structure shows a hierarchical clustering of related algorithms. On three text-based graph reasoning benchmarks, our approach improves over baseline methods by 3.2%. Finally, we validate our approach for overlapping community detection.

多任务推理分支网络算法推理图神经网络

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。