PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 2, 20250 citationsOpen Access

KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems

View Full Paper
SPStjepan PožgajDGDobrik GeorgievMŠMarin Šilić

Key Points

  • The neural algorithmic reasoner successfully solves the Knapsack problem, achieving better generalization for larger instances.
  • Using a two-phase pipeline, the model first constructs a dynamic programming table, then reconstructs the solution effectively.
  • Compared to a direct-prediction baseline, this approach demonstrates significant improvements in problem-solving performance.
  • Dynamic programming supervision in the reasoning process enhances the model's ability to adapt to complex combinatorial optimisation tasks.

Abstract

Neural algorithmic reasoning (NAR) is a growing field that aims to embed algorithmic logic into neural networks by imitating classical algorithms. In this extended abstract, we detail our attempt to build a neural algorithmic reasoner that can solve Knapsack, a pseudo-polynomial problem bridging classical algorithms and combinatorial optimisation, but omitted in standard NAR benchmarks. Our neural algorithmic reasoner is designed to closely follow the two-phase pipeline for the Knapsack problem, which involves first constructing the dynamic programming table and then reconstructing the solution from it. The approach, which models intermediate states through dynamic programming supervision, achieves better generalization to larger problem instances than a direct-prediction baseline that attempts to select the optimal subset only from the problem inputs.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Požgaj et al. (2025) studied this question.

synapsesocial.com/papers/68de5d9c83cbc991d0a205e4https://doi.org/10.48550/arxiv.2509.15239
Ask AI
Helpful
Bookmark
Share
View Full Paper