arXiv:2610.41081cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41081

Optimization Techniques for Solving the Minimum Red--Blue Separating Set Problem with an Application to Human--AI Text Separation

Marko Djukanović, Staša Vujičić Stanković, Žiga Zebec, Christian Blum

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the so-called Minimum Red-Blue Separating Set Problem (MRBSSP) which arises from computational geometry. In particular, we propose a compact Set-Cover ILP formulation, safe preprocessing rules, a Greedy Randomized Adaptive Search Procedure (GRASP), and two exact approaches: one is based on Logic-Based Benders Decomposition (LBBD) approach, and the second represents a novel Branch-and-Benders-Cut (BBC) approach. These two exact approaches are compared to ILP–alongside GRASP and the Variable Neighborhood Search (VNS) from literature. Experiments on 250 random graphs with up to 500 vertices reveal complementary strengths: ILP yields the best feasible solutions, LBBD provides the strongest lower bounds and smallest mean optimality gap, and BBC certifies optimality most frequently. We further introduce an NLP application distinguishing human- and AI-generated texts through vocabulary-based graph features. On 42 instances, BBC achieves the smallest mean optimality gap, certifying 16 optima, while GRASP outperforms VNS. Structural analysis of optimal vocabulary separators identifies 113 mandatory and 151 replaceable features across 272 tests, highlighting substantial variability among optimal solutions. Overall, our results demonstrate the effectiveness of complementary optimization strategies and the interpretability of optimal vocabulary-based discrimination.

1 Introduction

Separating objects of different types by a small number of selected features, tests, or sensors is a recurring theme in combinatorial optimization, data analysis, and network design [4, 1, 2, 25, 26]. In graph settings, this principle leads naturally to separation problems in which the goal is not merely to dominate or cover vertices, but to distinguish pairs of vertices belonging to different classes. The Minimum Red-Blue Separating Set Problem (MRBSSP) captures this requirement in a particularly compact form. Given a graph G=(V,E)G = (V, E) and two disjoint sets of terminals, red vertices RR and blue

*Corresponding author:marko.dukanovic@ung.si †stasa.vujicic.stankovic@matf.bg.ac.rs ‡ziga.zebec@izum.si §christian.blum@csic.es vertices BB, the task is to select a minimum-cardinality subset S⊆VS \subseteq V such that every red-blue pair (r,b)∈R×B(r,b) \in R \times B is separated by at least one selected vertex. A vertex v∈Vv \in V separates the pair (r,b)(r,b) if its closed neighborhood N[v]N[v] contains exactly one of rr and bb. Thus, each selected vertex acts as a local test: it distinguishes precisely those terminal pairs for which one endpoint is inside its closed neighborhood and the other is outside.

MRBSSP can be viewed as a structured Set-Cover problem [7, 22, 10]. The universe of elements to be covered is the Cartesian product R×BR \times B, and each candidate vertex v∈Vv \in V covers the subset of red-blue pairs that it separates. The natural integer programming formulation therefore contains one binary variable for each vertex and one covering constraint for each red-blue terminal pair. This formulation is conceptually simple and results in a direct exact model, but it can become large even for moderate instances, since the number of constraints grows with ∣R∣∣B∣|R||B|. Moreover, many of these constraints may be irrelevant for a large part of the search, because a candidate solution typically violates only a small subset of all red-blue pairs. This observation is the starting point for the decomposition and cut-generation methods [32, 33] studied in this paper.

The problem is closely related to several established lines of research. At the most general level, MRBSSP inherits the modeling structure and computational difficulty of Set Cover and Hitting Set [35, 17], classical NP-hard problems for which integer programming, greedy heuristics, and approximation algorithms form the standard methodological toolkit [14]. It is also related to Red-Blue Set Cover, introduced by Carr et al. [8], where the objective is to cover all blue elements while minimizing the number of red elements covered. Although MRBSSP has a different graph-based separation semantics, both problems share the same red-blue modeling philosophy: one must satisfy conditions involving one color class while controlling how the other color class is affected. More directly, MRBSSP is connected to the Red-Blue Separation problem on graphs studied by Dev et al. [13], where a small set of vertices is selected so that every red-blue pair is distinguished by the closed neighborhood of at least one selected vertex. That work establishes the graph-theoretic and complexity foundations of the problem, including hardness results and approximation guarantees for the general case. Complementing this theoretical line, Milojković [28] recently proposed a Variable Neighborhood Search (VNS) [30] heuristic for the MRBSSP, showcasing that neighborhood-based metaheuristics can provide competitive feasible solutions for graph instances. The present paper builds on this emerging computational perspective by focusing on exact and hybrid methods, using the VNS method from the literature [28] and the newly introduced GRASP as strong heuristic reference baselines while emphasizing certification and dual-bound progress.

From an algorithmic perspective, MRBSSP is particularly well suited to decomposition. Once a candidate set SS of selected vertices is fixed, assessing feasibility reduces to a simple set-intersection test: for every red-blue pair (r,b)(r,b), one verifies whether SS contains at least one vertex that separates the pair. If such a pair is not separated, the corresponding Set-Cover constraint is violated and can be added as a cut. This structure is a natural match for Logic-Based Benders Decomposition (LBBD) [23], where a master problem proposes a candidate solution and a logical subproblem either verifies feasibility or returns violated constraints. It is also a natural match for Branch-and-Benders-Cut (BBC), where the same feasibility oracle is embedded inside a single branch-and-bound tree through lazy constraint generation [31], in the spirit of the combinatorial Benders cuts of Codato and Fischetti [12]. The essential distinction is that iterative LBBD repeatedly solves a sequence of master problems, whereas BBC preserves the global search tree and injects cuts only when they are needed.

The motivation for this study is therefore twofold. First, the direct ILP model for MRBSSP is easy to state but may be inefficient because it builds the full ∣R∣∣B∣|R||B| constraint family in advance. Second, purely heuristic methods such as GRASP or VNS can rapidly produce good feasible solutions, but they do not provide the dual bounds nor the optimality certification. This creates a natural methodological question: can the structure of MRBSSP be exploited to obtain exact methods that retain the certification strength of integer programming while avoiding unnecessary constraint generation and benefiting from high-quality heuristic incumbents?

We investigate this question on two deliberately different benchmark families. The first is a broad RANDOM benchmark composed of synthetically generated graphs with varying sizes and densities. Its role is to stress the algorithms under controlled structural variation and to permit a systematic comparison of primal performance, dual-bound progress, optimality gaps, certification rates, and heuristic stability. The second is an NLP-derived benchmark in which human- and AI-generated texts are represented through vocabulary-incidence graphs. In this family, the selected separator has a direct feature-selection interpretation: a minimum set of vocabulary features is sought that distinguishes every human-AI text pair. The NLP instances therefore complement the synthetic study with a real-data setting in which both computational performance and the structure of the resulting optimal separators can be interpreted. The two benchmark families serve different but complementary purposes.

To the best of our knowledge, this work is among the earliest systematic exact computational studies of MRBSSP. It establishes optimality certificates for benchmark instances previously treated primarily by heuristic methods and compares three complementary exact strategies against two metaheuristic baselines across both synthetic and real-data benchmark families. The main contributions are as follows.

  • We present a unified exact-optimization framework for MRBSSP based on the Set-Cover interpretation of red-blue pair separation.

  • We formulate and compare three exact strategies, which, to the best of our knowledge, are the first ones developed for MRBSSP: a GRASP-warm-started ILP, an iterative LBBD method, and a BBC implementation based on lazy separation cuts within a single branch-and-bound tree.

  • We develop a GRASP construction and local-improvement procedure used both as a standalone heuristic and as a source of high-quality incumbents for the exact methods, and compare it with a VNS baseline from the literature.

  • We show how MRBSSP feasibility can be checked by a simple logical oracle that detects uncovered red-blue pairs and generates valid Set-Cover cuts, with only a limited number of heuristically selected cuts added per LBBD iteration or BBC callback invocation.

  • We conduct a broad computational study on a RANDOM benchmark of 250 graphs spanning multiple sizes and densities. This benchmark is used for systematic algorithmic stress testing, including primal quality, lower-bound progress, optimality gaps, certification behavior, parameter tuning, and repeated-run stability of GRASP and VNS.

  • We introduce a second, structurally different benchmark family derived from NLP vocabulary-separation instances for distinguishing human- and AI-generated texts, providing both a real-data computational benchmark and an interpretable feature-selection application of MRBSSP. For the NLP benchmark, we go beyond objective-value comparison and analyze the structure of certified optimal separators by forbidding selected vertices one at a time. This distinguishes mandatory vocabulary features that occur in every optimum from replaceable features that belong only to some optimal solutions.

References (28)