In questa pagina: Scopri in che modo il modello di apprendimento per il rinforzo dell’ottimizzazione automatica esplora e classifica le offerte per massimizzare il tasso di click-through in modo da poter decidere quando utilizzarlo per l’ottimizzazione a canale singolo.
Il modello di ottimizzazione automatica di Adobe Journey Optimizer è un modello di apprendimento di rinforzo che massimizza il tasso di click-through delle offerte esplorando tutte le offerte (o i contenuti), quindi classificando gli elementi in base al CTR previsto, dopo l’applicazione delle regole di idoneità e dei limiti di frequenza.
Casi d’uso e vantaggi use-cases-benefits
L’ottimizzazione automatica può essere utilizzata in qualsiasi momento desideri una configurazione rapida e semplice, trovare offerte vincenti complessive e massimizzare i clic sulle offerte all’interno di un singolo canale. Ad esempio:
- Scegli le offerte migliori da inserire in una pagina web per massimizzare i clic sulle offerte.
- Scegli le offerte migliori da inserire in un’e-mail per massimizzare i clic sulle offerte.
- Scegli le offerte migliori da inserire nella schermata di un’app mobile per massimizzare i clic sulle offerte.
L’ottimizzazione automatica è una buona scelta quando:
- Le offerte cambiano nel tempo o di frequente: il modello di ottimizzazione automatica viene riqualificato ogni sei ore.
Requisiti e limitazioni requirements-limitations
L’ottimizzazione automatica presenta i seguenti requisiti e limiti:
- L’ottimizzazione automatica richiede un set di dati di formazione contenente eventi di visualizzazione dell’offerta, eventi di clic dell’offerta e il gruppo di campi Evento esperienza - Interazioni proposta.
- I modelli di ottimizzazione automatica non possono essere utilizzati nelle richieste all’API Batch Decisioning.
- L’ottimizzazione automatica ottimizza sempre in base ai clic dell’offerta. Per massimizzare per un obiettivo diverso dai clic sulle offerte, utilizza il modello Ottimizzazione personalizzata.
- L’ottimizzazione automatica cerca di trovare offerte complessivamente vincenti e non trova una classificazione personalizzata per ciascun cliente. Per trovare classificazioni personalizzate per ogni cliente, utilizza il modello Ottimizzazione personalizzata.
Per addestrare un modello di ottimizzazione automatica, il set di dati deve soddisfare i seguenti requisiti minimi:
- Almeno 2 offerte nel set di dati devono avere almeno 100 eventi di visualizzazione e 5 eventi di clic negli ultimi 14 giorni.
- Le offerte con meno di 100 visualizzazioni e/o 5 eventi di clic negli ultimi 14 giorni verranno trattate dal modello come nuove offerte e saranno idonee solo per essere servite dal team di esplorazione.
- Le offerte con più di 100 display e 5 eventi di clic negli ultimi 14 giorni verranno trattate dal modello come offerte esistenti e potranno essere servite da banditi sia di esplorazione che di sfruttamento.
Fino alla prima volta che viene addestrato un modello di ottimizzazione automatica, le offerte all’interno di una strategia di selezione che utilizza un modello di ottimizzazione automatica verranno servite a caso.
Bilanciamento dell’ottimizzazione con l’apprendimento balancing-optimization-learning
L’ottimizzazione automatica è un modello di apprendimento per rinforzi che apprende le prestazioni di click-through delle offerte in base al comportamento reale dei clienti. I modelli di apprendimento per il rafforzamento cercano di massimizzare un obiettivo scegliendo azioni con risultati migliori. Tuttavia, un modello che presentasse sempre a ogni cliente gli elementi con il miglior risultato previsto non apprenderebbe mai le prestazioni dei nuovi elementi introdotti nel tempo (il cosiddetto “problema dell’avviamento a freddo”), né le variazioni delle prestazioni di altri elementi esistenti derivanti da cambiamenti nel comportamento dei clienti nel tempo. I modelli di apprendimento per rinforzo devono quindi gestire quello che viene comunemente definito compromesso tra esplorazione e sfruttamento, ovvero l’ottimizzazione del bilanciamento con l’apprendimento.
L’ottimizzazione automatica utilizza un approccio comune denominato slot machine per gestire il compromesso. La banca multiarmata prende decisioni di classificazione sulla base di:
- il tasso di click-through previsto per ciascun elemento
- le differenze nel tasso di click-through previsto per ogni elemento
- il grado di incertezza del modello sulle previsioni per ciascun elemento.
I banditi multiarmati utilizzano queste informazioni, insieme alla variabilità casuale, per scegliere le azioni da intraprendere. L’ottimizzazione automatica è un algoritmo di insieme che contiene più banditi multiarmati per garantire che tutte le offerte siano adeguatamente esplorate e massimizzare le prestazioni complessive.
Quando risponde a una richiesta di classificazione, un bandit multi-armato “supervisore” fa prima una scelta se questa richiesta dovrebbe essere tendenziosa verso l’esplorazione o tendente allo sfruttamento. Questa decisione viene presa usando un approccio “epsilon-greedy”.
Il secondo livello di classificazione viene eseguito da uno dei due banditi di campionamento Thompson:
- Il 10% del traffico viene allocato a una slot machine incentrata sull’esplorazione che ha maggiori probabilità di consigliare nuove offerte o quelle con dati limitati, partendo dal presupposto che il modello trarrebbe vantaggio dall’apprendere di più sul comportamento del cliente in risposta a tali offerte.
- Il 90% del traffico è allocato a una banca incentrata sullo sfruttamento che ha maggiori probabilità di consigliare costantemente offerte ad alte prestazioni nel tempo, partendo dal presupposto che le offerte nuove o a basso contenuto di dati abbiano maggiori probabilità di ottenere prestazioni inferiori, fino a prova contraria.
In senso tecnico, queste ipotesi sono parametri della distribuzione di probabilità precedente, anche denominati precedenti. Man mano che le offerte raccolgono più dati di visualizzazione e di clic, l’influenza dei priori scelti diventa più bassa e le previsioni fatte dai due banditi tendono a convergere nel tempo.
Il nostro approccio che prevede la combinazione di più banditi e l’allocazione di parte del traffico dedicato per l’esplorazione offre diversi vantaggi:
- il modello viene a conoscenza più rapidamente delle offerte più recenti con il minor numero di dati
- il modello continua a conoscere tutte le offerte e risponde ai cambiamenti nel comportamento dei clienti nel tempo
- il modello non si adatta eccessivamente favorendo aggressivamente le offerte con CTR apparente più elevato ma poche osservazioni, o sfavorendo aggressivamente le offerte con CTR apparente più basso ma poche osservazioni
- il modello è affidabile per gestire le decisioni di allocazione del traffico tra centinaia di offerte con dati di clic sparsi e con quantità molto diverse di dati storici
Campionamento di Thompson thompson-sampling
Il campionamento di Thompson, o banditi bayesiani, è un approccio bayesiano al problema della slot machine. Il modello considera il premio medio 𝛍 di ogni offerta come una variabile casuale e utilizza i dati raccolti finora per aggiornare le nostre “convinzioni” sul premio medio. Questa “convinzione” è rappresentata matematicamente da una distribuzione di probabilità posteriore - essenzialmente un intervallo di valori per la ricompensa media, insieme alla plausibilità (o probabilità) che la ricompensa abbia quel valore per ogni offerta. Quindi, per ogni decisione, campioneremo un punto da ciascuna di queste distribuzioni di premi posteriori e selezioneremo l’offerta la cui ricompensa campionata aveva il valore più alto.
Questo processo è illustrato nella figura seguente, dove sono disponibili 3 diverse offerte. Inizialmente non abbiamo alcuna prova dai dati, e supponiamo che tutte le offerte abbiano una distribuzione di ricompensa a posteriori uniforme. Prendiamo un campione dalla distribuzione di ogni offerta di premi a posteriori. Il campione selezionato dalla distribuzione di Offerta 2 ha il valore più alto. Questo è un esempio di esplorazione. Dopo aver mostrato l’Offerta 2, raccogliamo qualsiasi potenziale ricompensa (ad esempio conversione/non conversione) e aggiorniamo la distribuzione posteriore dell’Offerta 2 utilizzando il Teorema di Bayes come spiegato di seguito. Continuiamo questo processo e aggiorniamo le distribuzioni posteriori ogni volta che viene mostrata un’offerta e viene raccolto il premio. Nella seconda figura, viene selezionata l’Offerta 3 - nonostante l’Offerta 1 abbia la più alta ricompensa media (la sua distribuzione di ricompensa posteriore è più a destra), il processo di campionamento da ogni distribuzione ci ha portato a scegliere un’Offerta 3 apparentemente non ottimale. In questo modo, ci offriamo l’opportunità di conoscere meglio la vera distribuzione delle ricompense dell’Offerta 3.
Man mano che vengono raccolti più campioni, l’affidabilità aumenta e si ottiene una stima più accurata del possibile premio (corrispondente a distribuzioni più ridotte). Questo processo di aggiornamento delle nostre convinzioni man mano che diventano disponibili ulteriori prove è noto come Inferenza bayesiana.
Alla fine, se un’offerta (ad es. Offerta 1) è un chiaro vincitore, la sua distribuzione successiva della ricompensa sarà separata dagli altri. A questo punto, per ogni decisione, la ricompensa campionata dall’Offerta 1 è probabilmente la più alta e la sceglieremo con una probabilità più elevata. Siamo convinti che l’Offerta 1 sia la migliore, e quindi viene scelta per massimizzare i premi.
Figura 1: Per ogni decisione, campioniamo un punto dalle distribuzioni di premi posteriori. Verrà scelta l’offerta con il valore di esempio più alto (tasso di conversione). Nella fase iniziale, tutte le offerte hanno una distribuzione uniforme, in quanto non disponiamo di alcuna evidenza sui tassi di conversione delle offerte dai dati. Mentre raccogliamo più campioni, le distribuzioni posteriori diventano più strette e più precise. In ultima analisi, l’offerta con il tasso di conversione più alto verrà scelta ogni volta.
Per calcolare/aggiornare le distribuzioni, si utilizza il Teorema di Bayes. Per ogni offerta i, vogliamo calcolare la loro P(𝛍i | data), ovvero per ogni offerta i, quanto è probabile un valore di ricompensa𝛍 i, dati i dati raccolti finora per tale offerta.
Dal Teorema Di Bayes:
Posteriore = Probabilità * Precedente
La probabilità precedente è la stima iniziale della probabilità di produzione di un output. La probabilità, dopo aver raccolto alcune prove, è nota come probabilità posteriore.
L’ottimizzazione automatica è progettata per prendere in considerazione i premi binari (clic/nessun clic). In questo caso, la probabilità rappresenta il numero di successi da N studi ed è modellata da una distribuzione binomiale. Per alcune funzioni di verosimiglianza, se si sceglie una certa distribuzione a priori, la distribuzione a posteriori finisce per essere nella stessa distribuzione della distribuzione a priori. Tale priore è chiamato priore coniugato. Questo tipo di distribuzione a priori rende il calcolo della distribuzione a posteriori molto semplice. La distribuzione Beta è coniugata prima della probabilità binomiale (premi binari) e quindi è una scelta conveniente e ragionevole per le distribuzioni di probabilità precedenti e posteriori. La distribuzione Beta accetta due parametri, α e β. Questi parametri possono essere considerati come il conteggio dei successi e degli errori e il valore medio dato da:
La funzione Likelihood come spiegato in precedenza è modellata da una distribuzione binomiale, con s successi (conversioni) e f fallimenti (nessuna conversione) e q è una variabile casuale con una distribuzione Beta.
La distribuzione a priori è modellata dalla distribuzione Beta e la distribuzione a posteriori assume la seguente forma:
Pregiudizio per l’esplorazione e pregiudizio per lo sfruttamento exploration-exploitation-bias
È necessario scegliere un valore iniziale per i parametri α, β. L’ottimizzazione automatica include sia un modulo di campionamento Thompson basato sull’esplorazione che un modulo di campionamento Thompson basato sull’utilizzo che utilizzano diversi moduli iniziali α, β nelle loro distribuzioni beta.
In un approccio di campionamento generale di Thompson, la parte posteriore viene calcolata semplicemente aggiungendo il numero di successi ed errori ai parametri esistenti α, β. L’ottimizzazione automatica utilizza diversi fattori di ponderazione per i nuovi successi e gli errori nel modificare l’impatto dei nuovi dati rispetto ai dati precedenti sia nei bit orientati all’esplorazione che in quelli orientati allo sfruttamento.
Riferimenti references
Per informazioni più approfondite sui banditi di campionamento di Thompson, consulta i seguenti articoli di ricerca:
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: Explains how the Auto-optimization reinforcement learning model explores and ranks offers to maximize click-through rate, how it balances optimization with learning, and when to use it for single-channel optimization.
Intents:
- Decide when to use the Auto-optimization model for single-channel optimization.
- Identify the requirements and limits of the Auto-optimization model.
- Understand how the Auto-optimization model explores offers and ranks them to maximize click-through rate.
- Understand how the Auto-optimization model balances optimization with learning with multi-armed bandits.
- Understand how new offers and existing offers are treated by the model.
- Understand how Thompson sampling selects an offer and updates its belief about the average reward.
Glossary:
-
Auto-optimization model (product-specific): the Adobe Journey Optimizer reinforcement learning model which maximizes offer click-through rate (CTR) by exploring all offers (or content), then ranking items based on predicted CTR, after eligibility rules and frequency caps are applied.
-
Reinforcement learning: models which seek to maximize an objective by choosing actions with better predicted outcomes. Auto-optimization is a reinforcement learning model which learns about the click-through performance of offers based on real-world customer behavior.
-
Explore-exploit tradeoff: what reinforcement learning models must manage, that is, balance optimization with learning, because a model that always presented every customer with the item(s) with the best predicted outcome would never learn about the performance of new items introduced over time (the so-called “cold start problem”), nor would it learn about changes in the performance of other existing items resulting from changes in the behavior of customers over time.
-
Multi-armed bandit: the common approach Auto-optimization uses to manage the tradeoff. It makes ranking decisions based on the predicted click-through rate of each item, the differences in the predicted click-through rate of each item, and the model’s degree of uncertainty about its predictions for each item, and utilizes this information, along with random variability, to choose the actions to take.
-
Ensemble algorithm: Auto-optimization is an ensemble algorithm which contains multiple multi-armed bandits in order to ensure all offers are adequately explored while maximizing overall performance.
-
Supervising multi-armed bandit: when responding to a ranking request, a “supervising” multi-armed bandit first makes a choice of whether this request should be biased towards exploration or biased towards exploitation, using an “epsilon-greedy” approach.
-
Second layer of ranking: performed by one of two Thompson sampling bandits.
- Exploration-focused bandit: 10% of traffic is allocated towards it; it is more likely to recommend new offers or those with limited data, under the assumption that the model would benefit from learning more about customer behavior in response to these offers.
- Exploitation-focused bandit: 90% of traffic is allocated towards it; it is more likely to consistently recommend high-performing offers over time, under the assumption that new or low-data offers are more likely to underperform until proven otherwise.
-
Priors: in a technical sense, the assumptions of the two bandits are parameters of the prior probability distribution, also referred to as priors. As offers gather more display and click data, the influence of the chosen priors becomes lower, and the predictions made by the two bandits tend to converge over time.
-
New offers: offers with fewer than 100 displays and/or 5 click events within the last 14 days are treated by the model as new offers, and are only eligible to be served by the exploration bandit.
-
Existing offers: offers with more than 100 displays and 5 click events within the last 14 days are treated by the model as existing offers, and are eligible to be served by both exploration and exploitation bandits.
-
Thompson sampling: a Bayesian approach to the multi-armed bandit problem. The model treats the average reward from each offer as a random variable and uses the data collected so far to update its “belief” about the average reward. For every decision, a point is sampled from each posterior reward distribution and the offer whose sampled reward had the highest value is selected.
-
Posterior probability distribution: the mathematical representation of the “belief” about the average reward, essentially a range of values for the average reward, along with the plausibility (or probability) that the reward has that value for each offer.
-
Bayesian Inference: the process of updating beliefs as more evidence becomes available. As more samples are collected, the confidence increases, and a more accurate estimate of the possible reward is obtained (corresponding to narrower reward distributions).
-
Prior probability and posterior probability: distributions are calculated and updated using Bayes Theorem:
Posterior = Likelihood * Prior. The prior probability is the initial guess about the probability for producing an output; the probability after some evidence has been collected is known as the posterior probability. -
Binary rewards: Auto-optimization is designed to consider binary rewards (click/no-click). In this case, the likelihood represents the number of successes from N trials and is modeled by a binomial distribution.
-
Conjugate prior: for some likelihood functions, if you choose a certain prior, the posterior ends up being in the same distribution as the prior. Such a prior is called a conjugate prior, and it makes the calculation of the posterior distribution very simple.
-
Beta distribution: a conjugate prior to the binomial likelihood (binary rewards), and so a convenient and sensible choice for the prior and posterior probability distributions. It takes two parameters, α and β, which can be thought of as the count of successes and failures. An initial value must be chosen for these parameters: the exploration-biased and the exploitation-biased Thompson sampling bandits utilize different initial α, β priors in their beta distributions.
-
Weighting factors: in a general Thompson sampling approach, the posterior is calculated by simply adding the number of successes and failures to the existing parameters α, β. Auto-optimization utilizes different weighting factors for new successes and failures to modify the impact of new data vs. prior data in both the exploration-biased and exploitation-biased bandits.
Guardrails:
- Auto-optimization models cannot be utilized in requests to the Batch Decisioning API.
- Auto-optimization always optimizes for offer clicks.
- Auto-optimization attempts to find overall winning offers and does not find a personalized ranking for each customer.
- Until the first time an auto-optimization model is trained, offers within a selection strategy utilizing an auto-optimization model will be served at random.
Prerequisites and permissions:
- Auto-optimization requires a training dataset containing offer display events, offer click events, and the Experience Event - Proposition Interactions field group.
- To train an auto-optimization model, the dataset must meet the following minimum requirements: at least 2 offers in the dataset must have at least 100 display events and 5 click events within the last 14 days.
Terminology:
- Canonical name: Auto-optimization model — variants: Auto-optimization, Auto-optimization models
- Canonical name: click-through rate — Acronym: CTR — variant: offer click-through rate
- Synonyms: “Thompson sampling” = “Bayesian bandits”; “posterior probability distribution” = “posterior reward distribution”; “exploration bandit” = “exploration-focused bandit” = “exploration-biased Thompson sampling bandit”; “exploitation bandit” = “exploitation-focused bandit” = “exploitation-biased Thompson sampling bandit”
FAQ:
- When is the Auto-optimization model a good choice? Auto-optimization can be used any time you want quick and easy setup, want to find overall winning offers, and want to maximize offer clicks within a single channel. It is a good choice when offers change over time or frequently: the Auto-optimization model is retrained every six hours.
- What does the Auto-optimization model require? Auto-optimization requires a training dataset containing offer display events, offer click events, and the Experience Event - Proposition Interactions field group. To train an auto-optimization model, the dataset must meet the following minimum requirements: at least 2 offers in the dataset must have at least 100 display events and 5 click events within the last 14 days.
- What are the limits of the Auto-optimization model? Auto-optimization models cannot be utilized in requests to the Batch Decisioning API. Auto-optimization always optimizes for offer clicks, and it attempts to find overall winning offers and does not find a personalized ranking for each customer.
- What happens before an auto-optimization model is trained for the first time? Until the first time an auto-optimization model is trained, offers within a selection strategy utilizing an auto-optimization model will be served at random.
- How does the Auto-optimization model balance optimization with learning? Auto-optimization uses a multi-armed bandit approach and is an ensemble algorithm which contains multiple multi-armed bandits. A “supervising” multi-armed bandit first makes a choice of whether a ranking request should be biased towards exploration or biased towards exploitation; the second layer of ranking is performed by one of two Thompson sampling bandits, with 10% of traffic allocated towards the exploration-focused bandit and 90% of traffic allocated towards the exploitation-focused bandit.
- What are the benefits of combining multiple bandits and allocating some dedicated traffic for exploration? The page states that this approach provides several benefits: the model learns most quickly about the newest offers with the least data; the model continues to learn about all offers and responds to changes in customer behavior over time; the model does not overfit by aggressively favoring offers with higher apparent CTR but few observations, or aggressively disfavoring offers with lower apparent CTR but few observations; the model is robust to handling traffic allocation decisions across hundreds of offers with sparse click data and with very different amounts of historical data.
Examples:
-
Use cases of the Auto-optimization model:
- Choose the best offers to insert on a web page to maximize offer clicks.
- Choose the best offers to insert in an email to maximize offer clicks.
- Choose the best offers to insert in a mobile app screen to maximize offer clicks.
-
Thompson sampling illustration with 3 different offers (Offer 1, Offer 2 and Offer 3):
- Initially there is no evidence from the data, and all offers are assumed to have a uniform posterior reward distribution; a sample is drawn from the posterior reward distribution of each offer.
- The sample selected from the distribution of Offer 2 has the highest value: this is an example of exploration. After showing Offer 2, any potential reward (for example conversion/no-conversion) is collected and the posterior distribution of Offer 2 is updated using Bayes Theorem. The posterior distributions are updated each time an offer is shown and the reward is collected.
- In a later step, Offer 3 is selected despite Offer 1 having the highest average reward (its posterior reward distribution is furthest to the right): the process of sampling from each distribution has led to choosing an apparently suboptimal Offer 3, which gives the opportunity to learn more about the true reward distribution of Offer 3.
- Eventually, if one offer (for example Offer 1) is a clear winner, its posterior reward distribution is separated from the others, the sampled reward from Offer 1 is likely to be the highest, and it is chosen with a higher probability: this is exploitation.
Related pages:
- To maximize for an objective other than offer clicks, or to find personalized rankings for each customer: Personalized optimization
Personas:
- marketer: Can use Auto-optimization to maximize offer clicks within a single channel, for example on web pages, in emails or in mobile app screens. The page states that training requires at least 2 offers with at least 100 display events and 5 click events within the last 14 days. The page states that Auto-optimization always optimizes for offer clicks and does not find a personalized ranking for each customer. The page states that Auto-optimization models cannot be utilized in requests to the Batch Decisioning API. Where: “Use cases and benefits”.
Onboarding:
- Level: Experienced
- Next: To maximize for an objective other than offer clicks, or to find personalized rankings for each customer: Personalized optimization