English

Neighborhood-Aware Graph Labeling Problem

Data Structures and Algorithms 2026-02-23 v2 Computational Complexity

Abstract

Motivated by optimization oracles in bandits with network interference, we study the Neighborhood-Aware Graph Labeling (NAGL) problem. Given a graph G=(V,E)G = (V,E), a label set of size LL, and local reward functions fvf_v accessed via evaluation oracles, the objective is to assign labels to maximize vVfv(xN[v])\sum_{v \in V} f_v(x_{N[v]}), where each term depends on the closed neighborhood of vv. Two vertices co-occur in some neighborhood term exactly when their distance in GG is at most 22, so the dependency graph is the squared graph G2G^2 and tw(G2)\mathrm{tw}(G^2) governs exact algorithms and matching fine-grained lower bounds. Accordingly, we show that this dependence is inherent: NAGL is NP-hard even on star graphs with binary labels and, assuming SETH, admits no (Lε)tw(G2)nO(1)(L-\varepsilon)^{\mathrm{tw}(G^2)}\cdot n^{O(1)}-time algorithm for any ε>0\varepsilon>0. We match this with an exact dynamic program on a tree decomposition of G2G^2 running in O ⁣(ntw(G2)Ltw(G2)+1)O\!\left(n\cdot \mathrm{tw}(G^2)\cdot L^{\mathrm{tw}(G^2)+1}\right) time. For approximation, unless P=NP\mathsf{P}=\mathsf{NP}, for every ε>0\varepsilon>0 there is no polynomial-time n1εn^{1-\varepsilon}-approximation on general graphs even under the promise OPT>0\mathrm{OPT}>0; without the promise OPT>0\mathrm{OPT}>0, no finite multiplicative approximation ratio is possible. In the nonnegative-reward regime, we give polynomial-time approximation algorithms for NAGL in two settings: (i) given a proper qq-coloring of G2G^2, we obtain a 1/q1/q-approximation; and (ii) on planar graphs of bounded maximum degree, we develop a Baker-type polynomial-time approximation scheme (PTAS), which becomes an efficient PTAS (EPTAS) when LL is constant.

Keywords

Cite

@article{arxiv.2602.08098,
  title  = {Neighborhood-Aware Graph Labeling Problem},
  author = {Mohammad Shahverdikondori and Sepehr Elahi and Patrick Thiran and Negar Kiyavash},
  journal= {arXiv preprint arXiv:2602.08098},
  year   = {2026}
}