Residual-Guided Simulated Annealing for Multi-Dimensional Subset Sum
This paper introduces Residual-Guided Simulated Annealing (RGSA), a novel cardinality-preserving heuristic that consistently generates low-residual, near-feasible solutions for the multi-dimensional subset sum problem on QOBLIB instances with , outperforming blind simulated annealing and QUBO samplers while providing a reproducible classical baseline where exact solvers remain impractical.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of computer science, there is a class of puzzles known as the subset sum problem. Imagine you have a large collection of items, each with a specific weight, and you are asked to find a group of them that adds up to a precise target number. This task seems simple when there is only one target to hit, but the difficulty explodes when you must satisfy several different targets at the same time. This harder version is called the multi-dimensional subset sum problem, or in the research community, the "Market Split" problem. It asks a computer to divide a set of items into two groups so that the total weight of each group matches a specific set of goals across multiple categories simultaneously. These puzzles are not just academic exercises; they represent a fundamental challenge in optimization, testing the limits of how well computers can navigate complex landscapes of possibilities to find a perfect fit. For decades, researchers have struggled with these problems because the number of possible combinations grows so fast that even the most powerful supercomputers can get lost, unable to find the single perfect solution among billions of wrong turns.
A researcher named Sreekuttan L. S. from Bloq Quantum in India has recently tackled this challenge with a new approach designed not to find the perfect answer, but to get remarkably close to it when a perfect answer is out of reach. The study focuses on a specific set of difficult puzzles from a standard library used to test optimization methods. Instead of trying to solve the problem by checking every possibility, which is impossible for large sets, the researcher developed a method called Residual-Guided Simulated Annealing. To understand how this works, imagine you are trying to balance a scale with several different weights on it. If the scale is tipped to one side, you know exactly how much weight you are missing. This method uses that "missing amount," or the error, to guide its next move. When the computer decides to swap one item in its current group for another, it does not pick randomly. Instead, it calculates exactly what the new item needs to be to cancel out the error and then searches for the available item that comes closest to that ideal replacement. It is a smart, directional search that constantly corrects its course based on how far it is from the goal.
The researcher tested this new method against older, more random approaches and against several other powerful computer programs. The experiments were run on eight different versions of the Market Split puzzle, ranging from smaller, manageable sizes to a flagship version that is considered extremely difficult. In the first round of testing, the new method was pitted against a version that made random swaps without using the error to guide its choices. The results showed a clear advantage for the guided approach. On the most difficult test case, the random method left an average error of about 104 units, while the new guided method reduced that error to about 100 units. While this difference might seem small, in the context of these puzzles, it represents a significant improvement in finding a solution that is much closer to being perfect. The study also tested a full pipeline that included this guided method along with a few other supporting steps, which further lowered the error to about 100.37 units on average. Crucially, none of the runs in this initial phase found a perfect solution, but the guided method consistently produced results that were much closer to the target than the random attempts.
To see how this method held up in a broader competition, the researcher expanded the study to include a wider range of time limits and compared the new method against six other established solvers, including some that are designed to find exact answers. The tests were run with a strict time limit of 25 seconds. In this race, the new guided method proved to be highly reliable. While several of the other powerful solvers failed to return any usable answer within the time limit, the guided method consistently produced a result. When the time limit was extended to 300 seconds, the guided method continued to improve, reaching a median error of 36.54 units. In comparison, a method based on a different type of random search produced an error of 263.46 units, and another popular genetic algorithm settled at 72.27 units. The guided method was able to find a solution that was significantly closer to the target than its competitors, even though it did not claim to have found the perfect, exact answer.
The study makes a clear distinction between finding a perfect solution and finding a very good one. The researcher explicitly states that this method does not prove that a perfect solution exists or does not exist; it simply finds a solution that is very close to perfect. In the world of these puzzles, a "perfect" solution means the numbers match exactly, while a "near-feasible" solution means they are very close. The new method is excellent at finding these near-perfect solutions quickly. It acts as a powerful tool for getting a computer to a point where it is very close to the answer, which can then be used as a starting point for other methods that might eventually find the exact solution. The research highlights that for the most difficult versions of these puzzles, where exact solvers often run out of time or memory, this guided approach offers a reliable way to get very close to the goal in a matter of seconds.
The findings suggest that using the error in the calculation to guide the search is a highly effective strategy. By looking at what is missing and searching for the item that best fills that gap, the computer avoids the aimless wandering that characterizes older random methods. This approach does not replace the need for exact solvers when a perfect answer is required, but it provides a robust and transparent way to handle the hardest cases where exact methods struggle. The study concludes that for these specific types of difficult puzzles, the guided method consistently produces low-error results that are verified and reproducible. It offers a new baseline for how these problems can be approached, showing that even when a perfect solution is out of reach, a smart, guided search can get remarkably close, providing a valuable tool for researchers and engineers working with complex optimization challenges.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.