Learning Multinomial Logits in Time
Abstract
A Multinomial Logit (MNL) model is composed of a finite universe of items , each assigned a positive weight. A query specifies an admissible subset – called a slate – and the model chooses one item from that slate with probability proportional to its weight. This query model is also known as the Plackett–Luce model or conditional sampling oracle in the literature. Although MNLs have been studied extensively, a basic computational question remains open: given query access to slates, how efficiently can we learn weights so that, for every slate, the induced choice distribution is within total variation distance of the ground truth? This question is central to MNL learning and has direct implications for modern recommender system interfaces.
We provide two algorithms for this task, one with adaptive queries and one with non-adaptive queries. Each algorithm outputs an MNL that induces, for each slate , a distribution on that is within total variation distance of the true distribution. Our adaptive algorithm makes queries, while our non-adaptive algorithm makes queries. Both algorithms query only slates of size two and run in time proportional to their query complexity.
We complement these upper bounds with lower bounds of for adaptive queries and for non-adaptive queries, thus proving that our adaptive algorithm is optimal in its dependence on the support size , while the non-adaptive one is tight within a factor.
Keywords and phrases:
Multinomial Logits, Conditional Samples, Discrete Choice Models, Recommender SystemsCategory:
Track A: Algorithms, Complexity and GamesFunding:
Flavio Chierichetti: Work done in part while at Sapienza University of Rome. Supported in part by BiCi – Bertinoro international Center for informatics, by a Google Focused Research Award and by the PRIN project 20229BCXNW (funded by the European Union - Next Generation EU, Mission 4 Component 1 CUP B53D23012910006).Copyright and License:
Panconesi, Erasmo Tani, and Andrew Tomkins; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Streaming, sublinear and near linear time algorithms ; Theory of computation Sample complexity and generalization bounds ; Theory of computation Theory and algorithms for application domainsAcknowledgements:
We wish to thank the anonymous reviewers for helpful feedback.Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Multinomial Logit models (MNLs), also known as softmax or Plackett–Luce models, are widely used to model choice behavior in machine learning and economics. They describe winning distributions over alternatives parameterized by item weights: given a universe of items, an MNL assigns each a weight , and for any non-empty subset , defines as the probability of selecting from . Such models underlie diverse applications, from token prediction in large language models to content selection in recommender systems, where they capture how preferences depend on the available slate.
Most prior work focuses on estimating MNL parameters or the induced distribution on the universal slate , which suffices for identifying the globally most preferred items or obtaining a top- ranking. In contrast, we address the more challenging task of approximating the MNL distribution for all slates, motivated by practical needs in modern recommender systems. Consider a platform such as Netflix offering choices of movies. It is now broadly understood that simply displaying a very long list of top titles does not provide a compelling user experience. Instead, these platforms define a large and rapidly changing number of relevant subsets of the entire movie catalog: action movies, foreign movies, movies similar to a particular anchor movie the user recently watched, and so forth. The interface then shows a sequence of carousels, perhaps a carousel of “top movies” followed by “movies similar to Ponyo” then “new arrivals”, each one ordered to show the user’s best options from the class. To drive such an interface, it is important to approximate the winning distribution for every one of these subsets simultaneously, to be ready to display it when needed. As the possible subsets of interest are constantly updated by the platform, it is critical to approximate the MNL’s output on all possible subsets .
Furthermore, for a particular subset, such as that containing all action movies, the platform will not show a single option, but will instead show a carousel with a moderate number of suggestions. While some previous work focused exclusively on ranking the items, practical recommender systems require scoring them for at least two key reasons. First, the number of items shown should depend on their scores: if there are four high-scoring movies, it might be better to only display those, rather than adding the next six, which may have very little chance of being selected. Second, the interface might have more richness than just the carousel itself. For instance, if the top movie of a carousel has a much higher score than the next one, the platform might feature this movie more prominently, for example, by using a specialized rendering or by allocating more space to it. Hence, it is crucial to obtain estimates of the weights that provide accurate winning distributions on all slates.
1.1 MNL and MNL Learning
A multinomial logit (MNL) model supported on the universe is specified by a set of positive values called weights. A slate is a non-empty subset of . An MNL , for any given slate , induces a conditional distribution denoted whose support is and where the probability of each item is given by:111The terminology we adopt comes from the Economics literature [42], this is called a logit model because if we let , then .
An MNL can be accessed by a oracle, which operates as follows: given a slate , returns chosen according to the distribution . Given MNLs and , we define two notions of distance between them:
In this paper we obtain algorithms that approximate an unknown MNL in distance, while our lower bounds apply even to the less challenging problem of obtaining estimates with small distance.
Definition 1 (MNL Learning Problem).
Given oracle access to an MNL and an , the MNL learning problem is to output an MNL such that . The MNL produced in output is represented using the logarithms of its weights.222Representing an MNL using the logarithms of its weights is standard in the ML and economics community [37, 42]. Moreover, with a full representation of the ’s, the weights could require bits just to be stored. For instance, consider the MNL on with weights . Since , any MNL solving the MNL learning problem must satisfy . Therefore, each weight requires bits for a total of bits. Hence, requiring that an algorithm outputs the weights, rather than their logarithms, would rule out the possibility of constructing any algorithm that runs in time . Other compact representations of the weights are also possible.
1.2 Main Results
In this paper, we study algorithms for the MNL learning problem. We obtain two algorithms, one using adaptive queries and the other using non-adaptive queries. Both algorithms query only slates of size two and run in time proportional to their query complexity. Our adaptive algorithm makes queries; we give a lower bound of queries. Summarizing:
Theorem 2 (Informal).
For any constant , the complexity of learning an MNL within -error by making queries adaptively is .
Our non-adaptive algorithm makes queries; this is complemented by a lower bound of . Summarizing:
Theorem 3 (Informal).
For any constant , the complexity of learning an MNL within -error by making queries non-adaptively is between and .
As we mentioned above, the lower bounds described also hold for the weaker distance.
Our results are surprising: for a constant , our seemingly harder problem can be solved as fast as (noisy) sorting. Furthermore, our lower bounds hold for unit-time oracle queries of any slate size. Hence, restricting the algorithms to slates of size two incurs no loss in efficiency.
1.3 Technical Challenges
Existing methods, especially ones that approximate the winning distribution over the universal slate , do not seem to apply to our problem. As a simple example of the difficulty, consider an algorithm that guarantees an -estimate of the full slate distribution within an error of . Consider now the MNL on with weights , . Suppose the algorithm returns the estimate , , ; clearly, . But, , and therefore the algorithm cannot guarantee small error on the slate . Similarly, prior work that additively estimates the winning distributions on all size-two slates cannot be used to obtain a good approximation on every slate. Moreover, noisy sorting algorithms also do not imply our guarantees. Indeed, while our final algorithm will perform a noisy sorting step at the beginning, the key challenge lays in performing the additional comparisons that allow the accurate estimate of each conditional distribution, as we detail below.
It is not difficult to obtain a cubic time algorithm for our problem. Indeed, consider the naive algorithm that works as follows. For each pair of items in the universe, estimate to within a -multiplicative error, or declare that their ratio (or its inverse) is larger than . One can easily show that this algorithm will need to query each pair times to guarantee these bounds; the total cost would then be . From the output of this algorithm, it is easy to approximate the output distribution for any slate.333Indeed, if the items of this slate have weights that are within a factor of each other, the -approximation error will make it possible to approximate the winning probability of any item to within a -factor (so that the total variation error will be at most ). If, instead, the slate contains pairs of items such that , then the lighter item will have a probability of winning in the slate not larger than , and hence we can estimate its winning probability to be zero – given that there are at most such light items in a slate, the total variation error is no larger than .
With some effort, this algorithm can be improved. The idea is to carefully control the pairs of items, querying only pairs that are nearby in the order induced by the weights (which can be approximately inferred via a noisy sorting algorithm). To avoid querying too many nearby pairs, one can first cluster items whose weights are within a constant factor, in a query-efficient manner, and then select a center from each cluster. One can determine the weight ratio of each item to its cluster center, and the weight ratios of successive items in the sorted list of cluster centers. This method can be shown to produce an algorithm that compares pairs of items, with each such comparison performing queries. While this yields a quadratic time algorithm, it is unclear how this can be further improved to being quasi-linear.
1.4 Overview of Methods
We construct our quasi-linear adaptive algorithm by building on the clustering idea described above. We first partition the universe into clusters of similar-weight items and select a center for each cluster. We then estimate the ratio of the weights for every item in the cluster with center . Finally, we construct a forest on the cluster centers, where every edge is labeled with an estimate of the ratio between the weights of the two centers it connects. We call this data structure the estimation-forest. This allows us to obtain estimates of the ratio of the weights for arbitrary pairs of items by combining these estimates along paths in the forest.
Following this strategy, the error compounds multiplicatively along the paths. To circumvent this issue without requiring more accurate ratio estimates – which would lead to a higher complexity – we design the forest so that any two centers whose weights the algorithm might want to compare are at a short distance from each other. To achieve this property, the topology of the forest is constructed adaptively.
Additionally, to further improve the sample complexity (and runtime), we dynamically adjust the number of queries required to approximate the weight ratio between two centers. In particular, if the total weight of items lighter than a given item is not large enough with respect to the weight of , then it becomes unimportant to estimate the ratio of the weight of over the weight of any of these items.
Our estimation-forest data structure dynamically determines query sequences for weight-ratio estimation and enables all cluster-center–cluster-center and cluster-item–cluster-center comparisons in queries.
While the above algorithm is adaptive, we also obtain a non-adaptive version. The idea is to first design a new adaptive algorithm that queries each pair of items only times. We then query every pair a fixed number of times and then simulate this new adaptive algorithm on the precomputed answers; this leads to a non-adaptive algorithm with queries.
The two lower bounds in our paper are proved using a reduction from the problem of identifying the coins with the highest heads probability in a collection of biased coins.
In particular, we construct an MNL supported on an even-sized universe whose items are divided into pairs, each pair representing the two sides of a coin. We then order the pairs so that the weights of the items in a pair are much larger than those in preceding pairs. This way, we can assume without loss of generality that any learning algorithm is only querying slates corresponding to our original pairs.
1.5 Organization
In Section 2 we review related work. Section 3 introduces key tools and notation that we use throughout the paper. Section 4 gives an overview of our adaptive algorithm, while Section 5 gives an overview of our non-adaptive algorithm. Section 6 gives an overview of our adaptive and non-adaptive lower bounds. Finally, in Section 7 and Section 8, we conclude with some open questions.
All the proofs and algorithms missing from the paper can be found in the full version.
2 Related Work
The problem of learning MNLs on all slates from queries arises naturally from several perspectives. Our work is related to, yet distinct from, the existing literature. First, prior work on MNL fitting has provided approximation guarantees only for the full slate or for pairs of items – both of which are strictly weaker than the guarantees we obtain. Second, our framework extends beyond classical MNL ranking and selection by capturing quantitative relationships among items, revealing how much and where certain items dominate, while preserving the efficiency of the best known ranking algorithms. Third, our problem can be viewed as a natural strengthening of distribution learning under conditional sampling, extending the “testing by learning” paradigm to recover all conditional distributions simultaneously in a more expressive and challenging setting. Finally, our results also strengthen prior work on learning Random Utility Models (RUMs), specialized to the MNL case. We elaborate on these connections below.
2.1 MNL Fitting
A large body of the literature focuses on finding MNL weights maximizing the likelihood of a collected dataset. In this setting, usually, the queries are either fixed [45, 19, 15, 31] or sampled from a distribution [32, 29, 30, 27]. When the dataset actually comes from a hidden MNL model, some of these algorithms guarantee that the estimated (normalized) weights approximate the hidden (normalized) weights [29, 30, 27, 37, 39, 36].
These works are not directly applicable to our setting because of the following two main issues.
-
(i)
Approximately recovering the normalized weights is equivalent to providing a good estimate of the winning distribution of the full slate. However, this is insufficient to accurately estimate the winning distribution for smaller slates, as we discussed in the Introduction.
-
(ii)
Most of these works assume that the maximum ratio between two weights is upper bounded by a constant [29]. Note that such an assumption would greatly simplify our problem given that we could accurately estimate the weights with respect to any anchor item. Therefore, the interesting setting is one where there is no a priori bound on the ratio of the weights. Furthermore, as these algorithms are non-adaptive, they are subject to our lower bound of queries for our problem.
Stepping outside the task of fitting the weights themselves, Falahatgar et al. [17] adaptively query slates of size two (i.e., pairs) and produce an additive estimate within for all other pairs, in a family of models that are more powerful than MNLs [44]. However, in order for an additive approximation of the slates of size two to generalize to all other slates with an -error of , one needs . Therefore, applying their algorithm as a blackbox would require queries. Moreover, their algorithm heavily relies on providing an additive approximation – specifically, each estimated probability is rounded to the closest multiple of . Hence, it appears hard to generalize their work to larger slates even in a non-blackbox manner.
Other works considered minimizing the -difference of the logarithm of the weights, or approximating the weight ratios of all the pairs [43, 20, 40, 24]. These guarantees would be sufficient to obtain a good estimate for all slates, but are not necessary. Indeed, if , and , , then can be made arbitrarily large by increasing the constant , yet, provides good predictions: . Moreover, these works analyze non-adaptive algorithms and assume a bound on the ratio of the weights, and therefore suffer our lower bound.
We also mention a separate line of work that focuses on developing statistical tests to determine whether a given dataset of comparisons is consistent with an MNL model [38, 25, 34]. These works are complementary to ours in that they address model validation rather than estimation, and they do not provide algorithms for learning the underlying MNL parameters.
2.2 MNL Ranking/Selection
Other classical problems involving MNLs include: (i) sorting/ranking the weights [18, 17, 9, 41, 35], (ii) finding the top- items with largest weight [21, 10, 11, 12, 22], and (iii) finding the item of maximum weight [16, 26]. Some works make assumptions about the weights (e.g., adjacent weights are sufficiently separated) and seek an exact output with high probability [21], while others do not make further assumptions but only require a probably approximately correct (PAC) output [41]. These problems have also been explored in the “dueling bandits” literature [3].
While we will use an approximate sorting algorithm by Falahatgar et al. [17] as a first step in our algorithm, these results are not sufficient by themselves to learn an MNL under our definition. Our lower bound will be proved by showing that the top- problem (and the ranking problem) reduces to our MNL learning problem. Interestingly, despite this, we obtain an learning algorithm that is only -factor worse than the best possible algorithm for MNL ranking [17].
2.3 Distribution Testing with Conditional Samples
Our problem can also be described in the context of conditional sampling. Let be a hidden distribution over . Algorithms can, adaptively, make the following types of queries: chosen a set , an oracle returns an item of sampled according to distribution conditioned on .444If has probability 0, the oracle returns a uniform at random item from . The goal in distribution testing is usually to make the smallest number of queries to establish whether satisfies certain properties, such as, e.g., uniformity [5]. However, the problem of estimating the probability , for , has also been considered [8, 6, 2].
Our problem, on the other hand, asks for the minimum number of queries to accurately estimate for each .555In our proofs, we will assume that the weights are strictly positive for simplicity. However, the same algorithms also work when weights of zero are allowed. Indeed, the distribution can be seen as the weights of an MNL and therefore, for . Observe that having an estimate only for is equivalent to an estimate of the winning distribution on the full slate – insufficient to estimate the winning distribution for smaller slates. Some algorithms provide a multiplicative estimate for for where is a set such that ; this is a stronger property than an additive approximation of the full slate. However, it still cannot provide accurate estimates for slates that are either subsets of or that span across and . Note also that it can be meaning that the distribution of most slates cannot be estimated. From a technical standpoint, Chakraborty et al. [8] achieve this guarantee by building a complete binary tree where edges are labeled with probabilities. This idea bears some high level similarities with our estimation-forest, but details differ. Indeed, their tree is static while the topology of our forest is adaptively chosen, which is crucial for a tight bound. Moreover, their tree is populated by querying slates of arbitrary size, while we only query slates of size two. Finally, as argued above, the guarantees provided by their tree are insufficient to estimate the winning distributions of all slates. Recent work has also focused on different query models [1, 33, 28]; however, their results are incomparable to ours.
We remark that a common paradigm for designing distribution testing algorithms in the traditional (unconditional) setting is that of testing by learning (see, e.g. [7]), in which a property is tested by first approximately learning the underlying distribution, and then checking whether the learned distribution has the property in question. Our work serves as a conditional counterpart to this paradigm that works for the more challenging case in which the property being tested requires approximating the behavior of all conditional distributions.
2.4 RUM Learning
MNLs are a special case of RUMs; hence, algorithms for learning RUMs on all slates could be used to learn an MNL. However, the best known algorithms for general RUM learning require exponentially many queries to slates of size [13]. In contrast, we show that MNLs can be learned using only queries to slates of size two.
3 Technical Preliminaries
Let be a universe of items. For a probability distribution over , let denote the probability of the item . For distributions , let be the -distance, which is also twice the total variation distance, and let be the -distance. Let denote a random variable following a Bernoulli distribution with mean and let denote a random variable following a binomial distribution with trials and head probability . Also let denote a random variable following a geometric distribution with parameter ; in particular, , for . For any , we denote by the interval and for any , we denote by the interval . We will use standard concentration results (see, e.g., [14, 4]).
3.1 Ordered Clusterings and Directed Weightings
An ordered clustering of is given by an ordered partition of and a corresponding list of centers such that for each . In our algorithms, the centers can always be thought to be sorted in increasing order of weight. Here, for , let be the unique index such that ; we call the cluster index of .
Let be an undirected forest supported on . For in the same connected component of , let be the (unique) path in from to . We use to denote the (unweighted/hop) distance in between vertices and , where if and are in different connected components, we define .
Let . A directed weighting of the edges of is a function such that . For a path in define , and if , let .
4 Learning MNLs Adaptively
Our first result is an algorithm to learn an MNL by making adaptive queries to output the weights of an MNL such that . Observe that . Therefore, if we had access to a multiplicative estimate of the ratio for each pair , we could provide a good estimate for for each slate , in -error. Unfortunately, this has two issues. (i) In general, this ratio can be unbounded and therefore, producing a multiplicative estimate could in principle cost an unbounded number of queries. (ii) If we aim to obtain an algorithm with query complexity , we simply cannot afford to query all the pairs.
To circumvent these issues, we instead construct a sparse graph on the items of that contains estimates of the ratio along each edge , and then use this graph to compute . At a high level, we produce a forest such that: (i) if two items are close to each other in , we can get an estimate of their ratios, (ii) if two items are far away in , then their ratio is negligible. We will also need some technical properties to ensure that we can obtain a valid MNL from the forest. The following definition formalizes the properties we need.
Definition 4 (-Estimation-Forest).
Let and let . A -estimation-forest for an MNL supported on with weights is a tuple where is an undirected forest, is a directed weighting on , and is an ordered clustering over . For any such that :
-
1.
if , then and .
-
2.
If , then:
where is the connected component containing both and .
-
3.
if , then:
Also, for any (resp. ) in the same connected component of (resp. ), it holds that .
-
4.
if , then .
The ordering of the centers can intuitively be thought to be in increasing order of weight. In the full version, we show that we can use a -estimation-forest for an MNL to obtain an MNL such that .
4.1 On Choosing the Estimation-Forest Topology
Interestingly, for the purpose of constructing , it turns out that the specific value of is irrelevant. This observation allows us to reduce the problem of learning to that of constructing a -estimation-forest for a single, arbitrary choice of . The central challenge then lies in designing an efficient topology for the estimation-forest.
The most natural topology would be a path on the items (after a noisy-sorting step). However, along a path, two items of comparable weight can be separated by a super-constant distance . To preserve property 2 of Definition 4, one would then need to construct a -estimation-forest, which would incur a query cost of . Since can be as large as , this is clearly suboptimal, suggesting the need for a topology with low diameter. Note that even a complete binary tree also can yield super-constant length paths, implying an query cost.
On the other hand, to achieve a very small diameter, one might consider a star or a tree topology with unbounded arity. However, in these cases, one would need to estimate extremely large weight ratios, leading to high query complexity. This, in fact, explains why a disconnected graph is required.
Another natural direction would be to consider general (non-acyclic) graphs. In fact, we could consider a path with skips to decrease the diameter (perhaps exploiting modern shortcutting results [23]). The difficulty is that, in a cyclic graph, the weight of an item depends on the particular path chosen, and different paths can yield inconsistent estimates. Thus, acyclicity of the topology is essential to ensure that an explicit MNL can be extracted from it.
In the full version, we provide an efficient algorithm for constructing an -estimation-forest. The resulting topology takes the form of a forest of lobster graphs: items are first clustered together, as described below, and a forest of unbounded-arity trees is then constructed over the resulting cluster centers. The arity of each tree is not predetermined but is instead adaptively chosen as the algorithm progresses, in order to balance estimation accuracy and query efficiency. Interestingly, the diameter of the trees in our forest can be super-constant. However, each tree will have the property that if two items are at distance more than , then one of the two is so much larger than the other that their ratio can be taken to be infinite without incurring a large error. Thanks to this property, from the perspective of any single item, one can consider the tree to have constant diameter and lose at most in the final estimate.
4.2 Building the Estimation-Forest
We now go more into the details of our solution to efficiently build an estimation-forest. When constructing the estimation-forest, some ratio estimates might be costlier to obtain than others. In order to maintain a low query complexity, we leverage the fact that if two items have similar weights, fewer queries are required to estimate the ratio of their weights. In the first step to build our estimation-forest, we exploit this observation via a pre-processing step, which sorts the items in approximately increasing order of weights, and produces clusters of similar items resulting in a cluster graph, defined as follows.
Definition 5 (Cluster Graph).
An -cluster graph for an MNL supported on with weights , is a tuple , where is an undirected forest, is a directed weighting on , and is an ordered clustering over , satisfying:
-
1.
For any and any item in the cluster we have:
-
2.
For any with we have:
-
3.
The edge set consists of all the edges of the form for all choices of and of . Moreover the weight of any edge satisfies:
In the full version we provide an algorithm to efficiently build a cluster graph. Our algorithms employs a noisy sorting procedure of Falahatgar et al. [17] as a subroutine and builds on it to partition the vertices and compute the edge weights . We show in Figure 1 a cluster graph produced by our algorithm.
Observe that a cluster graph is not yet an estimation-forest. Indeed, there might be items in different clusters (but close in the ordering) whose ratio is constant. To obtain an estimation-forest, we add extra edges between some pairs of centers. We do so in an iterative way, starting from the center of the last cluster and moving backwards. A priori, these multiplicative estimates can potentially be costly to obtain, since the ratio between the weights of distinct cluster centers could be arbitrarily large. In order to maintain a low query complexity, we employ a careful thresholding strategy. This ensures that we only require an accurate estimate of the ratio when this is not too large to make a significant difference in the MNL winning distributions. For instance, if the ratio between two items is greater than , then it is safe to act as if the second item’s weight is infinitely larger than the first, as this approximation only causes a -error of magnitude . When we find two clusters that are incomparable, we restart the iteration process from the last cluster that was comparable. It can be shown that this leads to an -estimation-forest. We show in Figure 2 a forest that can be produced by our algorithm.
In summary, our algorithm consists of three phases. In the first phase, we construct a -cluster graph. In the second phase, we extend the cluster graph to a -estimation-forest. Finally, in the third phase, we use the forest to recover an estimate of the MNL weights. A representation of the steps in our algorithm is in Figure 3. The first two phases require at most queries, while the last one does not make any further queries, yielding our main result:
Theorem 6.
Choose any and for a constant . There exists an adaptive randomized algorithm that, with probability at least , makes queries and solves the MNL Learning Problem on with accuracy parameter . Moreover, the algorithm only queries pairs and runs in time proportional to the number of queries.
5 Learning MNLs Non-Adaptively
We next present an algorithm to learn MNLs non-adaptively, i.e., by making a single batch of queries. In order to do this we leverage the following reduction.
Lemma 7.
Given an adaptive algorithm for learning MNLs with the oracle that queries any pair of items at most times, one can construct a non-adaptive algorithm for the same problem that makes at most queries.
Proof.
The non-adaptive algorithm queries each pair times and then simulates the adaptive algorithm by replacing each oracle call with a revealed response from the set of non-adaptive queries.
The number of queries made to any pair of items by the adaptive algorithm described above could be as high as ; this would naively yield an -algorithm. Instead, we design an algorithm with query complexity . To accomplish this, we modify the adaptive algorithm to obtain a new (adaptive) algorithm that has a worse overall query complexity than , but allows us to uniformly bound the number of queries made to each pair of items. In particular, we show the following result.
Theorem 8.
Choose any . There exists an adaptive randomized algorithm that, with probability at least , queries each pair at most times and solves the MNL Learning Problem on with accuracy parameter .
To obtain this result, we use three new technical ingredients. First, we make use of a different algorithm to approximately order the items of the MNL. This algorithm, which is a straight-forward adaptation of the classical Quicksort algorithm, makes more queries than the previous one overall, but guarantees a uniform upper bound on the number of queries on each pair of items. Second, we introduce a new algorithm to construct the estimation-forest. This algorithm only needs to make comparisons between any pair of cluster centers (with ) whenever the ratio is estimated. Finally, we introduce a subroutine that allows one to amortize the cost of estimating the ratio among all the pairs of the form , where belongs to the cluster . This allows one to distribute the cost nearly equally among all items in , and hence to guarantee each pair is queried at most times.
Corollary 9.
Choose any . There exist a non-adaptive algorithm that, with probability at least , makes at most queries and solves the MNL Learning Problem on with accuracy parameter .
6 Lower Bounds
We prove lower bounds that show that our adaptive algorithm has optimal dependence on , and that our non-adaptive algorithm has nearly-optimal (at most a factor away from optimal) dependence on . Moreover, both algorithms are only a factor of away from optimal in terms of their dependence on the accuracy parameter . We prove lower bounds on the easier task of producing an estimate with , and these in turn imply lower bounds on obtaining an approximation in the -distance.
For learning MNLs with adaptive queries to , we show the following.
Theorem 10.
Any (possibly randomized and adaptive) algorithm that, given in input and access to a oracle for any MNL , outputs an MNL satisfying:
must make queries in the worst case.
For the non-adaptive case, we show the following.
Theorem 11.
Any (possibly randomized) non-adaptive algorithm that, given in input and access to a oracle for any MNL , outputs an MNL satisfying:
must make queries in the worst case.
Both the lower bounds we provide are based on reductions from the problem of approximately identifying the coins with the largest probability of heads in a set of biased coins.
7 Future Work
In this work we essentially resolved the complexity of learning MNLs via queries in the adaptive setting. Future work could, however, tackle a number of technical improvements. The main question we leave open is finding the optimal dependence on for adaptive algorithms. We highlight here some challenges in obtaining an algorithm with a better dependence in .
First, we observe that the analysis of our algorithm is tight. Our algorithm constructs a forest with vertex set equal to the items, and each edge in the forest is labeled with a -estimate of the ratio . It can be shown that the topology of the forest can be obtained with queries – our algorithm pays an extra factor in estimating the ratios on the edges. Specifically, consider the instance for , . Since but , one can show that our algorithm will build a forest with edges. The ratio on each such edge is upper bounded by and therefore estimating it within with high probability would require queries – thus, our algorithm makes queries on this instance.
We also mention that our algorithm, in general, requires estimates as accurate as . Consider a subset of the instance containing one large item of weight and small items ( for ) of weight Our algorithm would separate these items into two clusters, one containing only and the other containing , and then it would estimate the ratio of the two centers. If this estimate is off by significantly more than (say , with ), then the ratio of the large item’s weight to the total of the small items also has error , causing the estimated winning probability of the large item against all the small ones to be wrong by an additive .
A natural direction to explore would be choosing the precision on the edges dynamically rather than always using . However, this would require a substantially different analysis and a different estimation-forest (or estimation-graph) topology. Indeed, our current topology can create stars where an item of weight gets attached to two items: one of weight and the other of weight . Thus, one is forced to estimate the ratios between and within so to maintain a good estimate for as well – even though is much larger than and . Note that it is easy to construct an instance where this construction appears times, resulting in a cost of if one uses the topology produced by our algorithm. Thus, a substantially different algorithm and analysis would be required to improve the dependency on .
Finally, it is unclear if an algorithm exists at all. In a slightly more general model than MNLs, Falahatgar et al. [17] showed that if one wants to approximate the distributions on all pairs by querying only pairs, then queries are necessary (under the assumption that ). While this result does not apply to our setting, since it was proved in a more general model, it provides some evidence that is not necessarily achievable. On the other hand, there is a trivial algorithm if we can query slates of arbitrary size – however, this is better than only when . Under the natural assumption that , it is not clear whether one can do better than .
8 Conclusions and Open Problems
In this paper, we considered the problem of learning an unknown MNL by making queries to a oracle so that the learned weights can be used to provide an estimate to the distribution of each slate within an -error of . We developed two algorithms for this task: one for the adaptive setting and one for the non-adaptive setting.
Our adaptive algorithm has a query complexity of for , which is nearly matched by our lower bound of . The main open question left by our work is to resolve the gap in the accuracy parameter . We have shown that the lower bound holds for , while our algorithm’s guarantees hold for the harder setting of -error; this opens up the possibility that the optimal query complexity in may differ for the and case.
Our non-adaptive algorithm has a query complexity of nearly matching our non-adaptive lower bound. Again, this leaves the analogue open problem of closing the gap between the upper and the lower bound.
Finally, our non-adaptive algorithm is based on an adaptive algorithm that queries each pair at most polylogarithmic many times. However, the latter is different from the algorithm we first design for the adaptive setting. A possible direction for future work would be to find a single algorithm which can be used to match the query complexity of our algorithms in both the adaptive and non-adaptive setting.
References
- [1] Tomer Adar. Tight simulation of a distribution using conditional samples. arXiv, 2506.18444, 2025. doi:10.48550/arXiv.2506.18444.
- [2] Tomer Adar, Eldar Fischer, and Amit Levi. Optimal mass estimation in the conditional sampling model. In SODA, 2026.
- [3] Viktor Bengs, Róbert Busa-Fekete, Adil El Mesaoudi-Paul, and Eyke Hüllermeier. Preference-based online learning with dueling bandits: a survey. JML, 22(7):1–108, 2021. URL: https://jmlr.org/papers/v22/18-546.html.
- [4] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities - A Nonasymptotic Theory of Independence. Oxford University Press, 2013. doi:10.1093/ACPROF:OSO/9780199535255.001.0001.
- [5] Clément L. Canonne. A Survey on Distribution Testing: Your Data is Big. But is it Blue? Number 9 in Graduate Surveys. Theory of Computing Library, 2020.
- [6] Clément L. Canonne, Dana Ron, and Rocco A. Servedio. Testing probability distributions using conditional samples. SICOMP, 44(3):540–616, 2015. doi:10.1137/130945508.
- [7] Clément L. Canonne. Topics and techniques in distribution testing: A biased but representative sample. Foundations and Trends® in Communications and Information Theory, 19(6):1032–1198, 2022. doi:10.1561/0100000114.
- [8] Sourav Chakraborty, Eldar Fischer, Yonatan Goldhirsh, and Arie Matsliah. On the power of conditional samples in distribution testing. In ITCS, pages 561–580, 2013. doi:10.1145/2422436.2422497.
- [9] Pinhan Chen, Chao Gao, and Anderson Y Zhang. Optimal full ranking from pairwise comparisons. The Annals of Statistics, 50(3):1775–1805, 2022.
- [10] Xi Chen, Sivakanth Gopi, Jieming Mao, and Jon Schneider. Competitive analysis of the top- ranking problem. In SODA, pages 1245–1264, 2017. doi:10.1137/1.9781611974782.81.
- [11] Xi Chen, Yuanzhi Li, and Jieming Mao. A nearly instance optimal algorithm for top- ranking under the multinomial logit model. In SODA, pages 2504–2522, 2018. doi:10.1137/1.9781611975031.160.
- [12] Yuxin Chen and Changho Suh. Spectral MLE: Top- rank aggregation from pairwise comparisons. In ICML, pages 371–380, 2015. URL: http://proceedings.mlr.press/v37/chena15.html.
- [13] Flavio Chierichetti, Mirko Giacchini, Ravi Kumar, Alessandro Panconesi, and Andrew Tomkins. Tight bounds for learning RUMs from small slates. In NeurIPS, pages 105864–105886, 2024.
- [14] Devdatt Dubhashi and Alessandro Panconesi. Concentration of Measure for the Analysis of Randomized Algorithms. Cambridge University Press, 1st edition, 2009.
- [15] Otto Dykstra. Rank analysis of incomplete block designs: A method of paired comparisons employing unequal repetitions on pairs. Biometrics, 16(2):176–188, 1960.
- [16] Eyal Even-Dar, Shie Mannor, and Yishay Mansour. PAC bounds for multi-armed bandit and Markov decision processes. In COLT, pages 255–270, 2002. doi:10.1007/3-540-45435-7_18.
- [17] Moein Falahatgar, Ayush Jain, Alon Orlitsky, Venkatadheeraj Pichapati, and Vaishakh Ravindrakumar. The limits of maxing, ranking, and preference learning. In ICML, pages 1427–1436, 2018.
- [18] Moein Falahatgar, Alon Orlitsky, Venkatadheeraj Pichapati, and Ananda Theertha Suresh. Maximum selection and ranking under noisy comparisons. In ICML, pages 1088–1096, 2017. URL: http://proceedings.mlr.press/v70/falahatgar17a.html.
- [19] Lester R. Ford Jr. Solution of a ranking problem from binary comparisons. The American Mathematical Monthly, 64(8P2):28–33, 1957.
- [20] Ruijian Han, Rougang Ye, Chunxi Tan, and Kani Chen. Asymptotic theory of sparse Bradley–Terry model. Annals of Applied Probability, 30:2491–2515, 2020.
- [21] Minje Jang, Sunghyun Kim, Changho Suh, and Sewoong Oh. Optimal sample complexity of -wise data for top- ranking. In NIPS, volume 30, 2017.
- [22] Shivaram Kalyanakrishnan, Ambuj Tewari, Peter Auer, and Peter Stone. PAC subset selection in stochastic multi-armed bandits. In ICML, pages 655–662, 2012.
- [23] Shimon Kogan and Merav Parter. New diameter-reducing shortcuts and directed hopsets: Breaking the barrier. In SODA, 2022.
- [24] Wanshan Li, Shamindra Shrotriya, and Alessandro Rinaldo. -bounds of the MLE in the BTL model under general comparison graphs. In UAI, 2022.
- [25] Anuran Makur and Japneet Singh. Minimax hypothesis testing for the bradley–terry–luce model. IEEE Transactions on Information Theory, 71(12):9163–9202, 2025.
- [26] Shie Mannor and John N. Tsitsiklis. The sample complexity of exploration in the multi-armed bandit problem. JMLR, 5:623–648, 2004. URL: https://jmlr.org/papers/volume5/mannor04b/mannor04b.pdf.
- [27] Lucas Maystre and Matthias Grossglauser. Fast and accurate inference of Plackett–Luce models. In NIPS, volume 28, 2015.
- [28] Kuldeep S Meel, Gunjan Kumar, and Yash Pote. Distance estimation for high-dimensional discrete distributions. In AISTATS, pages 955–963, 2025. URL: https://proceedings.mlr.press/v258/meel25a.html.
- [29] Sahand Negahban, Sewoong Oh, and Devavrat Shah. Iterative ranking from pair-wise comparisons. In NIPS, 2012.
- [30] Sahand Negahban, Sewoong Oh, and Devavrat Shah. Rank centrality: Ranking from pairwise comparisons. Oper. Res., 65(1), 2017. doi:10.1287/OPRE.2016.1534.
- [31] Mark EJ Newman. Efficient computation of rankings from pairwise comparisons. JMLR, 24(238):1–25, 2023. URL: https://jmlr.org/papers/v24/22-1086.html.
- [32] Sam Olesker-Taylor and Luca Zanetti. An analysis of Elo rating systems via Markov chains. In NeurIPS, 2024.
- [33] Pinki Pradhan and Sampriti Roy. Distribution testing meets sum estimation. arXiv, 2504.15153, 2025. doi:10.48550/arXiv.2504.15153.
- [34] Charvi Rastogi, Sivaraman Balakrishnan, Nihar B. Shah, and Aarti Singh. Two-sample testing on ranked preference data and the role of modeling assumptions. J. Mach. Learn. Res., 23(1), 2022. URL: https://jmlr.org/papers/v23/20-1304.html.
- [35] Wenbo Ren, Jia Liu, and Ness B. Shroff. On sample complexity upper and lower bounds for exact ranking from noisy comparisons. In NIPS, 2019.
- [36] Arjun Seshadri, Alex Peysakhovich, and Johan Ugander. Discovering context effects from raw choice data. In ICML, pages 5660–5669, 2019. URL: http://proceedings.mlr.press/v97/seshadri19a.html.
- [37] Arjun Seshadri, Stephen Ragain, and Johan Ugander. Learning rich rankings. In NIPS, 2020.
- [38] Arjun Seshadri and Johan Ugander. Fundamental limits of testing the independence of irrelevant alternatives in discrete choice. In EC, pages 65–66, 2019. doi:10.1145/3328526.3329656.
- [39] Nihar Shah, Sivaraman Balakrishnan, Joseph Bradley, Abhay Parekh, Kannan Ramchandran, and Martin Wainwright. Estimation from pairwise comparisons: Sharp minimax bounds with topology dependence. JMLR, 17(58):1–47, 2016. URL: https://jmlr.org/papers/v17/15-189.html.
- [40] Gordon Simons and Yi-Ching Yao. Asymptotics when the number of parameters tends to infinity in the Bradley–Terry model for paired comparisons. The Annals of Statistics, 27(3):1041–1060, 1999.
- [41] Balázs Szörényi, Róbert Busa-Fekete, Adil Paul, and Eyke Hüllermeier. Online rank elicitation for Plackett–Luce: A dueling bandits approach. In NIPS, 2015.
- [42] Kenneth E Train. Discrete Choice Methods with Simulation. Cambridge University Press, 2003.
- [43] Ting Yan, Yaning Yang, and Jinfeng Xu. Sparse paired comparisons in the Bradley–Terry model. Statistica Sinica, 22:1305–1318, September 2012.
- [44] Yisong Yue, Josef Broder, Robert Kleinberg, and Thorsten Joachims. The -armed dueling bandits problem. JCSS, 78(5):1538–1556, 2012. doi:10.1016/J.JCSS.2011.12.028.
- [45] Ernst Zermelo. Die berechnung der turnier-ergebnisse als ein maximumproblem der wahrscheinlichkeitsrechnung. Mathematische Zeitschrift, 29(1):436–460, 1929.
