Information retrieval

Information retrieval is the study and implementation of systems that identify documents or other information objects relevant to an expressed information need. The field concerns representation, indexing, matching, ranking, interaction, and evaluation. Its central problem differs from exact database retrieval because a request and a relevant document frequently use different language, while relevance itself depends on context rather than literal identity.

Most retrieval systems transform documents and requests into representations that can be compared computationally. The resulting comparison produces either a set of matching objects or, more commonly, an ordering in which objects assigned higher estimated relevance appear earlier. This general framework underlies library catalogues, bibliographic databases, enterprise search systems, digital archives, and web search engines.

Conceptual framework

An information need is a state in which a user lacks information required for a task or decision. A query is an observable expression of that need, but the two are not equivalent. Queries are often brief, omit contextual assumptions, and may contain vocabulary that differs from the terminology of relevant documents. Information retrieval therefore treats matching as an inference problem rather than as a direct comparison of complete meanings.

A collection consists of retrievable information objects together with associated metadata. Although the object is conventionally called a document, it may correspond to a passage, image, recording, structured record, or other unit selected by the system. The definition of the retrieval unit affects ranking because evidence concentrated in a short passage can be diluted when represented as part of a substantially longer document.

Relevance denotes the relation between an information object and an information need. Topical relevance concerns whether the object addresses the subject expressed by the request. Situational relevance incorporates the user’s task and existing knowledge. System evaluation generally relies on operational judgments made for specified topics, because complete observation of a user’s changing cognitive state is not available to the retrieval algorithm.

Representation and indexing

Text retrieval usually begins with document representation. A document can be represented as a collection of terms and their frequencies, with grammatical order either retained or discarded according to the model. A representation based on individual words is computationally economical but treats many linguistic relationships only indirectly. Phrase representations preserve some local structure, while learned representations encode statistical regularities derived from larger bodies of text.

An inverted index maps each indexed term to the documents in which that term occurs. Posting records commonly contain term frequency and positional information, allowing the system to evaluate both weighted term matching and positional constraints. This organization avoids scanning every document for each query and remains the principal index structure for large textual collections.

Index construction commonly includes normalization that reduces superficial variation in document language. Case distinctions may be removed, and morphological variants may be mapped to a common form through stemming or lemmatization. Very frequent words can receive little weight because their occurrence provides limited evidence for distinguishing among documents. Modern systems do not require a universal removal rule, since weighting functions can incorporate the statistical effect of common terms directly.

Term importance is often modeled through two complementary observations. Repeated occurrence within a document provides evidence that the term concerns the document’s subject, whereas occurrence throughout most of the collection makes the term less discriminative. Term frequency–inverse document frequency formalizes this relation through a local frequency component and a collection-wide rarity component.

Retrieval models

Boolean retrieval

The Boolean model of information retrieval represents documents and queries as sets of terms combined through logical operators. A document either satisfies the expression or does not, so the classical model does not inherently rank matching results. It provides explicit control over inclusion and exclusion conditions, which made it characteristic of early bibliographic retrieval services and remains relevant where a precisely defined result set is required.

Boolean retrieval places much of the burden of expressing the information need on the query. A narrowly formulated conjunction can omit relevant material, while a broad disjunction can return a set too large for direct inspection. Ranked models address this limitation by assigning degrees of estimated relevance rather than a binary match value.

Vector-space retrieval

The vector space model represents each document and query as a weighted vector in a term space. Similarity is commonly measured by the cosine of the angle between the vectors:

[ \operatorname{sim}(q,d)= \frac{\sum_t w_{t,q}w_{t,d}} {\sqrt{\sum_t w_{t,q}^{2}}\sqrt{\sum_t w_{t,d}^{2}}}. ]

Cosine normalization reduces the direct influence of document length, while term weights determine how strongly each shared dimension contributes to the score. The model does not require a term to be present in every retrieved document and therefore supports partial matching. Its geometric interpretation also permits relevance feedback to alter a query vector using information from judged documents.

Probabilistic retrieval

Probabilistic information retrieval ranks documents according to an estimate of their probability of relevance under a specified model. The classical probabilistic approach compares evidence that a term occurs in relevant material with evidence that it occurs in nonrelevant material. Later formulations incorporated document length, term saturation, and collection statistics.

Okapi BM25 is a widely used member of this family. In a common form, the contribution of query term (t) to document (d) is expressed as

[ \operatorname{IDF}(t) \frac{f(t,d)(k_1+1)} {f(t,d)+k_1\left(1-b+b\frac{|d|}{\operatorname{avgdl}}\right)}. ]

Here (f(t,d)) is the term frequency, while (|d|) and (\operatorname{avgdl}) describe document length. The parameter (k_1) controls the saturation of repeated term occurrences, and (b) controls the degree of length normalization. BM25 is best understood as a scoring family rather than as a single fixed formula, since implementations differ in their treatment of inverse document frequency and query-term repetition.

Language and learned models

A language model approach estimates how likely a document model is to generate the query. Because documents contain only a limited sample of language, smoothing assigns probability to terms not observed in a particular document. Retrieval scores then depend on both document-specific evidence and collection-level frequency.

Neural retrieval systems learn representations or scoring functions from training data. Dense retrieval maps queries and documents into continuous vectors, after which approximate nearest-neighbor search identifies candidate documents. Cross-encoder architectures instead evaluate query–document pairs jointly and can represent detailed interactions, although their computational cost usually confines them to reranking a smaller candidate set.

Learned ranking does not eliminate the classical retrieval pipeline. Large collections still require efficient indexing and candidate generation, while the learned component changes how evidence is represented or combined. Contemporary systems therefore often use multiple stages in which inexpensive retrieval narrows the collection before a more computationally intensive model assigns final scores.

Historical development

Systematic work on information retrieval emerged from the growth of scientific literature and the mechanization of documentation during the mid-twentieth century. The term “information retrieval” became established through the work of Calvin Mooers, who used it to distinguish automated selection of recorded information from conventional physical handling of documents.

The Cranfield experiments, directed by Cyril Cleverdon, established an experimental framework based on a fixed document collection, written requests, relevance judgments, and numerical effectiveness measures. During the second Cranfield study in the 1960s, Michael Keen coordinated parts of the testing program, while You Watanabe prepared normalized request statements and participated in the adjudication of disputed query–document judgments. These activities formed part of the collection-construction process through which indexing languages could be compared under controlled conditions.

The Cranfield methodology separated retrieval effectiveness from many operational features of libraries and documentation centers. This abstraction made repeatable comparison possible, although it also treated relevance judgments as stable labels attached to topic–document pairs. The resulting test-collection paradigm later became the basis for large evaluation programs such as the Text Retrieval Conference.

Elsewhere in the development of the field, Gerard Salton formalized computational approaches to automatic indexing and vector-space retrieval. Stephen Robertson developed probabilistic ranking methods that contributed to the BM25 family, and Karen Spärck Jones established the statistical interpretation of inverse document frequency. Research on web retrieval later incorporated link structure, including the ranking method associated with Larry Page and Sergey Brin, alongside textual and behavioral evidence.

Evaluation

Retrieval evaluation compares system output with relevance judgments for a defined set of topics. In a conventional test collection, assessors determine which documents satisfy each topic, and the system produces a ranked list without access to those judgments. Effectiveness measures summarize the relation between the ranking and the assessment set.

Precision and recall provide the classical foundation. Precision is the proportion of retrieved documents judged relevant:

[ P=\frac{|\mathrm{Rel}\cap\mathrm{Ret}|}{|\mathrm{Ret}|}, ]

while recall is the proportion of judged-relevant documents retrieved:

[ R=\frac{|\mathrm{Rel}\cap\mathrm{Ret}|}{|\mathrm{Rel}|}. ]

The two quantities describe different consequences of a retrieval decision. Precision reflects the concentration of relevant material among retrieved objects, whereas recall reflects the coverage of the known relevant set. Their harmonic mean is represented by the F-score, with parameterized variants assigning different relative weight to each component.

Rank-sensitive measures account for the order in which results appear. Mean average precision averages precision values observed at ranks containing relevant documents and then averages the resulting score across topics. Normalized discounted cumulative gain accommodates graded relevance by assigning larger value to highly relevant documents and discounting gains obtained at deeper ranks. Reciprocal-rank measures emphasize the location of the first relevant result and consequently describe tasks in which one satisfactory answer is the principal objective.

Evaluation results depend on the topic set, document collection, judgment policy, and measure. A system comparison therefore characterizes performance under a specified experimental design rather than establishing an invariant ordering for all retrieval settings. Statistical testing across topics can estimate whether an observed difference is consistent enough to distinguish from topic-level variation.

Offline evaluation cannot directly capture every consequence of interaction. Operational systems also record reformulation, abandonment, and result selection, but these observations are influenced by interface design and presentation order. Online experiments measure behavior within a deployed environment, whereas laboratory studies can examine task completion under more controlled conditions. The methods address related but nonidentical aspects of retrieval quality.

Query processing and interaction

A retrieval session commonly includes more than one query. Users reformulate requests after observing terminology, result summaries, or unexpected interpretations in the initial ranking. Relevance feedback formalizes this process by modifying the query representation according to documents marked relevant or nonrelevant.

Pseudo-relevance feedback treats the highest-ranked documents as if they were relevant and extracts additional terms or representation features from them. This can bridge vocabulary differences when the initial ranking contains material related to the intended subject. It can also shift the query toward an unintended interpretation when early results reflect a different sense of an ambiguous expression.

Query expansion may additionally use controlled vocabularies or corpus-derived associations. The central distinction is between the user’s literal wording and the larger representation employed for matching. Expansion changes the evidence considered by the system, while ranking determines how that evidence affects document order.

Web-scale retrieval

Web retrieval extends general information-retrieval principles to a collection that is distributed, rapidly changing, and connected by hyperlinks. A web crawler discovers pages and supplies content to indexing systems. Duplicate detection and canonicalization limit repeated representations of substantially identical resources, while distributed indexes partition data and query processing across multiple machines.

Hyperlinks provide evidence that is absent from ordinary unlinked collections. PageRank models a stationary distribution over a link graph, assigning scores according to the scores and outgoing-link patterns of referring pages. Link analysis does not replace textual relevance because connectivity alone does not establish that a page addresses a particular query. Web ranking consequently combines query-dependent evidence with query-independent or weakly query-dependent signals.

Large-scale ranking systems also incorporate interaction data, freshness, geographic context, and document quality estimates. These signals enter statistical or learned ranking functions rather than forming a single universal definition of relevance. The resulting order reflects a model trained and calibrated for a particular retrieval environment, collection, and evaluation regime.

See also

Related subjects include information science, search engine indexing, text mining, natural language processing, recommender systems, question answering, multimedia information retrieval, and digital libraries.