arXiv:2610.10446cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.10446

Subset Sum via Partial Match

Lixi Ye, Baitian Li

Abstract

We show that the subset sum problem can be solved in time O(20.499999n)O(2^{0.499999n}), breaking the 2n/22^{n/2} meet-in-the-middle barrier.

Our approach builds on the representation technique framework of Randolph and Wegrzycki (STOC 2026). We choose a representation for which testing the compatibility of pairs of partial solution vectors is exactly the partial match problem. To beat exponent 1/2 for subset sum, it then suffices to give a nontrivial partial match algorithm in a certain parameter regime. We achieve this by designing a depth-2 linear circuit for the partial match matrix, which yields an efficient algorithm via the framework of Alman and Li (FOCS 2025).

Declaration. A result of a similar type was recently released by OpenAI: Subset Sum in Time O(20.49n)O(2^{0.49n}) [Ope26], dated 4 October 2026. Our result was developed independently of that work and uses a different approach; see AI disclosure and timestamps at the end of the paper for details.

This version is mathematically complete, but its presentation is preliminary; a more comprehensive version is in preparation.

1 Introduction

Given nn integers and a target, the subset sum problem asks whether some subset of the integers sums to the target. Formally, given a vector z∈Zn\mathbf{z} \in \mathbb{Z}^n and a target τ∈Z\boldsymbol{\tau} \in \mathbb{Z}, it asks for a vector c∈{0,1}n\mathbf{c} \in \{0,1\}^n such that c⋅z=τ\mathbf{c} \cdot \mathbf{z} = \boldsymbol{\tau}.

In their foundational work, Horowitz and Sahni [HS74] gave an O∗(2n/2)O^{*}(2^{n/2})-time algorithm for subset sum, 1^{1} a method now known as meet-in-the-middle. Whether subset sum can be solved exponentially faster, say in time O(2(1/2−ε)n)O(2^{(1/2-\varepsilon)n}) for some constant ε>0\varepsilon > 0, remains a central open question in exact algorithms.

Howgrave-Graham and Joux [HGJ10] were the first to break the meet-in-the-middle barrier in an average-case setting of subset sum, with running time O(20.337n)O(2^{0.337n}). Their algorithm was subsequently improved in [BCJ11, BBSS20]. Although these algorithms are not worst-case algorithms, [HGJ10] introduced the representation technique, which later proved very fruitful. Mucha, Nederlof, Pawlewicz, and Wegrzycki [MNPW19] showed that the representation technique also yields a faster worst-case algorithm for a related problem, equal subset sum, in which the coefficient vector ranges over c∈{−1,0,1}n∖{0}\mathbf{c} \in \{-1, 0, 1\}^n \setminus \{\mathbf{0}\} and the target is 0. Compared with the meet-in-the-middle bound O∗(3n/2)⊆O(1.7321n)O^*(3^{n/2}) \subseteq O(1.7321^n), they achieved time O(1.7088n)O(1.7088^n).

Recently, Randolph and Wegrzycki [RW26] systematically studied a class of problems related to subset sum, which we call generalized subset sum (GSS). Here the target is 0, and the

*Institute for Interdisciplinary Information Sciences, Tsinghua University. ylx25@mails.tsinghua.edu.cn.

†^{\dagger}Columbia University. bl3052@columbia.edu.

1^{1}We use O∗(⋅)O^{*}(\cdot) to suppress polynomial factors.

coefficient vector ranges over CnC^n or Cn∖{0}C^n \setminus \{0\} for a fixed finite set C⊆ZC \subseteq \mathbb{Z} that defines the problem. Their starting point is the earlier work of Nederlof and Wegrzycki [NW21], which used an algorithm for detecting sparse Orthogonal Vectors to improve the space complexity of the O∗(2n/2)O^*(2^{n/2})-time, O∗(2n/4)O^*(2^{n/4})-space subset sum algorithm of Schroeppel and Shamir [SS81] to O∗(2(1/4−ε)n)O^*(2^{(1/4-\varepsilon)n}), while keeping the time O∗(2n/2)O^*(2^{n/2}). Randolph and Wegrzycki observed that this Orthogonal Vectors subroutine generalizes to a wider family of problems, which they call compatibility testing. Combining compatibility testing with the representation technique, they showed that GSS can be solved in time O(∣C∣(1/2−ε)n)O(|C|^{(1/2-\varepsilon)n}) for a large family of sets CC, beating meet-in-the-middle. In particular, they beat meet-in-the-middle for C={−d,…,d}C = \{-d, \ldots, d\} for every d>1d > 1, and for C=[±d]:={−d,…,−1,1,…,d}C = [\pm d] := \{-d, \ldots, -1, 1, \ldots, d\} for every d>2d > 2. They also improved the equal subset sum bound of [MNPW19] to O∗(1.7067n)O^*(1.7067^n). For C=[±1]C = [\pm 1], GSS is equivalent to subset sum via the affine change of coefficients c↦2c−1\mathbf{c} \mapsto 2\mathbf{c} - \mathbf{1}. This leaves the tantalizing possibility that their method extends to subset sum itself.

In this paper, we show that this line of approach indeed solves subset sum in time below 2n/22^{n/2}.

Theorem 1.1 (Theorem 4.1). The subset sum problem can be solved in time O(20.499999n)O(2^{0.499999n}).