Introduction
The 0-1 Knapsack Problem (KP) is a fundamental combinatorial optimization challenge: selecting a subset of items to maximize total value while staying within a weight budget. Despite its simple definition, KP is NP-hard. As the number of items ($n$) increases, traditional exact solvers like Gurobi or specialized algorithms face exponential time complexity or memory bottlenecks. Furthermore, these solvers typically assume item values are static constants, failing in dynamic environments like point cloud resampling where "value" is a function of the current selection.
Methodology
Neural Network Architecture
The authors propose a lean neural network where the decision variables are the network parameters themselves. For a problem with $n$ items, the network consists of $n$ learnable parameters $\theta = \{e_1, \dots, e_n\}$. To map these continuous parameters to binary decisions $x_i \in \{0, 1\}$, a Straight-Through Estimator (STE) is employed.
As shown in the architecture diagram, the STE uses a Sigmoid function followed by rounding for the forward pass to generate binary outputs. During the backward pass, the gradient of the Sigmoid is used to update the underlying continuous parameters, allowing the model to "backpropagate" through discrete decisions.
Adaptive Gradient Ascent
To enforce hard budget constraints, the problem is framed as a max-min game using Lagrangian multipliers. The objective is to maximize the total value while a penalty term $\lambda$ minimizes budget violations based on Karush–Kuhn–Tucker (KKT) conditions. The core innovation is the Adaptive Gradient Ascent algorithm, which dynamically adjusts the penalty weight $\beta$ to ensure stability.
The algorithm visualizes the optimization path where, if the budget is exceeded, the gradient immediately pulls the solution back into the feasible region. This ensures convergence even for large-scale instances where traditional Lagrangian methods might oscillate or fail.
Experimental Results
Large-Scale Benchmarks
The solver was evaluated on Pisinger’s Benchmark with $n = 1,000,000$ items across various value/weight correlations. The proposed method solved all instances in approximately 60 seconds. In contrast, traditional solvers like Gurobi and Combo timed out on "hard" distributions, such as Inverse Strongly Correlated data.
Point Cloud Resampling (PCR)
In the PCR task using the ModelNet40 dataset, the goal was to select a subset of points (5% of the original cloud) that preserves object identity for classification by PointNet. The proposed method achieved a PointNet Micro F1 score of 0.8268, significantly outperforming Random (0.6353) and Grid-based (0.7414) heuristics. This demonstrates the solver's ability to handle non-constant objective functions.
Conclusion
This research demonstrates that deep learning can be used as a direct solver for massive combinatorial problems. By treating network weights as decision variables and utilizing an adaptive gradient ascent strategy, the method achieves high-quality solutions for million-item knapsack problems with $O(n)$ memory efficiency. Future work includes integrating advanced optimizers and extending the framework to non-linear constraints.
Summary updated