ArticleslgStudy

computer science

Kullback–Leibler Upper Confidence Bound

Kullback–Leibler Upper Confidence Bound is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Kullback–Leibler Upper Confidence Bound rather than just read about it. In short: In multi-armed bandit problems, KL-UCB (for Kullback–Leibler Upper Confidence Bound) is a UCB-type algorithm that is asymptotically optimal, in the sense that its regret matches the problem-dependent Lai-Robbins lower bound. Multi-armed bandit problem The Multi-armed bandit problem is a sequential game where one player has to choose at each turn between K {\displaystyle K} actions (arms).

Kullback–Leibler Upper Confidence Bound — main illustration
Kullback–Leibler Upper Confidence Bound — illustration

Key takeaways

  • Kullback–Leibler Upper Confidence Bound belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Kullback–Leibler Upper Confidence Bound to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Kullback–Leibler Upper Confidence Bound from memory before moving on to harder problems.

Reference excerpt

In multi-armed bandit problems, KL-UCB (for Kullback–Leibler Upper Confidence Bound) is a UCB-type algorithm that is asymptotically optimal, in the sense that its regret matches the problem-dependent Lai-Robbins lower bound.

Multi-armed bandit problem The Multi-armed bandit problem is a sequential game where one player has to choose at each turn between K {\displaystyle K} actions (arms). Behind every arm a {\displaystyle a} there is an unknown distribution ν a {\displaystyle \nu _{a}} that lies in a set D {\displaystyle {\mathcal {D}}} known by the player (for example, D {\displaystyle {\mathcal {D}}} can be the set of Gaussian distributions or Bernoulli distributions). At each turn t {\displaystyle t} the player chooses (pulls) an arm a t {\displaystyle a_{t}} , he then gets an observation X t {\displaystyle X_{t}} of the distribution ν a t {\displaystyle \nu _{a_{t}}} .

Regret minimization The goal is to minimize the regret at time T {\displaystyle T} that is defined as

R T := ∑ a = 1 K Δ a E [ N a ( T ) ] {\displaystyle R_{T}:=\sum _{a=1}^{K}\Delta _{a}\mathbb {E} [N_{a}(T)]}

where

μ a := E [ ν a ] {\displaystyle \mu _{a}:=\mathbb {E} [\nu _{a}]} is the mean of arm a {\displaystyle a}

μ ∗ := max a μ a {\displaystyle \mu ^{*}:=\max _{a}\mu _{a}} is the highest mean

Δ a := μ ∗ − μ a {\displaystyle \Delta _{a}:=\mu ^{*}-\mu _{a}}

N a ( t ) {\displaystyle N_{a}(t)} is the number of pulls of arm a {\displaystyle a} up to turn t {\displaystyle t}

The player has to find an algorithm that chooses at each turn t {\displaystyle t} which arm to pull based on the previous actions and observations ( a s , X s ) s < t {\displaystyle (a_{s},X_{s})_{s<t}} to minimize the regret R T {\displaystyle R_{T}} . This is a trade-off problem between exploration to find the best arm (the arm with the highest mean) and exploitation to play as much as possible the arm that we think is the best arm.

Applications Multi-armed bandit algorithms are used in a variety of fields; for example, they have applications in clinical trials, recommender systems, telecommunications, and precision agriculture.

Algorithm KL-UCB The algorithm is a UCB-type algorithm based on optimism, which means that at each turn t {\displaystyle t} we compute an upper confidence bound (UCB) for the mean of each arm a {\displaystyle a} ; we then pull the arm with the highest UCB. The difference with KL-UCB is that it uses an estimation of the lower bound of Lai–Robbins to make the upper confidence bound.

History The algorithm was first introduced in 2011 for Bernoulli distribution. It was then extended to one-dimensional exponential families and bounded distributions in 2013. An adaptation called KL-UCB-Switch, which uses a mix of MOSS and KL-UCB, was developed to obtain both the problem-dependent and problem-independent asymptotic lower bounds in 2022. The algorithm was also extended to Lipschitz bandits in 2014.

Formal algorithm

At first, the algorithm pulls all the arms once. Then, for each turn t ≥ K + 1 {\displaystyle t\geq K+1} , for each arm a {\displaystyle a} , we compute:

… excerpt ends here. Continue reading the full article.

Illustrations

Kullback–Leibler Upper Confidence Bound: Behaviour of an UCB algorithm on a bandit run
Behaviour of an UCB algorithm on a bandit run
Kullback–Leibler Upper Confidence Bound: The index of an arm a at turn t for KL UCB
The index of an arm a at turn t for KL UCB

Worked examples

Example 1 — a first encounter with Kullback–Leibler Upper Confidence Bound

Start with the simplest possible case. Write down what Kullback–Leibler Upper Confidence Bound claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Kullback–Leibler Upper Confidence Bound before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Kullback–Leibler Upper Confidence Bound ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Kullback–Leibler Upper Confidence Bound

In research
Kullback–Leibler Upper Confidence Bound appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Kullback–Leibler Upper Confidence Bound in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Kullback–Leibler Upper Confidence Bound is common in secondary-school and first-year university syllabi. It links to neighbouring topics Algorithms, Decision theory, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Kullback–Leibler Upper Confidence Bound outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Kullback–Leibler Upper Confidence Bound” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Kullback–Leibler Upper Confidence Bound in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Kullback–Leibler Upper Confidence Bound means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Kullback–Leibler Upper Confidence Bound out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Kullback–Leibler Upper Confidence Bound in simple terms?

In multi-armed bandit problems, KL-UCB (for Kullback–Leibler Upper Confidence Bound) is a UCB-type algorithm that is asymptotically optimal, in the sense that its regret matches the problem-dependent Lai-Robbins lower bound. Multi-armed bandit problem The Multi-armed bandit problem is a sequential…

Why does Kullback–Leibler Upper Confidence Bound matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Kullback–Leibler Upper Confidence Bound?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Kullback–Leibler Upper Confidence Bound.

Tags

  • Algorithms
  • Decision theory
  • Optimization algorithms and methods
  • Sequential methods
  • Stochastic optimization

Keep exploring