Modelresearch
C/W/L framework
Also called conditional continuation probability framework.
Describes each metric by a user model of continuation probabilities at each rank, from which the weights and the expected utility follow.
The C/W/L framework describes a metric of a ranked list by a model of a user who reads the list from the top, one item at a time. The model is given by one function: the conditional continuation probability , the probability that a user who has looked at the item at rank goes on to rank . From follow the weight , the share of the user's attention that goes to rank , and the last-item probability , the probability that rank is the last one the user looks at. The metric is the expected gain per item looked at. Precision at k, rank-biased precision, scaled DCG, average precision, reciprocal rank and the adaptive metric INST are all cases, each with its own . Moffat, Bailey, Scholer and Thomas set out the framework in 2017, and the tool cwl_eval of Azzopardi, Thomas and Moffat computes it.
The machine
The input is a ranking of items for one query, with a gain for the item at rank , for example a grade divided by the top grade, and optionally a cost for looking at it. Items that are not judged have gain 0.
A step is one look at one item. The user looks at rank 1. After looking at rank , the user goes on to rank with probability and stops with probability . The function may read the rank , the gains seen so far, and fixed parameters such as the persistence or the target . Some metrics also read gains below rank , as AP does below. This is the memory of the model: what the user knows when deciding whether to go on.
Let be the probability that the user looks at rank , so . From the framework derives
is the expected share of the looks that fall on rank , and is the probability that rank is the last item looked at. A tool must stop at some depth; cwl_eval looks at no more than 1000 items by default and treats the items past the end of the ranking as having gain 0.
What it counts
The framework reports five numbers:
- the expected depth , the expected number of items looked at;
- the expected utility , the expected gain per item looked at, which is the value of the metric;
- the expected total utility , the expected gain over the whole visit;
- the expected cost per item, and the expected total cost .
Claim 1. , and .
Proof. The weights are the divided by their sum, so they sum to 1. by the definition of , and dividing by the sum keeps the ratio. .
So and fix each other: wherever . A metric that is a weighted sum of gains with weights that do not grow with the rank and sum to 1 has a C/W/L form.
Claim 2. If the user stops for sure by the cut depth, so that , then , the expected gain collected up to the last item.
Proof. The user looks at rank exactly when the last item is at rank , so . Swap the two sums: .
At the cut depth the tool sets , which makes . EU is ETU divided by ED, so it is a ratio of expected values: the expected gain over the expected number of looks, as in Claim 1 of the RBP page.
Relation to other models
- Metrics. Each metric of the list above is a choice of . With the gains of q1 below, the table of known results gives the values.
| Metric | |
|---|---|
| Precision at | 1 for , 0 for |
| RBP with persistence | |
| Scaled DCG at | for , 0 for |
| Reciprocal rank | 1 if , 0 if |
| Average precision, binary gains | |
| INST with target | , with |
Scaled DCG at is DCG@k divided by the sum of the first discounts , which cwl_eval lists as NDCG-k. It is not nDCG, which divides by the DCG of the ideal ranking.
- Click models. is the probability of examination in a click model. In the cascade click model, the user goes on unless the current item satisfies, which is when the gain is read as the probability of satisfaction. In the position-based click model, examination depends only on the rank, which is a that reads only .
- Expected reciprocal rank. With , where is the satisfaction probability of ERR, , and ETU is expected reciprocal rank. The value of this C/W/L metric is EU, which is ERR divided by ED, not ERR. Azzopardi, Mackenzie and Moffat (2021) study this relation under the title "ERR is not C/W/L".
- Fixed and adaptive users. When reads only the rank, as for precision at , RBP and scaled DCG, the weights are fixed and EU is linear in the gains. When reads gains, as for RR, AP and INST, the weights move with the ranking, and EU is not linear. The cwl_eval paper notes that the of RBP is not sensitive to the gain or to the cost.
Known results in the model
Values on the toy collection
Query q1 "sorted array search" has the judgments d1 grade 2, d2 grade 1 and d8 grade 1. The fixed run 1, 6, 8, 2, 4 has gains = 1, 0, 0.5, 0.5, 0. For RR and AP the gains are binary, 1, 0, 1, 1, 0. Values are computed to depth 1000.
| Metric | EU | ED | |
|---|---|---|---|
| P@3 | 0.5 | 3 | 1/3, 1/3, 1/3 |
| RBP, | 0.3152 | 5 | 0.2, 0.16, 0.128, 0.1024, ... |
| Scaled DCG@5 | 0.49698 | 2.94846 | 0.3392, 0.2140, 0.1696, 0.1461, 0.1312 |
| RR | 1 | 1 | 1 |
| AP | 0.80556 | 1.89474 | 0.5278, 0.1944, 0.1944, 0.0833 |
| INST, | 0.69387 | 1.56210 | |
| INST, | 0.40016 | 3.24991 | |
| INST, | 0.28539 | 5.06917 |
The AP row is the average precision of the run, since all three relevant documents are retrieved. The last-item probabilities show the stopping behaviour: for P@3 they are 0, 0, 1, so every user stops at rank 3, and for RBP they are = 0.2, 0.16, 0.128, 0.1024, ... . A larger target makes the INST user read deeper and gives a lower rate, because the run has its best item first.
The example topic of cwl_eval
The cwl_eval paper uses a topic T1 with the gains 0, 0, 0.2, 0.4, 1, 0.2, 0, 0, 1, 0, 0, 0.4, 0, 0, 0 and no costs. The functions of the table above, computed to depth 1000, give the values of its Table 1 and Table 2. RR stops at rank 3, the first item of positive gain, and credits its graded gain 0.2, so ETU is 0.2 and EU is 0.2/3.
| Metric | EU | ETU | ED |
|---|---|---|---|
| AP | 0.2722 | 1.6000 | 5.8776 |
| RR | 0.0667 | 0.2000 | 3.0000 |
| P@5 | 0.3200 | 1.6000 | 5.0000 |
| NDCG-k@10 | 0.2270 | 1.0314 | 4.5436 |
| INST, | 0.1545 | 0.6069 | 3.9292 |
| RBP, | 0.1287 | 0.3218 | 2.5000 |
Residuals
When some items are not judged, cwl_eval with the option -r reports a residual: the difference between the best case and the worst case for the items that are not judged. For RBP this is the residual of the RBP page. For a metric whose reads gains, the weights change between the two cases, so the residual is not a sum of weights.
Pitfalls
- The cut depth changes adaptive metrics. For INST, tends to 1 as grows, so falls only like and ED depends on where the tool stops. On T1 with , depth 1000 gives EU 0.1545 and ED 3.9292, and depth 3000 gives 0.1543 and 3.9339. A report must give the depth.
- AP knows the future. The of AP at rank reads the gains below rank , which the user has not seen. The form also divides by the number of relevant items in the ranking, not by the number of relevant items of the query. For the fixed run of q1 both are 3; for a run that misses a relevant document, the C/W/L value is larger than the AP of trec_eval.
- EU is not ETU. EU is a rate per item and ETU is a total. Two metrics with the same ETU can have different EU: on T1, AP and P@5 both have ETU 1.6, with EU 0.2722 and 0.32.
- Gains must be in . INST and the residual assume a maximum gain, 1 by default in cwl_eval. Grades on a larger scale must be divided by the top grade first.
References
- Alistair Moffat, Peter Bailey, Falk Scholer and Paul Thomas, Incorporating user expectations and behavior into the measurement of search effectiveness, ACM Transactions on Information Systems 35(3), Article 24, 2017, pp. 24:1-24:38, the C/W/L framework, the weights derived from the continuation probability, the expected rate of gain, and the adaptive metric INST with the target T
- Leif Azzopardi, Paul Thomas and Alistair Moffat, cwl_eval, an evaluation tool for information retrieval, SIGIR 2019, pp. 1321-1324, the definitions of C, W and L, the measures EU, ETU, EC, ETC and ED, Table 1 (the values of AP, RR, P@5, NDCG-k@10 and INST with T = 2 on the example topic T1) and Table 2 (RBP with p = 0.6)
- cwl_eval, the reference implementation of the C/W/L framework, the residual option -r (the difference between the best and the worst case for the items that are not judged), the default maximum gain 1.0 and the default depth 1000
- Alistair Moffat, Peter Bailey, Falk Scholer and Paul Thomas, INST: an adaptive metric for information retrieval evaluation, ADCS 2015, pp. 5:1-5:4, the metric INST, whose continuation probability depends on the gain still wanted
- Leif Azzopardi, Joel Mackenzie and Alistair Moffat, ERR is not C/W/L, ICTIR 2021, the relation of expected reciprocal rank to the framework
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 6YC3GK Edit this page History Report an error Markdown