Contextuality Index Overview
- Contextuality index is a scalar measure that quantifies the degree to which an empirical model fails to admit a noncontextual description by comparing observed data with a noncontextual benchmark.
- It encompasses various approaches—including convex-decomposition measures, coupling-based (CbD) deficits, resource-theoretic ranks, and geometric constructions—each with its own operational criteria.
- These indices find applications in quantum systems, continuous-variable frameworks, and even behavioral data analysis, offering actionable insights across diverse scientific fields.
A contextuality index is a scalar quantity that quantifies the degree to which an empirical model, measurement system, or geometric configuration fails to admit a noncontextual description. In the literature, the term does not denote a single universal invariant. Instead, it names several inequivalent constructions: convex-decomposition measures such as the contextual fraction, coupling-based deficits in Contextuality-by-Default (CbD), resource-theoretic quantities such as the rank of contextuality, and geometric indices derived from projector overlaps, coset commutation, or holonomy (Svozil, 2011, Dzhafarov et al., 2015, Horodecki et al., 2022, Günhan et al., 26 Apr 2026). This suggests that the phrase is best understood as a family of quantitative formalisms attached to different notions of noncontextuality.
1. Conceptual scope and representative forms
All contextuality indices replace a binary verdict—contextual versus noncontextual—by a graded quantity. The common structure is a comparison between observed data and an admissible noncontextual model. What varies is the mathematical object being compared: a convex decomposition, a global coupling, a nonnegative factorization, or a geometric obstruction.
Representative forms appear throughout the literature.
| Family | Representative formula | Vanishing criterion |
|---|---|---|
| Convex decomposition | iff a noncontextual model suffices | |
| CbD / coupling | iff an overall coupling attains all maximal couplings | |
| Generalized CHSH-CbD | iff contextuality is absent beyond marginal inconsistency | |
| Resource-theoretic | iff is noncontextual | |
| Rank-based | 0 iff a noncontextual model exists | |
| Projector-geometric | 1 | 2 iff the projector families coincide and commute |
| Incidence-geometric | 3 | 4 iff all lines are coset-commuting |
| Holonomy-based | 5 | 6 iff all chosen cycles are flat |
A recurrent misconception is that contextuality should always be identified with a single Bell- or Kochen–Specker-type inequality violation. The literature instead contains indices adapted to inconsistent connectedness, continuous outcomes, nonnegative matrix factorizations, and state-independent geometry. Another recurrent misconception is that context-dependence and contextuality are the same; the CbD literature explicitly separates direct influences in the marginals from genuinely contextual incompatibility.
2. Convex-decomposition indices and the contextual fraction
One of the earliest explicit quantitative proposals is Svozil’s contextuality index, defined as the minimal fraction of contextual assignments required in a convex decomposition of an empirical model. If
7
with 8 noncontextual and 9 an arbitrary remainder, then
0
Svozil interprets 1 as the minimal probability of “necessary violations of noncontextual assignments” (Svozil, 2011).
In the CHSH scenario, with
2
classical models satisfy 3, while the algebraic maximum is 4. For an observed value 5 with 6,
7
At Tsirelson’s bound 8, this gives 9; at 0, one has 1; and at 2, one has 3 (Svozil, 2011). The same source states that this index is effectively the same quantity later called the contextual fraction.
The continuous-variable extension defines the noncontextual fraction
4
and the contextual fraction
5
In that framework, the Fine–Abramsky–Brandenburger theorem extends to continuous-variable scenarios, and Bell nonlocality remains a special case of contextuality (Barbosa et al., 2019). The same work states that the maximum normalised violation of any Bell-type or noncontextual inequality is precisely 6, and that 7 is a non-increasing monotone under classical operations, including outcome coarse-graining by binning. Numerically, the continuous-variable problem becomes an infinite linear program, which is then approximated by a hierarchy of semidefinite relaxations via Lasserre–Parrilo methods (Barbosa et al., 2019).
These convex-decomposition indices are especially useful when the intended meaning of “amount of contextuality” is a minimal contextual resource share. Their operational reading is explicit: they ask what fraction of the observed behaviour cannot be accounted for by any noncontextual component.
3. Coupling-based indices in Contextuality-by-Default
CbD begins from a different premise: random variables are indexed by both content and context. A system is written as
8
with each context 9 giving a jointly distributed bunch, while variables in different contexts are stochastically unrelated. Noncontextuality is defined through the existence of a single global coupling whose content-sharing marginals are as equal as they can possibly be (Dzhafarov, 2021).
For a content 0 appearing in two contexts 1, a coupling of 2 and 3 is chosen to maximize the probability of equality. For finite outcome sets 4,
5
A system is noncontextual if there exists an overall coupling 6 such that each context marginal is preserved and every pair 7 attains the corresponding maximal coincidence probability 8 (Dzhafarov, 2021).
When no such coupling exists, the contextuality index is the minimal total shortfall: 9 Equivalently, for dichotomous variables, one may express the objective through mismatch probabilities. The same source gives a linear-program formulation over the global assignment probabilities 0 and notes that the constraints and objective are linear (Dzhafarov, 2021).
For cyclic-4 systems, the CbD literature isolates the effect of inconsistent connectedness through
1
The generalized noncontextuality criterion is
2
and the corresponding generalized contextuality index is
3
When the system is consistently connected, 4 and 5 reduces to the traditional excess over the CHSH bound (Dzhafarov et al., 2015).
A related proposal measures contextuality by the minimal distance to an approximating noncontextual single-indexed system. There the index is
6
where 7 is the minimum total context-wise mismatch from any single-indexed approximation and 8 is the mismatch forced by inconsistent marginals alone. This measure agrees with a CbD measure whenever each property enters in exactly two contexts and extends the negative-probability approach to inconsistently connected systems (Kujala, 2015).
Another important result is the coincidence, in Leggett–Garg and EPR–Bell systems, between the CbD mismatch index and a negative-probability index based on minimizing the 9 norm of a signed joint distribution. In the normalization used there, both reduce to 0 (Barros et al., 2014).
4. Resource-theoretic, rank-based, and dimension-normalized indices
The rank of contextuality introduces a resource-theoretic perspective. For a behaviour 1, 2 is the minimum number of noncontextual behaviours needed so that, for every context 3, some noncontextual behaviour in the chosen set reproduces 4. Its logarithmic version is
5
This quantity is faithful, monotone under free operations, and additive under tensor products: 6 Operationally, 7 is a memory cost: it is the logarithm of the number of noncontextual internal states needed by a simulator (Horodecki et al., 2022).
The same framework gives explicit examples. For a 8-cycle behaviour,
9
For behaviours on complete bipartite graphs,
0
More generally, for any graph 1, there exists a contextual behaviour 2 such that
3
where 4 is the arboricity of 5 (Horodecki et al., 2022).
A different rank-based construction starts from a prepare-and-measure COPE matrix
6
An ontological model is an exact nonnegative matrix factorization 7, and noncontextuality is characterized by the existence of such a factorization with
8
The rank-separation index
9
therefore quantifies the minimal extra hidden-variable dimension beyond the linear dimension of the statistics. It vanishes if and only if the experiment admits a noncontextual model, and the same work states that it is monotone under classical pre- and post-processing (Shahandeh et al., 2024).
The literature also contains dimension-normalized witnesses. In high-dimensional contextuality concentration, a family of inequalities with noncontextual bound 0 and quantum bound 1 yields the Contextuality Index
2
For the family considered there, with 3 and 4 odd,
5
and asymptotically
6
The intended meaning is “contextuality packed per dimension,” i.e. a quantum–classical gap normalized by Hilbert-space dimension (Liu et al., 2022).
5. Geometric and state-independent contextuality indices
A state-independent projector-geometric construction is organized around the overlap matrix
7
where 8 and 9 are the joint-eigenspace projectors associated with two compatible observable pairs within a context. Its scalar contraction
0
lies in 1, and the logarithmic form
2
is explicitly called a contextuality index. It is state-independent, basis-invariant, and monotone under coarse-graining. The same work proves that 3 implies the existence of a noncontextual hidden-variable model for the collection of contexts 4, so 5 is a necessary condition for any state-dependent witness to fire (Günhan et al., 26 Apr 2026).
For the spin-1 KCBS pentagon, each context contributes
6
and the total is
7
In that realization, the shared 8 eigenstate forces 9, so Maassen–Uffink-type entropic bounds are trivial, yet 00 throughout. Applied to CHSH, the same framework identifies regimes in which 01, contextual fraction, entropic witnesses, and the operational commutator witness are silent while 02 remains positive by projector geometry alone (Günhan et al., 26 Apr 2026).
Planat’s incidence-geometric construction defines
03
where 04 is the total number of lines in an incidence geometry and 05 is the number of lines whose points pairwise commute in the group-theoretic sense. An alternative unnormalized ratio is
06
For Mermin’s square, 07 and 08, giving 09; for Mermin’s pentagram, 10 and 11, giving 12 (Planat, 2014).
A more recent geometric generalization appears in group-valued Boltzmann machines. For an oriented simple cycle
13
with group-valued edge weights, the holonomy is
14
Cycle-wise deviation from flatness is
15
and global indices include
16
For compact matrix groups there is also a trace-based Berry-type index built from 17. The intended interpretation is an obstruction to finding a global trivialization, equivalently a discrete curvature signal (Magnot, 5 Sep 2025).
6. Extensions, applications, and cross-disciplinary use
Contextuality indices have been extended well beyond finite, no-signalling quantum scenarios. In continuous-variable systems, the contextual fraction is formulated as an infinite linear program with a dual continuous-function program, and a hierarchy of semidefinite relaxations gives convergent numerical approximations (Barbosa et al., 2019). In resource-theoretic language, 18 has been proposed as a quantifier for probabilistic databases and randomness amplification, where it measures, respectively, minimal repair overhead and the adversary’s memory cost (Horodecki et al., 2022). The rank-separation index is applied to Hardy’s excess-baggage theorem, minimum-error quantum state discrimination, and optimal phase-covariant and universal cloning, where contextuality appears as unavoidable extra ontic dimension (Shahandeh et al., 2024).
In behavioral data, the CbD literature emphasizes that inconsistent connectedness does not by itself establish contextuality. The generalized criterion 19 separates direct context-driven marginal shifts from genuinely contextual incompatibility. In the behavioral data sets reviewed there, none exhibited contextuality in the generalized sense, while the traditional definition did not apply because the data violated consistent connectedness (Dzhafarov et al., 2015).
Natural-language applications now form an additional domain. In “Quantum-Like Contextuality in LLMs,” a linguistic schema modeled over a contextual quantum scenario was instantiated in the Simple English Wikipedia, and probability distributions were extracted for the instances using BERT. The paper reports the discovery of 77,118 sheaf-contextual and 36,938,948 CbD contextual instances. It further reports an equation between degrees of contextuality and Euclidean distances of BERT embedding vectors, and a regression model in which Euclidean distance is the best statistical predictor of contextuality. The linguistic schema is described as a variant of the co-reference resolution challenge, and the reported results are presented as an indication that quantum methods may be advantageous in language tasks (Lo et al., 2024).
A general lesson across these applications is that different contextuality indices answer different quantitative questions. Some ask for the minimal contextual share in a convex decomposition; some ask for the minimal mismatch in a global coupling; some ask for memory cost, extra ontic dimension, or geometric curvature. Consequently, numerical values from different indices are not interchangeable, even when they vanish on the same noncontextual set.