<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Combining Dynamic A/B Experimentation and Recommender Systems in MOOCs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Joseph Jay Williams</string-name>
          <email>joseph jay williams@harvard.edu</email>
          <email>williams@harvard.edu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Luong Hoang</string-name>
          <email>lhoang@g.harvard.edu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Laurent Charlin</string-name>
          <email>laurent.charlin@hec.ca</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>HEC Montreal</institution>
          ,
          <addr-line>Montreal, Quebec H3T 2A7</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Harvard University</institution>
          ,
          <addr-line>Cambridge, MA 02138</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We consider how dynamic A/B experiments { used to discover and deploy policies for personalizing items { can be interpreted from the perspective of a recommendation problem, where no prior data is available. We present an illustrative data set we collected, to evaluate algorithms for recommending emails (that vary along dimensions like subject lines) that will maximize response rate, from di erent subgroups of online learners. This problem is formalized as a contextual bandit, and we do an o ine regret comparison of how standard bandit algorithms would perform in optimizing response rate. We report a system that provides an API for real{time data exchange and recommendation policy updates from algorithms from external machine learning researchers, and compare our best-performing o ine algorithm { Thompson Sampling { against a randomized policy.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. INTRODUCTION</title>
      <p>
        Despite widespread applications of recommender systems,
the majority of algorithms researchers develop are
evaluated using o ine data. There are few opportunities to test,
in real-time, algorithms that choose item recommendations
with the goal of balancing exploitation (maximizing user
satisfaction) with exploration (testing out items in order to
improve the underlying model in the long-run, potentially
with short-term suboptimal performance). Even algorithms
tackling these exploration-exploitation problems often have
to use o ine data [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. If real-world applications were
designed to enable algorithms to navigate this explore-exploit
tradeo through active experimentation, this could bring a
range of novel computational problems to the forefront.
      </p>
      <p>This poster aims to formulate sequential decision making
in A/B experimentation in terms of a problem in
personalized recommendation. The characteristics of this situation
Permission to make digital or hard copies of part or all of this work for
personal or classroom use is granted without fee provided that copies
are not made or distributed for profit or commercial advantage and that
copies bear this notice and the full citation on the first page. Copyrights for
third-party components of this work must be honored. For all other uses,
contact the owner/author(s).</p>
      <p>Copyright held by the owner/author(s)
are atypical in most recommender systems, but arguably of
interest in real{world applications. Optimal performance
requires rst discovering which features of items make for
good recommendations on average, and then further gains
in optimization are achieved by personalizing item
recommendation.</p>
      <p>In addition to this formulation, the other contributions
are: 1. Collecting a data set for o ine evaluation of
algorithms for recommendation, that illustrates a problem at the
intersection of dynamic A/B experimentation and
recommendation. This involves recommending emails to MOOC
participants that will maximize their response rate. 2. Our
contextual bandit formulation of how to solve this email
recommendation problem, and results from applying
several standard bandit algorithms. 3. A system that allows
online evaluation and comparison of algorithms for
bandits/recommendation via an API that provides data and
requests recommendations in real time 4. An online
evaluation of the algorithm that performed best in our o ine
evaluation { Thompson Sampling { against a random
policy, by dynamically changing the policy for
experimentation/recommendation, as each email is sent and each
participant's response observed.
2.</p>
    </sec>
    <sec id="sec-2">
      <title>RECOMMENDING EMAILS THAT MAX</title>
    </sec>
    <sec id="sec-3">
      <title>IMIZE RESPONSE RATE</title>
      <p>The goal was to recommend emails that could be sent to
participants, and maximize their response rate in providing
feedback on an online course. In our email recommendation
deployment, we chose three dimensions of the text of the
email to change - subject line, introduction, body of email.
Each of these three dimensions can be varied by writing
di erent text. In this deployment, we chose to create three
versions of each - three subject lines, three introduction
messages, and three versions of the body of the email. This
resulted in 27 unique email items, although any one
dimension (with just three versions) could be analyzed
independently (marginalizing over the others). This was because
we designed the dimensions to be modular and randomized
independently.</p>
      <p>We consider just two user characteristics - user's age group
(18-22, 23-26, 27-35, or 36 or older), and the number of days
the user was active in the course (grouped as 0, 1, or 2 or
more). While there are up to 50 other characteristics that
are available about users, our preliminary analyses suggested
these did not have substantial impact on which items would
be recommended.</p>
      <p>
        Following previous approaches for collecting a data set
useful for testing a range of approaches and policies [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], we
used a completely randomized policy, where all three item
dimensions were independently randomized. Emails were
sent to 3765 users.
      </p>
    </sec>
    <sec id="sec-4">
      <title>CONTEXTUAL BANDIT FORMULATION</title>
      <p>E[PtT=1 rt;a].</p>
      <p>
        The problem of how to make person by person dynamic
decisions about what email to recommend is formulated as
a contextual multi{armed bandit problem [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>Formally, each step in a sequence is indexed by t from
f1; 2; ::; T g, and furnishes a context vector xt, with the choice
of an action a 2 A producing an observed reward rt;a.</p>
      <p>The computational problem is to choose a sequence of
actions fa1; a2; ::; aT g that maximize the expected reward</p>
    </sec>
    <sec id="sec-5">
      <title>MODELS,ALGORITHMS, RESULTS</title>
      <p>We consider each email dimension (subject line,
introduction, body) as a separate contextual bandit, so we solve three
contextual bandit problems.</p>
      <p>
        For each contextual bandit, our approach is twofold,
following [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. First, construct a model for the probability that
a user responds to an email with a particular value on a
dimension. We use logistic regression to predict the
probability that a user { with speci c context variables of age group
and number of days active{ will respond to each value of an
email dimension, such as subject line 1, 2, or 3.
      </p>
      <p>The reward rt;a 2 f0; 1g depends on each xt as well as the
regression weights for action a, wa. We use Bayesian logistic
regression, since this gives us distributions over the weight
parameters that we can use in Thompson Sampling.</p>
      <p>
        Second, given these models, use an algorithm for selecting
subsequent actions, which trades o maximizing response
rate against collecting data that will informatively update
the models. We compare Thompson Sampling [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], Upper
Con dence Bound [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], epsilon{greedy, and a randomized
policy. Given limited space, we describe only our logistic
regression model with Thompson Sampling.
      </p>
      <p>To do Thompson Sampling, we use the posterior
distributions over each wa. At each time step t:
1. For each a 2 A, sample wa.
2. Select argmax ra;xt</p>
      <p>a
3. Observe reward ra;xt and update the posterior
distribution on wa (Bayesian logistic regression).</p>
    </sec>
    <sec id="sec-6">
      <title>REAL-TIME POLICY CHANGE</title>
      <p>
        To accomplish our goal of testing out these algorithms
on online data, we built a system that updates the policy
for recommending emails can be updated in real-time, after
each email is sent and data is received. This system was
constructed using the MOOClet framework, which enables
any A/B experimentation infrastructure to adapt policies
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Speci cally, an API (see MOOClet-provide-data,
below) enables data about each user (or groups of users) to be
provided on demand. A second key API call (see
MOOCletRequest-Recommendation) provides a user's context
variables to the system and requests from an algorithm which
email item should be recommended.
      </p>
      <p>To compare alternative algorithms, which algorithm is
called to provide a recommendation can itself be
randomized, interleaving the algorithms as users are selected. This
will enable the algorithms analyzed for this o ine data to be
compared against each other in this real-time situation, as
well as the evaluation of any other algorithm, from both the
recommender systems and multi-armed bandits literature.</p>
      <p>As a test deployment of our system, we compared the
response rate of a new group of 1775 participants when
recommended emails using a random policy (4.5%) against a
heuristic that approximated Thompson Sampling (7.2%).</p>
      <sec id="sec-6-1">
        <title>MOOClet-Provide-Data:</title>
        <p>PROVIDES: For each of N participants, User Context
Variables (Age Group, Number Days Active), Item
Assigned (Email Subject Line, Introduction, Body),
Response (0 or 1)</p>
      </sec>
      <sec id="sec-6-2">
        <title>MOOClet-Request-Recommendation:</title>
        <p>PROVIDES: User Context Variables (Age Group,
Number Days Active)
RETURNS: Item assignment (Email Subject Line,
Introduction, Body)</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>O.</given-names>
            <surname>Chapelle</surname>
          </string-name>
          and
          <string-name>
            <given-names>L.</given-names>
            <surname>Li</surname>
          </string-name>
          .
          <article-title>An empirical evaluation of thompson sampling</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          , pages
          <volume>2249</volume>
          {
          <fpage>2257</fpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>L.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Chu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Langford</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R. E.</given-names>
            <surname>Schapire</surname>
          </string-name>
          .
          <article-title>A contextual-bandit approach to personalized news article recommendation</article-title>
          .
          <source>In Proceedings of the 19th international conference on World wide web</source>
          , pages
          <volume>661</volume>
          {
          <fpage>670</fpage>
          . ACM,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H. P.</given-names>
            <surname>Vanchinathan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Nikolic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>De Bona</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Krause</surname>
          </string-name>
          .
          <article-title>Explore-exploit in top-n recommender systems via gaussian processes</article-title>
          .
          <source>In Proceedings of the 8th ACM Conference on Recommender systems</source>
          , pages
          <volume>225</volume>
          {
          <fpage>232</fpage>
          . ACM,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J. J.</given-names>
            <surname>Williams</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Whitehill</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Maldonado</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pechenizkiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Chu</surname>
          </string-name>
          , and
          <string-name>
            <surname>N.</surname>
          </string-name>
          <article-title>He ernan. The mooclet framework: Improving online education through experimentation and personalization of modules</article-title>
          .
          <source>Available at SSRN 2523265</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>