Neighborhood-Aware Graph Labeling Problem

Mohammad Shahverdikondori, Sepehr Elahi, Patrick Thiran, Negar KiyavasharXiv 2026

TL;DR

This paper introduces and formalizes the Neighborhood-Aware Graph Labeling (NAGL) problem, which models optimization challenges found in multi-armed bandits with network interference. The authors prove that the problem's exact complexity is tightly bound to the treewidth of the squared graph ($\text{tw}(G^2)$) under the Strong Exponential Time Hypothesis (SETH). To tackle this hardness, they present a matching exact dynamic programming algorithm alongside efficient approximation schemes for sparse and planar graphs.

What Problem Does This Paper Address?

In many networked systems—such as vaccination campaigns, social media marketing, or localized economic interventions—an action taken at a single node doesn't just affect that node; it spills over to its neighbors. When designing machine learning algorithms for these settings (like network-interference bandits), algorithms frequently need to query an "optimization oracle." This oracle must find a global assignment of labels (actions) that maximizes the sum of overlapping local rewards.

The authors formalize this as the Neighborhood-Aware Graph Labeling (NAGL) problem. Because a node's reward depends on its entire closed neighborhood, any two nodes within a distance of 2 interact. This means the true dependency structure is captured not by the base graph $G$, but by its squared graph $G^2$. Prior work focused heavily on the statistical challenges of learning under network interference, leaving the underlying computational complexity of this optimization step unexamined. This paper fills that gap.

Methods

The authors map out the computational boundaries of NAGL using a mix of hardness proofs and algorithmic design:

  • Hardness Reductions: They reduce $k$-SAT to NAGL on a star graph to establish NP-hardness and a SETH-tight lower bound. They also reduce from the Maximum Independent Set (MIS) problem to prove strong inapproximability limits.
  • Clique-Focused Dynamic Programming (CFDP): They design an exact algorithm that operates bottom-up on a nice tree decomposition of the squared graph $G^2$. Because a node's closed neighborhood forms a clique in $G^2$, its local reward can be fully evaluated within a single bag of the tree decomposition.
  • Coloring-Based Approximation: For settings with nonnegative rewards, they leverage graph coloring on $G^2$. Since nodes sharing the same color have completely disjoint neighborhoods, their local rewards can be maximized independently, yielding a $1/q$-approximation given a $q$-coloring.
  • Baker-Type Shifting Scheme: For planar graphs with a bounded maximum degree, the authors apply a layer-splitting technique via Breadth-First Search (BFS). By deleting specific layers, they break the graph into independent components of bounded treewidth, solve them exactly using CFDP, and achieve a Polynomial-Time Approximation Scheme (PTAS).

Datasets

The algorithms were evaluated using both synthetic structures and real-world networks from the Network Data Repository (NRVis):

  • road-minnesota: A road network dataset used to generate BFS-induced subgraphs (ranging from 40 to 500 vertices) to test exact solvers under growing treewidth.
  • road-usroads: A massive road network dataset used to evaluate the scalability of a budgeted monotone submodular variant of the problem (up to 126,146 vertices).
  • Synthetic Ladder Graphs ($2 \times r$): Used as a benchmark graph family with a constant squared treewidth ($\text{tw}(G^2) = 4$) to isolate how the algorithms scale purely with the number of vertices $n$ (up to 20,000).

Key Insights and Ideas

  • The Power of the Square: The complexity of NAGL is completely decoupled from the treewidth of the base graph $\text{tw}(G)$. For example, a star graph has a trivial treewidth of 1, but its squared graph $G^2$ is a complete clique with a treewidth of $n-1$. This explains why the problem remains NP-hard even on simple star topologies.
  • The Gap-at-Zero Barrier: The authors identify a strict mathematical barrier: if rewards are allowed to be negative, no polynomial-time algorithm can guarantee any finite multiplicative approximation ratio. Distinguishing between an optimal total reward of 0 versus 1 is as hard as solving SAT.
  • Local-to-Global Submodularity: For budgeted scenarios, the authors prove that if the local neighborhood reward functions exhibit diminishing returns (submodularity), the global objective function naturally inherits this property. This allows a standard greedy strategy to bypass the graph-squared complexity entirely and guarantee a clean $(1-1/e)$ approximation ratio.

Key Results

  • SETH-Tight Exact Bounds: The authors prove that no algorithm can solve NAGL in $(L-\varepsilon)^{\text{tw}(G^2)} \cdot n^{O(1)}$ time for any $\varepsilon > 0$ (where $L$ is the label set size). Their CFDP algorithm perfectly matches this lower bound with a running time of $O(n \cdot \text{tw}(G^2) \cdot L^{\text{tw}(G^2)+1})$.
  • Algorithmic Speedups: In empirical evaluations on ladder graphs, CFDP scaled smoothly up to $n = 20,000$ vertices in roughly 20 seconds. In contrast, a standard Integer Linear Programming (ILP) baseline hit the 10-hour timeout at just $n = 120$ vertices.
  • Road Network Performance: On Minnesota road subgraphs where treewidth scales with size, CFDP crushed the ILP baseline, solving size-200 instances in 15 seconds compared to ILP's 16 minutes.

Limitations and Future Work

  • Structural Dependencies: The proposed approximation algorithms rely heavily on rigid graph properties, such as planarity or bounded maximum degrees. For dense, highly connected general graphs, finding high-quality approximations remains computationally daunting.
  • Future Directions: The authors suggest shifting focus away from graph topology and toward the algebraic structure of the reward functions. In real-world applications, neighborhood interactions are often simplified (e.g., depending only on the count of treated neighbors). Identifying which specific families of restricted reward functions allow for polynomial-time optimization on general graphs is highlighted as a key open problem.

Summary updated

BibTeX
@misc{shahverdikondori2026neighborhood,
  author = {Mohammad Shahverdikondori and Sepehr Elahi and Patrick Thiran and Negar Kiyavash},
  title = {{Neighborhood-Aware Graph Labeling Problem}},
  year = {2026},
  eprint = {2602.08098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.08098},
}
Figure