Source-linked AI summary

A Contextual-Bandit Approach to Personalized News Article Recommendation

Lihong Li, Wei Chu, John Langford, Robert E. Schapire

arXiv:1003.0146v2cs.LGcs.AIcs.IR

TL;DR

Personalized news recommendation must adapt to changing article pools while learning quickly from individual user and content signals. This paper formulates the task as a contextual bandit, introduces LinUCB, and evaluates bandit algorithms directly from logged traffic; on Yahoo! Front Page data, LinUCB shows advantages when data are sparse.

  • Problem

    Personalized recommendation must quickly match users with relevant content despite dynamically changing article pools and differing user preferences.

  • Method

    The paper formulates personalized news recommendation as a contextual bandit and proposes LinUCB alongside direct offline evaluation from logged events.

  • Results

    LinUCB shows advantages when data are sparse, while upper-confidence-bound methods generally outperform unguided ϵ-greedy methods on real Yahoo! Front Page traffic.

  • Takeaways & Limitations

    Contextual bandit methods, particularly LinUCB, are promising for personalized services with large content pools and sparse data.

  • Takeaways & Limitations

    The paper leaves adapting bandit algorithms to changing user interests as future work.

Abstract

from arXiv · show

Personalized web services strive to adapt their services (advertisements, news articles, etc) to individual users by making use of both content and user information. Despite a few recent advances, this problem remains challenging for at least two reasons. First, web service is featured with dynamically changing pools of content, rendering traditional collaborative filtering methods inapplicable. Second, the scale of most web services of practical interest calls for solutions that are both fast in learning and computation. In this work, we model personalized recommendation of news articles as a contextual bandit problem, a principled approach in which a learning algorithm sequentially selects articles to serve users based on contextual information about the users and articles, while simultaneously adapting its article-selection strategy based on user-click feedback to maximize total user clicks. The contributions of this work are three-fold. First, we propose a new, general contextual bandit algorithm that is computationally efficient and well motivated from learning theory. Second, we argue that any bandit algorithm can be reliably evaluated offline using previously recorded random traffic. Finally, using this offline evaluation method, we successfully applied our new algorithm to a Yahoo! Front Page Today Module dataset containing over 33 million events. Results showed a 12.5% click lift compared to a standard context-free bandit algorithm, and the advantage becomes even greater when data gets more scarce.

1. INTRODUCTION

The paper frames personalized news recommendation as a contextual-bandit problem because dynamically changing content, temporal popularity shifts, and cold-start users make traditional recommender systems difficult to apply. The approach uses user and article features to select content while adapting to real-time click feedback.

  • Motivation: Web services must quickly identify relevant content from repositories that undergo frequent insertions, deletions, and changing popularity.The introduction highlights breaking news whose popularity rises and fades over time.
  • Motivation: Real-time feedback from exploratory traffic helps evaluate new content and monitor changes in its value.Clicks on randomly selected content provide evidence about popularity.
  • Problem: Personalized recommendation requires individual-level exploration and exploitation because users may value the same content differently.Users and articles are represented through feature sets, including user activity, demographics, descriptions, and categories.
  • Approach: Frequent content changes, shifting popularity, and cold-start users make traditional recommender-system approaches difficult to apply.The paper therefore formulates recommendation as a contextual bandit problem.
  • Approach: A contextual-bandit learner sequentially selects articles using user and article context while adapting its strategy from clicks to maximize long-run user clicks.This formulation directly combines contextual personalization with feedback-driven learning.

2. FORMULATION & RELATED WORK

The paper formulates personalized news recommendation as a contextual bandit in which user and article features guide sequential article selection, while click feedback updates the strategy. It contrasts this setting with context-free bandits and reviews exploration–exploitation methods and their computational or regret limitations.

  • 2.1 A Multi-armed Bandit Formulation: A contextual-bandit algorithm observes the current user, available articles, and joint user–article feature vectors before selecting an article and updating from its observed payoff.Only the chosen article’s feedback is observed; unchosen articles provide no payoff feedback.
  • 2.1 A Multi-armed Bandit Formulation: The objective is to maximize expected total T-trial payoff, equivalently minimizing regret relative to the optimal arm-selection strategy.The optimal strategy selects the arm with maximum expected payoff at each trial.
  • 2.1 A Multi-armed Bandit Formulation: Context-free K-armed bandits keep the same K arms and context across trials, whereas contextual recommendation uses informative user and article features to generalize CTR information.Contextual information can distinguish interests across users and articles, such as preferences for technology versus retirement content.
  • 2.1 A Multi-armed Bandit Formulation: In news recommendation, articles are arms, clicks yield payoff 1, nonclicks yield 0, and expected payoff equals clickthrough rate (CTR).Selecting the article with maximum CTR is equivalent to maximizing expected user clicks and total expected payoff.
  • 2.2 Existing Bandit Algorithms: The central challenge is balancing exploitation of apparently strong arms against exploration of seemingly inferior arms to reduce uncertainty.Exploration gathers information because the currently best-looking arm may actually be suboptimal.
  • 2.2 Existing Bandit Algorithms: ε-greedy explores by choosing a random arm with probability ε, while upper confidence bound algorithms select arms using estimated payoffs plus confidence intervals.With appropriately decaying ε, ε-greedy’s per-step regret RA(T)/T converges to 0 with probability 1.
  • 2.2 Existing Bandit Algorithms: Bayesian bandit methods, including Gittins index approaches, can perform well with suitable priors but often require extensive offline engineering and may be computationally prohibitive without approximation.Their performance depends on obtaining good prior models.

3. ALGORITHM

The paper introduces LinUCB, a generic contextual-bandit algorithm that efficiently computes confidence intervals in closed form for linear payoff models. It develops disjoint and hybrid variants that support dynamic arm sets through incremental computation and shared features across arms.

  • LinUCB: LinUCB efficiently computes confidence intervals in closed form for linear payoff models and applies beyond personalized news recommendation.The algorithm is presented as a generic contextual-bandit method.
  • Disjoint linear models: The disjoint model estimates arm-specific coefficients independently using ridge regression on each arm’s design matrix and feedback.Parameters are not shared across arms, allowing separate coefficient estimation and matrix updates.
  • Disjoint linear models: At each trial, LinUCB selects the available arm with the highest upper confidence bound, using α as its only input parameter.Optimizing α may improve total payoffs in practice when the theoretically suggested value is conservative.
  • Disjoint linear models: The algorithm has computational complexity linear in the number of arms and at most cubic in the number of features, with updates optionally reduced to O(d^2).Upper-confidence calculations can be performed periodically rather than in real time to reduce computation.
  • Hybrid linear models: Hybrid LinUCB adds features shared across all arms to arm-specific features, while block matrix inversion yields efficient confidence-bound computation despite dependent arm intervals.Its fixed-dimensional building blocks can be updated incrementally, and cached inverses reduce per-trial complexity to O(d^2 + k^2).

4. EVALUATION METHODOLOGY

The section introduces an unbiased offline evaluator for contextual-bandit policies using logged data rather than biased simulators or live deployment. Under i.i.d. events and uniform random logging, retained events reproduce real-world policy evaluation, requiring KT logged events on average for T retained events.

  • Motivation: Offline contextual-bandit evaluation is difficult because policies interact with data, while simulator modeling can introduce bias.The proposed alternative is simple to implement, grounded in logged data, and unbiased.
  • Evaluation assumptions: The evaluator assumes i.i.d. events and a logging policy that selects each arm uniformly at random.The uniform-logging assumption can be weakened to randomized logging policies using rejection sampling, with decreased efficiency.
  • Policy evaluator: The evaluator retains a logged event only when policy π selects the same arm as the logging policy, then updates the history and cumulative payoff.It processes events until it obtains the desired number T of retained events and outputs RT/T.
  • Correctness guarantee: 1/K retention probability makes retained events identically distributed to real-world events, so average payoff RT/T is an unbiased estimate of π’s value.The equivalence holds for all context distributions, policies, T, and event histories under the stated logging process.
  • Sample efficiency: KT logged events are required in expectation to retain a sample of size T.This follows because every event is retained with probability exactly 1/K.

5. EXPERIMENTS · 5.1 Yahoo! Today Module · 5.2 Experiment Setup

The experiments evaluate LinUCB on Yahoo!’s Today Module using offline randomized traffic, comparing contextual and context-free bandit methods. The setup covers randomized data collection, feature construction for disjoint and hybrid models, and evaluation design focused on clicks at the story position.

  • 5. EXPERIMENTS: The experiments assess the proposed LinUCB algorithm on a real-world Yahoo! Today Module application using the paper’s offline evaluation method.The section compares LinUCB with standard contextual and context-free bandit algorithms through defined performance metrics.
  • 5.1 Yahoo! Today Module: Yahoo!’s Today Module highlights one of four hourly refreshed, editor-curated articles, and the system aims to rank them by individual interests.The article selected for the story position is intended to maximize each visitor’s likelihood of clicking.
  • 5.2 Experiment Setup: The experimental setup includes data collection, feature construction, performance evaluation, and competing bandit algorithms.These components are described as the core elements of the setup.
  • 5.2.1 Data Collection: Randomized bucket traffic selected users and articles randomly, and analysis focused on F1 story-position interactions to avoid footer-position exposure bias.Each interaction recorded the served article, user/article information, and user feedback components.
  • 5.2.1 Data Collection: 4.7 million events formed tuning data for parameter selection, while about 36 million events from May 03–09 formed the evaluation data.The tuning data came from May 01 events in the random bucket, and the evaluation data covered one week.
  • 5.2.2 Feature Construction: Two feature sets represented users and articles for disjoint and hybrid LinUCB models, testing whether hybrid models improve learning speed.Raw features were filtered to support at least 0.1 before construction.
  • 5.2.2 Feature Construction: Dimensionality reduction projected user and article features into five preference clusters, producing six-dimensional representations whose outer product yielded 36 shared interaction features.The resulting hybrid representation distinguishes user-article interaction features from user-only features, while keeping the feature space relatively small for practical storage and retrieval.

5.3 Compared Algorithms

The experiments compare three groups of algorithms: context-free methods, warm-start variants, and methods that learn user-specific CTRs online. These include random, ǫ-greedy, UCB, omniscient, segmented, disjoint-model, and hybrid-model policies.

  • Context-free algorithms: The first group ignores user and article features and consists of context-free K-armed bandit algorithms.This group includes policies that make no use of contexts.
  • Context-free algorithms: Random selects candidate articles uniformly without parameters or learning, while ǫ-greedy alternates exploration with choosing the article having the highest estimated CTR.ǫ-greedy uses exploration probability ǫ and exploitation probability 1 − ǫ.
  • Context-free algorithms: UCB selects the article with the highest confidence-bound estimate, whereas omniscient chooses the article with the highest empirical CTR computed from logged events.UCB uses an α > 0 parameter; omniscient requires no parameters and does not learn over time.
  • Warm-start algorithms: Warm-start algorithms add user-specific CTR corrections to article-level estimates, using either ǫ-greedy or UCB for selection.The evaluated variants are ǫ-greedy (warm) and ucb (warm).
  • Online user-specific algorithms: Online user-specific methods include five-segment ǫ-greedy and UCB, plus ǫ-greedy and LinUCB with disjoint or hybrid models.The segmented methods run separate copies within five user segments.

5.4 Performance Metric

The section defines CTR as clicks per step and reports it relative to a random policy. It evaluates CTR separately in learning and deployment buckets because deployment performance matters most, while learning performance indicates learning speed.

  • CTR Definition: CTR is the ratio of clicks received to the number of steps an algorithm runs, computed on random logged events.The reported CTR is relative: an algorithm’s CTR divided by the random policy’s CTR.
  • CTR Definition: Relative CTR uses the random policy as the reference, whose relative CTR is always 1 by definition.This normalization protects business-sensitive information.
  • Evaluation Buckets: Traffic is split into a learning bucket for bandit learning and a deployment bucket for serving the front page.The learning bucket usually contains a small fraction of traffic, while the deployment bucket serves Yahoo!’s Front Page.
  • Evaluation Results: The one-week evaluation reports algorithm CTRs in deployment and learning buckets, with percentages denoting CTR lift compared to ǫ-greedy.The table labels the buckets “deploy” and “learn.”
  • Evaluation Buckets: Deployment-bucket CTR is more important because that bucket is often larger, whereas learning-bucket CTR indicates faster learning or smaller regret.Accordingly, the evaluation reports CTRs in both buckets.

5.5 Experimental Results

Experiments tuned exploration parameters and evaluated contextual bandit algorithms across deployment and data-scarcity settings. Results showed inverted-U exploration effects, benefits from warm-start features, and comparable deployment performance between ε-greedy and UCB methods.

  • Parameter tuning: CTR often followed an inverted-U curve: insufficient exploration missed good articles, while excessive exploration wasted click opportunities.Parameters were tuned using separate tuning data.
  • Personalization: Warm-start information improved matching between user interests and article content relative to no-feature ε-greedy and UCB algorithms.Both warm-start variants exceeded omniscient, the highest hindsight CTR achievable by context-free policies, though their performance was less stable.
  • Algorithm comparison: ε-greedy and UCB algorithms achieved similar CTRs in the deployment bucket when appropriately tuned, suggesting comparable learned policies.Both algorithm types had lower CTRs in the learning bucket.
  • Sparse-data evaluation: Algorithms were additionally tested with 30%, 20%, 10%, 5%, and 1% of available data to assess performance under sparse-data conditions.All data remained available for CTR evaluation, while only the selected fraction improved each algorithm’s policy.
  • Evaluation metrics: Evaluation-data results were summarized using normalized CTR and CTR lift relative to the ε-greedy baseline.The omniscient policy had CTR 1.615, and higher algorithm CTR indicated effective use of user and article features.

On the Use of Features.

Using user and article features improved contextual-bandit recommendation performance, with both ε-greedy and UCB methods achieving roughly 10% CTR lifts over the baseline ε-greedy. Feature-based personalization could substantially increase selected-article CTR, while UCB methods outperformed ε-greedy approaches, especially during learning.

  • Feature effects: Around 10% CTR lifts were achieved by feature-based ε-greedy and UCB methods compared with baseline ε-greedy.The methods included ε-greedy variants seg, disjoint, and hybrid, plus UCB variants ucb (seg) and linucb (disjoint/hybrid).
  • Feature effects: The plotted algorithm-specific article sets were not comparable because each plot included only its 50 most frequently selected articles.This restriction was used to avoid inaccurate CTR estimates.
  • Feature effects: 132% improvement lifted one article’s CTR from 1.31 to 3.03 in an extreme personalization case.The lifted CTR was compared with the article’s base, or context-free, CTR.
  • Feature effects: UCB methods achieved higher deployment-bucket CTRs than ε-greedy algorithms, with an even greater advantage in the learning bucket.ε-greedy exploration selects articles uniformly at random, whereas UCB exploration is guided by confidence intervals measuring uncertainty.

On the Size of Data.

As data become sparse, contextual features and UCB methods improve recommendation performance, with hybrid models gaining particular advantages by transferring feedback across articles. These benefits are especially important for large article pools and limited traffic.

  • On the Size of Data.: The application’s scale makes it critical for algorithms to quickly match user interests with article contents as the article pool grows.More choices or automated article selection can produce pools too large even for Yahoo! traffic.
  • On the Size of Data.: At 1% data sparsity, linucb (hybrid) achieved a 10.3% CTR improvement over ucb in the deployment bucket.The CTRs were 1.493 for linucb (hybrid) and 1.354 for ucb.
  • On the Size of Data.: UCB methods consistently outperformed ϵ-greedy methods, with the advantage becoming more apparent as data size decreased.
  • On the Size of Data.: Linucb (hybrid) showed significant benefits over ucb (seg) and linucb (disjoint) when data were scarce, particularly with large article pools.Hybrid models share some features across articles, allowing one article’s CTR feedback to transfer to others; disjoint models do not.

Comparing ucb (seg) and linucb (disjoint).

ucb (seg) and linucb (disjoint) performed similarly because the disjoint model’s normalized cluster-membership features act as a soft version of user assignment. Most users had a dominant cluster membership, making these features resemble hard user-group assignments; more diverse features may be needed to distinguish the methods further.

  • Comparing ucb (seg) and linucb (disjoint).: ucb (seg) and linucb (disjoint) had similar performance, consistent with linucb’s features being soft versions of ucb (seg)’s user assignments.The disjoint model uses normalized membership measures of users in five clusters.
  • Comparing ucb (seg) and linucb (disjoint).: About 85% of users had maximum cluster membership above 0.5, and about 40% exceeded 0.8.The largest component of each user’s five non-constant features was used as the relative membership measure to the closest cluster.
  • Comparing ucb (seg) and linucb (disjoint).: Adding features with diverse components, such as principal components, may be necessary to further distinguish linucb (disjoint) from ucb (seg).

6. CONCLUSIONS

The paper concludes that contextual bandits can support personalized web services, with logged-event evaluation avoiding simulator construction and UCB methods outperforming simpler ε-greedy methods on Yahoo! Front Page traffic. Future work includes broader web applications, complex-arm formulations, and adapting to changing user interests.

  • Contributions: The paper applies contextual bandits to personalized web-based services such as news article recommendation.The approach is evaluated using real Yahoo! Front Page traffic.
  • Contributions: The proposed logged-event evaluation method avoids the problematic step of building a simulator for bandit algorithms.The method is described as simple and reliable for direct evaluation from recorded events.
  • Results: UCB methods generally outperform simpler, unguided ε-greedy methods on real Yahoo! Front Page traffic.The conclusion contrasts upper confidence bound methods with ε-greedy methods.
  • Future work: Future work will examine bandit approaches for online advertising and comparisons with related methods such as Banditron.The paper also proposes extending the formulation to complex objects, such as webpage permutations in ranking.
  • Future work: Future research will address changing user interests over time.The conclusion identifies temporal changes in user interests as an additional direction.
Loading 1003.0146v2…