Abstract
The unit selection problem aims to identify objects, called units, that are most likely to exhibit a desired mode of behavior when subjected to stimuli (e.g., customers who are about to churn but would change their mind if encouraged). Unit selection with counterfactual objective functions was introduced relatively recently with existing work focusing on bounding a specific class of objective functions, called the benefit functions, based on observational and interventional data—assuming a fully specified model is not available to evaluate these functions. We complement this line of work by proposing the first exact algorithm for finding optimal units given a broad class of causal objective functions and a fully specified structural causal model (SCM). We show that unit selection under this class of objective functions is NP^PP-complete but is NP-complete when unit variables correspond to all exogenous variables in the SCM. We also provide treewidth-based complexity bounds on our proposed algorithm while relating it to a well-known algorithm for Maximum a Posteriori (MAP) inference.
Introduction
In fields such as personalized medicine and targeted marketing, the goal is often to identify specific individuals or "units" that will respond optimally to a treatment. For instance, a marketer wants to target "responders"—customers who would renew a subscription if given an incentive, but would not do so otherwise. This is a fundamentally counterfactual problem, as it requires reasoning about what would have happened under different, mutually exclusive scenarios for the same individual.
While previous research has focused on establishing mathematical bounds for these "benefit functions" when data is limited, this paper addresses the computational challenge: given a complete Structural Causal Model (SCM), how can we efficiently identify the absolute best units to target? This work provides the first exact algorithm for this task and establishes its computational complexity.
Methodology
Reverse-MAP (RMAP)
The authors introduce a new form of probabilistic inference called Reverse-MAP (RMAP). While standard Maximum a Posteriori (MAP) inference finds the most likely state of variables given evidence, RMAP identifies the most likely conditioning state that maximizes a target probability. This formulation allows the unit selection problem to be treated as an optimization over the characteristics that define a unit.
The Objective Model and Triplet Graphs
To evaluate complex counterfactual objective functions, the authors transform the causal problem into a standard observational probability problem on an augmented graph. This involves the use of "triplet models," which represent different counterfactual scenarios simultaneously by sharing exogenous noise across multiple copies of the original causal graph.
For complex objective functions involving linear combinations of counterfactuals, the authors construct an "objective model." This model creates "parallel worlds" (represented as components $G^1, G^2, \dots$) to compute various counterfactual terms in parallel, eventually aggregating them into a single target variable.
RMAP-VE Algorithm
The proposed RMAP-VE algorithm adapts the classic Variable Elimination (VE) technique. It performs two passes of elimination to compute necessary probability ratios and then maximizes over the unit variables. The runtime of this algorithm is bounded by the treewidth of the augmented graph, a measure of its structural complexity.
Complexity and Algorithmic Results
Computational Hardness
The paper proves that general unit selection is $NP^{PP}$-complete. This puts it in a significantly more difficult complexity class than standard $NP$-complete problems, as it requires both counting (summing over hidden variables) and optimization (finding the maximum). However, a key insight is that if the variables being selected (the units) are all exogenous (root) variables in the SCM, the problem simplifies to being $NP$-complete.
Structural Bounds
The authors provide concrete theoretical bounds for the complexity of their algorithm. For many common objective functions, the treewidth of the objective model is at most $3w+3$, where $w$ is the treewidth of the original SCM. Interestingly, they show that for certain classes of functions, the computational complexity does not necessarily scale with the number of terms in the objective function, allowing for the evaluation of complex behavioral patterns without a proportional performance penalty.
Experimental Evaluation
As the focus is on exact solutions for fully specified models, the authors evaluated RMAP-VE using synthetic datasets consisting of randomly generated SCMs with varying node counts and edge densities. In these benchmarks, RMAP-VE significantly outperformed a brute-force baseline that enumerates all possible unit instantiations. The performance gap widened as the number of variables and unit variables increased, demonstrating the viability of the variable elimination approach for structured causal models.
Conclusion
This work establishes the theoretical and algorithmic foundations for exact causal unit selection. By reducing the problem to RMAP and providing the RMAP-VE algorithm, the authors offer a path toward optimal decision-making in personalized interventions. Future work includes extending these methods to settings where only partial model information is available and exploring "causal treewidth" to further refine complexity bounds.
Summary updated