SlideShare a Scribd company logo
1 of 32
Online Parameter Selection for Web-based
Ranking via Bayesian Optimization
Sep 12 2019
Kinjal Basu
Staff Software Engineer,
Flagship AI
Agenda
1 Problem Setup
LinkedIn Feed
2
Reformulation as a
Black-Box
Optimization
3
Explore-Exploit
Algorithm
Thompson Sampling
4 Infrastructure
5 Results
LinkedIn Feed
Mission: Enable Members
to build an active
professional community
that advances their career.
LinkedIn Feed
Mission: Enable Members
to build an active
professional community
that advances their career.
Heterogenous List:
β€’ Shares from a member’s
connections
β€’ Recommendations such
as jobs, articles, courses,
etc.
β€’ Sponsored content or
ads
Member
Shares
Jobs
Articles
Ads
Important Metrics
Viral Actions (VA)
Members liked, shared or
commented on an item
Job Applies (JA)
Members applied for a job
Engaged Feed Sessions (EFS)
Sessions where a member
engaged with anything on
feed.
Ranking Function
𝑆 π‘š, 𝑒 ≔ 𝑃𝑉𝐴 π‘š, 𝑒 + π‘₯ 𝐸𝐹𝑆 𝑃𝐸𝐹𝑆 π‘š, 𝑒 + π‘₯𝐽𝐴 𝑃𝐽𝐴 π‘š, 𝑒
β€’ The weight vector π‘₯ = π‘₯ 𝐸𝐹𝑆, π‘₯𝐽𝐴 controls the balance between the three business
metrics: EFS, VA and JA.
β€’ A Sample Business Strategy is
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’. 𝑉𝐴(π‘₯)
𝑠. 𝑑. 𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆
𝐽𝐴 π‘₯ > 𝑐𝐽𝐴
β€’ m – Member, u - Item
Major Challenges
● The optimal value of x (tuning parameters) changes over time
● Example of changes
● New content types are added
● Score distribution changes ( Feature drift, updated models, etc.)
● With every change engineers would manually find the optimal x
● Run multiple A/B tests
● Not the best use of engineering time
Reformulation into a
Black-Box
Optimization
Problem
● π‘Œπ‘–,𝑗
π‘˜
π‘₯ ∈ 0,1 denotes if the 𝑖-th member during the 𝑗-th session which was
served by parameter π‘₯, did action k or not. Here k = VA, EFS or JA.
● We model this data as follows
π‘Œπ‘–
π‘˜
~ Binomial 𝑛𝑖 π‘₯ , 𝜎 π‘“π‘˜ π‘₯
● where 𝑛𝑖 π‘₯ is the total number of sessions of member 𝑖 which was served by π‘₯
and π‘“π‘˜ is a latent function for the particular metric.
● Assume a Gaussian process prior on each of the latent function π‘“π‘˜ .
Modeling The Metrics
Reformulation
We approximate each of the metrics as:
𝑉𝐴 π‘₯ = 𝜎 𝑓𝑉𝐴 π‘₯
𝐸𝐹𝑆 π‘₯ = 𝜎 𝑓𝐸𝐹𝑆 π‘₯
𝐽𝐴 π‘₯ = 𝜎 𝑓𝐽𝐴 π‘₯
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’. 𝑉𝐴(π‘₯)
𝑠. 𝑑. 𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆
𝐽𝐴 π‘₯ > 𝑐𝐽𝐴
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝜎 𝑓𝑉𝐴 π‘₯
𝑠. 𝑑. 𝜎 𝑓𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆
𝜎 𝑓𝐽𝐴 π‘₯ > 𝑐𝐽𝐴
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
Benefit: The last problem can now be solved using techniques from the literature of
Bayesian Optimization.
The original optimization problem can be written through this parametrization.
Explore-Exploit
Algorithms
Bayesian Optimization
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
A Quick Crash Course
β€’ Explore-Exploit scheme to solve
Bayesian Optimization
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
A Quick Crash Course
β€’ Explore-Exploit scheme to solve
β€’ Assume a Gaussian Process prior
on 𝑓 π‘₯ .
β€’ Start with uniform sample
get (π‘₯, 𝑓 π‘₯ )
β€’ Estimate the mean function and
covariance kernel
Bayesian Optimization
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
A Quick Crash Course
β€’ Explore-Exploit scheme to solve
β€’ Assume a Gaussian Process prior
on 𝑓 π‘₯ .
β€’ Start with uniform sample
get (π‘₯, 𝑓 π‘₯ )
β€’ Estimate the mean function and
covariance kernel
β€’ Draw the next sample π‘₯ which
maximizes an β€œacquisition
function” or predictive posterior.
β€’ Continue the process.
Bayesian Optimization
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
A Quick Crash Course
β€’ Explore-Exploit scheme to solve
β€’ Assume a Gaussian Process prior
on 𝑓 π‘₯ .
β€’ Start with uniform sample
get (π‘₯, 𝑓 π‘₯ )
β€’ Estimate the mean function and
covariance kernel
β€’ Draw the next sample π‘₯ which
maximizes an β€œacquisition
function” or predictive posterior.
β€’ Continue the process.
Bayesian Optimization
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
A Quick Crash Course
β€’ Explore-Exploit scheme to solve
β€’ Assume a Gaussian Process prior
on 𝑓 π‘₯ .
β€’ Start with uniform sample
get (π‘₯, 𝑓 π‘₯ )
β€’ Estimate the mean function and
covariance kernel
β€’ Draw the next sample π‘₯ which
maximizes an β€œacquisition
function” or predictive posterior.
β€’ Continue the process.
Bayesian Optimization
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯
π‘₯ ∈ 𝑋
A Quick Crash Course
β€’ Explore-Exploit scheme to solve
β€’ Assume a Gaussian Process prior
on 𝑓 π‘₯ .
β€’ Start with uniform sample
get (π‘₯, 𝑓 π‘₯ )
β€’ Estimate the mean function and
covariance kernel
β€’ Draw the next sample π‘₯ which
maximizes an β€œacquisition
function” or predictive posterior.
β€’ Continue the process.
Thompson Sampling
● Consider a Gaussian Process Prior on each π‘“π‘˜,
where k is VA, EFS or JA
● Observe the data (π‘₯, π‘“π‘˜(π‘₯))
● Obtain the posterior of each π‘“π‘˜ which is another
Gaussian Process
● Sample from the posterior distribution and
generate samples for the overall objective
function.
● We get the next distribution of hyperparameters
by maximizing the sampled objectives (over a
grid of QMC points).
● Continue this process till convergence.
π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝜎 𝑓𝑉𝐴 π‘₯
𝑠. 𝑑. 𝜎 𝑓𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆
𝜎 𝑓𝐽𝐴 π‘₯ > 𝑐𝐽𝐴
Infrastructur
e
Overall System Architecture
Offline System
The heart of the product
Tracking
β€’ All member activities are
tracked with the
parameter of interest.
β€’ ETL into HDFS for easy
consumption
Utility Evaluation
β€’ Using the tracking data
we generate (π‘₯, π‘“π‘˜ π‘₯ ) for
each function k.
β€’ The data is kept in
appropriate schema that
is problem agnostic.
Bayesian Optimization
β€’ The data and the problem
specifications are input to
this.
β€’ Using the data, we first
estimate each of the
posterior distributions of
the latent functions.
β€’ Sample from those
distributions to get
distribution of the
parameter π‘₯ which
maximizes the objective.
β€’ The Bayesian Optimization library generates
β€’ A set of potential candidates for trying in the next round (π‘₯1, π‘₯2, … , π‘₯ 𝑛)
β€’ A probability of how likely each point is the true maximizer (𝑝1, 𝑝2, … , 𝑝 𝑛) such
that 𝑖=1
𝑛
𝑝𝑖 = 1
β€’ To serve members with the above distribution, each memberId is mapped to [0,1]
using a hashing function β„Ž. For example, if
𝑖=1
π‘˜
𝑝𝑖 < β„Ž πΎπ‘–π‘›π‘—π‘Žπ‘™ ≀ 𝑖=1
π‘˜+1
𝑝𝑖
Then my feed is served with parameter π‘₯ π‘˜+1
β€’ The parameter store (depending on use-case) can contain
β€’ <parameterValue, probability> i.e. π‘₯𝑖, 𝑝𝑖 or
β€’ <memberId, parameterValue>
The Parameter Store and Online Serving
Online System
Serving hundreds of millions of users
Parameter Sampling
β€’ For each member π‘š visiting LinkedIn,
β€’ Depending on the parameter store, we either
evaluate <m, parameterValue>
β€’ Or we directly call the store to retrieve
<m, parameterValue>
Online Serving
β€’ Depending on the parameter value that is
retrieved (say x), the member’s full feed is
scored according to the ranking function
and served
𝑆 π‘š, 𝑒 ≔ 𝑃𝑉𝐴 π‘š, 𝑒 + π‘₯ 𝐸𝐹𝑆 𝑃𝐸𝐹𝑆 π‘š, 𝑒
+ π‘₯𝐽𝐴 𝑃𝐽𝐴 π‘š, 𝑒
Practical Design Considerations
● Consistency in user experience.
● Randomize at member level instead of session level.
● Offline Flow Frequency
● Batch computation where we collect data for an hour and run the offline flow each hour to
update the sampling distribution.
● Assume (𝑓𝑉𝐴, 𝑓𝐸𝐹𝑆, 𝑓𝐽𝐴) to be Independent
● Works well in our setup. Joint modeling might reduce variance.
● Choice of Business Constraint Thresholds.
● Chosen to allow for a small drop.
Results
Simulation Results
Online A/B Testing Results
Online Convergence Plots
Key Takeaways
● Removes the human in the loop: Fully automatic process to find the optimal
parameters.
● Drastically improves developer productivity.
● Can scale to multiple competing metrics.
● Very easy onboarding infra for multiple vertical teams. Currently used by Ads, Feed,
Notifications, PYMK, etc.
● Future Direction
β€’ Add on other Explore-Exploit algorithms.
β€’ Move from Black-Box to Grey-Box optimizations
β€’ Create a dependent structure on different utilities to better model the
variance.
β€’ Automatically identify the primary metric by understanding the models better.
Thank you
Appendix – Library API
● Problem Specifications
Appendix – Library API
● Objective and Constraints

More Related Content

What's hot

Marketplace in motion - AdKDD keynote - 2020
Marketplace in motion - AdKDD keynote - 2020 Marketplace in motion - AdKDD keynote - 2020
Marketplace in motion - AdKDD keynote - 2020 Roelof van Zwol
Β 
Feature Engineering - Getting most out of data for predictive models
Feature Engineering - Getting most out of data for predictive modelsFeature Engineering - Getting most out of data for predictive models
Feature Engineering - Getting most out of data for predictive modelsGabriel Moreira
Β 
Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15
Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15
Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15MLconf
Β 
Personalized Page Generation for Browsing Recommendations
Personalized Page Generation for Browsing RecommendationsPersonalized Page Generation for Browsing Recommendations
Personalized Page Generation for Browsing RecommendationsJustin Basilico
Β 
Recent Trends in Personalization at Netflix
Recent Trends in Personalization at NetflixRecent Trends in Personalization at Netflix
Recent Trends in Personalization at NetflixJustin Basilico
Β 
Data council SF 2020 Building a Personalized Messaging System at Netflix
Data council SF 2020 Building a Personalized Messaging System at NetflixData council SF 2020 Building a Personalized Messaging System at Netflix
Data council SF 2020 Building a Personalized Messaging System at NetflixGrace T. Huang
Β 
Learning a Personalized Homepage
Learning a Personalized HomepageLearning a Personalized Homepage
Learning a Personalized HomepageJustin Basilico
Β 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsYONG ZHENG
Β 
Shallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender SystemShallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender SystemAnoop Deoras
Β 
Calibrated Recommendations
Calibrated RecommendationsCalibrated Recommendations
Calibrated RecommendationsHarald Steck
Β 
Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Alexandros Karatzoglou
Β 
Making Netflix Machine Learning Algorithms Reliable
Making Netflix Machine Learning Algorithms ReliableMaking Netflix Machine Learning Algorithms Reliable
Making Netflix Machine Learning Algorithms ReliableJustin Basilico
Β 
Contextualization at Netflix
Contextualization at NetflixContextualization at Netflix
Contextualization at NetflixLinas Baltrunas
Β 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introductionLiang Xiang
Β 
Homepage Personalization at Spotify
Homepage Personalization at SpotifyHomepage Personalization at Spotify
Homepage Personalization at SpotifyOguz Semerci
Β 
Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017BalΓ‘zs Hidasi
Β 
Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it! Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it! Sudeep Das, Ph.D.
Β 
Deep Learning for Personalized Search and Recommender Systems
Deep Learning for Personalized Search and Recommender SystemsDeep Learning for Personalized Search and Recommender Systems
Deep Learning for Personalized Search and Recommender SystemsBenjamin Le
Β 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringViet-Trung TRAN
Β 

What's hot (20)

Marketplace in motion - AdKDD keynote - 2020
Marketplace in motion - AdKDD keynote - 2020 Marketplace in motion - AdKDD keynote - 2020
Marketplace in motion - AdKDD keynote - 2020
Β 
Feature Engineering - Getting most out of data for predictive models
Feature Engineering - Getting most out of data for predictive modelsFeature Engineering - Getting most out of data for predictive models
Feature Engineering - Getting most out of data for predictive models
Β 
Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15
Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15
Misha Bilenko, Principal Researcher, Microsoft at MLconf SEA - 5/01/15
Β 
Personalized Page Generation for Browsing Recommendations
Personalized Page Generation for Browsing RecommendationsPersonalized Page Generation for Browsing Recommendations
Personalized Page Generation for Browsing Recommendations
Β 
Recent Trends in Personalization at Netflix
Recent Trends in Personalization at NetflixRecent Trends in Personalization at Netflix
Recent Trends in Personalization at Netflix
Β 
Data council SF 2020 Building a Personalized Messaging System at Netflix
Data council SF 2020 Building a Personalized Messaging System at NetflixData council SF 2020 Building a Personalized Messaging System at Netflix
Data council SF 2020 Building a Personalized Messaging System at Netflix
Β 
Learning a Personalized Homepage
Learning a Personalized HomepageLearning a Personalized Homepage
Learning a Personalized Homepage
Β 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
Β 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender Systems
Β 
Shallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender SystemShallow and Deep Latent Models for Recommender System
Shallow and Deep Latent Models for Recommender System
Β 
Calibrated Recommendations
Calibrated RecommendationsCalibrated Recommendations
Calibrated Recommendations
Β 
Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial
Β 
Making Netflix Machine Learning Algorithms Reliable
Making Netflix Machine Learning Algorithms ReliableMaking Netflix Machine Learning Algorithms Reliable
Making Netflix Machine Learning Algorithms Reliable
Β 
Contextualization at Netflix
Contextualization at NetflixContextualization at Netflix
Contextualization at Netflix
Β 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
Β 
Homepage Personalization at Spotify
Homepage Personalization at SpotifyHomepage Personalization at Spotify
Homepage Personalization at Spotify
Β 
Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017Deep Learning in Recommender Systems - RecSys Summer School 2017
Deep Learning in Recommender Systems - RecSys Summer School 2017
Β 
Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it! Crafting Recommenders: the Shallow and the Deep of it!
Crafting Recommenders: the Shallow and the Deep of it!
Β 
Deep Learning for Personalized Search and Recommender Systems
Deep Learning for Personalized Search and Recommender SystemsDeep Learning for Personalized Search and Recommender Systems
Deep Learning for Personalized Search and Recommender Systems
Β 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filtering
Β 

Similar to LinkedIn talk at Netflix ML Platform meetup Sep 2019

Bayesian Optimization for Balancing Metrics in Recommender Systems
Bayesian Optimization for Balancing Metrics in Recommender SystemsBayesian Optimization for Balancing Metrics in Recommender Systems
Bayesian Optimization for Balancing Metrics in Recommender SystemsViral Gupta
Β 
Ijcai 2020
Ijcai 2020Ijcai 2020
Ijcai 2020Viral Gupta
Β 
Online Tuning of Large Scale Recommendation Systems
Online Tuning of Large Scale Recommendation SystemsOnline Tuning of Large Scale Recommendation Systems
Online Tuning of Large Scale Recommendation SystemsViral Gupta
Β 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models ananth
Β 
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...HostedbyConfluent
Β 
the application of machine lerning algorithm for SEE
the application of machine lerning algorithm for SEEthe application of machine lerning algorithm for SEE
the application of machine lerning algorithm for SEEKiranKumar671235
Β 
Paper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipelinePaper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipelineChenYiHuang5
Β 
Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018
Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018
Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018Amazon Web Services
Β 
Feature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceFeature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceVenkat Projects
Β 
Meetup_Consumer_Credit_Default_Vers_2_All
Meetup_Consumer_Credit_Default_Vers_2_AllMeetup_Consumer_Credit_Default_Vers_2_All
Meetup_Consumer_Credit_Default_Vers_2_AllBernard Ong
Β 
A report on designing a model for improving CPU Scheduling by using Machine L...
A report on designing a model for improving CPU Scheduling by using Machine L...A report on designing a model for improving CPU Scheduling by using Machine L...
A report on designing a model for improving CPU Scheduling by using Machine L...MuskanRath1
Β 
introduction to Statistical Theory.pptx
 introduction to Statistical Theory.pptx introduction to Statistical Theory.pptx
introduction to Statistical Theory.pptxDr.Shweta
Β 
Deep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningDeep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningShubhmay Potdar
Β 
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...Universitat Politècnica de Catalunya
Β 
Scalable Automatic Machine Learning in H2O
Scalable Automatic Machine Learning in H2OScalable Automatic Machine Learning in H2O
Scalable Automatic Machine Learning in H2OSri Ambati
Β 
Sagemaker Automatic model tuning
Sagemaker Automatic model tuningSagemaker Automatic model tuning
Sagemaker Automatic model tuningSoji Adeshina
Β 
Heuristic approch monika sanghani
Heuristic approch  monika sanghaniHeuristic approch  monika sanghani
Heuristic approch monika sanghaniMonika Sanghani
Β 
Deep learning Tutorial - Part II
Deep learning Tutorial - Part IIDeep learning Tutorial - Part II
Deep learning Tutorial - Part IIQuantUniversity
Β 

Similar to LinkedIn talk at Netflix ML Platform meetup Sep 2019 (20)

Bayesian Optimization for Balancing Metrics in Recommender Systems
Bayesian Optimization for Balancing Metrics in Recommender SystemsBayesian Optimization for Balancing Metrics in Recommender Systems
Bayesian Optimization for Balancing Metrics in Recommender Systems
Β 
Ijcai 2020
Ijcai 2020Ijcai 2020
Ijcai 2020
Β 
Online Tuning of Large Scale Recommendation Systems
Online Tuning of Large Scale Recommendation SystemsOnline Tuning of Large Scale Recommendation Systems
Online Tuning of Large Scale Recommendation Systems
Β 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models
Β 
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Automating Speed: A Proven Approach to Preventing Performance Regressions in ...
Β 
the application of machine lerning algorithm for SEE
the application of machine lerning algorithm for SEEthe application of machine lerning algorithm for SEE
the application of machine lerning algorithm for SEE
Β 
ngboost.pptx
ngboost.pptxngboost.pptx
ngboost.pptx
Β 
Paper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipelinePaper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipeline
Β 
Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018
Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018
Automatic Model Tuning Using Amazon SageMaker (AIM412) - AWS re:Invent 2018
Β 
Feature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceFeature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performance
Β 
Meetup_Consumer_Credit_Default_Vers_2_All
Meetup_Consumer_Credit_Default_Vers_2_AllMeetup_Consumer_Credit_Default_Vers_2_All
Meetup_Consumer_Credit_Default_Vers_2_All
Β 
A report on designing a model for improving CPU Scheduling by using Machine L...
A report on designing a model for improving CPU Scheduling by using Machine L...A report on designing a model for improving CPU Scheduling by using Machine L...
A report on designing a model for improving CPU Scheduling by using Machine L...
Β 
introduction to Statistical Theory.pptx
 introduction to Statistical Theory.pptx introduction to Statistical Theory.pptx
introduction to Statistical Theory.pptx
Β 
Deep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter TuningDeep Dive into Hyperparameter Tuning
Deep Dive into Hyperparameter Tuning
Β 
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Β 
Scalable Automatic Machine Learning in H2O
Scalable Automatic Machine Learning in H2OScalable Automatic Machine Learning in H2O
Scalable Automatic Machine Learning in H2O
Β 
Sagemaker Automatic model tuning
Sagemaker Automatic model tuningSagemaker Automatic model tuning
Sagemaker Automatic model tuning
Β 
Heuristic approch monika sanghani
Heuristic approch  monika sanghaniHeuristic approch  monika sanghani
Heuristic approch monika sanghani
Β 
Final
FinalFinal
Final
Β 
Deep learning Tutorial - Part II
Deep learning Tutorial - Part IIDeep learning Tutorial - Part II
Deep learning Tutorial - Part II
Β 

Recently uploaded

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
Β 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraΓΊjo
Β 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
Β 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
Β 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
Β 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
Β 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
Β 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
Β 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
Β 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
Β 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
Β 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
Β 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
Β 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
Β 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
Β 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
Β 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
Β 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
Β 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
Β 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
Β 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Β 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Β 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Β 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
Β 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
Β 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
Β 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Β 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Β 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Β 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Β 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Β 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Β 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Β 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Β 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Β 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Β 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Β 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Β 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Β 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Β 

LinkedIn talk at Netflix ML Platform meetup Sep 2019

  • 1. Online Parameter Selection for Web-based Ranking via Bayesian Optimization Sep 12 2019 Kinjal Basu Staff Software Engineer, Flagship AI
  • 2. Agenda 1 Problem Setup LinkedIn Feed 2 Reformulation as a Black-Box Optimization 3 Explore-Exploit Algorithm Thompson Sampling 4 Infrastructure 5 Results
  • 3. LinkedIn Feed Mission: Enable Members to build an active professional community that advances their career.
  • 4. LinkedIn Feed Mission: Enable Members to build an active professional community that advances their career. Heterogenous List: β€’ Shares from a member’s connections β€’ Recommendations such as jobs, articles, courses, etc. β€’ Sponsored content or ads Member Shares Jobs Articles Ads
  • 5. Important Metrics Viral Actions (VA) Members liked, shared or commented on an item Job Applies (JA) Members applied for a job Engaged Feed Sessions (EFS) Sessions where a member engaged with anything on feed.
  • 6. Ranking Function 𝑆 π‘š, 𝑒 ≔ 𝑃𝑉𝐴 π‘š, 𝑒 + π‘₯ 𝐸𝐹𝑆 𝑃𝐸𝐹𝑆 π‘š, 𝑒 + π‘₯𝐽𝐴 𝑃𝐽𝐴 π‘š, 𝑒 β€’ The weight vector π‘₯ = π‘₯ 𝐸𝐹𝑆, π‘₯𝐽𝐴 controls the balance between the three business metrics: EFS, VA and JA. β€’ A Sample Business Strategy is π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’. 𝑉𝐴(π‘₯) 𝑠. 𝑑. 𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆 𝐽𝐴 π‘₯ > 𝑐𝐽𝐴 β€’ m – Member, u - Item
  • 7. Major Challenges ● The optimal value of x (tuning parameters) changes over time ● Example of changes ● New content types are added ● Score distribution changes ( Feature drift, updated models, etc.) ● With every change engineers would manually find the optimal x ● Run multiple A/B tests ● Not the best use of engineering time
  • 9. ● π‘Œπ‘–,𝑗 π‘˜ π‘₯ ∈ 0,1 denotes if the 𝑖-th member during the 𝑗-th session which was served by parameter π‘₯, did action k or not. Here k = VA, EFS or JA. ● We model this data as follows π‘Œπ‘– π‘˜ ~ Binomial 𝑛𝑖 π‘₯ , 𝜎 π‘“π‘˜ π‘₯ ● where 𝑛𝑖 π‘₯ is the total number of sessions of member 𝑖 which was served by π‘₯ and π‘“π‘˜ is a latent function for the particular metric. ● Assume a Gaussian process prior on each of the latent function π‘“π‘˜ . Modeling The Metrics
  • 10. Reformulation We approximate each of the metrics as: 𝑉𝐴 π‘₯ = 𝜎 𝑓𝑉𝐴 π‘₯ 𝐸𝐹𝑆 π‘₯ = 𝜎 𝑓𝐸𝐹𝑆 π‘₯ 𝐽𝐴 π‘₯ = 𝜎 𝑓𝐽𝐴 π‘₯ π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’. 𝑉𝐴(π‘₯) 𝑠. 𝑑. 𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆 𝐽𝐴 π‘₯ > 𝑐𝐽𝐴 π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝜎 𝑓𝑉𝐴 π‘₯ 𝑠. 𝑑. 𝜎 𝑓𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆 𝜎 𝑓𝐽𝐴 π‘₯ > 𝑐𝐽𝐴 π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 Benefit: The last problem can now be solved using techniques from the literature of Bayesian Optimization. The original optimization problem can be written through this parametrization.
  • 12. Bayesian Optimization π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 A Quick Crash Course β€’ Explore-Exploit scheme to solve
  • 13. Bayesian Optimization π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 A Quick Crash Course β€’ Explore-Exploit scheme to solve β€’ Assume a Gaussian Process prior on 𝑓 π‘₯ . β€’ Start with uniform sample get (π‘₯, 𝑓 π‘₯ ) β€’ Estimate the mean function and covariance kernel
  • 14. Bayesian Optimization π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 A Quick Crash Course β€’ Explore-Exploit scheme to solve β€’ Assume a Gaussian Process prior on 𝑓 π‘₯ . β€’ Start with uniform sample get (π‘₯, 𝑓 π‘₯ ) β€’ Estimate the mean function and covariance kernel β€’ Draw the next sample π‘₯ which maximizes an β€œacquisition function” or predictive posterior. β€’ Continue the process.
  • 15. Bayesian Optimization π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 A Quick Crash Course β€’ Explore-Exploit scheme to solve β€’ Assume a Gaussian Process prior on 𝑓 π‘₯ . β€’ Start with uniform sample get (π‘₯, 𝑓 π‘₯ ) β€’ Estimate the mean function and covariance kernel β€’ Draw the next sample π‘₯ which maximizes an β€œacquisition function” or predictive posterior. β€’ Continue the process.
  • 16. Bayesian Optimization π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 A Quick Crash Course β€’ Explore-Exploit scheme to solve β€’ Assume a Gaussian Process prior on 𝑓 π‘₯ . β€’ Start with uniform sample get (π‘₯, 𝑓 π‘₯ ) β€’ Estimate the mean function and covariance kernel β€’ Draw the next sample π‘₯ which maximizes an β€œacquisition function” or predictive posterior. β€’ Continue the process.
  • 17. Bayesian Optimization π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝑓 π‘₯ π‘₯ ∈ 𝑋 A Quick Crash Course β€’ Explore-Exploit scheme to solve β€’ Assume a Gaussian Process prior on 𝑓 π‘₯ . β€’ Start with uniform sample get (π‘₯, 𝑓 π‘₯ ) β€’ Estimate the mean function and covariance kernel β€’ Draw the next sample π‘₯ which maximizes an β€œacquisition function” or predictive posterior. β€’ Continue the process.
  • 18. Thompson Sampling ● Consider a Gaussian Process Prior on each π‘“π‘˜, where k is VA, EFS or JA ● Observe the data (π‘₯, π‘“π‘˜(π‘₯)) ● Obtain the posterior of each π‘“π‘˜ which is another Gaussian Process ● Sample from the posterior distribution and generate samples for the overall objective function. ● We get the next distribution of hyperparameters by maximizing the sampled objectives (over a grid of QMC points). ● Continue this process till convergence. π‘€π‘Žπ‘₯π‘–π‘šπ‘–π‘§π‘’ 𝜎 𝑓𝑉𝐴 π‘₯ 𝑠. 𝑑. 𝜎 𝑓𝐸𝐹𝑆 π‘₯ > 𝑐 𝐸𝐹𝑆 𝜎 𝑓𝐽𝐴 π‘₯ > 𝑐𝐽𝐴
  • 21. Offline System The heart of the product Tracking β€’ All member activities are tracked with the parameter of interest. β€’ ETL into HDFS for easy consumption Utility Evaluation β€’ Using the tracking data we generate (π‘₯, π‘“π‘˜ π‘₯ ) for each function k. β€’ The data is kept in appropriate schema that is problem agnostic. Bayesian Optimization β€’ The data and the problem specifications are input to this. β€’ Using the data, we first estimate each of the posterior distributions of the latent functions. β€’ Sample from those distributions to get distribution of the parameter π‘₯ which maximizes the objective.
  • 22. β€’ The Bayesian Optimization library generates β€’ A set of potential candidates for trying in the next round (π‘₯1, π‘₯2, … , π‘₯ 𝑛) β€’ A probability of how likely each point is the true maximizer (𝑝1, 𝑝2, … , 𝑝 𝑛) such that 𝑖=1 𝑛 𝑝𝑖 = 1 β€’ To serve members with the above distribution, each memberId is mapped to [0,1] using a hashing function β„Ž. For example, if 𝑖=1 π‘˜ 𝑝𝑖 < β„Ž πΎπ‘–π‘›π‘—π‘Žπ‘™ ≀ 𝑖=1 π‘˜+1 𝑝𝑖 Then my feed is served with parameter π‘₯ π‘˜+1 β€’ The parameter store (depending on use-case) can contain β€’ <parameterValue, probability> i.e. π‘₯𝑖, 𝑝𝑖 or β€’ <memberId, parameterValue> The Parameter Store and Online Serving
  • 23. Online System Serving hundreds of millions of users Parameter Sampling β€’ For each member π‘š visiting LinkedIn, β€’ Depending on the parameter store, we either evaluate <m, parameterValue> β€’ Or we directly call the store to retrieve <m, parameterValue> Online Serving β€’ Depending on the parameter value that is retrieved (say x), the member’s full feed is scored according to the ranking function and served 𝑆 π‘š, 𝑒 ≔ 𝑃𝑉𝐴 π‘š, 𝑒 + π‘₯ 𝐸𝐹𝑆 𝑃𝐸𝐹𝑆 π‘š, 𝑒 + π‘₯𝐽𝐴 𝑃𝐽𝐴 π‘š, 𝑒
  • 24. Practical Design Considerations ● Consistency in user experience. ● Randomize at member level instead of session level. ● Offline Flow Frequency ● Batch computation where we collect data for an hour and run the offline flow each hour to update the sampling distribution. ● Assume (𝑓𝑉𝐴, 𝑓𝐸𝐹𝑆, 𝑓𝐽𝐴) to be Independent ● Works well in our setup. Joint modeling might reduce variance. ● Choice of Business Constraint Thresholds. ● Chosen to allow for a small drop.
  • 29. Key Takeaways ● Removes the human in the loop: Fully automatic process to find the optimal parameters. ● Drastically improves developer productivity. ● Can scale to multiple competing metrics. ● Very easy onboarding infra for multiple vertical teams. Currently used by Ads, Feed, Notifications, PYMK, etc. ● Future Direction β€’ Add on other Explore-Exploit algorithms. β€’ Move from Black-Box to Grey-Box optimizations β€’ Create a dependent structure on different utilities to better model the variance. β€’ Automatically identify the primary metric by understanding the models better.
  • 31. Appendix – Library API ● Problem Specifications
  • 32. Appendix – Library API ● Objective and Constraints