Algorithm Search⌘K

Web search and recommender systems

Problems

  • Recommendation problem

    Given past interactions of users with items, predict the items each user is most likely to rate highly or engage with.

    intro
  • Web crawling

    Fetch a large, changing set of web pages by following links from seed URLs, under politeness, freshness and coverage goals.

    intro
  • Near-duplicate document detection

    Find pairs of documents whose content is almost the same, such as mirrored or templated pages, among billions of documents.

    core
  • Query auto-completion

    Given a typed prefix, suggest the k most likely complete queries in a few milliseconds.

    core
  • Crawl revisit policy

    Choose how often to refetch each page, given its change rate, so that the average freshness of the local copy is highest.

    advanced
  • Federated search

    Send a query to several independent search engines, choose which to ask, and merge their result lists into one.

    advanced
  • Low-rank matrix completion

    Recover a low-rank matrix from a small random subset of its entries, the model problem behind rating prediction.

    advanced
  • Search result diversification

    Rank results so that the top covers the different intents of an ambiguous query while each result stays relevant.

    advanced
  • Session-based recommendation

    Predict the next item a user will interact with from the ordered items of the current session, often with no user history.

    advanced

Algorithms

  • Alternating least squares for matrix factorization

    Fixes the item factors and solves a ridge regression for each user, then the reverse, so the regularized error never increases from one half step to the next.

    O(T (s r^2 + (m + n) r^3)) worst1 languagescore
  • Item-based collaborative filtering

    Precomputes similarities between items from co-ratings and predicts a user's rating from the user's ratings of the most similar items.

    O(n s + n^2 log n) worst1 languagescore
  • Matrix factorization for recommendation

    Fits a user vector and an item vector whose dot product predicts each known rating, by regularized least squares and gradient descent.

    O(E s r) worst1 languagescore
  • Maximal marginal relevance

    Greedily adds the document that maximizes lambda times relevance minus (1 - lambda) times maximum similarity to those already chosen.

    O(n log n + n k) worst1 languagescore
  • Most popular completion

    Suggests the past queries that extend the prefix with the highest log frequency, found by a top-k search in a scored trie.

    O(m + k L log(k L)) expected1 languagescore
  • Noisy channel spelling correction

    Chooses the correction w that maximizes P(w) P(typed word | w), from a language model and an error model of single edits.

    O(n^2 s) expected1 languagescore
  • Slope One

    Predicts a rating from the average rating difference between each pair of items, a simple scheme that updates online.

    O(d) worst1 languagescore
  • User-based collaborative filtering

    Predicts a rating as the user's mean plus a similarity-weighted average of how far other users rated the item above or below their own means.

    O(m n) worst1 languagescore
  • Bayesian personalized ranking

    Learns from implicit feedback by maximizing the log-sigmoid of the score margin between an observed item and a sampled unobserved one.

    O(T r + (m + n) r) expected1 languagesadvanced
  • CORI resource selection

    Ranks the collections of a federated search system for a query by a tf-idf style belief computed from each collection's document frequencies and size.

    O(K m + K log K) expected1 languagesadvanced
  • Focused crawling

    Orders the crawl frontier by a classifier score of page relevance to a topic, so the crawler fetches on-topic pages first.

    O((S + m) log(S + m)) expected1 languagesadvanced
  • SALSA

    Scores hubs and authorities of a query subgraph by two random walks on its bipartite hub-authority graph; the scores reduce to degrees weighted by component size.

    O(n + m) worst1 languagesadvanced
  • SVD++

    Adds to the biased latent factor model an implicit-feedback term, a scaled sum of factors of the items the user rated or viewed, so that the fact of rating counts as a signal.

    O(E s d r) worst1 languagesadvanced
  • TrustRank

    Propagates trust from a hand-checked seed set of good pages by a biased PageRank, so spam pages get low trust scores.

    O(M (n + m) + n log n) worst1 languagesadvanced
  • Weighted matrix factorization for implicit feedback

    Factorizes binary preferences with confidence weights from counts, using a sum over all cells that ALS evaluates in time linear in the data.

    O(T (s r^2 + (m + n) r^3)) worst1 languagesadvanced
  • GRU4Rec

    Feeds the items of a session to a gated recurrent network and trains it with ranking losses to score the next item.

    O(E N (H^2 + B H)) worst1 languagesresearch
  • IA-Select

    Greedily picks documents that maximize the probability that each query intent is satisfied by at least one result; a (1 - 1/e) approximation.

    O(n log n + n k m) worst1 languagesresearch
  • Neural collaborative filtering

    Replaces the dot product of matrix factorization by a neural network over user and item embeddings, trained on implicit feedback.

    O(E s (q + 1) (k + P)) worst1 languagesresearch
  • SASRec

    Applies causal self-attention over a user's item sequence to predict the next item, attending to the relevant past items.

    O(E U (n^2 d + n d^2 + m d)) worst1 languagesresearch
  • Sparse linear method for recommendation

    Learns a sparse item-item weight matrix with zero diagonal by elastic-net regression of the interaction matrix on itself.

    O(T n s) worst1 languagesresearch
  • xQuAD

    Greedily picks documents that are relevant to the query and to query aspects not yet covered by the documents already picked.

    O(n log n + n k m) worst1 languagesresearch

Data structures

  • URL frontier

    The queues of URLs still to be fetched, with front queues for priority and back queues per host so each host is visited politely.

    O(F) amortized add1 languagescore

Techniques

  • Collaborative filtering

    Recommends items from the behavior of many users, assuming users who agreed in the past will agree again, with no item content.

    intro
  • Content-based filtering

    Recommends items whose features are similar to those of items the user liked before, from a profile of item features.

    intro
  • Anchor text indexing

    Indexes the text of links that point to a page as part of that page, since it often describes the page better than the page itself.

    core
  • Hybrid recommender

    Combines collaborative and content-based signals, by weighting, switching, cascading or feature combination, to offset each one's weaknesses.

    core
  • Query-biased snippet generation

    Picks the sentences of a result page that best match the query to show under the link, so the user can judge relevance quickly.

    core

Concepts

  • Bow-tie structure of the web

    The web graph has a giant strongly connected core, pages that reach it, pages it reaches, and tendrils and tubes outside them.

    core
  • Click model

    A probabilistic model of how users examine and click a ranked list, used to infer relevance from clicks and to simulate users.

    core
  • Cold-start problem

    Collaborative methods give poor or no personal recommendations for new users and new items, which have few or no interactions to learn from.

    core
  • Implicit feedback

    Signals such as clicks, plays and purchases that indicate preference indirectly, with no negative examples and varying confidence.

    core
  • Link spam

    Groups of pages that create links among themselves to raise their link-based scores, such as PageRank, above their merit.

    core
  • Position bias

    Users click results near the top more often regardless of relevance, so raw click rates are biased toward higher positions.

    core

Definitions

  • User-item rating matrix

    A sparse matrix with a row per user and a column per item, holding known ratings or interactions and blanks elsewhere.

    intro

Theorems

Models

  • Cascade click model

    The user scans results from the top and clicks the first attractive one, then stops; each result is examined only if all above were skipped.

    1 languagescore
  • Position-based click model

    A click happens when the user examines a rank, with a probability that depends only on the rank, and the document attracts.

    1 languagescore
  • Dynamic Bayesian network click model

    Extends the cascade model so that a clicked document may or may not satisfy the user, who continues with a fixed perseverance.

    1 languagesadvanced
  • Factorization machine

    A regression model whose pairwise feature interactions use dot products of learned factor vectors, computed in time linear in the features.

    advanced
  • Probabilistic matrix factorization

    Models ratings as Gaussian noise around the dot product of user and item factors with Gaussian priors, so MAP estimation is regularized MF.

    advanced