Pairwise Complexity in Inference and Models
- Pairwise complexity is a concept that quantifies the burden of using binary comparisons to reconstruct global structure, balancing statistical reduction with a quadratic increase in candidate evaluations.
- It underpins diverse applications such as ranking identification, active learning, parameter estimation in regression, and experimental design through efficient pairwise formulations.
- This framework transforms higher-order dependencies into pairwise interactions, offering insights into trade-offs between simpler statistical models and increased computational demands.
Pairwise complexity is a family of complexity notions that arise when inference, learning, or system description is organized around pairwise relations rather than pointwise observations. In the cited literature, the phrase covers at least four distinct quantities: the number of pairwise comparisons needed to identify a ranking or decision boundary; the computational burden induced by the set of candidate pairs; the stochastic or structural complexity of models whose sufficient statistics or interactions are pairwise; and combinatorial complexity measures defined directly from pairwise dependencies (Jamieson et al., 2011, Beretta et al., 2017, Bar-Yam et al., 2012). This breadth is not accidental. Pairwise formulations often replace absolute labels by relative judgments, or high-order structure by binary relations, which can either reduce statistical complexity through strong structural assumptions or increase computational complexity because the ambient pair space is quadratic.
1. Comparison-query complexity and ranking identification
A central use of pairwise complexity is as a query-complexity notion: how many pairwise comparisons are required to reconstruct a latent order. Without structural assumptions, determining an arbitrary total order on objects requires comparisons, because there are possible rankings and bits must be acquired. Under the geometric reference-point model, however, objects are embedded at known locations in , rankings are induced by distance to an unknown reference point , and each pairwise comparison is equivalent to asking on which side of a perpendicular bisector hyperplane lies. The number of realizable rankings is then , with recursion
so the information-theoretic lower bound becomes 0 rather than 1. An adaptive algorithm that queries only ambiguous comparisons satisfies
2
whereas uniformly random non-adaptive queries identify a unique ranking with probability
3
implying that 4 comparisons are required to recover the ranking with reasonable probability (Jamieson et al., 2011).
A different active-ranking formulation considers agnostic tournaments, where pairwise preferences may be non-transitive. There the objective is to output a permutation whose loss, measured by the minimum feedback arc-set in tournaments objective, is close to optimal while querying only a small number of labels. An active algorithm based on an 5-good decomposition returns, with constant probability, such a decomposition using at most
6
queries in expectation, and the resulting surrogate optimization yields a permutation 7 satisfying
8
By contrast, non-adaptive VC-style uniform sampling can require essentially quadratic sample size for small positional regret (Ailon, 2010).
Pairwise comparisons can also reduce binary classification to threshold learning. With noisy label and comparison oracles, the ADGAC reduction sorts unlabeled points using the comparison oracle and then locates a threshold by groupwise label queries. Under Tsybakov noise, the resulting label complexity scales like threshold learning,
9
while total query complexity is
0
The lower bound
1
shows that the dependence on the accuracy term and the dimensional term is nearly optimal up to logarithmic factors (Xu et al., 2017).
2. Stochastic comparison models, top-2 selection, and regression
In stochastic comparison models, pairwise complexity is usually a sample-complexity notion. For active best-3 selection under Strong Stochastic Transitivity and the Stochastic Triangle Inequality, the PAC problem admits a matching instance-independent characterization: any algorithm must use
4
comparisons in expectation, and the Tournament-5-Selection procedure achieves
6
comparisons in expectation. For exact best-7 identification, hardness becomes instance dependent through the boundary gaps 8. The paper gives a worst-instance lower bound
9
and proposes SEEBS for 0 with complexity
1
and SEEKS for general 2 with complexity
3
optimal up to log or loglog factors (Ren et al., 2020).
Rank regression from pairwise comparisons places pairwise complexity in a feature-based estimation setting. There are 4 Gaussian feature vectors in 5, pair indices are sampled uniformly at random from the first 6 samples, and comparison outcomes are generated by a generalized linear model
7
The estimator
8
is unbiased up to a positive scale factor 9. A sufficient condition for 0 with high probability is
1
with probability bound
2
The analysis is explicitly dependence-aware because the same sample can participate in many queried pairs (Kadioglu et al., 2021).
Pairwise comparisons also support personalization through latent user types. In a mixed Bradley–Terry model with 3 users, 4 items, and 5 user types, the algorithmic pipeline computes each user’s net-win vector, clusters users in this projected space, and then performs Bradley–Terry maximum likelihood within each cluster. The paper states that accurate individual preferences for almost all users are achievable if there are
6
pairwise comparisons per type, and describes this scaling as near optimal when 7 only grows logarithmically with 8 or 9 (Wu et al., 2015).
3. Computational complexity induced by the quadratic pair space
When pairwise formulations are used algorithmically, the dominant difficulty is often not sample complexity but the quadratic cardinality of the candidate set. In D-optimal experimental design for pairwise comparisons, the candidate pool is
0
A naive greedy algorithm for selecting 1 comparisons evaluates all candidates at every iteration, giving
2
time. By exploiting pairwise difference geometry, Cholesky factorization, and scalar rank-one updates, this can be reduced to
3
with lazy greedy variants providing additional practical speedups (Guo et al., 2019).
The same quadratic growth appears in pairwise empirical risk minimization. In stagewise proximal pairwise learning, the empirical pair set has size
4
so a deterministic full-gradient method would cost 5. The proposed proximal DSGD instead combines adaptive sample-size growth with importance sampling over opposite instances and obtains total iterations
6
hence 7 time to reach statistical accuracy, while maintaining the pairwise objective and nonsmooth regularization (AlQuabeh et al., 2022).
Online pairwise learning exhibits the same phenomenon over time rather than dataset size. Naive online pairwise OGD computes, at round 8, a gradient against all 9 past points and therefore costs 0 per round and 1 overall. In the kernelized setting with random Fourier features of dimension 2, the naive complexity is 3. The FPOGD method replaces full-history gradients by a limited-memory, variance-reduced estimator built from a stratified buffer of size 4, yielding total time
5
and using
6
features for kernel approximation. Its regret bound isolates the cumulative variance term
7
so computational reduction and statistical improvement are directly linked (AlQuabeh et al., 2023).
In PLM-based learning-to-rank, pairwise complexity is dominated by the joint encoding cost of two candidates. Naive pairwise inference over 8 candidates costs
9
where 0 is the forward-pass cost for sequence length 1. The GLIMPSE framework instead combines pointwise scoring with right-to-left refinement over the top-2 items, giving
3
so the pairwise stage is compressed from 4 to 5 comparisons per pass (Kannen et al., 2024).
A related full-graph versus sparse-graph tradeoff appears in face clustering. ConPaC formulates pairwise adjacency inference as CRF inference with transitivity constraints. On the full graph, inference costs
6
where 7 is the maximum active degree; in the worst case this becomes 8. On a 9-NN graph, the same mechanism becomes
0
with memory 1, which the paper describes as linear time complexity given a 2-NN graph (Shi et al., 2017).
4. Noise, exactness, and pairwise access models
Noisy pairwise access creates a second layer of complexity: the number of repeated or auxiliary pairwise operations needed to preserve exactness or controllable approximation error. In the geometric active-ranking model, if each comparison is correct with probability at least 3 and 4, then repeating every ambiguous query 5 times and taking a majority vote yields exact recovery with probability exceeding
6
while the average number of comparisons is 7. To achieve success probability at least 8, it suffices to take
9
which gives total complexity
0
Under persistent errors, repeated querying does not help, so the algorithm switches to a triangular voting scheme. Exact full recovery is then impossible in general, but the method exactly ranks at least
1
objects and achieves expected Kendall–Tau error
2
with
3
comparisons on average (Jamieson et al., 2011).
Exact sampling from pairwise comparisons introduces an analogous distinction between a canonical but potentially slow exact method and a faster structure-aware one. With target distribution 4 over a finite support and pair-distribution 5, the canonical Markov chain has transition probabilities
6
Coupling from the Past on this chain yields perfect samples, but the naive complexity is
7
and can be exponential in 8 when the spectral gap 9 is exponentially small. The accelerated construction first learns an approximation 00, then defines a parametric downscaled chain with near-uniform stationary distribution and mixing time
01
leading to total oracle complexity
02
The resulting dependence is spectral-topological, via 03, rather than through the detailed structure of 04 (Fotakis et al., 2022).
These results suggest that pairwise access is not merely a substitute for labels or direct samples. It creates a distinct exactness regime in which the main question is how much additional pairwise structure is needed to turn locally noisy or conditionally observed binary relations into globally correct objects.
5. Structural and stochastic complexity of pairwise models
In another line of work, pairwise complexity is not a query count but an intrinsic complexity of a model class. For spin models in the MDL/Bayesian framework, the relevant quantity is the stochastic complexity
05
The central conclusion is that complexity is determined not by interaction order but by the mutual arrangement of interactions. Localized dependencies on non-overlapping groups of variables yield low stochastic complexity, whereas fully connected pairwise Ising models are highly complex because of their extended interaction structure. Gauge transformations partition models into equivalence classes with identical 06, and loop structure provides the decisive invariants. The paper therefore rejects the simple identification of “pairwise” with “simple” (Beretta et al., 2017).
A different structural notion is the pairwise complexity profile. Starting from a symmetric coupling matrix 07, the construction defines
08
then inverts this relation to obtain 09, sums over variables,
10
and corrects for multiple counting via
11
This pairwise profile satisfies linear superposition for unrelated systems, the sum rule
12
and monotonic non-increase with scale. Its principal computational advantage is that it reduces the original factorial-time formulation to
13
time (Bar-Yam et al., 2012).
The same concern with redundancy and randomness underlies pairwise set complexity in information theory. The per-pair contribution is
14
and it is explicitly constructed to vanish both at independence and at deterministic dependence. The authors then generalize this pairwise quantity by differential interaction information and use the resulting multivariable measures as hyperedge weights in hypergraphs of system dependence (Galas et al., 2013).
Pairwise adjustment also appears in clustering comparison. Standard Adjusted Mutual Information corrects mutual information by averaging over full label permutations, but the expectation term costs
15
time. Pairwise Adjusted Mutual Information instead averages over permutations that swap only two samples. This yields an explicit adjustment formula computable in
16
time, or 17 in sparse format, while empirical ranking agreement with standard AMI remains high across synthetic and real datasets (Lazarenko et al., 2021).
Taken together, these constructions suggest that pairwise complexity is not only about how many pairwise operations are required. It can also mean how much structure a pairwise representation retains, suppresses, or makes computationally accessible.
6. Pairwise complexity in combinatorial, graphical, and genomic models
Combinatorial pairwise systems often exhibit sharp tractability boundaries. In the stable marriage problem with pairwise preferences, complexity depends jointly on the orderedness class of each side and on the stability notion. Weak stability is polynomial for acyclic pairwise preferences, but deciding existence becomes NP-complete if one side has strict lists and the other has asymmetric pairwise preferences. Strong stability remains polynomial when one side has ties and the other asymmetric preferences, yet becomes NP-complete once posets are allowed. Super-stability is polynomial for posets on one side and asymmetric preferences on the other, but NP-complete when both sides have acyclic preferences (Cseh et al., 2018).
Graphical model learning provides a high-dimensional statistical analogue. For continuous pairwise Markov random fields with bounded domains and basis functions, the GRISE local program yields structure recovery once
18
where
19
Accordingly, structure recovery has sample complexity
20
and the total computational complexity scales as 21 up to polylog factors. The logarithmic dependence on 22 parallels discrete and Gaussian graphical-model results, while the exponential dependence on degree is retained (Shah et al., 2020).
In genome rearrangement, pairwise complexity appears as the counting complexity of optimal transformations between two genomes. In the Single Cut-and-Join model, exact counting of minimum-length scenarios is 23-complete. Parameterizing instead by the number 24 of nontrivial components in the adjacency graph yields an FPT algorithm with running time
25
where 26 is the 27th Bell number. Since 28, the problem is also fixed-parameter tractable by distance (Bailey et al., 2024).
These task-specific manifestations point to a common pattern. Pairwise formulations often replace one difficult object by another: a total order by binary comparisons, a full system description by pairwise couplings, a global combinatorial transformation by operations on paired extremities, or a higher-order interaction model by pairwise terms plus structural constraints. This suggests that pairwise complexity is best understood not as a single scalar invariant, but as a task-dependent measure of how much combinatorial, statistical, or computational burden remains after a problem has been recast in pairwise form.