Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

How to transfer algorithmic reasoning knowledge to learn new algorithms?

About

Learning to execute algorithms is a fundamental problem that has been widely studied. Prior work~\cite{veli19neural} has shown that to enable systematic generalisation on graph algorithms it is critical to have access to the intermediate steps of the program/algorithm. In many reasoning tasks, where algorithmic-style reasoning is important, we only have access to the input and output examples. Thus, inspired by the success of pre-training on similar tasks or data in Natural Language Processing (NLP) and Computer Vision, we set out to study how we can transfer algorithmic reasoning knowledge. Specifically, we investigate how we can use algorithms for which we have access to the execution trace to learn to solve similar tasks for which we do not. We investigate two major classes of graph algorithms, parallel algorithms such as breadth-first search and Bellman-Ford and sequential greedy algorithms such as Prim and Dijkstra. Due to the fundamental differences between algorithmic reasoning knowledge and feature extractors such as used in Computer Vision or NLP, we hypothesise that standard transfer techniques will not be sufficient to achieve systematic generalisation. To investigate this empirically we create a dataset including 9 algorithms and 3 different graph types. We validate this empirically and show how instead multi-task learning can be used to achieve the transfer of algorithmic reasoning knowledge.

Louis-Pascal A. C. Xhonneux, Andreea Deac, Petar Velickovic, Jian Tang• 2021

Related benchmarks

TaskDatasetResultRank
Algorithmic ReasoningBELLMAN-FORD 20 nodes
Key Value0.0025
6
Algorithmic ReasoningBELLMAN-FORD 50 nodes
Key Path Identification Count59
6
Algorithmic ReasoningBELLMAN-FORD 100 nodes
Key Value1.98e+6
6
Algorithmic ReasoningMOST RELIABLE PATH 20 nodes
Key Accuracy17.3
6
Algorithmic ReasoningMOST RELIABLE PATH 50 nodes
Key Identification Accuracy3.04
6
Algorithmic ReasoningMOST RELIABLE PATH 100 nodes
Key Accuracy579
6
Algorithm Execution PredictionDIJKSTRA 20 nodes
Key Prediction Metric1.78e-4
2
Algorithm Execution PredictionDIJKSTRA 50 nodes
Prediction Deviation0.413
2
Algorithm Execution PredictionDIJKSTRA 100 nodes
Key Value2.91
2
Algorithm Execution PredictionMOST RELIABLE 20 nodes
Key Score20.7
2
Showing 10 of 12 rows

Other info

Follow for update