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

Manuscript Offprint

arXiv:2610.16898

Exponential Local Search in Bounded-Occurrence MAX-CSP

Sophia Heimann, Hung P. Hoang, Stefan Hougardy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

We study the number of improving steps that local search may require for (2,2,r)(2, 2, r)-MCA (Maximum Constraint Assignment), a bounded-occurrence version of MAX-CSP with valued constraints in which every constraint involves at most two variables, every variable occurs in at most two constraints, and every variable takes one of r values. We consider the flip neighborhood, where two assignments are neighbors if they differ in the value of exactly one variable; moving to such a neighbor is called a flip. Local search repeatedly performs improving flips, that is, flips that strictly increase the objective value, until a local optimum is reached.

Our main result is that (2,2,5)(2, 2, 5)-MCA has the all-exp property: there is an infinite family of instances with initial assignments for which every sequence of improving flips ending in a local optimum has length exponential in the number of variables. Thus, on these instances, local search requires exponentially many steps regardless of which improving flip is chosen at each step. This is the first all-exp result for (2,2,r)(2, 2, r)-MCA for any value of rr, and our result extends to every r≥5r \geq 5.

In contrast, for (2,2,2)(2, 2, 2)-MCA every sequence of improving flips has length at most quadratic in the number of variables [5,6][5, 6]. We give a short, direct proof of this result.

2012 ACM Subject Classification Theory of computation

Keywords and phrases Bounded-Occurrence MAX-CSP, Maximum Constraint Assignment, Local Search, all-exp property

Funding Hung P. Hoang: funded by the Austrian Science Fund (FWF, project 10.55776/ESP1136425)

Stefan Hougardy: funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany's Excellence Strategy – EXC-2047/1 – 390685813

Exponential Local Search in Bounded-Occurrence MAX-CSP

1 Introduction

Improving a solution step by step through small changes is perhaps the most natural way to approach a hard optimization problem. Local search algorithms are built on exactly this principle, and they are among the most widely used methods in combinatorial optimization. The same principle also appears in processes that were never designed as algorithms. For example, the convergence of Hopfield networks to stable states [13] and the adaptation of populations on fitness landscapes in evolutionary biology [5, 6] can both be viewed as local search, in which a system repeatedly makes a small change that improves an objective. Understanding how local search behaves is therefore relevant well beyond algorithm design.

A local search algorithm moves in each iteration from the current solution to an improving solution in its neighborhood until it reaches a local optimum; that is, a solution without an improving neighbor. A basic question about local search algorithms is how many iterations are needed to reach a local optimum. Following [10], we say that improving sequences are exponentially long if their length is at least 2∣I∣k2\sqrt[k]{|I|} for some fixed k∈Nk \in \mathbb{N} that is independent of the instance I. A local search problem has the is-exp property if there are infinitely many instances, each with an initial solution, from which some sequence of improving steps ending in a local optimum is exponentially long. It has the all-exp property if there are infinitely many such instances and initial solutions from which every sequence of improving steps ending in a local optimum is exponentially long. The all-exp property thus means that local search needs exponentially many iterations on these instances, no matter which improving neighbor is chosen in each iteration.

In this paper, we ask how simple an optimization problem can be while local search still has the all-exp property. We study this question for maximum constraint satisfaction (MAX-CSP), one of the most general frameworks for combinatorial optimization, with its natural neighborhood. More precisely, we consider (2,2,r)(2, 2, r)-MCA (Maximum Constraint Assignment), the version of MAX-CSP with valued constraints in which every constraint involves at most two variables, every variable occurs in at most two constraints, and every variable takes one of r values. This is about as restricted as a constraint problem can be while still allowing variables to interact. We use the flip neighborhood, in which two assignments are neighbors if they differ in the value of exactly one variable; thus, a local search step changes the value of a single variable while leaving all others unchanged.

For binary variables, that is, for domain size r=2r = 2, local search reaches a local optimum after a number of iterations that is at most quadratic in the number of variables, regardless of the weights, as follows from the more general results of [5, 6]. It is natural to ask whether this remains true for larger domains. Our main result shows that it does not: already with five values per variable, there are instances and initial assignments from which every sequence of improving steps leading to a local optimum has exponential length. Previously, no all-exp result was known for (2,2,r)(2, 2, r)-MCA with the flip neighborhood for any value of rr.

▶ Theorem 1. (2,2,r)(2,2,r)-MCA with the flip neighborhood has the all-exp property for r≥5r \geq 5.

A standard way to establish the all-exp property for a local search problem is to prove its PLS-completeness via a tight PLS-reduction. The complexity class PLS was introduced by Johnson, Papadimitriou, and Yannakakis to formalize the complexity of finding locally optimal solutions [4]. Schäffer and Yannakakis subsequently introduced tight PLS-reductions and showed that such reductions preserve the all-exp property; hence a problem that is PLS-complete under tight reductions has the all-exp property [13]. In our setting, this route to proving the all-exp property is not available, as Dumrauf and Monien [2] observed that for

(2, 2, r)-MCA even a globally optimal solution can be found in polynomial time; indeed, the constraint graph of such an instance has maximum degree two, so it is a disjoint union of paths and cycles, and an optimal assignment can be computed in polynomial time by dynamic programming. Since a global optimum is in particular a local optimum, a local optimum of (2,2,r)(2, 2, r)-MCA can be found in polynomial time. If (2,2,r)(2, 2, r)-MCA were PLS-complete, this would yield polynomial-time algorithms for all problems in PLS. Hence, unless all problems in PLS can be solved in polynomial time, (2,2,r)(2, 2, r)-MCA is not PLS-complete, and Theorem 1 must be proved by a different approach.

We therefore prove Theorem 1 directly from the definition of the all-exp property. For every n≥1n \geq 1 we construct an instance of (2,2,5)(2, 2, 5)-MCA with 2n+12n + 1 variables and 2n+12n + 1 constraints, together with an initial assignment, such that every maximal sequence of improving flips has length exactly 2n+3−72^{n+3} - 7; the case r>5r > 5 then follows by adding values that are never used. Since (2,2,r)(2, 2, r)-MCA can be solved in polynomial time, Theorem 1 also shows that the all-exp property is a statement about local search itself: these instances are easy for other algorithms, yet local search with the flip neighborhood, started at the given initial assignment, needs exponentially many steps, regardless of which improving flip it chooses in each step.