Papers
Topics
Authors
Recent
Search
2000 character limit reached

Pairwise Complexity in Inference and Models

Updated 7 July 2026
  • 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 Θ(n2)\Theta(n^2) 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 nn objects requires Θ(nlog2n)\Theta(n \log_2 n) comparisons, because there are n!n! possible rankings and log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n) bits must be acquired. Under the geometric reference-point model, however, objects are embedded at known locations in Rd\mathbb{R}^d, rankings are induced by distance to an unknown reference point rr, and each pairwise comparison is equivalent to asking on which side of a perpendicular bisector hyperplane rr lies. The number of realizable rankings is then M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d}), with recursion

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),

so the information-theoretic lower bound becomes nn0 rather than nn1. An adaptive algorithm that queries only ambiguous comparisons satisfies

nn2

whereas uniformly random non-adaptive queries identify a unique ranking with probability

nn3

implying that nn4 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 nn5-good decomposition returns, with constant probability, such a decomposition using at most

nn6

queries in expectation, and the resulting surrogate optimization yields a permutation nn7 satisfying

nn8

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,

nn9

while total query complexity is

Θ(nlog2n)\Theta(n \log_2 n)0

The lower bound

Θ(nlog2n)\Theta(n \log_2 n)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-Θ(nlog2n)\Theta(n \log_2 n)2 selection, and regression

In stochastic comparison models, pairwise complexity is usually a sample-complexity notion. For active best-Θ(nlog2n)\Theta(n \log_2 n)3 selection under Strong Stochastic Transitivity and the Stochastic Triangle Inequality, the PAC problem admits a matching instance-independent characterization: any algorithm must use

Θ(nlog2n)\Theta(n \log_2 n)4

comparisons in expectation, and the Tournament-Θ(nlog2n)\Theta(n \log_2 n)5-Selection procedure achieves

Θ(nlog2n)\Theta(n \log_2 n)6

comparisons in expectation. For exact best-Θ(nlog2n)\Theta(n \log_2 n)7 identification, hardness becomes instance dependent through the boundary gaps Θ(nlog2n)\Theta(n \log_2 n)8. The paper gives a worst-instance lower bound

Θ(nlog2n)\Theta(n \log_2 n)9

and proposes SEEBS for n!n!0 with complexity

n!n!1

and SEEKS for general n!n!2 with complexity

n!n!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 n!n!4 Gaussian feature vectors in n!n!5, pair indices are sampled uniformly at random from the first n!n!6 samples, and comparison outcomes are generated by a generalized linear model

n!n!7

The estimator

n!n!8

is unbiased up to a positive scale factor n!n!9. A sufficient condition for log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)0 with high probability is

log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)1

with probability bound

log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)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 log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)3 users, log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)4 items, and log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)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

log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)6

pairwise comparisons per type, and describes this scaling as near optimal when log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)7 only grows logarithmically with log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)8 or log2(n!)=Θ(nlog2n)\log_2(n!)=\Theta(n\log_2 n)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

Rd\mathbb{R}^d0

A naive greedy algorithm for selecting Rd\mathbb{R}^d1 comparisons evaluates all candidates at every iteration, giving

Rd\mathbb{R}^d2

time. By exploiting pairwise difference geometry, Cholesky factorization, and scalar rank-one updates, this can be reduced to

Rd\mathbb{R}^d3

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

Rd\mathbb{R}^d4

so a deterministic full-gradient method would cost Rd\mathbb{R}^d5. The proposed proximal DSGD instead combines adaptive sample-size growth with importance sampling over opposite instances and obtains total iterations

Rd\mathbb{R}^d6

hence Rd\mathbb{R}^d7 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 Rd\mathbb{R}^d8, a gradient against all Rd\mathbb{R}^d9 past points and therefore costs rr0 per round and rr1 overall. In the kernelized setting with random Fourier features of dimension rr2, the naive complexity is rr3. The FPOGD method replaces full-history gradients by a limited-memory, variance-reduced estimator built from a stratified buffer of size rr4, yielding total time

rr5

and using

rr6

features for kernel approximation. Its regret bound isolates the cumulative variance term

rr7

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 rr8 candidates costs

rr9

where rr0 is the forward-pass cost for sequence length rr1. The GLIMPSE framework instead combines pointwise scoring with right-to-left refinement over the top-rr2 items, giving

rr3

so the pairwise stage is compressed from rr4 to rr5 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

rr6

where rr7 is the maximum active degree; in the worst case this becomes rr8. On a rr9-NN graph, the same mechanism becomes

M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})0

with memory M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})1, which the paper describes as linear time complexity given a M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})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 M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})3 and M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})4, then repeating every ambiguous query M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})5 times and taking a majority vote yields exact recovery with probability exceeding

M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})6

while the average number of comparisons is M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})7. To achieve success probability at least M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})8, it suffices to take

M=Σn,d=Q(n,d)=Θ(n2d)M=|\Sigma_{n,d}|=Q(n,d)=\Theta(n^{2d})9

which gives total complexity

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),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

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),1

objects and achieves expected Kendall–Tau error

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),2

with

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),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 Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),4 over a finite support and pair-distribution Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),5, the canonical Markov chain has transition probabilities

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),6

Coupling from the Past on this chain yields perfect samples, but the naive complexity is

Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),7

and can be exponential in Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),8 when the spectral gap Q(n,d)=Q(n1,d)+(n1)Q(n1,d1),Q(n,d)=Q(n-1,d)+(n-1)Q(n-1,d-1),9 is exponentially small. The accelerated construction first learns an approximation nn00, then defines a parametric downscaled chain with near-uniform stationary distribution and mixing time

nn01

leading to total oracle complexity

nn02

The resulting dependence is spectral-topological, via nn03, rather than through the detailed structure of nn04 (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

nn05

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 nn06, 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 nn07, the construction defines

nn08

then inverts this relation to obtain nn09, sums over variables,

nn10

and corrects for multiple counting via

nn11

This pairwise profile satisfies linear superposition for unrelated systems, the sum rule

nn12

and monotonic non-increase with scale. Its principal computational advantage is that it reduces the original factorial-time formulation to

nn13

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

nn14

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

nn15

time. Pairwise Adjusted Mutual Information instead averages over permutations that swap only two samples. This yields an explicit adjustment formula computable in

nn16

time, or nn17 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

nn18

where

nn19

Accordingly, structure recovery has sample complexity

nn20

and the total computational complexity scales as nn21 up to polylog factors. The logarithmic dependence on nn22 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 nn23-complete. Parameterizing instead by the number nn24 of nontrivial components in the adjacency graph yields an FPT algorithm with running time

nn25

where nn26 is the nn27th Bell number. Since nn28, 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.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (19)

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 Pairwise Complexity.