Papers
Topics
Authors
Recent
Search
2000 character limit reached

Contextuality Index Overview

Updated 5 July 2026
  • 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 λ(e)=min{λ[0,1]e=(1λ)eNC+λeC}\lambda^*(e)=\min\{\lambda\in[0,1]\mid e=(1-\lambda)e^{NC}+\lambda e^C\} λ(e)=0\lambda^*(e)=0 iff a noncontextual model suffices
CbD / coupling Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,] Δ=0\Delta^*=0 iff an overall coupling attains all maximal couplings
Generalized CHSH-CbD Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\} Cgen=0C_{\rm gen}=0 iff contextuality is absent beyond marginal inconsistency
Resource-theoretic RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P)) RC2(P)=0\mathrm{RC}_2(P)=0 iff PP is noncontextual
Rank-based Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr] λ(e)=0\lambda^*(e)=00 iff a noncontextual model exists
Projector-geometric λ(e)=0\lambda^*(e)=01 λ(e)=0\lambda^*(e)=02 iff the projector families coincide and commute
Incidence-geometric λ(e)=0\lambda^*(e)=03 λ(e)=0\lambda^*(e)=04 iff all lines are coset-commuting
Holonomy-based λ(e)=0\lambda^*(e)=05 λ(e)=0\lambda^*(e)=06 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

λ(e)=0\lambda^*(e)=07

with λ(e)=0\lambda^*(e)=08 noncontextual and λ(e)=0\lambda^*(e)=09 an arbitrary remainder, then

Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]0

Svozil interprets Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]1 as the minimal probability of “necessary violations of noncontextual assignments” (Svozil, 2011).

In the CHSH scenario, with

Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]2

classical models satisfy Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]3, while the algebraic maximum is Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]4. For an observed value Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]5 with Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]6,

Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]7

At Tsirelson’s bound Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]8, this gives Δ=minS[wq(c,c)Pr(Sqc=Sqc)]\Delta^*=\min_S \sum [\,w_q(c,c')-\Pr(S_q^c=S_q^{c'})\,]9; at Δ=0\Delta^*=00, one has Δ=0\Delta^*=01; and at Δ=0\Delta^*=02, one has Δ=0\Delta^*=03 (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

Δ=0\Delta^*=04

and the contextual fraction

Δ=0\Delta^*=05

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 Δ=0\Delta^*=06, and that Δ=0\Delta^*=07 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

Δ=0\Delta^*=08

with each context Δ=0\Delta^*=09 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 Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}0 appearing in two contexts Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}1, a coupling of Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}2 and Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}3 is chosen to maximize the probability of equality. For finite outcome sets Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}4,

Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}5

A system is noncontextual if there exists an overall coupling Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}6 such that each context marginal is preserved and every pair Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}7 attains the corresponding maximal coincidence probability Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}8 (Dzhafarov, 2021).

When no such coupling exists, the contextuality index is the minimal total shortfall: Cgen=max{0,SICC2}C_{\rm gen}=\max\{0,S-\mathrm{ICC}-2\}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 Cgen=0C_{\rm gen}=00 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

Cgen=0C_{\rm gen}=01

The generalized noncontextuality criterion is

Cgen=0C_{\rm gen}=02

and the corresponding generalized contextuality index is

Cgen=0C_{\rm gen}=03

When the system is consistently connected, Cgen=0C_{\rm gen}=04 and Cgen=0C_{\rm gen}=05 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

Cgen=0C_{\rm gen}=06

where Cgen=0C_{\rm gen}=07 is the minimum total context-wise mismatch from any single-indexed approximation and Cgen=0C_{\rm gen}=08 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 Cgen=0C_{\rm gen}=09 norm of a signed joint distribution. In the normalization used there, both reduce to RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))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 RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))1, RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))2 is the minimum number of noncontextual behaviours needed so that, for every context RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))3, some noncontextual behaviour in the chosen set reproduces RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))4. Its logarithmic version is

RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))5

This quantity is faithful, monotone under free operations, and additive under tensor products: RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))6 Operationally, RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))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 RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))8-cycle behaviour,

RC2(P)=log2(RC(P))\mathrm{RC}_2(P)=\log_2(\mathrm{RC}(P))9

For behaviours on complete bipartite graphs,

RC2(P)=0\mathrm{RC}_2(P)=00

More generally, for any graph RC2(P)=0\mathrm{RC}_2(P)=01, there exists a contextual behaviour RC2(P)=0\mathrm{RC}_2(P)=02 such that

RC2(P)=0\mathrm{RC}_2(P)=03

where RC2(P)=0\mathrm{RC}_2(P)=04 is the arboricity of RC2(P)=0\mathrm{RC}_2(P)=05 (Horodecki et al., 2022).

A different rank-based construction starts from a prepare-and-measure COPE matrix

RC2(P)=0\mathrm{RC}_2(P)=06

An ontological model is an exact nonnegative matrix factorization RC2(P)=0\mathrm{RC}_2(P)=07, and noncontextuality is characterized by the existence of such a factorization with

RC2(P)=0\mathrm{RC}_2(P)=08

The rank-separation index

RC2(P)=0\mathrm{RC}_2(P)=09

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 PP0 and quantum bound PP1 yields the Contextuality Index

PP2

For the family considered there, with PP3 and PP4 odd,

PP5

and asymptotically

PP6

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

PP7

where PP8 and PP9 are the joint-eigenspace projectors associated with two compatible observable pairs within a context. Its scalar contraction

Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]0

lies in Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]1, and the logarithmic form

Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]2

is explicitly called a contextuality index. It is state-independent, basis-invariant, and monotone under coarse-graining. The same work proves that Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]3 implies the existence of a noncontextual hidden-variable model for the collection of contexts Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]4, so Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]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

Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]6

and the total is

Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]7

In that realization, the shared Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]8 eigenstate forces Δrank(C)=minC=FE[max{rank(F),rank(E)}rank(C)]\Delta_{\rm rank}(C)=\min_{C=FE}\bigl[\max\{\mathrm{rank}(F),\mathrm{rank}(E)\}-\mathrm{rank}(C)\bigr]9, so Maassen–Uffink-type entropic bounds are trivial, yet λ(e)=0\lambda^*(e)=000 throughout. Applied to CHSH, the same framework identifies regimes in which λ(e)=0\lambda^*(e)=001, contextual fraction, entropic witnesses, and the operational commutator witness are silent while λ(e)=0\lambda^*(e)=002 remains positive by projector geometry alone (Günhan et al., 26 Apr 2026).

Planat’s incidence-geometric construction defines

λ(e)=0\lambda^*(e)=003

where λ(e)=0\lambda^*(e)=004 is the total number of lines in an incidence geometry and λ(e)=0\lambda^*(e)=005 is the number of lines whose points pairwise commute in the group-theoretic sense. An alternative unnormalized ratio is

λ(e)=0\lambda^*(e)=006

For Mermin’s square, λ(e)=0\lambda^*(e)=007 and λ(e)=0\lambda^*(e)=008, giving λ(e)=0\lambda^*(e)=009; for Mermin’s pentagram, λ(e)=0\lambda^*(e)=010 and λ(e)=0\lambda^*(e)=011, giving λ(e)=0\lambda^*(e)=012 (Planat, 2014).

A more recent geometric generalization appears in group-valued Boltzmann machines. For an oriented simple cycle

λ(e)=0\lambda^*(e)=013

with group-valued edge weights, the holonomy is

λ(e)=0\lambda^*(e)=014

Cycle-wise deviation from flatness is

λ(e)=0\lambda^*(e)=015

and global indices include

λ(e)=0\lambda^*(e)=016

For compact matrix groups there is also a trace-based Berry-type index built from λ(e)=0\lambda^*(e)=017. 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, λ(e)=0\lambda^*(e)=018 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 λ(e)=0\lambda^*(e)=019 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.

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 Contextuality Index.