Papers
Topics
Authors
Recent
Search
2000 character limit reached

CSP-PAC: Ambiguities in CSP and PAC

Updated 10 July 2026
  • CSP-PAC is an umbrella term covering frameworks from constraint satisfaction problems (PCSP) to PAC-style guarantees in anomaly detection and process algebra.
  • It highlights the challenge of acronym collisions and the need for explicit definition to distinguish between diverse computational approaches.
  • The term guides practical implementations, revealing distinct methods in anomaly detection and CSP algorithmics with unique performance guarantees.

CSP-PAC is not a standardized formalism in the arXiv sources considered here. One source on Unique (k,2)(k,2)-CSP states that it “does not mention PAC learning or a separate ‘CSP-PAC’ formalism,” and the closest process-algebraic neighbor similarly says “Probably not by that exact name” (Zamir, 2021, Ribeiro et al., 2019). The nearest technical meanings divide across Promise Constraint Satisfaction Problems (PCSPs), PAC-style guarantees for semi-supervised anomaly detection, ordinary constraint-satisfaction complexity and exact algorithms, and several process-algebraic uses of CSP such as tocktock-CSP prioritisation and compensating CSP (Asimi et al., 2020, Li et al., 2022, Al-Humaimeedy et al., 2014).

1. Terminological status

The nearby usages can be organized as follows.

Usage of “CSP” Relation to “PAC Representative source
Constraint Satisfaction Problem No PAC learning; exact algorithms and complexity classification (Zamir, 2021, Zhuk, 2017)
Promise Constraint Satisfaction Problem (PCSP) Approximation-style promise problems; no PAC formalism (Asimi et al., 2020)
Communicating Sequential Processes Prioritisation, compensation, refinement, and encodings; no PAC learning formalism (Ribeiro et al., 2019, Al-Humaimeedy et al., 2014, Hatzel et al., 2015)
Common Spatial Pattern Unrelated signal-processing acronym (Roh et al., 2023)
PAC-Wrap anomaly detection PAC guarantees without a CSP formalism (Li et al., 2022)

This suggests that “CSP-PAC” functions more as an umbrella label than as a settled technical object. A plausible implication is that any rigorous use of the expression requires an explicit expansion of both initials before the underlying mathematics can be identified.

2. PAC-style guarantees without a CSP formalism

PAC-Wrap develops the PAC side most directly. It is a wrapper for anomaly detectors that turns raw anomaly scores into a prediction-set mechanism with training-conditional guarantees on both false positives and false negatives. The setting is semi-supervised anomaly detection for safety-critical applications, where the objective is not merely good average performance but high-confidence, finite-sample guarantees that user-chosen error tolerances will not be exceeded on future data (Li et al., 2022).

For a trained detector d:XRd:X\to\mathbb{R}, PAC-Wrap builds two PAC prediction sets. The underlying threshold optimization is

τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,

with

k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,

where F(k;n,ϵ)F(k;n,\epsilon) is the CDF of a Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon) random variable. The paper uses Theorem 1 from the PAC prediction-set literature directly: Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.

For false positives, the method calibrates on a normal calibration set ZnmDnmnZ_{\text{nm}}\sim D_{\text{nm}}^n and uses

Cτ^fp(x)={{1},d(x)τ^fp, {0,1},otherwise.C_{\hat\tau_{fp}}(x)= \begin{cases} \{1\}, & d(x)\ge \hat\tau_{fp},\ \{0,1\}, & \text{otherwise}. \end{cases}

The induced detector is

tocktock0

with the guarantee

tocktock1

For false negatives, calibration is performed on anomalous data tocktock2 using

tocktock3

The induced detector is

tocktock4

with

tocktock5

The two PAC sets are intersected: tocktock6 When tocktock7, the paper’s combined guarantee states that with probability at least tocktock8, where

tocktock9

the resulting error rate is bounded by

d:XRd:X\to\mathbb{R}0

If d:XRd:X\to\mathbb{R}1, the paper introduces a relaxation strategy that increments the error/confidence budgets in steps of d:XRd:X\to\mathbb{R}2 until d:XRd:X\to\mathbb{R}3. It also gives the rule of thumb

d:XRd:X\to\mathbb{R}4

and the example that for d:XRd:X\to\mathbb{R}5, at least 59 labeled normal and 59 labeled anomalous points are needed. The empirical study reports that PAC-Wrap can wrap around Isolation Forest, LOF, DevNet, and LSTM-based detectors, and it notes explicitly that distribution shift is a limitation.

3. Promise CSP and finite tractability

The Promise Constraint Satisfaction Problem is the closest formal object if “CSP-PAC” is intended to denote a CSP-style framework for approximation or gap problems. PCSP is defined on a template pair

d:XRd:X\to\mathbb{R}6

of similar relational structures satisfying

d:XRd:X\to\mathbb{R}7

The problem d:XRd:X\to\mathbb{R}8 takes as input a finite relational structure d:XRd:X\to\mathbb{R}9 similar to τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,0, outputs “Yes” if τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,1, and outputs “No” if τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,2, under the promise that one of these cases holds. Ordinary CSP is the special case

τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,3

(Asimi et al., 2020).

The paper distinguishes tractability from finite tractability. τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,4 is finitely tractable if there exists a finite relational structure τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,5 such that

τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,6

and τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,7 is tractable. A central motivating example is the promise problem from positive 1-in-3-SAT to NAE-3-SAT. It reduces to the infinite-domain relation

τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,8

over the integers, so it is tractable via an infinite-domain CSP, but Barto’s result shows that no finite τ^=argmaxτR0 τs.t.(x,y)Z1 ⁣(yCτ(x))k,\hat\tau = \operatorname*{\arg\max}_{\tau \in \mathbb{R}_{\ge 0}} \ \tau \quad \text{s.t.} \quad \sum_{(x,y)\in Z} \mathbf{1}\!\left(y \notin C_\tau(x)\right)\le k^*,9 can serve this role unless k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,0 (Asimi et al., 2020).

The algebraic language is given by polymorphisms and minions. A minion homomorphism

k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,1

preserves arities and minors: k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,2 The paper emphasizes that PCSP complexity depends only on the k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,3 identities satisfied by polymorphisms, and that finite tractability also depends only on k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,4 identities. Its main necessary condition states that if k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,5 is a finite PCSP template that is finitely tractable, then there exists k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,6 such that for every sufficiently large prime k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,7, k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,8 has a k=argmaxkN{0}s.t.F(k;n,ϵ)δ,k^* = \operatorname*{\arg\max}_{k\in\mathbb{N}\cup\{0\}} \quad \text{s.t.}\quad F(k;n,\epsilon)\le \delta,9-ary F(k;n,ϵ)F(k;n,\epsilon)0-bounded doubly cyclic polymorphism. Within the “basic” tractable cases for symmetric Boolean PCSPs allowing negations, the paper characterizes which are finitely tractable and which are not, thereby separating problems tractable via finite CSP relaxation from problems tractable only via infinite-domain relaxation.

4. Constraint-satisfaction algorithmics outside PAC

In ordinary finite-domain CSP theory, the principal organizing theorem is the dichotomy theorem. For a finite constraint language F(k;n,ϵ)F(k;n,\epsilon)1, the paper proves: F(k;n,ϵ)F(k;n,\epsilon)2 and otherwise F(k;n,ϵ)F(k;n,\epsilon)3 is NP-complete (Zhuk, 2017). The key algebraic notion is a weak near-unanimity operation F(k;n,ϵ)F(k;n,\epsilon)4 satisfying

F(k;n,ϵ)F(k;n,\epsilon)5

with idempotence

F(k;n,ϵ)F(k;n,\epsilon)6

The proof strategy repeatedly reduces domains through absorbing subuniverses, centers, and quotient structure, and in the final linear case converts the instance into affine systems over prime fields solved by Gaussian elimination plus recursive checking.

A different line studies exact exponential-time algorithms for a restricted CSP class. Unique F(k;n,ϵ)F(k;n,\epsilon)7-CSP assumes arbitrary constraints on pairs of F(k;n,ϵ)F(k;n,\epsilon)8-ary variables and at most one satisfying assignment. The 2021 algorithm combines PPSZ-type search with the Beigel–Eppstein local-reduction algorithm. It processes a prefix of the variables using eligible values

F(k;n,ϵ)F(k;n,\epsilon)9

then solves the residual instance by an extended Beigel–Eppstein routine. The analysis uses the recurrence

Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)0

The paper improves the best known bounds for Unique Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)1-CSP for Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)2, including

Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)3

(Zamir, 2021).

Constraint-satisfaction methods also appear in planning. Graphplan’s backward plan extraction is formulated as solving a dynamic constraint satisfaction problem (DCSP), where propositions at each level are variables, supporting actions are domain values, and mutexes induce constraints. On that view, explanation based learning, dependency directed backtracking, dynamic variable ordering, forward checking, sticky values, and random-restart search strategies can be adapted to Graphplan. The paper reports that these augmentations improve Graphplan’s performance significantly, “up to 1000x speedups” on several benchmark problems, and it identifies explanation-based learning and dependency directed backtracking as empirically the most useful (Kambhampati, 2011).

5. Process-algebra meanings of CSP

A substantial part of the literature uses CSP in the process-algebraic sense of Communicating Sequential Processes rather than constraint satisfaction. In one direction, CSP’s multi-way synchronization is encoded into asynchronous CCS with name passing and matching. Two encodings are given: a centralized encoding Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)4, which is correct up to weak bisimilarity but does not preserve distributability, and a decentralized encoding Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)5, which preserves distributability but is only correct up to coupled similarity. Both encodings share the same inner translation Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)6, based on announcements, Boolean locks, and coordinators (Hatzel et al., 2015).

Another direction studies prioritisation in Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)7-CSP. The paper develops a denotational definition for prioritisation in the Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)8-CSP model via a Galois connection with the finite-linear model: Binomial(n,ϵ)\mathrm{Binomial}(n,\epsilon)9 for Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.0-healthy processes Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.1. It is motivated by maximal progress, where time should only advance after internal activity has stabilised, and it formalizes the result in Isabelle/HOL. The same source states explicitly that the work is about prioritisation in timed CSP and “does not introduce an operator named ‘PAC’” (Ribeiro et al., 2019).

Compensating CSP provides yet another meaning. DEcCSP extends Compensating CSP with general dynamic recovery, standard CSP operators, and channel communication. Its key innovation is the use of process variables as compensation placeholders: Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.2 together with runtime assignment

Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.3

This allows compensations to be replaced or discarded before recovery begins (Al-Humaimeedy et al., 2014).

Behavioral refinement and concurrency are treated in still other CSP variants. Event-B refinement is captured as CSP traces-divergences-infinite-traces refinement,

Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.4

with event splitting, new events, and convergence handled via renaming, Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.5, and the predicate Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.6 (Schneider et al., 2011). Communicating Concurrent Processes modifies standard CSP so that traces contain sets of simultaneous events, for example

Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.7

and parallel composition may produce

Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.8

(Wang, 2018).

6. Acronym collisions and practical disambiguation

A further collision arises because CSP can also mean common spatial pattern in signal processing. In robust common spatial pattern analysis for EEG/BCI, the minmax CSP problem is recast as an eigenvector-dependent nonlinear eigenvalue problem and solved by a self-consistent field iteration with line search. The robust objective is

Cτ^ is (ϵ,δ)-correct.C_{\hat\tau}\ \text{is }(\epsilon,\delta)\text{-correct}.9

and the SCF-based solver is reported to improve motor imagery classification rates and running time relative to the existing minmax CSP algorithm (Roh et al., 2023). This usage is unrelated to constraint satisfaction and unrelated to PAC-Wrap.

This suggests that the expression “CSP-PAC” cannot be interpreted reliably without local definition. In the arXiv literature surveyed here, the closest technically coherent readings are: PCSP as the approximation-style promise extension of CSP; PAC-Wrap as a PAC-guarantee layer for anomaly detection; and several independent CSP traditions in exact algorithms, planning, process algebra, and signal processing. A plausible implication is that the term is best reserved for contexts where the intended expansion is stated explicitly, because the underlying theories, semantics, and guarantees are otherwise incompatible.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to CSP-PAC.