Efficiently Learning Branching Networks for Multitask Algorithmic Reasoning
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
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(knL) 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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 45 of its 56 references that are in the map. First posted on arXiv 30 Nov 2025.
Builds on
45 of 56 references.
References · 45
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2017Graph Attention Networkscited by 8,854
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 791
- 2020SIGN: Scalable Inception Graph Neural Networkscited by 283
- 2023TRAK: Attributing Model Behavior at Scalecited by 273
- 2023Can Language Models Solve Graph Problems in Natural Language?cited by 249
- 2021Efficiently Identifying Task Groupings for Multi-Task Learningcited by 218
- 2022Datamodels: Predicting Predictions from Training Datacited by 186
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 175
- 2022GreaseLM: Graph REASoning Enhanced Language Models for Question Answeringcited by 170
33 more
- 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
- 2019Neural Execution of Graph Algorithmscited by 118
- 2020Learning to Branch for Multi-Task Learningcited by 114
- 2021DSelect-k: Differentiable Selection in the Mixture of Experts with Applications to Multi-Task Learningcited by 114
- 2020Understanding and Improving Information Transfer in Multi-Task Learningcited by 113
- 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 112
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
- 2016Fully-adaptive Feature Sharing in Multi-Task Networks with Applications in Person Attribute Classificationcited by 93
- 2021Neural Algorithmic Reasoningcited by 92
- 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
- 2019Branched Multi-Task Networks: Deciding What Layers To Sharecited by 76
- 2022Iteratively Prompt Pre-trained Language Models for Chain of Thoughtcited by 75
- 2023Graph Neural Prompting with Large Language Modelscited by 64
- 2022A Generalist Neural Algorithmic Learnercited by 58
- 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capabilitycited by 57
- 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 48
- 2024GraphWiz: An Instruction-Following Language Model for Graph Problemscited by 32
- 2014Heat kernel based community detectioncited by 30
- 2024Simulation of Graph Algorithms with Looped Transformerscited by 29
- 2024The CLRS-Text Algorithmic Reasoning Language Benchmarkcited by 28
- 2020Precise High-Dimensional Asymptotics for Quantifying Heterogeneous Transferscited by 26
- 2025Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Modelscited by 23
- 2023Identification of Negative Transfers in Multitask Learning Using Surrogate Modelscited by 20
- 2024Scalable Multitask Learning Using Gradient-based Estimation of Task Affinitycited by 20
- 2023Boosting Multitask Learning on Graphs through Higher-Order Task Affinitiescited by 15
- 2024Scalable Fine-tuning from Multiple Data Sources: A First-Order Approximation Approachcited by 13
- 2024Transformers meet Neural Algorithmic Reasonerscited by 12
- 2016Approximate Personalized PageRank on Dynamic Graphscited by 11
- 2024Towards Principled Graph Transformerscited by 11
- 2025Efficient Ensemble for Fine-tuning Language Models on Multiple Datasetscited by 10
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimationcited by 8
- 2015Overlapping Community Detection Using Neighborhood-Inflated Seed Expansioncited by 6
- 2022Topological structure of complex predictionscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Reasoning Algorithmically in Graph Neural Networks
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithms
- 2026Which Algorithms Can Graph Neural Networks Learn?
- 2025Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent
- 2025Primal-Dual Neural Algorithmic Reasoning
- 2026Turbo Connection: Reasoning as Information Flow from Higher to Lower Layers
- 2024Are Large-Language Models Graph Algorithmic Reasoners?
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Traces