Manuscript Offprint
arXiv:2611.04586Conditional independence and graphical models for rankings
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Ranking models define probability distributions over rankings and are fundamental in applications such as preference learning and decision-making. Without structural assumptions, these models are intractable due to their factorial complexity. Although independence assumptions are key to reducing complexity and enabling interpretability, standard notions of conditional independence must account for the mutual exclusivity constraints inherent to rankings. We introduce relative rank models, a probabilistic framework based on structured coarsenings of the ranking space that relax these constraints while preserving relative order information. This representation enables a well-defined notion of conditional independence for rankings and allows rankings to be modeled using Bayesian networks. As a result, standard methods for learning and probabilistic inference can be applied to rankings, with interpretable representations based on conditional independence. We further show that two prominent ranking models based on independence assumptions tailored to rankings arise as special cases, providing a unifying framework for independence in ranking models.
1 Introduction
Modeling rankings is a fundamental problem in machine learning, with applications including preference learning, recommender systems, and information retrieval. In these settings, rankings are represented by permutations and express preferences over a finite set of items [Regenwetter et al., 2006], where lower ranks correspond to stronger preferences. A ranking model defines a probability distribution over the ranking space and is typically learned from ranking data [Mallows, 1957].
The most general ranking model assigns an arbitrary probability to each ranking, requiring a factorial number of parameters in the number of items. This factorial complexity renders such models impractical, as they cannot be learned from limited data, do not admit efficient inference procedures, and lack interpretability.
To overcome these limitations, ranking models commonly rely on structural assumptions that reduce model complexity [Mallows, 1957, Fligner and Verducci, 1986]. Among these, independence assumptions play a central role. Two representative examples are the repeated insertion model [Doignon et al., 2004, Kenig et al., 2018] and the rifle shuffle model [Huang and Guestrin, 2009, 2010, Huang et al., 2012]. The repeated insertion model imposes a fixed insertion order that governs how items are sequentially incorporated into a ranking, whereas the rifle shuffle model introduces a more flexible notion of independence by allowing rankings over disjoint subsets of items to be interleaved.
In probabilistic modeling, the most fundamental notion of independence is conditional independence [Dawid, 1979], which underlies graphical models such as Bayesian networks [Pearl, 1988, Lauritzen, 1996]. Graphical models provide compact representations of complex distributions, support efficient inference and learning algorithms, and offer a clear interpretation in terms of conditional independence relations [Koller and Friedman, 2009]. However, applying conditional independence
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
to rankings requires accounting for the mutual exclusivity constraints (MEC) inherent to permutations [Huang et al., 2009a], which require distinct items to occupy distinct ranks. These constraints induce strong dependencies among ranking variables and restrict the free parameterization of standard graphical factorizations.
In this work, we address this limitation by shifting the modeling focus from full rankings to structured forms of partial ranking information. Rather than treating partial rankings merely as incomplete observations [Lebanon and Mao, 2007, Lu and Boutlier, 2011, Lan et al., 2013, Lu and Boutlier, 2014], we use them as fundamental modeling primitives [Achab et al., 2019, Chierichetti et al., 2018]. By defining structured families of partial rankings, we construct random variables whose realizations induce partitions of the permutation space. This coarsening relaxes the mutual exclusivity constraints and enables a well-defined notion of conditional independence for ranking data, thereby supporting the construction of graphical models for rankings.
Contributions. We introduce relative rank models, probabilistic models for rankings based on structured coarsenings of the permutation space. Our main contributions are:
-
We establish fundamental results for relative rank variables and the coarsenings of the permutation space, relaxing mutual exclusivity constraints and providing the basis for relative rank models.
-
We define conditional independence for rankings based on relative rank variables and introduce relative rank networks, graphical models for rankings that enable the use of standard theory and algorithms for learning and probabilistic inference, while providing interpretable representations in terms of conditional independence.
-
We highlight the connection between relative rank networks and existing ranking models, showing that models such as repeated insertion and riffle shuffle can be represented within the RRN framework and that their assumptions correspond to specific sets of conditional independence statements.
We provide the proofs of the theoretical results in the main text in Appendix F.
Notation. Let be a set of indices, and let be a set of items. Uppercase letters denote subsets of , and denotes the cardinality of . We use and to denote particular indices and items, respectively. We denote by the set of bijective functions from to , called rankings, and by the set of bijective functions from to , called orderings. Rankings are denoted by Greek letters , and their respective orderings by . For simplicity, in examples we identify items with their indices, i.e., , and represent rankings and orderings as tuples using () and [], respectively. For example, the ranking corresponds to the ordering , and vice versa. All directed graphs considered in this work have vertex set and are identified with their sets of arcs, denoted by uppercase calligraphic letters .
For a ranking and a subset , the partial ranking is the bijective function from to that preserves the relative order of the items in under . Its inverse, , is the corresponding partial ordering.
i.e., a disjoint cover of the space using non-empty subsets
Relative rank variables are based on the notion of relative rank.
Definition 2.1 (Relative rank). Let be an item and be a subset of items called the reference set. The relative rank of with respect to is the mapping , defined for as
The value indicates that item has the -th smallest rank among the items in under . In particular, (resp., ) means that is ranked ahead of (resp., behind) every item in under . Equivalently, is the rank of item in the partial ranking of under , . For instance, for we have and , whereas for we have and .
Another useful interpretation of relative ranks is in terms of insertions into partial orderings. Given a ranking , the value specifies the insertion position of item into the partial ordering to obtain . For example, for the relative rank of 1 with respect to is , meaning that inserting item 1 into at position 2 yields the ordering corresponding to the ranking . Relative ranks generalize pairwise comparisons [Wauthier et al., 2013], which correspond to reference sets of size 1.
Definition 2.2 (Relative rank variable). The relative rank variable (RRV) for defined by the reference sets is the -dimensional categorical random variable
where each component is called the for . The state space of each variable is , and the joint state space of is .
For a realization , the associated event is , and for a joint realization , the associated event is
We denote by the disjoint cover of induced by .
An RRV for maps each ranking to a tuple of relative ranks and induces a disjoint cover of the ranking space through the associated events. Such variables are fully determined by the collection of reference sets defining the relative ranks of each item. This collection of reference sets can be naturally represented by a directed graph, where edges encode which items belong to the reference set of each variable. This graphical representation provides a convenient way to specify RRVs for and analyze the structural properties of the covers they induce over the ranking space.

Figure 1: The variable graph defining for . The table shows the mapping of from rankings to the corresponding realizations . Colors in column group the rankings belonging to the same event.
Definition 2.3 (Variable graph). Let be a directed graph with for every . For each , define
as the set of parents of node in . We say that the RRV is defined by if the reference set of each component is given by for all . The directed graph is called the variable graph defining .
We denote by the set of ancestral (or topological) orderings of , where .
Figure 1 shows an example of an RRV for defined by the variable graph . The reference sets defined by are , , and
. The realizations of induce the cover of given by the set of events .
Rankings are subject to mutual exclusivity constraints: distinct items must occupy distinct ranks in a ranking. RRVs defined by arbitrary variable graphs can also be subject to MEC, since certain combinations of relative ranks may lead to contradictions and therefore cannot occur simultaneously in any ranking. In the representation induced by an RRV, these constraints appear as empty events in the cover of the ranking space. This motivates identifying RRVs whose realizations correspond only to non-empty events, effectively removing the constraints imposed by permutations. The following definition formalizes this property.
Definition 2.4 (Mutual Exclusivity Constraints). Let be an RRV for with state space . We say that is subject to mutual exclusivity constraints (MEC) if there exists a realization such that . If for all , we say that breaks MEC.
Breaking MEC ensures that every realization of the RRV corresponds to a non-empty subset of rankings. Whether this property holds depends on the structure of the reference sets defining the RRV for , and therefore on the associated variable graph. The following result characterizes when an RRV breaks MEC in terms of the structure of its variable graph.
Theorem 2.5 (Breaking MEC). Let be an RRV for defined by a variable graph . Then breaks MEC if and only if is acyclic.
When an RRV breaks MEC, every realization corresponds to a non-empty event, and the induced cover becomes a partition of the ranking space. This property is fundamental for the developments that follow. In particular, RRVs that break MEC allow the definition of probabilistic models and conditional independence relations without structural constraints imposed by permutations.
The acyclicity of the variable graph not only guarantees that RRVs break MEC, but also provides a constructive way to generate the rankings in the event associated with each realization. In Appendix B, we present Algorithm 1 for generating events associated with RRVs defined by acyclic variable graphs. The procedure incrementally constructs partial rankings by inserting elements according to the realization of the RRV, following a topological ordering induced by the variable graph.
Figure 2 shows a cyclic variable graph defining an RRV for subject to MEC, as predicted by Theorem 2.5. The presence of the cycle 1, 2, 1 induces logical consistency constraints between

Figure 2: The variable graph contains the cycle 1, 2, 1. The realizations also correspond to empty events and do not appear in the table.
the RRVs for items 1 and 2. As a consequence, the realizations have associated empty events. Thus the joint realizations are contradictory and therefore correspond to empty events. For additional examples of variable graphs, see Appendix A.
3 Relative rank models
Once an RRV for is defined, probabilistic models over rankings can be constructed by assigning probabilities to its realizations. Such models are called relative rank models. In this section, we formally introduce relative rank models and describe their relationship with ranking models through the pushforward mapping.
Definition 3.1 (Relative rank model). Let be an RRV for . A relative rank model (RRM) is a probability distribution
An RRM assigns probability mass to the realizations of the RRV. Under conditions concerning empty events specified below, this assignment defines a probability distribution over the non-empty events of the disjoint cover induced by .
Next, we connect RRMs with ranking models through the pushforward relation.
Definition 3.2 (Pushforward RRM). Let be an RRV for . The pushforward mapping under is the function , such that for any ranking model , where
In addition, the pullback of under is the set of ranking models satisfying Eq. 1, denoted by .
The pushforward relation can be used to characterize the set of RRMs associated with ranking models.
Definition 3.3 (Admissible RRM). Let be an RRV for . We say that an RRM for is admissible if there exists such that . Otherwise, it is inadmissible.
Admissible RRMs are those that correspond to at least one ranking model through the pullback relation. By construction, any RRM obtained as the pushforward of a ranking model is admissible. However, RRMs can also be defined directly over , and in this case admissibility is not guaranteed.
Admissibility imposes a structural constraint: an RRM must assign zero probability to all realizations associated with empty events. This condition is automatically satisfied when the underlying RRV breaks MEC, since all realizations correspond to non-empty events. In contrast, when the RRV is subject to MEC, admissibility requires enforcing structural zeros. A detailed characterization is provided in Appendix C.
4 Conditional independence for rankings
Although RRMs reduce the complexity of ranking models by controlling the size of the reference sets for , the number of free parameters of a general RRM is given by
As in classical probabilistic modeling, a natural strategy to further reduce model complexity is to impose conditional independence assumptions and factorize the model accordingly. The challenge in the ranking setting is not merely to impose independence, but to define it in a representation that is structurally compatible with rankings. RRVs provide such a representation, allowing conditional independence relations to be defined analogously to multidimensional categorical variables.
Definition 4.1 (Conditional independence). Let be disjoint non-empty subsets, let , and let be an RRV for with an RRM . We say that is conditionally independent of given under , denoted by , if
for all whenever . Let be a ranking model. We say that is conditionally independent of given under , denoted by , if the pushforward of under satisfies Eq. 3. When , these relations reduce to (unconditional) independence, denoted by and , respectively.
In words, conditional independence indicates that knowing a realization of does not provide any additional information about the probabilities of once the realization of is known.
In general, given an ordering of the items , any RRM can be factorized using the chain rule as where denotes the conditioning set of . Conditional independence relations can simplify this factorization by reducing the conditioning sets. In probabilistic graphical models, Bayesian networks provide a compact representation of such factorizations through a directed graph whose structure encodes conditional independence relations.
5 Relative rank networks
Relative rank networks are graphical models for rankings obtained by combining RRVs with Bayesian network factorizations. In this section, we focus on RRVs defined by acyclic variable graphs, which break MEC and therefore induce partitions of the ranking space without empty events. This restriction avoids the structural zero constraints that arise when RRVs are subject to MEC and allows RRMs to be parameterized freely (see Appendix C). Building on this representation, relative rank networks provide a principled way to represent complex ranking distributions using conditional independence assumptions.
Given an RRV defined by an acyclic variable graph, Eq. 2 shows that an unrestricted RRM can require specifying an exponential number of parameters. Even for sparse variable graphs such as directed trees, this can lead to parameters. Moreover, probabilistic inference tasks, such as marginalization over subsets of RRVs, are computationally intractable in general. To address these challenges, we introduce graphical models that exploit conditional independence relations among RRVs.
Definition 5.1 (Relative rank network). A relative rank network (RRN) is a triplet , where is an acyclic variable graph defining the RRV for , is a directed acyclic graph called the factorization graph, and denotes the model parameters. The RRN represents the RRM
An RRN combines two complementary graphical structures. The variable graph defines the RRVs and the partition of the ranking space they induce. The factorization graph specifies how the joint distribution over these variables factorizes into conditional distributions. In this way, determines the representation of rankings, while determines the probabilistic structure of the model. We call the structure of an RRN.
The number of parameters of an RRN depends on its structure. The graph determines the size of the state space of each relative rank variable, while determines the conditioning sets in the factorization. The total number of free parameters of an RRN with structure is
This flexibility allows the construction of RRNs with controlled complexity by restricting the maximum number of parents in both the variable graph and the factorization graph . In particular, the number of free parameters is at most , where and ; it grows linearly in when and are bounded.
For a fixed RRN structure, exact probabilistic inference over RRVs takes time [Koller and Friedman, 2009], where is the maximum RRV cardinality and is the treewidth of the moralized factorization graph . For example, when is a directed tree, and the cost reduces to .
RRNs can be connected to ranking models through a generalization of the pushforward mapping. Given a ranking model , the pushforward under defines the parameters of an RRN by computing the conditional probabilities of the RRV realizations from . This mapping allows us to focus on the structure independently of the specific parameter values.
Definition 5.2 (Factorized pushforward). Let be an RRV defined by an acyclic variable graph , and let be a factorization graph. The factorized pushforward of a ranking model under is the function , where denotes the space of RRNs with structure . The RRN is defined as
where if , and otherwise, for all .
The factorized pushforward mapping of a ranking model under produces an RRM that factorizes according to . Since in RRNs the RRV for breaks MEC, the factorized pushforward mapping yields admissible models, and any RRM can be specified without additional structural constraints. In Appendix D, we discuss the admissibility of factorized models over RRVs subject to MEC and the structural zero constraints they impose.
For observed rankings and a fixed variable graph , learning reduces to Bayesian-network structure learning over the categorical realizations , and the local distributions can be estimated from empirical frequencies. Appendix E outlines this procedure and the additional selection of in Algorithm 2.
The structure of an RRN admits a graphical interpretation in terms of conditional independence. The factorization graph defines a Bayesian network over the RRV defined by , and therefore encodes conditional independence relations among its components for . As in standard Bayesian networks, these relations can be derived from using the d-separation criterion [Pearl, 1988].
Definition 5.3 (Independence model). Let be the structure of an RRN. The independence model induced by is the set of conditional independence relations
where is the RRV defined by , the subsets are pairwise disjoint with , and the relation indicates that is d-separated from by in .
Given the structure , the induced independence model is a compositional graphoid satisfying the local Markov property [Studený, 2005].
Any RRN with structure satisfies the conditional independence relations in .
Lemma 5.4. Let be an RRN with structure , where is the RRV defined by , and let . Then and satisfy the conditional independence relations in , that is,
6 Representing ranking models and independence assumptions
This section has two goals. First, we show how RRMs can be used to represent ranking models in general. Second, we show that two prominent families of ranking models based on alternative independence notions, namely repeated insertion and riffle shuffle models, can be represented within the RRN framework. In this way, the independence assumptions underlying both models correspond to specific independence models over RRVs.
6.1 Ranking models based on RRMs
An RRV defined by an acyclic variable graph induces a partition of the ranking space, and RRMs for represent probability distributions over this partition. A particularly useful situation occurs when an RRV induces a thin partition of the ranking space, that is, a partition whose cells contain a single ranking. In this case, the mapping induced by the RRV from the ranking space to the state space is bijective, and therefore RRMs for are ranking models.
For a general acyclic variable graph, an RRM specifies the probabilities of the events but does not determine how probability is distributed among rankings within each event. A ranking model can be obtained by specifying a distribution within each event, as described in Appendix C. For example, assigning equal probability to the rankings within each event yields . The cardinality of the corresponding event can be obtained by enumerating its rankings using Algorithm 1.
The following result shows that an RRV defined by a complete acyclic variable graph induces a thin partition of the ranking space.
Proposition 6.1 (Thin partition). Let be an RRV defined by . Then, induces a thin partition of if and only if is a complete acyclic variable graph.
Intuitively, a complete acyclic variable graph has a unique ancestral ordering , and the reference set defining the RRV for is for . Thus, a realization encodes the position of each item with respect to all previously considered items in , yielding a representation equivalent to the permutation itself. Figure 3 illustrates this correspondence for , where the ancestral ordering is .
An immediate consequence is that RRVs for defined by complete acyclic variable graphs represent bijective mappings between the state space and the ranking space, and therefore ranking models can be represented by RRMs. In the literature, RRVs providing bijective representations of permutations are known as inversion vectors [Malagon et al., 2025], and they form the basis of repeated insertion models [Doignon et al., 2004]. According to Proposition 6.1, there are different RRVs corresponding to inversion vectors.

Figure 3: The complete acyclic variable graph , where is its unique ancestral ordering. The RRV defined by induces a thin partition of the ranking space.
In the remainder of this section, we use this representation to relate RRNs with two prominent families of ranking models based on independence notions tailored to permutations.
6.2 Repeated insertion model
Repeated insertion (RI) independence is a probabilistic independence notion defined with respect to a fixed ordering of the items, called the insertion ordering [Doignon et al., 2004]. A ranking model satisfies RI independence for [Kenig et al., 2018] if it factorizes as
for all , where is the insertion distribution of the item and
The function determines the insertion position of the item in the partial ranking , where . We call a repeated insertion model (RIM) for any ranking model that factorizes according to Eq. 6, and we denote the space of RIMs for by .
For a fixed insertion ordering and arbitrary categorical insertion distributions, a RIM has free parameters.
From a generative perspective, a RIM for constructs rankings by sequentially inserting items according to the ordering . Starting from the trivial ranking over , , each item is inserted into the current partial ranking at a position sampled from its insertion distribution . After insertion steps, this procedure produces a full ranking for . This generative process is a particular case of Algorithm 1 in Appendix B.
Theorem 6.2. Let be an insertion ordering. Let be the complete acyclic variable graph with ancestral ordering , and let be the empty factorization graph. Let be an RRV defined by . Then,
As a consequence, the independence notion underlying RIMs can be expressed entirely in terms of conditional independence relations among RRVs.
Corollary 6.3. Let be the insertion ordering, and let and be the graphs defined in Theorem 6.2. Then, RI independence for corresponds to the independence model .
In particular, since the factorization graph is empty, the independence model contains all conditional independence relations for disjoint non-empty subsets and .
An additional consequence of Theorem 6.2 is that a RIM for can be constructed from any ranking model using the factorized pushforward mapping.
Corollary 6.4. Let be the insertion ordering, and let and be the graphs defined in Theorem 6.2. Let be a ranking model. Then, is the RIM for that minimizes the KL divergence with respect to , that is, .
6.3 Riffle shuffle model
Riffle shuffle (RS) independence [Huang and Guestrin, 2009, 2010, Huang et al., 2012] models rankings by independently ranking disjoint subsets of items and then interleaving the resulting partial rankings. The name is inspired by the riffle shuffle used in card games. Let and be a partition of . A ranking model satisfies RS independence for and if it factorizes as
for every , where and denote the (partial) rankings of the items in and induced by (see Definition 12 in [Huang and Guestrin, 2012]). The distributions and model the partial rankings within each subset of items. The function determines how the positions of the items in and are interleaved in , and the distribution models the interleavings. For an interleaving , denotes its -th smallest element. Given the interleaving we have , for . We call a riffle shuffle model (RSM) for and any ranking model that factorizes according to Eq. 7, and we denote the space of RSMs for and by .
An RSM for a fixed partition , with arbitrary partial ranking and interleaving distributions, has free parameters: for , for , and for .
From a generative perspective, an RSM constructs rankings in two stages. First, the items in and are ranked independently according to the distributions and , producing the rankings and . Then, the two rankings are interleaved by sampling an interleaving pattern from the distribution , which determines the set of positions occupied by the items of each subset. The interleaving pattern is selected independently of and .
We now show that RSMs can also be represented within the RRN framework by combining appropriate choices of variable graphs and a nontrivial factorization graph. In this representation, two RRN structures are considered, each defined by a different variable graph but sharing the same factorization graph. A ranking model that factorizes according to both structures corresponds to an RSM for and .
Theorem 6.5. Let and form a partition of . Let and be complete acyclic variable graphs with ancestral orderings and , respectively. Let and be the RRVs defined by and , respectively. Let be a directed acyclic graph, where and are complete subgraphs over the vertex sets and , respectively. Then,
RIMs correspond to a particularly simple instance of RRNs, characterized by a complete variable graph and an empty factorization graph. RSMs, in contrast, rely on a richer independence structure. In the RRN representation, this structure is captured by a nontrivial factorization graph over two RRVs for that provide two different relative-rank encodings of the ranking space, both inducing the same thin partition.
According to Theorem 6.5, the space of RSMs is given by the intersection of the spaces of two RRNs. Thus, RS independence corresponds to the independence models specified by the structures of the two RRNs.
Corollary 6.6. Let and be a partition of , and let , and be the graphs defined in Theorem 6.5. Then, RS independence for and corresponds to .
Finally, the next result shows how to obtain an RSM for and from any ranking model using the factorized pushforward mapping.
Proposition 6.7. Let be a ranking model, let and be a partition of , and let , and be the graphs defined in Theorem 6.5. Then, is the RSM for and that minimizes the Kullback-Leibler divergence with respect to .
Together, these results show that RIMs and RSMs can be represented within the RRN framework, each corresponding to a specific independence model over relative rank variables.
7 Conclusions
This theoretical work introduces relative rank models as a probabilistic framework for rankings based on structured coarsenings of the permutation space. By representing rankings through relative rank variables, the framework replaces the structure of permutations with categorical random variables that can break the mutual exclusivity constraints of rankings.
A central result of the paper is the characterization of acyclic variable graphs as the exact condition under which relative rank variables break mutual exclusivity constraints. When mutual exclusivity constraints are broken, admissibility imposes no further structural constraints on relative rank models, and relative rank models can be simplified by assuming conditional independence among relative rank variables.
Building on this characterization, we define relative rank networks, which combine relative rank variables with Bayesian network factorizations. Relative rank networks provide a principled way to encode conditional independence relations among relative rank variables while retaining a clear semantics in terms of partitions of the ranking space. As a consequence, they enable the application of standard tools from probabilistic graphical models to ranking data.
We further show that well-known ranking models based on specialized independence notions, namely repeated insertion and riffle shuffle models, can be represented within the framework of relative rank networks. From this perspective, these models correspond to specific sets of conditional independences over relative rank variables rather than fundamentally different probabilistic constructions.
More generally, the results of this paper suggest a shift in how independence should be introduced in ranking models: instead of defining independence notions directly on permutations, one should first construct a structured coarsening that breaks mutual exclusivity constraints and then apply standard probabilistic independence relations. Relative rank networks provide a concrete and flexible realization of this principle.
Acknowledgments and Disclosure of Funding
The author thanks Ekhīne Irurozki for helpful discussions. This work was supported by MCIN/AEI/10.13039/501100011033 under projects PLEC2024-011247 and CEX2021-001142-S, and by the Basque Government through the BERC 2022–2025 and Elkartek programs.
References
M. Achab, A. Korba, and S. Clémençon. Dimensionality reduction and (bucket) ranking: a mass transportation approach. In International Conference on Algorithmic Learning Theory, volume 98, pages 64–93, 2019.
F. Chierichetti, A. Dasgupta, S. Haddadan, R. Kumar, and S. Lattanzi. Mallows models for top-k lists. In Advances in Neural Information Processing Systems, volume 31, 2018.
A. P. Dawid. Conditional independence in statistical theory. Journal of the Royal Statistical Society Series B: Statistical Methodology, 41(1):1–15, 1979.
J. P. Doignon, A. Pekeč, and M. Regenwetter. The repeated insertion model for rankings: Missing link between two subset choice models. Psychometrika, 69(1):33–54, 2004.
M. A. Fligner and J. S. Verducci. Distance based ranking models. Journal of the Royal Statistical Society: Series B (Methodological), 48(3):359–369, 1986.
J. Huang and C. Guestrin. Riffled independence for ranked data. In Advances in Neural Information Processing Systems, volume 22, 2009.
J. Huang and C. Guestrin. Learning hierarchical riffle independent groupings from rankings. In International Conference on Machine Learning, 2010.
J. Huang and C. Guestrin. Uncovering the riffled independence structure of ranked data. Electronic Journal of Statistics, 6:199–230, 2012.
J. Huang, C. Guestrin, and L. Guibas. Fourier theoretic probabilistic inference over permutations. Journal of Machine Learning Research, 10(37):997–1070, 2009a.
J. Huang, C. Guestrin, X. Jiang, and L. Guibas. Exploiting probabilistic independence for permutations. In Artificial Intelligence and Statistics, pages 248–255. PMLR, 2009b.
J. Huang, A. Kapoor, and C. Guestrin. Riffled independence for efficient inference with partial rankings. Journal of Artificial Intelligence Research, 44:491–532, 2012.
B. Kenig, L. Ilijasić, H. Ping, B. Kimelfeld, and J. Stoyanovich. Probabilistic inference over repeated insertion models. In AAAI Conference on Artificial Intelligence, 2018.
D. Koller and N. Friedman. Probabilistic Graphical Models: Principles and Techniques. The MIT Press, Cambridge, Massachusetts, 2009.
Y. Lan, S. Niu, J. Guo, and X. Cheng. Is top-k sufficient for ranking? In ACM International Conference on Information and Knowledge Management, pages 1261–1270, 2013.
S. L. Lauritzen. Graphical Models. Oxford University Press, New York, 1996.
G. Lebanon and Y. Mao. Non-parametric modeling of partially ranked data. In Advances in Neural Information Processing Systems, volume 20, pages 857–864, 2007.
T. Lu and C. Boutilier. Learning Mallows models with pairwise preferences. In International Conference on Machine Learning, pages 145–152, 2011.
T. Lu and C. Boutilier. Effective sampling and learning for Mallows models with pairwise-preference data. Journal of Machine Learning Research, 15(117):3963–4009, 2014.
M. Malagon, A. Barrena, H. Iñigo, E. Irurozki, J. A. Lozano, and J. Ceberio. A unified view of bijective transformations for optimizing permutation problems. In European Conference on Artificial Intelligence, pages 4750–4757, 2025.
C. L. Mallows. Non-null ranking models. I. Biometrika, 44(1/2):114–130, 1957.
J. Pearl. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan Kaufmann, San Mateo, California, 1988.
M. Regenwetter, B. Grofman, A. A. J. Marley, and I. Tsetlin. Behavioral Social Choice: Probabilistic Models, Statistical Inference, and Applications. Cambridge University Press, 2006.
M. Studený. Probabilistic Conditional Independence Structures. Springer, 2005.
F. Wauthier, M. Jordan, and N. Jojic. Efficient ranking from pairwise comparisons. In International Conference on Machine Learning, pages 109–117. PMLR, 2013.
A Examples of variable graphs and the induced partition
Figure 4 shows five variable graphs with the vertex set . Each variable graph defines a collection of reference sets for , where corresponds to the set of parents of in . The associated RRV for is defined by
The variable graphs and the reference sets that define the corresponding RRVs are:

Figure 4: Five variable graphs defined over items .
Table 1 shows the relation between rankings (and orderings ) and the realizations of the RRVs defined by these graphs. For each variable graph, the table displays the cover of the ranking space , where each realization and its corresponding event is identified by a distinct color. For example, for and realization , the event is highlighted in blue.
| 1,2,3 | 1,2,3 | 1,1,2 | 1,2,1 | 1,2,2 | 1,2,2 | 1,1,1 |
| 1,3,2 | 1,3,2 | 1,1,1 | 1,3,1 | 1,2,2 | 1,2,1 | 1,2,1 |
| 2,1,3 | 2,1,3 | 2,1,2 | 1,1,1 | 1,1,2 | 1,1,2 | 2,1,1 |
| 2,3,1 | 3,1,2 | 1,1,1 | 1,3,1 | 1,2,1 | 2,2,1 | 2,2,1 |
| 3,1,2 | 2,3,1 | 2,1,2 | 1,1,1 | 1,1,1 | 2,1,2 | 3,1,1 |
| 3,2,1 | 3,2,1 | 2,1,1 | 1,2,1 | 1,1,1 | 2,1,1 | 3,2,1 |
Table 1: Relative rank variable realizations for the rankings and orderings , defined according to the five variable graphs shown in Figure 4. The graph is cyclic and the realizations do not appear in the table because they correspond to empty events.
The graph is cyclic and therefore its associated RRV is subject to MEC, which implies that some realizations of the associated RRV correspond to empty events. In particular, the cyclic dependencies among the variables impose mutually inconsistent constraints on the relative ranks, so that some configurations cannot be satisfied by any ranking. As a consequence, the realizations and correspond to empty events, i.e., (see Theorem 2.5). This prevents from inducing a proper partition of the ranking space.
The graph is a complete acyclic variable graph and therefore induces a thin partition of the ranking space. By Proposition 6.1, every realization corresponds to a singleton event, so that each ranking is uniquely identified by its image . As a consequence, the RRVs defined by complete acyclic variable graphs define a bijection between the ranking space and their state space, and the RRMs are ranking models, . In particular, any ranking model can be represented exactly as an RRM , satisfying for all , and for all .
B Generating the events
Thanks to the acyclicity of the variable graph, all the rankings belonging to a given event can be enumerated using Algorithm 1. The algorithm is an insertion-based procedure that follows an ancestral ordering of the variable graph to incrementally construct a set of partial rankings. At each step, a new item is inserted into each ranking from the previous iteration at positions determined by its associated relative rank.
Algorithm 1 Event construction from an RRV realization
Input: A realization of an RRV for , defined by an acyclic variable graph with an ancestral ordering
Output: The non-empty event associated to ,
1: Choose an ordering
2: Initialize
3: for do
4: Initialize
5: Let
6: for each do
7: if then
8:
9: else if then
10:
11: else if then
12: I_v \leftarrow \{\alpha(\bar{\alpha}^{P_v}^{\mathcal{V}}(x_v - 1)) + 1, \ldots, \alpha(\bar{\alpha}^{P_v}^{\mathcal{V}}(x_v))\}
13: else
14: I_v \leftarrow \{\alpha(\bar{\alpha}^{P_v}^{\mathcal{V}}(|P_v^{\mathcal{V}}|)) + 1, \ldots, i\}
15: end if
16:
17: end for
18: end for
19: return
Definition B.1 (Insertion). Let with , let be a (partial) ranking on , let , and let . The insertion operator
is defined by
The resulting ranking on , , corresponds to the ordering
We consider the direct extensions of Definitions 2.1 and 2.2 to partial rankings containing the item and its reference set.
Lemma B.2 (Relative rank preservation). Consider the set of items with size , the (partial) ranking , the item , the rank , and the ranking . Then, for any and any ,
Proof. Fix and . Define the sets
By Definition B.1, we have:
• if , then ,
• if , then .
We consider two cases for .
i) :
Then , and
Substituting the definition of ,
Since for all , we have
ii) :
Then , and
Substituting,
Since for all , we have
The next result shows that for any Algorithm 1 generates all the rankings in the event .
Proposition B.3. Let be an RRV defined by an acyclic variable graph . Then, given a realization , Algorithm 1 generates the rankings in the event .
Proof. Let be an RRV defined by with the reference sets for . We have to prove that for arbitrary .
is a DAG and thus there exists . Without loss of generality, assume that . By definition of an ancestral ordering, the reference set , for .
We prove the result by induction over : for , the event , where and .
Base case (i = v = 1).
The parents of in are . Then and thus with .
Using Algorithm 1, we have , and .
Inductive step.
For , let us assume that where with . Let .
The ancestral ordering is and . By Definition 2.2 we have and thus
where and . To represent , we have to construct the set of partial rankings for each partial ranking . By Definition B.1 and Lemma B.2 these partial rankings are obtained by inserting in in the ranks :
Note that for and we have
Given , the set of insertion ranks satisfying the constraint is if . Otherwise:
Finally, the set of insertion ranks satisfies and thus , for . Thus, .
C Admissible models
In this appendix we consider RRVs defined according to arbitrary variable graphs and we characterize admissible RRMs through the pushforward relation with ranking models. Recall that an RRM is admissible if and only if it is the pushforward of at least one ranking model. We first provide a constructive description of the pullback of an admissible RRM, and then derive a simple necessary and sufficient condition for admissibility based on the support of the model. This characterization shows that admissibility imposes a structural constraint on the model: An RRM must assign zero probability to all realizations associated with empty events.
Lemma C.1 (Pullback ranking models). Let be an RRV for and be an RRM for , and let be a ranking model. Then, if and only if for all with there exists such that
for .
Proof. By Definition 3.2, if and only if .
i) Suppose that for every with there exists satisfying Eq. 8. Summing within each such event gives
These events are disjoint, and their total probability under is . Since is a probability distribution, every remaining event has probability zero. Hence .
ii) Suppose that . For each with , define for . This is a probability distribution on , because its values are nonnegative and sum to one, and it satisfies Eq. 8.
If , then for every . For , any choice of satisfies Eq. 8; if , no needs to be defined.
Using Eq. 8, we can generate ranking models in the pullback of any admissible RRM by choosing a distribution within each event with . A particularly simple choice that does not require extra parameters assigns equal probability to all rankings within each such event.
The next result provides a simple rule to characterize the admissible models.
Proposition C.2 (Structural zeroes). Let be an RRV for . An is admissible if and only if for all with .
Proof. The proof has two parts.
i) If is admissible then for all with :
If is admissible by Definition 3.3 then there exists such that for all . Therefore, for with we have .
ii) If for all with then is admissible:
By Definition 3.3, is admissible if there exists . According to Lemma C.1 if and only if
where for with .
We obtain a by construction. For with , define the uniform distribution as if and otherwise. Set when , and otherwise. Then because and
where the last equality holds because for all with . Therefore and .
All RRMs defined over variables that break MEC are admissible, since every realization corresponds to a non-empty event. In contrast, when RRVs are subject to MEC, admissibility requires assigning zero probability to all realizations associated with empty events.
D Admissible models and conditional independence
When an RRV is defined by an acyclic variable graph, it breaks MEC, and all realizations correspond to non-empty events. In this case, admissibility does not require additional constraints, and conditional independence relations can be imposed without requiring structural zeros in the associated RRMs.
In contrast, when an RRV is defined by a cyclic variable graph, it is subject to MEC, and some realizations correspond to empty events. In this setting, certain conditional independence relations require imposing structural zeros on the associated RRMs in order to ensure admissibility. Moreover, these constraints propagate to ranking models in the pullback, potentially requiring structural zeros over an exponential number of rankings.
The following result illustrates this phenomenon.
Theorem D.1. Let be three pairwise disjoint nonempty subsets of . Let be an RRV for with so that .
A ranking model satisfies only if
Proof. We argue by contradiction. Suppose that there exists , with , and :
The event associated to the realization of is empty, , and thus
In addition, by Definition 4.1, the conditional independence implies that for all with .
Since , we have
This contradicts .
Note that and . This result implies that must assign zero probability to all rankings in or in . The number of such rankings can be exponential in the size of , making these constraints highly restrictive.
This phenomenon extends the notion of probabilistic independence for rankings introduced in [Huang et al., 2009b]. In that framework, independence between subsets of items is defined directly in terms of rankings, leading to strong structural constraints. In comparison, RRVs provide a more flexible representation, but when the MEC are present, enforcing conditional independence may still require a large number of structural zeros.
In contrast, for RRVs that break MEC, all realizations correspond to non-empty events, admissibility imposes no structural restrictions, and conditional independence assumptions lead to valid factorizations of RRMs. Consequently, acyclic RRVs provide the appropriate foundation for developing graphical models over rankings. The separation between the construction of the partition and the imposition of independence assumptions is a key advantage of RRMs.
E Learning relative rank networks
Let be a sample of rankings, and let denote its empirical distribution. For a fixed acyclic variable graph , transform the sample into the categorical data . A factorization graph can then be learned using standard score-based, constraint-based, or hybrid Bayesian-network structure-learning methods [Koller and Friedman, 2009]. For fixed , estimating the local conditional distributions by empirical frequencies gives , with the convention for unobserved parent configurations specified in Definition 5.2.
Selecting V requires comparing different coarsenings of the ranking space. The selection criterion should account for the ranking information retained and the number of model parameters. Raw RRM likelihoods alone do not provide this comparison: an empty variable graph maps every observation to the same realization, which can be assigned probability one, giving log-likelihood zero regardless of the sample. Algorithm 2 therefore takes a model-selection criterion as an input. Defining and evaluating such a criterion remains future work.
Algorithm 2 A general procedure for learning an RRN
Input: Ranking sample ; a finite non-empty collection of candidate acyclic variable graphs; a categorical Bayesian-network structure learner; a model-selection criterion, with higher values preferred
Output: A selected RRN
1: for each do
2: Define from and form
3: Learn a factorization graph from using the supplied structure learner
4: Estimate from empirical conditional frequencies, as in Definition 5.2
5: Evaluate using the supplied model-selection criterion
6: end for
7: Select a highest-scoring RRN among the fitted candidates
8: return
The candidate variable graphs may be restricted by their maximum number of parents to control RRV cardinalities. Likewise, the learner for may impose indegree or treewidth constraints to control parameter counts or inference cost. More elaborate searches could alternate local changes in and , recomputing the categorical data when changes. Developing and empirically evaluating these searches remains future work.
F Proofs of Theoretical Results
This appendix provides the proofs of the theoretical results in the main text.
F.1 Proof of Theorem 2.5 (Breaking MEC)
Proof. i) If breaks MEC, then is acyclic (by contradiction):
Assume that is defined by a cyclic graph and breaks MEC. Suppose for contradiction that has a directed cycle
for some length . Let be the set of items in the cycle. Now define a realization that forces a strict cyclic pairwise preference. Since for and implies
for any , which is impossible. So .
Now take a realization . We have
which contradicts the assumption that breaks MEC. Therefore, must be acyclic.
ii) If is acyclic, then breaks MEC:
If is defined by an acyclic variable graph, then by Proposition B.3 for any we have , and thus breaks MEC.
F.2 Proof of Lemma 5.4
Proof. By Theorem 2.5, an RRV defined by an acyclic variable graph breaks MEC. Then, by Proposition C.2, any RRN for is admissible, that is, pull.
By Definition 5.1, factorizes according to .
On one hand, according to Theorem 3.3 in Koller and Friedman [2009], if a distribution factorizes according to and the sets and are d-separated by in , then . On the other hand, , and thus , and by Definition 4.1 .
F.3 Proof of Proposition 6.1 (Thin partition)
Proof. i) If the partition induced by is thin, then is acyclic complete (by contradiction):
First, assume that is cyclic. Then, according to Theorem 2.5, there exists with , and thus is not thin. Therefore is acyclic.
Next, assume that is not complete. Then the size of the state space of is smaller than . The size of the ranking space is , and thus there is at least one realization with an associated event with size larger than 1. Then the partition is not thin. Therefore is complete.
ii) If is acyclic complete then the partition induced by is thin:
The RRV defined by an acyclic breaks MEC, and thus is a partition of . Besides, the size of the state space of when is complete is . The only partition of with non-empty subsets is a thin partition.
F.4 Proof of Theorem 6.2
Proof. Without loss of generality, we assume that .
is defined by that is a complete DAG, and by Proposition 6.1, induces a thin partition. Then, for simplicity, for any with we write , and .
i) :
Let . Then, by Definition 5.1
for all , where for . is a complete DAG with the ancestral ordering and thus , for . Therefore, by Eq. 6, is a RIM for , and .
ii) :
We prove it by showing that, for , the RRN is equivalent to , i.e., for all .
Let and . Then by Definition 5.2 and (i)
where , for all .
F.5 Proof of Corollary 6.3
Proof. Let be an RRV defined by . By Theorem 6.2 we have . Thus, by Lemma 5.4, RI independence is the independence model .
F.6 Proof of Corollary 6.4
To prove this result we use the notation introduced in the proof of Theorem 6.2.
Proof. Let be an RRV defined by and let . By Definition 5.2, we have , where , for all . By Theorem 6.2, .
The Kullback-Leibler divergence between p and g is:
We have that the minimization of the Kullback-Leibler divergence is equivalent to the next problems:
The first equality follows from the definition of KL divergence, since does not depend on g. The second follows from Theorem 6.2 and the bijection between rankings and RRV realizations established by Proposition 6.1. The third follows from Definition 5.1, since is empty. The fourth follows by expanding the logarithm of the product and marginalizing over the remaining variables.
Since the marginal distributions can be chosen independently, the last objective can be maximized separately for each . Therefore, a RIM that minimizes the Kullback-Leibler divergence with respect to p is
for all .
F.7 Proof of Theorem 6.5
To prove Theorem 6.5, we first introduce a result that relates RRVs with relative rankings when the variable graph is a complete acyclic graph.
Let and be two disjoint non-empty subsets. The relative ranking of with respect to under , , is the injective function from to mapping each item to its rank in the partial ranking , that is, for . Here, denotes the space of these injective functions.
Lemma F.1 (Partial and relative rankings). Let be a complete acyclic variable graph with ancestral ordering , let and be a partition of , and let be defined according to . Then
• induces a thin partition of the (partial) ranking space of A, , and
• induces a thin partition of the relative ranking space of B with respect to A, .
Proof. i) induces a thin partition of :
The definition of is equivalent to an RRV for defined by the complete acyclic variable graph with ancestral ordering . Thus by Proposition 6.1, induces a thin partition of .
ii) induces a thin partition of
For , the reference set of is . Given , start from any partial ranking and successively insert each at rank using the insertion operator of Definition B.1. Each insertion rank is uniquely specified because the reference set contains all previously inserted items. Changing changes only the partial ordering of the items in , leaving the insertion ranks and the final ranks of the items in unchanged. Thus uniquely determines an injective function from to , independently of .
Conversely, given such an injective function, choose a ranking of in which the items in have the specified ranks and the partial ranking of is . Remove in this order, recording the rank of each item immediately before removal. These ranks recover , respectively, independently of . Thus the two constructions are inverse, establishing a bijection between and . In particular, for ,
which proves the claim.
Now, we proceed with the proof of Theorem 6.5.
Proof. We prove that , where and are defined by and , respectively, by showing that if and only if .
The RRVs and for are defined by the complete acyclic graphs and , respectively. By Proposition 6.1, and induce thin partitions. Then, for and with , we write and for simplicity. Moreover, for any , partial ranking , and interleaving , we denote and , where and .
An RRM if and only if
for all . The first equality holds by Lemma F.1. The second equality holds because for
where , for .
An RRM if and only if
for all . In addition, uniquely determines , for . Thus, we have that if and only if
for .
Then, if and only if
for .
By Eq. 7, if and only if
for all . And therefore, if and only if .
F.8 Proof of Corollary 6.6
Proof. Let and be the RRVs defined by and . By Theorem 6.5 we have and . Thus, by Lemma 5.4, RS independence is given by the union of independence models and .
F.9 Proof of Proposition 6.7
In this proof we reuse the notation in the proof of Theorem 6.5.
Proof. Let , and .
i) :
First, by Definition 5.2, we have
where and , for all . The second equality holds because for all , and thus . The third equality holds because the ranks in are uniquely determined by the ranks in and thus .
Then, by Definition 5.2, we have
where , for all . The second equality holds because for all .
ii) :
By (i) and .
The Kullback-Leibler divergence between p and g is:
Minimizing the divergence is equivalent to maximizing the expected log-likelihood,
Any factorizes as
Using the factorization, we can decompose the objective function of the maximization problem additively:
By grouping rankings in the events we have
Therefore, the RSM that minimizes the Kullback-Leibler divergence with respect to p is h, where
for all .