Provably Good Solutions to the Knapsack Problem via Neural Networks of Bounded Size
Not on the map. Why?
Abstract (arXiv)
The development of a satisfying and rigorous mathematical understanding of the performance of neural networks is a major challenge in artificial intelligence. Against this background, we study the expressive power of neural networks through the example of the classical NP-hard Knapsack Problem. Our main contribution is a class of recurrent neural networks (RNNs) with rectified linear units that are iteratively applied to each item of a Knapsack instance and thereby compute optimal or provably good solution values. We show that an RNN of depth four and width depending quadratically on the profit of an optimum Knapsack solution is sufficient to find optimum Knapsack solutions. We also prove the following tradeoff between the size of an RNN and the quality of the computed Knapsack solution: for Knapsack instances consisting of n items, an RNN of depth five and width w computes a solution of value at least 1-O(n2/√w) times the optimum solution value. Our results build upon a classical dynamic programming formulation of the Knapsack Problem as well as a careful rounding of profit values that are also at the core of the well-known fully polynomial-time approximation scheme for the Knapsack Problem. A carefully conducted computational study qualitatively supports our theoretical size bounds. Finally, we point out that our results can be generalized to many other combinatorial optimization problems that admit dynamic programming solution methods, such as various Shortest Path Problems, the Longest Common Subsequence Problem, and the Traveling Salesperson Problem.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 4; 2024: 3; 2025: 5; 2026: 1.
16 papers.
Sort:
- 2021Towards Lower Bounds on the Depth of ReLU Neural Networkscited by 56
- 2022Training Fully Connected Neural Networks is existsℝ-Completecited by 15
- 2021ReLU Neural Networks of Polynomial Size for Exact Maximum Flow Computationcited by 12
- 2025Depth-Bounds for Neural Networks via the Braid Arrangementcited by 11
- 2024Decomposition Polyhedra of Piecewise Linear Functionscited by 9
- 2024Neural Networks and (Virtual) Extended Formulationscited by 9
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regimecited by 8
- 2023Optimizing Solution-Samplers for Combinatorial Problems: The Landscape of Policy-Gradient Methodscited by 5
- 2025Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural Networkscited by 4
- 2025Arithmetic Circuits and Neural Networks for Regular Matroidscited by 2
- 2023Unsupervised Extractive Summarization with Learnable Length Control Strategiescited by 1
- 2024All You Need is an Improving Column: Enhancing Column Generation for Parallel Machine Scheduling via Transformerscited by 1
4 more
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problemscited by 1
- 2023Approximating Solutions to the Knapsack Problem using the Lagrangian Dual Frameworkcited by 0
- 2025On the expressivity of sparse maxout networkscited by 0
- 2026Tropical Circuits with Scalar Multiplication Gatescited by 0
- 2026Tropical Circuits with Scalar Multiplication Gates13 Jul 2026
- 2025Arithmetic Circuits and Neural Networks for Regular Matroids4 Nov 2025
- 2025On the expressivity of sparse maxout networks15 Oct 2025
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems17 Sep 2025
- 2025Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural Networks24 Feb 2025
- 2025Depth-Bounds for Neural Networks via the Braid Arrangement13 Feb 2025
- 2024Neural Networks and (Virtual) Extended Formulations5 Nov 2024
- 2024All You Need is an Improving Column: Enhancing Column Generation for Parallel Machine Scheduling via Transformers21 Oct 2024
- 2024Decomposition Polyhedra of Piecewise Linear Functions7 Oct 2024
- 2023Unsupervised Extractive Summarization with Learnable Length Control Strategies12 Dec 2023
- 2023Approximating Solutions to the Knapsack Problem using the Lagrangian Dual Framework6 Dec 2023
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regime13 Nov 2023
4 more
- 2023Optimizing Solution-Samplers for Combinatorial Problems: The Landscape of Policy-Gradient Methods8 Oct 2023
- 2022Training Fully Connected Neural Networks is existsℝ-Complete4 Apr 2022
- 2021Towards Lower Bounds on the Depth of ReLU Neural Networks31 May 2021
- 2021ReLU Neural Networks of Polynomial Size for Exact Maximum Flow Computation12 Feb 2021
- 2021Towards Lower Bounds on the Depth of ReLU Neural Networkscited by 56
- 2022Training Fully Connected Neural Networks is existsℝ-Completecited by 15
- 2021ReLU Neural Networks of Polynomial Size for Exact Maximum Flow Computationcited by 12
- 2025Depth-Bounds for Neural Networks via the Braid Arrangementcited by 11
- 2024Decomposition Polyhedra of Piecewise Linear Functionscited by 9
- 2024Neural Networks and (Virtual) Extended Formulationscited by 9
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regimecited by 8
- 2023Optimizing Solution-Samplers for Combinatorial Problems: The Landscape of Policy-Gradient Methodscited by 5
- 2025Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural Networkscited by 4
- 2025Arithmetic Circuits and Neural Networks for Regular Matroidscited by 2
- 2023Unsupervised Extractive Summarization with Learnable Length Control Strategiescited by 1
- 2024All You Need is an Improving Column: Enhancing Column Generation for Parallel Machine Scheduling via Transformerscited by 1
12 most cited of 16 All 16 (JSON)
- 2026Tropical Circuits with Scalar Multiplication Gates13 Jul 2026
- 2025Arithmetic Circuits and Neural Networks for Regular Matroids4 Nov 2025
- 2025On the expressivity of sparse maxout networks15 Oct 2025
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems17 Sep 2025
- 2025Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural Networks24 Feb 2025
- 2025Depth-Bounds for Neural Networks via the Braid Arrangement13 Feb 2025
- 2024Neural Networks and (Virtual) Extended Formulations5 Nov 2024
- 2024All You Need is an Improving Column: Enhancing Column Generation for Parallel Machine Scheduling via Transformers21 Oct 2024
- 2024Decomposition Polyhedra of Piecewise Linear Functions7 Oct 2024
- 2023Unsupervised Extractive Summarization with Learnable Length Control Strategies12 Dec 2023
- 2023Approximating Solutions to the Knapsack Problem using the Lagrangian Dual Framework6 Dec 2023
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regime13 Nov 2023
12 newest of 16 All 16 (JSON)