English

Subset Balancing and Generalized Subset Sum via Lattices

Data Structures and Algorithms 2026-04-27 v2 Computational Complexity

Abstract

We study the Subset Balancing problem: given xZnx \in \mathbb{Z}^n and a coefficient set CZC \subseteq \mathbb{Z}, find a nonzero vector cCnc \in C^n such that cx=0c\cdot x = 0. The standard meet-in-the-middle algorithm runs in time O~(Cn/2)\tilde{O}(|C|^{n/2}), and recent improvements (SODA 2022, Chen, Jin, Randolph, and Servedio; STOC 2026, Randolph and W\k{e}grzycki) beyond this barrier apply mainly when dd is constant. We give a reduction from Subset Balancing with C={d,,d}C = \{-d, \dots, d\} to a single instance of SVP_{\infty} in dimension n+1n+1. Instantiating this reduction with the best known \ell_\infty-SVP algorithms yields a deterministic O~((62πe)n)\tilde{O}((6\sqrt{2\pi e})^n)-time algorithm and a randomized O~(22.443n)\tilde{O}(2^{2.443n})-time algorithm. The exponent depends only on nn, improving on meet-in-the-middle for all d15d\ge 15. For sufficiently large dd we also obtain a polynomial-time algorithm. The reduction extends from the box constraint [d,d]n[-d,d]^n to any centrally symmetric convex body KRnK\subseteq\mathbb{R}^n, giving deterministic time O~(2cKn)\tilde{O}(2^{c_K n}) for a constant cKc_K depending only on the shape of KK. We further study the Generalized Subset Sum problem of finding cCnc \in C^n such that cx=τc \cdot x = \tau. For C={d,,d}C = \{-d, \dots, d\} or C={d,,d}{0}C = \{-d,\dots,d\}\setminus\{0\}, we reduce the worst-case problem to CVP_{\infty} in dimension n+1n+1. We observe that distances in our lattice take only integer values, so an approximate CVP_{\infty} oracle still suffices, yielding a deterministic worst-case algorithm running in time 2O(nloglogd)2^{O(n\log\log d)}. In the average-case setting, we demonstrate that for both coefficient sets the embedded CVP_{\infty} instance satisfies a bounded-distance promise with high probability, removing the loglogd\log\log d factor altogether and obtaining a deterministic algorithm running in time O~((182πe)n)\tilde{O}((18\sqrt{2\pi e})^n).

Keywords

Cite

@article{arxiv.2604.04656,
  title  = {Subset Balancing and Generalized Subset Sum via Lattices},
  author = {Yiming Gao and Yansong Feng and Honggang Hu and Yanbin Pan},
  journal= {arXiv preprint arXiv:2604.04656},
  year   = {2026}
}
R2 v1 2026-07-01T11:55:17.577Z