# Uczenie rankingu (learning to rank)

EN: **Learning to rank** · id `learningtorank` · aliases: LTR, uczenie rankingowe, ranking models

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Uczenie maszynowe](https://aiatlasgraph.com/t/ml.md) › [Uczenie nadzorowane](https://aiatlasgraph.com/t/supervised.md) › Uczenie rankingu (learning to rank)

## Description

- PL: Uczenie funkcji punktującej dokumenty względem zapytania, z celami pointwise, pairwise lub listwise, optymalizującymi metryki jakości rankingu.
- EN: Learning a scoring function for documents given a query, with pointwise, pairwise or listwise objectives that optimise ranking-quality metrics.

## In one sentence

- PL: Model uczy się ustawiać wyniki w kolejności od najbardziej do najmniej trafnego.
- EN: A model learns to order results from most to least relevant.

## Problem it solves

- PL: Przy wyszukiwaniu liczy się kolejność: najlepsza odpowiedź na dziesiątym miejscu jest prawie bezużyteczna.
- EN: In search, order is what matters: the best answer in tenth place is almost useless.

## What it does

- PL: Porównuje pary wyników i uczy się, który powinien stać wyżej, jak sędzia ustawiający zawodników po serii pojedynków.
- EN: It compares pairs of results and learns which should rank higher, like a judge ordering players after a series of matches.

## Everyday example

- PL: Sklep internetowy układa wyniki dla hasła „buty do biegania” według tego, co klienci wcześniej klikali i kupowali.
- EN: An online shop orders results for “running shoes” according to what customers previously clicked and bought.

## This concerns you if you…

- PL: budujesz wyszukiwarkę lub listę polecanych pozycji
- PL: użytkownicy oglądają tylko kilka pierwszych wyników
- EN: are building a search box or a list of recommendations
- EN: users only look at the first few results

## Keywords

LambdaMART · LambdaRank · RankNet · NDCG · pairwise ranking · listwise loss · LightGBM lambdarank · XGBoost rank:ndcg · click models

## How it works

- PL: Podejście pointwise przewiduje trafność każdego dokumentu osobno, pairwise uczy się, który z pary jest lepszy (RankNet), a listwise optymalizuje całą listę. LambdaRank waży gradienty par zmianą metryki NDCG, a LambdaMART łączy to ze wzmacnianymi drzewami decyzyjnymi.
- EN: Pointwise approaches predict each document's relevance separately, pairwise ones learn which of two is better (RankNet), and listwise ones optimise the whole list. LambdaRank weights pair gradients by the change in NDCG, and LambdaMART combines this with boosted decision trees.

## Limits

- PL: Wymaga ocen trafności albo kliknięć, które są obciążone pozycją wyświetlenia. Metryki rankingu są nieciągłe, więc optymalizuje się ich przybliżenia. Model dobrze radzi sobie z częstymi zapytaniami, gorzej z rzadkimi.
- EN: It needs relevance judgements or clicks, which are biased by display position. Ranking metrics are discontinuous, so surrogates are optimised. Models handle frequent queries well and rare ones worse.

## Key terms

- PL: **NDCG**: Miara jakości listy nagradzająca trafne wyniki na samej górze.
- PL: **pairwise**: Uczenie na parach: który z dwóch wyników powinien być wyżej.
- PL: **obciążenie pozycją**: Ludzie częściej klikają to, co wyżej, niezależnie od trafności.
- EN: **NDCG**: A list-quality metric that rewards relevant results at the top.
- EN: **pairwise**: Learning from pairs: which of two results should rank higher.
- EN: **position bias**: People click higher results more often, regardless of relevance.

## Related topics

Untyped, symmetric "see also" links.

- [Generowanie kandydatów, scoring i re-ranking (Candidate generation, scoring and re-ranking)](https://aiatlasgraph.com/t/recpipeline.md)
- [Miary jakości wyszukiwania (recall@k, MRR, nDCG) (Retrieval quality metrics (recall@k, MRR, nDCG))](https://aiatlasgraph.com/t/retrievalmetrics.md)
- [Reranking i fuzja wyników (Reranking and result fusion)](https://aiatlasgraph.com/t/reranking.md)

## Sources

- [From RankNet to LambdaRank to LambdaMART: An Overview](<https://www.microsoft.com/en-us/research/?p=159784>) `burges-lambdamart-2010` · by Christopher J. C. Burges

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/learningtorank · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
