Unbiased Learning-to-Rank with Biased Feedback

Thorsten Joachims, Adith Swaminathan, Tobias Schnabel

Introduction

Batch training of retrieval systems requires annotated test collections that take substantial effort and cost to amass. While economically feasible for Web Search, eliciting relevance annotations from experts is infeasible or impossible for most other ranking applications (e.g., personal collection search, intranet search). For these applications, implicit feedback from user behavior is an attractive source of data. Unfortunately, existing approaches for Learning-to-Rank (LTR) from implicit feedback – and clicks on search results in particular – have several limitations or drawbacks.

First, the naïve approach of treating a click/no-click as a positive/negative relevance judgment is severely biased. In particular, the order of presentation has a strong influence on where users click . This presentation bias leads to an incomplete and skewed sample of relevance judgments that is far from uniform, thus leading to biased learning-to-rank.

Second, treating clicks as preferences between clicked and skipped documents has been found to be accurate , but it can only infer preferences that oppose the presented order. This again leads to severely biased data, and learning algorithms trained with these preferences tend to reverse the presented order unless additional heuristics are used .

Third, probabilistic click models (see ) have been used to model how users produce clicks, and they can take position and context biases into account. By estimating latent parameters of these generative click models, one can infer the relevance of a given document for a given query. However, inferring reliable relevance judgments typically requires that the same query is seen multiple times, which is unrealistic in many retrieval settings (e.g., personal collection search) and for tail queries.

Fourth, allowing the LTR algorithm to randomize what is presented to the user, like in online learning algorithms and batch learning from bandit feedback (BLBF) can overcome the problem of bias in click data in a principled manner. However, requiring that rankings be actively perturbed during system operation whenever we collect training data decreases ranking quality and, therefore, incurs a cost compared to observational data collection.

In this paper we present a theoretically principled and empirically effective approach for learning from observational implicit feedback that can overcome the limitations outlined above. By drawing on counterfactual estimation techniques from causal inference , we first develop a provably unbiased estimator for evaluating ranking performance using biased feedback data. Based on this estimator, we propose a Propensity-Weighted Empirical Risk Minimization (ERM) approach to LTR, which we implement efficiently in a new learning method we call Propensity SVM-Rank. While our approach uses a click model, the click model is merely used to assign propensities to clicked results in hindsight, not to extract aggregate relevance judgments. This means that our Propensity SVM-Rank does not require queries to repeat, making it applicable to a large range of ranking scenarios. Finally, our methods can use observational data and we do not require that the system randomizes rankings during data collection, except for a small pilot experiment to estimate the propensity model.

When deriving our approach, we provide theoretical justification for each step, leading to a rigorous end-to-end approach that does not make unspecified assumptions or employs heuristics. This provides a principled basis for further improving components of the approach (e.g., the click propensity model, the ranking performance measure, the learning algorithm). We present an extensive empirical evaluation testing the limits of the approach on synthetic click data, finding that it performs robustly over a large range of bias, noise, and misspecification levels. Furthermore, we field our method in a real-world application on an operational search engine, finding that it is robust in practice and manages to substantially improve retrieval performance.

Related Work

There are two groups of approaches for handling biases in implicit feedback for learning-to-rank. The first group assumes the feedback collection step is fixed, and tries to interpret the observationally collected data so as to minimize bias effects. Approaches in the second group intervene during feedback collection, trying to present rankings that will lead to less biased feedback data overall.

Approaches in the first group commonly assume some model of user behavior in order to explain bias effects. For example, in a cascade model , users are assumed to sequentially go down a ranking and click on a document if it is relevant. Clicks, under this model, let us learn preferences between skipped and clicked documents. Learning from these relative preferences lowers the impact of some biases . Other click models (, also see ) have been proposed, and are trained to maximize log-likelihood of observed clicks. In these click modeling approaches, performance on downstream learning-to-rank algorithms is merely an afterthought. In contrast, we separate click propensity estimation and learning-to-rank in a principled way and we optimize for ranking performance directly. Our framework allows us to plug-and-play more sophisticated user models in place of the simple click models we use in this work.

The key technique used by approaches in the second group to obtain more reliable click data are randomized experiments. For instance, randomizing documents across all ranks lets us learn unbiased relevances for each document, and swapping neighboring pairs of documents lets us learn reliable pairwise preferences. Similarly, randomized interleaving can detect preferences between different rankers reliably . Different from online learning via bandit algorithms and interleaving , batch learning from bandit feedback (BLBF) still uses randomization during feedback collection, and then performs offline learning. Our problem formulation can be interpreted as being half way between the BLBF setting (loss function is unknown and no assumptions on loss function) and learning-to-rank from editorial judgments (components of ranking are fully labeled and loss function is given) since we know the form of the loss function but labels for only some parts of the ranking are revealed. All approaches that use randomization suffer from two limitations. First, randomization typically degrades ranking quality during data collection; second, deploying non-deterministic ranking functions introduces bookkeeping overhead. In this paper, the system can be deterministic and we merely exploit and model stochasticity in user behavior. Moreover, our framework also allows (but does not require) the use of randomized data collection in order to mitigate the effect of biases and improve learning.

Our approach uses inverse propensity scoring (IPS), originally employed in causal inference from observational studies , and more recently also in whole page optimization , IR evaluation with manual judgments , and recommender evaluation . We use randomized interventions similar to to estimate propensities in a position discount model. Unlike the uniform ranking randomization of (with its high performance impact) or swapping adjacent pairs as in , we swap documents in different ranks to the top position randomly as in . See Section 5.3 for details.

Finally, our approach is similar in spirit to , where propensity-weighting is used to correct for selection bias when discarding queries without clicks during learning-to-rank. The key insight of our work is to recognize that inverse propensity scoring can be employed much more powerfully, to account for position bias, trust bias, contextual effects, document popularity etc. using appropriate click models to estimate the propensity of each click rather than the propensity for a query to receive a click as in .

Full-Info Learning to Rank

Before we derive our approach for LTR from biased implicit feedback, we first review the conventional problem of LTR from editorial judgments. In conventional LTR, we are given a sample X\bm{X} of i.i.d. queries xi∼\Prob(x)\bm{x}_{i}\sim\Prob(\bm{x}) for which we assume the relevances \rel(x,y)\rel(\bm{x},y) of all documents yy are known. Since all relevances are assumed to be known, we call this the Full-Information Setting. The relevances can be used to compute the loss Δ(y∣x)\Delta(\bm{y}|\bm{x}) (e.g., negative DCG) of any ranking y\bm{y} for query x\bm{x}. Aggregating the losses of individual rankings by taking the expectation over the query distribution, we can define the overall risk of a ranking system S{S} that returns rankings S(x){S}(\bm{x}) as

The goal of learning is to find a ranking function S∈S{S}\in{\mathcal{S}} that minimizes R(S)R({S}) for the query distribution \Prob(x)\Prob(\bm{x}). Since R(S)R({S}) cannot be computed directly, it is typically estimated via the empirical risk

A common learning strategy is Empirical Risk Minimization (ERM) , which corresponds to picking the system S^∈S\hat{{S}}\in{\mathcal{S}} that optimizes the empirical risk

possibly subject to some regularization in order to control overfitting. There are several LTR algorithms that follow this approach (see ), and we use SVM-Rank as a representative algorithm in this paper.

The relevances \rel(x,y)\rel(\bm{x},y) are typically elicited via expert judgments. Apart from being expensive and often infeasible (e.g., in personal collection search), expert judgments come with at least two other limitations. First, since it is clearly impossible to get explicit judgments for all documents, pooling techniques are used such that only the most promising documents are judged. While cutting down on judging effort, this introduces an undesired pooling bias because all unjudged documents are typically assumed to be irrelevant. The second limitation is that expert judgments \rel(x,y)\rel(\bm{x},y) have to be aggregated over all intents that underlie the same query string, and it can be challenging for a judge to properly conjecture the distribution of query intents to assign an appropriate \rel(x,y)\rel(\bm{x},y).

Partial-Info Learning to Rank

Learning from implicit feedback has the potential to overcome the above-mentioned limitations of full-information LTR. By drawing the training signal directly from the user, it naturally reflects the user’s intent, since each user acts upon their own relevance judgement subject to their specific context and information need. It is therefore more appropriate to talk about query instances xi\bm{x}_{i} that include contextual information about the user, instead of query strings x\bm{x}. For a given query instance xi\bm{x}_{i}, we denote with \relxi(y)\relx_{i}(y) the user-specific relevance of result yy for query instance xi\bm{x}_{i}. One may argue that what expert assessors try to capture with \rel(x,y)\rel(\bm{x},y) is the mean of the relevances \relxi(y)\relx_{i}(y) over all query instances that share the query string, so, using implicit feedback for learning is able to remove a lot of guesswork about what the distribution of users meant by a query.

However, when using implicit feedback as a relevance signal, unobserved feedback is an even greater problem than missing judgments in the pooling setting. In particular, implicit feedback is distorted by presentation bias, and it is not missing completely at random . To nevertheless derive well-founded learning algorithms, we adopt the following counterfactual model. It closely follows , which unifies several prior works on evaluating information retrieval systems.

For concreteness and simplicity, assume that relevances are binary, \relxi(y)∈{0,1}\relx_{i}(y)\in\{0,1\}, and our performance measure of interest is the sum of the ranks of the relevant results

Analogous to (1), we can define the risk of a system as

In our counterfactual model, there exists a true vector of relevances \relxi\relx_{i} for each incoming query instance (xi,\relxi)∼\Prob(x,\relx)(\bm{x}_{i},\relx_{i})\sim\Prob(\bm{x},\relx). However, only a part of these relevances is observed for each query instance, while typically most remain unobserved. In particular, given a presented ranking yˉi\bar{\bm{y}}_{i} we are more likely to observe the relevance signals (e.g., clicks) for the top-ranked results than for results ranked lower in the list. Let oio_{i} denote the 0/1 vector indicating which relevance values were revealed, oi∼\Prob(o∣xi,yˉi,\relxi)o_{i}\sim\Prob(o|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}). For each element of oio_{i}, denote with Q(oi(y)=1∣xi,yˉi,\relxi)Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}) the marginal probability of observing the relevance \relxi(y)\relx_{i}(y) of result yy for query xi\bm{x}_{i}, if the user was presented the ranking yˉi\bar{\bm{y}}_{i}. We refer to this probability value as the propensity of the observation. We will discuss how oio_{i} and QQ can be obtained in Section 5.

Using this counterfactual modeling setup, we can get an unbiased estimate of Δ(y∣xi,\relxi)\Delta(\bm{y}|\bm{x}_{i},\relx_{i}) for any new ranking y\bm{y} (typically different from the presented ranking yˉi\bar{\bm{y}}_{i}) via the inverse propensity scoring (IPS) estimator

This is an unbiased estimate of Δ(y∣xi,\relxi)\Delta(\bm{y}|\bm{x}_{i},\relx_{i}) for any y\bm{y}, if Q(oi(y)=1∣xi,yˉi,\relxi)>0Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i})>0 for all yy that are relevant \relxi(y)=1\relx_{i}(y)=1 (but not necessarily for the irrelevant yy).

The second step uses linearity of expectation, and the fourth step uses Q(oi(y)=1∣xi,yˉi,\relxi)>0Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i})>0.

An interesting property of Δ^IPS(y∣xi,yˉi,oi)\hat{\Delta}_{IPS}(\bm{y}|\bm{x}_{i},\bar{\bm{y}}_{i},o_{i}) is that only those results yy with [oi(y)=1∧\relxi(y)=1][o_{i}(y)=1\wedge\relx_{i}(y)=1] (i.e. clicked results, as we will see later) contribute to the estimate. We therefore only need the propensities Q(oi(y)=1∣xi,yˉi,\relxi)Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}) for relevant results. Since we will eventually need to estimate the propensities Q(oi(y)=1∣xi,yˉi,\relxi)Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}), an additional requirement for making Δ^IPS(y∣xi,yˉi,oi)\hat{\Delta}_{IPS}(\bm{y}|\bm{x}_{i},\bar{\bm{y}}_{i},o_{i}) computable while remaining unbiased is that the propensities only depend on observable information (i.e., unconfoundedness, see ).

To define the empirical risk to optimize during learning, we begin by collecting a sample of N{N} query instances xi\bm{x}_{i}, recording the partially-revealed relevances \relxi\relx_{i} as indicated by oio_{i}, and the propensities Q(oi(y)=1∣xi,yˉi,\relxi)Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}) for the observed relevant results in the ranking yˉi\bar{\bm{y}}_{i} presented by the system. Then, the empirical risk of a system is simply the IPS estimates averaged over query instances:

Since Δ^IPS(y∣xi,yˉi,oi)\hat{\Delta}_{IPS}(\bm{y}|\bm{x}_{i},\bar{\bm{y}}_{i},o_{i}) is unbiased for each query instance, the aggregate R^IPS(S)\hat{R}_{IPS}({S}) is also unbiased for R(S)R({S}) from (3),

Furthermore, it is easy to verify that R^IPS(S)\hat{R}_{IPS}({S}) converges to the true R(S)R({S}) under mild additional conditions (i.e., propensities bounded away from 00) as we increase the sample size N{N} of query instances. So, we can perform ERM using this propensity-weighted empirical risk,

Finally, using standard results from statistical learning theory , consistency of the empirical risk paired with capacity control implies consistency also for ERM. In intuitive terms, this means that given enough training data, the learning algorithm is guaranteed to find the best system in S{\mathcal{S}}.

Feedback Propensity Models

In Section 4, we showed that the relevance signal \relxi\relx_{i}, the observation pattern oio_{i}, and the propensities of the observations Q(oi(y)=1∣xi,yˉi,\relxi)Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}) are the key components for unbiased LTR from biased observational feedback. We now outline how these quantities can be elicited and modeled in a typical search-engine application. However, the general framework of Section 4 extends beyond this particular application, and beyond the particular feedback model below.

Search engine click logs provide a sample of query instances xi\bm{x}_{i}, the presented ranking yˉi\bar{\bm{y}}_{i} and a (sparse) click-vector where each \clicki(y)∈{0,1}\click_{i}(y)\in\{0,1\} indicates whether result yy was clicked or not. To derive propensities of observed clicks, we will employ a click propensity model. For simplicity, we consider a straightforward examination model analogous to , where a click on a search result depends on the probability that a user examines a result (i.e., \exami(y)\exam_{i}(y)) and then decides to click on it (i.e., \clicki(y)\click_{i}(y)) in the following way:

In this model, examination depends only on the rank of yy in yˉ\bar{\bm{y}}. So, P(\exami(y)=1∣\rank(y∣yˉi))P(\exam_{i}(y)=1|\rank(y|\bar{\bm{y}}_{i})) can be represented by a vector of examination probabilities prp_{r}, one for each rank rr. These examination probabilities can model presentation bias documented in eye-tracking studies , where users are more likely to see results at the top of the ranking than those further down.

For the probability of click on an examined result P(\clicki(y)=1∣\relxi(y),\exami(y)=1)P(\click_{i}(y)=1|\relx_{i}(y),\exam_{i}(y)=1), we first consider the simplest model where clicking is a deterministic noise-free function of the users private relevance assessment \relxi(y)\relx_{i}(y). Under this model, users click if and only if the result is examined and relevant (\clicki(y)=1↔[\exami(y)=1 ∧ \relxi(y)=1]\click_{i}(y)=1\leftrightarrow[\exam_{i}(y)=1\>\wedge\>\relx_{i}(y)=1]). This means that for examined results (i.e., \exami(y)=1\exam_{i}(y)=1) clicking is synonymous with relevance (\exami(y)=1→[\clicki(y)=\relxi(y)]\exam_{i}(y)=1\rightarrow[\click_{i}(y)=\relx_{i}(y)]). Furthermore, it means that we observe the value of \relxi(y)\relx_{i}(y) perfectly when \exami(y)=1\exam_{i}(y)=1 (\exami(y)=1→oi(y)=1\exam_{i}(y)=1\rightarrow o_{i}(y)=1), and that we gain no knowledge of the true \relxi(y)\relx_{i}(y) when a result is not examined (\exami(y)=0→oi(y)=0\exam_{i}(y)=0\rightarrow o_{i}(y)=0). Therefore, examination equals observation and Q(oi(y)∣xi,yˉi,\relxi)≡P(\exami(y)∣\rank(y∣yˉi))Q(o_{i}(y)|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i})\equiv P(\exam_{i}(y)|\rank(y|\bar{\bm{y}}_{i})).

Using these equivalences, we can simplify the IPS estimator from (4) by substituting prp_{r} as the propensities and by using \clicki(y)=1↔[oi(y)=1 ∧ \relxi(y)=1]\click_{i}(y)=1\leftrightarrow[o_{i}(y)=1\>\wedge\>\relx_{i}(y)=1]

R^IPS(S)\hat{R}_{IPS}({S}) is an unbiased estimate of R(S)R({S}) under the position-based propensity model if pr>0p_{r}>0 for all ranks. While absence of a click does not imply that the result is not relevant (i.e., \clicki(y)=0↛\relxi(y)=0\click_{i}(y)=0\not\rightarrow\relx_{i}(y)=0), the IPS estimator has the nice property that such explicit negative judgments are not needed to compute an unbiased estimate of R(S)R({S}) for the loss in (2). Similarly, while absence of a click leaves us unsure about whether the result was examined (i.e., \exami(y)=?\exam_{i}(y)=?), the IPS estimator only needs to know the indicators oi(y)=1o_{i}(y)=1 for results that are also relevant (i.e., clicked results).

Finally, note the conceptual difference in how we use this standard examination model compared to most prior work. We do not try to estimate an average relevance rating \rel(x,y)\rel(\bm{x},y) by taking repeat instances of the same query x\bm{x}, but we use the model as a propensity estimator to de-bias individual observed user judgments \relxi(y)\relx_{i}(y) to be used directly in ERM.

2 Incorporating Click Noise

In Section 5.1, we assumed that clicks reveal the user’s true \relxi\relx_{i} in a noise-free way. This is clearly unrealistic. In addition to the stochasticity in the examination distribution P(\exami(y)=1∣\rank(y∣y))P(\exam_{i}(y)=1|\rank(y|\bm{y})), we now also consider noise in the distribution that generates the clicks. In particular, we no longer require that a relevant result is clicked with probability 11 and an irrelevant result is clicked with probability 00, but instead, for 1≥ϵ+>ϵ−≥01\geq\epsilon_{+}>\epsilon_{-}\geq 0,

where δ\rank(y∣x)\delta\rank(y|\bm{x}) is short for \rank(y∣S1(x))−\rank(y∣S2(x))\rank(y|{S}_{1}(\bm{x}))-\rank(y|{S}_{2}(\bm{x})) and we use the fact that ϵ−∑y∈yˉδ\rank(y∣x)=0\epsilon_{-}\sum_{y\in\bar{\bm{y}}}\delta\rank(y|\bm{x})=0 in the step marked ∗*. This implies that our propensity-weighted ERM is a consistent approach for finding a ranking function with the best true R(S)R({S}),

even when the objective is corrupted by click noise as specified above.

3 Propensity Estimation

As the last step of defining the click propensity model, we need to address the question of how to estimate its parameters (i.e. the vector of examination probabilities prp_{r}) for a particular search engine. The following shows that we can get estimates using data from a simple intervention similar to , but without the strong negative impact of presenting uniformly random results to some users. This also relates to the Click@1 metric proposed by .

First, note that it suffices to estimate the prp_{r} up to some positive multiplicative constant, since any such constant does not change how the IPS estimator (5) orders different systems. We therefore merely need to estimate how much prp_{r} changes relative to pkp_{k} for some “landmark” rank kk. This suggests the following experimental intervention for estimating prp_{r}: before presenting the ranking to the user, swap the result at rank kk with the result at rank rr. If we denote with y′y^{\prime} the results originally in rank kk, our click model before and after the intervention indicates that

is constant regardless of the intervention. This means that the clickthrough rates P(\clicki(y′)=1∣\mboxswap−k−and−r)P(\click_{i}(y^{\prime})=1|\mbox{swap-k-and-r}), which we can estimate from the intervention data, are proportional to the parameters prp_{r} for any rr. By performing the swapping intervention between rank kk and all other ranks rr, we can estimate all the prp_{r} parameters.

This swap-intervention experiment is of much lower impact than the uniform randomization proposed in for a different propensity estimation problem, and careful consideration of which rank kk to choose can further reduce impact of the swap experiment. From a practical perspective, it may also be unnecessary to separately estimate prp_{r} for each rank. Instead, one may want to interpolate between estimates at well-chosen ranks and/or employ smoothing. Finally, note that the intervention only needs to be applied on a small subset of the data used for fitting the click propensity model, while the actual data used for training the ERM learning algorithm does not require any interventions.

4 Alternative Feedback Propensity Models

The click propensity model we define above is arguably one of the simplest models one can employ for propensity modeling in LTR, and there is broad scope for extensions.

First, one could extend the model by incorporating other biases, for example, trust bias which affects perceived relevance of a result based on its position in the ranking. This can be captured by conditioning the click probabilities also on the position \Prob(\clicki(y′)=1∣\relxi(y′),\exami(y′)=1,\rank(y∣yˉi))\Prob(\click_{i}(y^{\prime})=1|\relx_{i}(y^{\prime}),\exam_{i}(y^{\prime})=1,\rank(y|\bar{\bm{y}}_{i})). We have already explored that the model can be extended to include trust bias, but it is omitted due to space constraints. Furthermore, it is possible to model saliency biases by replacing the prp_{r} with a regression function.

Second, we conjecture that a wide range of other click models (e.g., cascade model and others ) can be adapted as propensity models. The main requirement is that we can compute marginal click probabilities for the clicked documents in hindsight, which is computationally feasible for many of the existing models.

Third, we may be able to define and train new types of click models. In particular, for our propensity ERM approach we only need the propensities Q(oi(y)=1∣xi,yˉi,\relxi)Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}) for observed and relevant documents to evaluate the IPS estimator, but not for irrelevant documents. This can be substantially easier than a full generative model of how people reveal relevance judgments through implicit feedback. In particular, this model can condition on all the revealed relevances \relxi(yj)\relx_{i}(y_{j}) in hindsight, and it does not need to treat them as latent variables.

Finally, the ERM learning approach is not limited to binary click feedback, but applies to a large range of feedback settings. For example, the feedback may be explicit star ratings in a movie recommendation system, and the propensities may be the results of self-selection by the users as in . In such an explicit feedback setting, oio_{i} is fully known, which simplifies propensity estimation substantially.

Propensity-weighted SVM-Rank

We now derive a concrete learning method that implements propensity-weighted LTR. It is based on SVM-Rank , but we conjecture that propensity-weighted versions of other LTR methods can be derived as well.

Consider a dataset of nn examples of the following form. For each query-result pair (xj,yj)(\bm{x}_{j},y_{j}) that is clicked, we compute the propensity qi=Q(oi(y)=1∣xi,yˉi,\relxi)q_{i}=Q(o_{i}(y)=1|\bm{x}_{i},\bar{\bm{y}}_{i},\relx_{i}) of the click according to our click propensity model. We also record the candidate set YjY_{j} of all results for query xj\bm{x}_{j}. Typically, YjY_{j} contains a few hundred documents – selected by a stage-one ranker – that we aim to rerank. Note that each click generates a separate training example, even if multiple clicks occur for the same query.

Given this propensity-scored click data, we define Propensity SVM-Rank as a generalization of conventional SVM-Rank. Propensity SVM-Rank learns a linear scoring function f(x,y)=w⋅ϕ(x,y)f(\bm{x},y)=w\cdot\phi(\bm{x},y) that can be used for ranking results, where ww is a weight vector and ϕ(x,y)\phi(\bm{x},y) is a feature vector that describes the match between query x\bm{x} and result yy.

Propensity SVM-Rank optimizes the following objective,

CC is a regularization parameter that is typically selected via cross-validation. The training objective optimizes an upper bound on the regularized IPS estimated empirical risk of (5), since each line of constraints corresponds to the rank of a relevant document (minus 1). In particular, for any feasible (w,ξw,\xi)

We can solve this type of Quadratic Program efficiently via a one-slack formulation , and we are using SVM-Rank https://www.joachims.org/svm_light/svm_rank.html with appropriate modifications to include IPS weights 1/qj1/q_{j}. The resulting code will be available online.

In the empirical evaluation, we compare against the naive application of SVM-Rank, which minimizes the rank of the clicked documents while ignoring presentation bias. In particular, Naive SVM-Rank sets all the qiq_{i} uniformly to the same constant (e.g., 11).

Empirical Evaluation

We take a two-pronged approach to evaluating our approach empirically. First, we use synthetically generated click data to explore the behavior of our methods over the whole spectrum of presentation bias severity, click noise, and propensity misspecification. Second, we explore the real-world applicability of our approach by evaluating on an operational search engine using real click-logs from live traffic.

To be able to explore the full spectrum of biases and noise, we conducted experiments using click data derived from the Yahoo Learning to Rank Challenge corpus (set 1). This corpus contains a large number of manually judged queries, where we binarized relevance by assigning \relxi(y)=1\relx_{i}(y)=1 to all documents that got rated 33 or 44, and \relxi(y)=0\relx_{i}(y)=0 for ratings 0,1,20,1,2. We adopt the train, validation, test splits in the corpus. This means that queries in the three sets are disjoint, and we never train on any data from queries in the test set. To have a gold standard for reporting test-set performance, we measure performance on the binarized full-information ratings using (2).

To generate click data from this full-information dataset of ratings, we first trained a normal Ranking SVM using 1 percent of the full-information training data to get a ranking function S0{S}_{0}. We employ S0{S}_{0} as the “Production Ranker”, and it is used to “present” rankings yˉ\bar{\bm{y}} when generating the click data. We generate clicks using the rankings yˉ\bar{\bm{y}} and ground-truth binarized relevances from the Yahoo dataset according to the following process. Depending on whether we are generating a training or a validation sample of click data, we first randomly draw a query x\bm{x} from the respective full-information dataset. For this query we compute yˉ=S0(x)\bar{\bm{y}}={S}_{0}(\bm{x}) and generate clicks based on the model from Section 5. Whenever a click is generated, we record a training example with its associated propensity Q(o(y)=1∣x,yˉ,\relx)Q(o(y)=1|\bm{x},\bar{\bm{y}},\relx). For the experiments, we model presentation bias via

The parameter η\eta lets us control the severity of the presentation bias. We also introduce noise into the clicks according to the model described in Section 5. When not mentioned otherwise, we use the parameters η=1\eta=1, ϵ−=0.1\epsilon_{-}=0.1, and ϵ+=1\epsilon_{+}=1, which leads to click data where about 33%33\% of the clicks are noisy clicks on irrelevant results and where the result at rank 1010 has a 10%10\% probability of being examined. We also explore other bias profiles and noise levels in the following experiments.

In all experiments, we select any parameters (e.g., CC) of the learning methods via cross-validation on a validation set. The validation set is generated using the same click model as the training set, but using the queries in the validation-set portion of the Yahoo dataset. For Propensity SVM-Rank, we always use the (unclipped) IPS estimator (5) to estimate validation set performance. Keeping with the proportions of the original Yahoo data, the validation set size is always about 15%15\% the size of the training set.

The primary baseline we compare against is a naive application of SVM-Rank that simply ignores the bias in the click data. We call this method Naive SVM-Rank. It is equivalent to a standard ranking SVM , but is most easily explained as equivalent to Propensity SVM-Rank with all qjq_{j} set to 11. Analogously, we use the corresponding naive version of (5) with propensities set to 11 to estimate validation set performance for Naive SVM-Rank.

2 How does ranking performance scale with training set size?

We first explore how the test-set ranking performance changes as the learning algorithm is given more and more click data. The resulting learning curves are given in Figure 1, and the performance of S0{S}_{0} is given as a baseline. The click data has presentation bias according to (2) with η=1\eta=1 and noise ϵ−=0.1\epsilon_{-}=0.1. For small datasets, results are averaged over 5 draws of the click data.

With increasing amounts of click data, Propensity SVM-Rank approaches the skyline performance of the full-information SVM-Rank trained on the complete training set of manual ratings without noise. This is in stark contrast to Naive SVM-Rank which fails to account for the bias in the data and does not reach this level of performance. Furthermore, Naive SVM-Rank cannot make effective use of additional data and its learning curve is essentially flat. This is consistent with the theoretical insight that estimation error in Naive SVM-Rank’s empirical risk R^(S)\hat{R}({S}) is dominated by asymptotic bias due to biased clicks, which does not decrease with more data and leads to suboptimal learning. The unbiased risk estimate R^IPS(S)\hat{R}_{IPS}({S}) of Propensity SVM-Rank, however, has estimation error only due to finite sample variance, which is decreased by more data and leads to consistent learning.

While unbiasedness is an important property when click data is plenty, the increased variance of R^IPS(S)\hat{R}_{IPS}({S}) can be a drawback for small datasets. This can be seen in Figure 1, where Naive SVM-Rank outperforms Propensity SVM-Rank for small datasets. This can be remedied using techniques like “propensity clipping” , where small propensities are clipped to some threshold value τ\tau to trade bias for variance.

Figure 1 shows the learning curve of Propensity SVM-Rank with clipping, cross-validating both the clipping threshold τ\tau and CC. Clipping indeed improves performance for small datasets. While τ=1\tau=1 is equivalent to Naive SVM-Rank, the validation set is too small (and hence, the finite sample error of the validation performance estimate too high) to reliably select this model in every run. In practice, however, we expect click data to be plentiful such that lack of training data is unlikely to be a persistent issue.

3 How much presentation bias can be tolerated?

We now vary the severity of the presentation bias via η\eta to understand its impact on Propensity SVM-Rank. Figure 2 shows that inverse propensity weighting is beneficial whenever substantial bias exists. Furthermore, increasing the amount of training data by a factor of 55 leads to further improvement for the Propensity SVM-Rank, while the added training data has no effect on Naive SVM-Rank. This is consistent with our arguments from Section 4 – more training data does not help when bias dominates estimation error, but it can reduce estimation error from variance in the unbiased risk estimate of Propensity SVM-Rank.

4 How robust are the methods to click noise?

Figure 3 shows that Propensity SVM-Rank also enjoys a substantial advantage when it comes to noise. When increasing the noise level in terms of ϵ−\epsilon_{-} from 00 up to 0.30.3 (resulting in click data where 59.8%59.8\% of all clicks are on irrelevant documents), Propensity SVM-Rank increasingly outperforms Naive SVM-Rank. And, again, the unbiasedness of the empirical risk estimate allows Propensity SVM-Rank to benefit from more data.

5 How robust is Propensity SVM-Rank to misspecified propensities?

So far all experiments have assumed that Propensity SVM-Rank has access to accurate propensities. In practice, however, propensities need to be estimated and are subject to model assumptions. We now evaluate how robust Propensity SVM-Rank is to misspecified propensities. Figure 4 shows the performance of Propensity SVM-Rank when the training data is generated with η=1\eta=1, but the propensities used by Propensity SVM-Rank are misspecified using the η\eta given in the x-axis of the plot. The plot shows that even misspecified propensities can give substantial improvement over naively ignoring the bias, as long as the misspecification is “conservative” – i.e., overestimating small propensities is tolerable (which happens when η<1\eta<1), but underestimating small propensities can be harmful (which happens when η>1\eta>1). This is consistent with theory, and clipping is one particular way of overestimating small propensities that can even improve performance. Overall, we conclude that even a mediocre propensity model can improve over the naive approach – after all, the naive approach can be thought of as a particularly poor propensity model that implicitly assumes no presentation bias and uniform propensities.

6 Real-World Experiment

We now examine the performance of Propensity SVM-rank when trained on real-world click logs and deployed in a live search engine for scientific articles [anonymized for submission]. The search engine uses a linear scoring function as outlined in Section 6. Query-document features ϕ(x,y)\phi(\bm{x},y) are represented by a 1000−1000-dimensional vector, and the production ranker used for collecting training clicks employs a hand-crafted weight vector ww (denoted Prod). Observed clicks on rankings served by this ranker over a period of 2121 days provide implicit feedback data for LTR as outlined in Section 6.

To estimate the propensity model, we consider the simple position-based model of Section 5.1 and we collect new click data via randomized interventions for 77 days as outlined in Section 5.3 with landmark rank k=1k=1. Before presenting the ranking, we take the top-ranked document and swap it with the document at a uniformly at random chosen rank j∈{1,…21}j\in\{1,\dots 21\}. The ratio of observed click-through rates (CTR) on the formerly top-ranked document now at position jj vs. its CTR at position 11 gives a noisy estimate of pj/p1p_{j}/p_{1} in the position-based click model. We additionally smooth these estimates by interpolating with the overall observed CTR at position jj (normalized so that CTR@1=1CTR@1=1). This yields prp_{r} that approximately decay with rank rr with the smallest pr≃0.12p_{r}\simeq 0.12. For r>21r>21, we impute pr=p21p_{r}=p_{21}.

We partition the click-logs into a train-validation split: the first 1616 days are the train set and provide 54375437 click-events for SVM-rank, while the remaining 55 days are the validation set with 17551755 click events. The hyper-parameter CC is picked via cross validation. Analogous to Section 7.1, we use the IPS estimator for Propensity SVM-Rank, and naive estimator with Q(o(y)=1∣x,yˉ,\relx)=1Q(o(y)=1|\bm{x},\bar{\bm{y}},\relx)=1 for Naive SVM-Rank. With the best hyper-parameter settings, we re-train on all 2121 days worth of data to derive the final weight vectors for either method.

We fielded these learnt weight vectors in two online interleaving experiments , the first comparing Propensity SVM-Rank against Prod and the second comparing Propensity SVM-Rank against Naive SVM-Rank. The results are summarized in Table 1. We find that Propensity SVM-Rank significantly outperforms the hand-crafted production ranker that was used to collect the click data for training (two-tailed binomial sign test p=0.001p=0.001 with relative risk 0.710.71 compared to null hypothesis). Furthermore, Propensity SVM-Rank similarly outperforms Naive SVM-Rank, demonstrating that even a simple propensity model provides benefits on real-world data (two-tailed binomial sign test p=0.006p=0.006 with relative risk 0.770.77 compared to null hypothesis). Note that Propensity SVM-Rank not only significantly, but also substantially outperforms both other rankers in terms of effect size – and the synthetic data experiments suggest that additional training data will further increase its advantage.

Conclusions

This paper introduced a principled approach for learning-to-rank under biased feedback data. Drawing on counterfactual modeling techniques from causal inference, we present a theoretically sound Empirical Risk Minimization framework for LTR. We instantiate this framework with a Propensity-Weighted Ranking SVM, and provide extensive empirical evidence that the resulting learning method is robust to selection biases, noise, and model misspecification. Furthermore, our real-world experiments on a live search engine show that the approach leads to substantial retrieval improvements, without any heuristic or manual interventions in the learning process.

Future Research

Beyond the specific learning methods and propensity models we propose, this paper may have even bigger impact for its theoretical contribution of developing the general counterfactual model for LTR, thus articulating the key components necessary for LTR under biased feedback. First, the insight that propensity estimates are crucial for ERM learning opens a wide area of research on designing better propensity models. Second, the theory demonstrates that LTR methods should optimize propensity-weighted ERM objectives, raising the question of which other learning methods beyond the Ranking SVM can be adapted to the Propensity ERM approach. Third, we conjecture that a Propensity ERM approach can be developed also for pointwise LTR methods using techniques from , and possibly even for listwise LTR.

Beyond learning from implicit feedback, propensity-weighted ERM techniques may prove useful even for optimizing offline IR metrics on manually annotated test collections. First, they can eliminate pooling bias, since the use of sampling during judgment elicitation puts us in a controlled setting where propensities are known (and can be optimized ) by design. Second, propensities estimated via click models can enable click-based IR metrics like click-DCG to better correlate with test set DCG.

Acknowledgments

This work was supported in part through NSF Awards IIS-1247637, IIS-1513692, IIS-1615706, and a gift from Bloomberg. We thank Maarten de Rijke, Alexey Borisov, Artem Grotov, and Yuning Mao for valuable feedback and discussions.

References