<!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>Conjoint Modeling of Temporal Dependencies in Event Streams</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ankur P. Parikh∗†</string-name>
          <email>apparikh@cs.cmu.edu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Asela Gunawardana∗</string-name>
          <email>aselag@microsoft.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Christopher Meek</string-name>
          <email>meek@microsoft.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Microsoft Research</institution>
          ,
          <addr-line>One Microsoft Way, Redmond, WA 98052</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>School of Computer Science, Carnegie Mellon University</institution>
          ,
          <addr-line>Pittsburgh, PA 15213</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Many real world applications depend on modeling the temporal dynamics of streams of diverse events, many of which are rare. We introduce a novel model class, Conjoint Piecewise-Constant Conditional Intensity Models, and a learning algorithm that together yield a data-driven approach to parameter sharing with the aim of better modeling such event streams. We empirically demonstrate that our approach yields more accurate models of two real world data sets: search query logs and data center system logs.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Event streams—temporal sequences of discrete events,
are ubiquitous in many domains such as the firing
patterns of neurons [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], gene expression data [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
system error logs [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], and web search engine query logs.
Learning a model for the temporal dependencies
between events can be useful for understanding and
exploiting the dynamics in such domains. For example,
learning that particular system events on a machine
predict failures at a later time may allow a system
administrator to prioritize preventive maintenance.
Understanding how web search queries for commercially
valuable terms are dependent on prior queries,
possibly for other topics, can help in targeted advertising.
In many cases the data exhibits complex temporal
dependencies. For example, what a user will query for
at a particular time can depend on queries issued in
the last few minutes, the previous day, as well as in
the extended past. In a data center, the likelihood of
a machine failing may depend on cascades of various
prior warnings, errors, and failures.
      </p>
      <p>
        In many domains, it is valuable to model fine
distinctions between event types. For example, in targeted
advertising, it is valuable to distinguish whether a user
will issue queries related to mental health or to back
pain rather than simply predicting that a user will
issue a healthcare query. In a data center, it is more
useful to learn that particular disk errors predict failed
reboots than to know that generic error messages
predict generic failures. While useful to model, such fine
grained event types are rarer than the coarser grained
ones that include them, and are therefore more difficult
to model. Many models of temporal dependencies in
event streams, such as the Piecewise-Constant
Conditional Intensity Model (PCIM) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], learn the
dependencies of each event type separately, using independent
sub-models for each event type. Thus, they are not
able to model rare events well.
      </p>
      <p>In this paper, we address this problem using
parameter sharing, by introducing Conjoint
PiecewiseConstant Conditional Intensity Models (C-PCIMs)
and a learning algorithm for C-PCIMs, which yield
a novel data-driven approach to modeling fine grained
event streams. C-PCIMs generalize PCIMs by
allowing parameters to be shared across event types, and
our learning algorithm uses the data to determine
which parameters should be shared. In particular, we
give a conjugate prior that allows parameter learning
for the C-PCIM to be performed as efficiently as for
the PCIM, and that leads to a closed-form marginal
likelihood, allowing efficient structure learning.
During structure learning, the C-PCIM learns what event
types in what historical contexts can be modeled by
shared parameters, thereby allowing more efficient use
of data during parameter estimation. In cases where
events are structured, with the different event types
having known attributes, we show how structure
learning can take advantage of these attributes to
distinguish between different event types when their
dependencies differ, while sharing parameters when they do
not. Finally, we give empirical evidence that
demonstrates the value of C-PCIMs in two real applications
which are not well addressed by existing approaches–
modeling the temporal query dynamics of web search
users and modeling the temporal dynamics of system
events in a data center. In the second application, we
demonstrate that the expressive power of C-PCIMs
combined with the data driven learning approach
allows us to relax the strong assumption of identical
machines, yielding further accuracy improvements.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Event streams can be modeled in either discrete or
continuous time. Using discrete time approaches such
as Hidden Markov Models (HMMs) [
        <xref ref-type="bibr" rid="ref1 ref14">1, 14</xref>
        ] and
Dynamic Bayesian Networks (DBNs) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] require event
times to be discretized, which requires a choice of
sampling rate, and with it, trade-offs involving fidelity of
representation, time-span of dependencies, and
computational cost. We avoid this choice, and model
event streams in continuous time. There have been a
number of recent approaches for modeling
continuoustime processes. C-PCIMs, like PCIMs [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], model event
streams as marked point processes, where events have
both an arrival time and a label specifying the type
of event, via conditional intensity functions. A
number of other closely related approaches [
        <xref ref-type="bibr" rid="ref15 ref23 ref24">15, 23, 24</xref>
        ] use
regression techniques such as generalized linear
models, Cox regression and Aalen regression to model
conditional intensity functions. Continuous Time
NoisyOr [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] and Poisson cascades [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] are also approaches
for modeling event streams. These approaches do not
address model selection, and require a parametric form
for temporal dependencies to be specified.
Predictive performance is strongly impacted by this modeling
choice, which is domain dependent [
        <xref ref-type="bibr" rid="ref21 ref22">21, 22</xref>
        ]. There has
also been some recent work on nonparametric Bayesian
approaches for modeling unlabeled event streams [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ].
Continuous Time Bayesian Networks (CTBNs) [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]
and Markov Jump Processes [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] are Markov process
models of the trajectories of discrete variables over
continuous time. In contrast to PCIMs and C-PCIMs,
they are Markov process models. A CTBN can be
used to model an event stream by modeling each kind
of event as a transition of a “toggle” variable [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], and
using latent state variables to model their dynamics,
to give a continuous time analog of an HMM.
Conjoint PCIMs differ from PCIMs in the way that
parameter are shared. Such approaches have been
used in other problems such as for building hidden
Markov models with large state spaces [
        <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
        ], and for
building n-gram language models [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Hierarchical
Gamma-Exponential processes [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] are a hierarchical
nonparametric Bayesian approach to conjoint
modeling in Markov processes such as CTBNs.
Regularization approaches may also be used for conjoint
modeling [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ], although we are unaware of applications to
continuous time event modeling.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>The Model</title>
      <p>We represent an event sequence as y = {(ti, li)}in=1
with 0 &lt; t1 &lt; · · · &lt; tn, where ti ∈ [0, ∞) is the time
of the ith event and li is its label, drawn from a finite
label set L. The history at time t of event sequence y is
the sub-sequence h(t, y) = {(ti, li) | (ti, li) ∈ y, ti ≤ t}.
We write hi for h(ti−1, y) when it is clear from context
which y is meant. By convention t0 = 0. We define
the ending time t(y) of an event sequence y as the time
of the last event in y: t(y) = max ({t : (t, l) ∈ y}) so
that t(hi) = ti−1.</p>
      <p>
        The data x, which is a particular event sequence, is
modeled as a realization of a regular marked point
process [
        <xref ref-type="bibr" rid="ref4 ref6">4, 6</xref>
        ] with likelihood
p(x|θ) =
      </p>
      <p>
        n
Y Y λl(ti|hi, θ)1l(li)e−Λl(ti|hi;θ)
l∈L i=1
(1)
where λl(t|h; θ) is the conditional intensity function [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
for label l, and Λl(t|h; θ) = Rtt(h) λl(τ |h; θ)dτ . We
write 1Z (·) for the indicator function of a set Z and
1z(·) for the indicator of the singleton {z}. Intuitively,
λl(t|h; θ) is the expected rate of events with label l at
time t given the history h. Note that despite the
similarity to the likelihood of a non-homogeneous
Poisson process, this likelihood does not in general define
a Poisson process as the conditioning on history can
cause the independent increments property of Poisson
processes to not hold. The conditioning on the
entire history also means that such processes are
nonMarkovian. Piecewise Constant Conditional Intensity
Models (PCIMs) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] are a particular class of marked
point process where the conditional intensity functions
are restricted to be piecewise constant. In this paper,
we introduce Conjoint PCIMs which are PCIMs that
use a conjoint representation for the conditional
intensity functions. These models are described below.
3.1
      </p>
      <sec id="sec-3-1">
        <title>PCIMs</title>
        <p>
          In this section, we review PCIMs [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. PCIMs are a
class of marked point process where the conditional
intensity function for each label is a piecewise
constant function of time, taking one of a finite number
of values. That is λl(t|y) is piecewise constant in t
for all t &gt; t(y), and takes on values {λls} for s ∈ Σl,
where Σl is a finite label-dependent state set. The
value λls taken on by λl(t|y) at t for each y is specified
by a piecewise constant state function σl(t, y), so that
λl(t|y) = λlσl(t,y).
        </p>
        <p>
          Note that the state s summarizes all the information
about t and y necessary for computing λl(t|y) in that
given s, λl(t|y) can be computed without further
information about t and y. However, unlike in Markov
models such as CTBNs [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], the state does not contain
all the information about t and y for predicting future
states.
        </p>
        <p>As described above, the conditional intensity function
λl(t|y) can be specified by a structure Sl = (Σl, σl(·, ·))
consisting of the state set Σl and the state function
σl(·, ·) and a parameter parameter vector θl composed
of a non-negative intensity λls for each s ∈ Σl. In turn,
a PCIM is specified by a structure S and a parameter
Θ that consist of the per-label structures Sl and
perlabel parameter vectors θl.</p>
        <p>
          Gunawardana et al. show [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] that given the structure
S, a product of Gamma distributions is a conjugate
prior for Θ, and that under this prior, the marginal
likelihood of the data can be given in closed form.
Thus, parameter estimation can be done in closed form
given a structure, and imposing a structural prior
allows a closed form Bayesian score to be computed for
a structure.
        </p>
        <p>
          The structure of a PCIM can be represented by a set
of decision trees [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. In particular, each state function
σl can be represented by a decision tree whose leaves
represent the states s ∈ Σl, as shown in the example
of Figure 1. The decision nodes in each tree contain
functions that map a time t and a history y to one of
its child nodes. These functions are piecewise constant
in time, so that the state function σl(t, y) represented
by a decision tree is also piecewise constant.
Structure learning for each label l is performed by starting
with the trivial tree, and iteratively refining it
greedily based on the closed form Bayesian score mentioned
above. A detailed presentation of this learning
procedure as generalized to C-PCIMs is given in section 4.1.
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Conjoint PCIMs</title>
        <p>Conjoint PCIMs (C-PCIMs), like PCIMs, are marked
point processes where the conditional intensity
function λl(t|y) are piecewise constant and take on a finite
number of values, but unlike in PCIMs, the conditional
intensity functions in C-PCIMs take on values from a
single set of values shared across all labels l ∈ L. Thus
λl(t|y) takes on values {λs} for s ∈ Σ which are shared
across all l. Which of these values is taken on by λl(t|y)
is specified by a C-PCIM state function σ(l, t, y) which
unlike PCIM state functions, is also a function of the
label l whose conditional intensity function is being
evaluated. Thus, λl(t|y) = λσ(l,t,y). C-PCIMs
thereA in
[t-1,t)
no</p>
        <p>yes
λA=0.1</p>
        <p>A in
[t-2,t-1)
no</p>
        <p>yes
λA=10.0</p>
        <p>λA=0.0
B in
[t-1,t)
no</p>
        <p>yes
fore allow an intensity value λs to be shared across
conditional intensity functions for different labels,
possibly at different times and for different histories. Thus,
a C-PCIM is defined by a structure S = (Σ, σ(·, ·, ·))
consisting of a state set Σ and a state function σ(·, ·, ·)
as well as a parameter vector Θ = {λs}s∈Σ, all of which
are shared across labels l ∈ L.</p>
        <p>
          We use a decision tree representation of the structure
S of a C-PCIM. However, instead of using a different
decision tree for each label l as in Gunawardana et
al. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], we use a single tree that is used across all
labels, as shown in the example of Figure 2. The leaves
of the tree represent states s ∈ Σ. However, the
decision nodes of a C-PCIM tree contain functions that
can depend on l as well as on t and y. In
particular, each decision node contains a basis state function
f chosen from a given set B. Each basis state
function f (l, t, y) is piecewise constant in t for each l and
y, and takes values from a finite basis state set Σf .
Thus, a decision node with basis state function f has
a child node corresponding to each s0 ∈ Σf . Since the
basis state functions are defined to be valid piecewise
constant state functions, the mapping from (l, t, y) to
l in
[t-1,t)
no
yes
        </p>
        <p>l in
[t-2,t-1)
no</p>
        <p>yes
λl=0.1
λl=10.0
λl=0.0
l = A
no</p>
        <p>yes</p>
        <p>yes
λl=0.0</p>
        <p>
          λl=0.1
In this section, we directly generalize the parameter
and structure learning approaches for PCIMs [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] to
apply to C-PCIMs. For C-PCIMs, the likelihood of
equation (1) can be written as
p(x|S, Θ) =
        </p>
        <p>Y λcs(x)e−λsds(x)</p>
        <p>s
s∈Σ
(2)
where ds(x) and cs(x) are sufficient statistics of the
data. ds(x) is the total duration spent in state s, i.e.,
that σ(l, t, h(t, x)) = s for some l. cs(x) is the number
of times a label l occurs in x when the state function
maps to state s for label l. Formally,
ds(x) =
cs(x) =</p>
        <p>X Z t(x)
l∈L 0
X 1l (li) 1s (σ(l, ti, hi)) .</p>
        <p>i</p>
        <p>1s (σ (l, τ, h (τ, x))) dτ
Note that since σ(l, τ, h) in the integral above is
piecewise constant in τ , the integral reduces to a sum over
the constant pieces of σ(l, τ, h).</p>
        <p>A product of Gamma priors on λs is conjugate for Θ.
The corresponding prior and the posterior densities for
λs are given by</p>
        <p>βα
p(λs|α, β) = Γ(α) λsα−1e−βλs
p(λs|α, β, x) = p (λs|α + cs(x), β + ds(x)) .
leaves given by the tree is also a valid piecewise
constant state function σ(l, t, y).</p>
        <p>In our experiments, we obtain the point estimate Θˆ =
E[Θ|S, x] from the training data, given by
λˆs =
α + cs(x)
β + ds(x)
.
4.1</p>
      </sec>
      <sec id="sec-3-3">
        <title>Structure Learning</title>
        <p>For structure learning, we can write the marginal
likelihood of the data x given the structure S in closed
form as
p(x|S) = Y
s∈Σ |
βα Γ(α + cs(x))
Γ(α) (β + ds(x))α+cs(x)</p>
        <p>}
γs{(zx)
.</p>
        <p>
          As with PCIMs, we use a Bayesian decision tree
building procedure [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] in order to learn the structure S. We
begin with the trivial structure Σ = s0, σ(l, t, y) = s0
with only the root node s0, and refine the structure
S by iteratively splitting leaves s ∈ Σ based on basis
state functions f ∈ B. In particular Given a current
structure S = (Σ, σ), a new structure S0 = (Σ0, σ0) is
produced by selecting a state s ∈ Σl and a basis state
function f ∈ B and refining s based on f as follows:

Σ0l = 
        </p>
        <p>[
s0∈Σf
{s</p>
        <p>
s0} ∪ Σl\s
σ0(l, t, y) =
(s f (l, t, y) if σ(l, t, y) = s</p>
        <p>σ(l, t, y) otherwise
where is the concatenation operator. Thus, S0 can
be represented as a tree where leaf s of the sub-tree S
has been split according to the result of f .</p>
        <p>In order to select the state s and basis state function
f to use in producing a refined structure S0 from S,
we define a factored prior</p>
        <p>p(S) ∝ κ|Σ|
on the structure S. The posterior probability of a
structure S given the data x is then proportional to
p(S)p(x|S) = Qs∈Σ κγs(x), which can be computed in
closed form. Thus, the gain in p(S|x) due to splitting
state s using basis state function f is</p>
        <p>Gain(S → S0) =
p(S0|x)
p(S|x)
= QQs0s∈∈ΣΣ0 κκγγss(0 x(x))
=</p>
        <p>Qs0∈Σf κγs s0 (x)
κγs(x)
.</p>
        <p>We refine the structure greedily, choosing the
refinement with the highest gain, until no further gain
results.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Basis State Functions for C-PCIMs</title>
      <p>using this trivial identity attribute.</p>
      <p>The modeling power of a family of C-PCIM is
determined by the basis B of state functions selected. The
basis needs to capture the aspects of the history that
determine the intensities of events, and need to
distinguish labels with different intensities. In addition,
the basis needs to allow the sharing of parameters
between labels to allow for generalization of event
behavior between labels. This is particularly important
in problems where some labels occur rarely. We will
give basis state functions that take advantage of known
structure in the label sets in order to do this. We first
describe how we capture label space structure through
label attributes, and then give an ontology of basis
state functions that make use of this structure.
5.1</p>
      <sec id="sec-4-1">
        <title>Structured Labels</title>
        <p>
          When the labels have a known structure, we will take
advantage of it in order to define models that can learn
dependencies between events with labels that may be
rare, or even not occur in the training data. For
example, in data center system event logs, events may
be labeled with the machine on which the event took
place and the type of the event. An event of type
disk-sector-error may occur on machine 9,045.
While we may have never observed a disk sector error
on a different machine 6,732, we may wish to allow
the structure learning procedure to determine whether
the behavior of disk-sector-error events generalizes
across machines. Thus, we would like the basis state
functions to be able to query for the message
represented by a label independently of the machine.
In general, we assume that the label set L has a
set of attributes A, where each attribute a ∈ A
can take values in a set Va. Label l takes on
value va(l) of attribute a. In the example above,
A = {machine-id, event-type}, and Vmachine-id
ranges over all the machines in the data center, and
Vevent-type ranges over all possible events. If prior
information about the labels is available, it may be
encoded through label attributes. For example, if we
know a priori that machines in the data center are
grouped into database servers and web servers, we
could introduce an attribute server-type that takes
on values Vserver-type{database, web}. On the other
hand, we can access label identity as an attribute
by using the attribute identity with Videntity = L,
videntity(l) = l. In the descriptions below, we will
therefore always assume that there are label attributes
defined. In cases where no structural information is
available we will simply use A = {identity}. In
particular, the basis state functions for PCIMs [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] do not
explicitly use label attributes, but can be described as
5.2
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Types of Basis State Functions</title>
        <p>Allowing large classes of basis state functions that
depend arbitrarily on both the history and time as well
as the label is difficult computationally. We therefore
restrict attention to three specific classes of basis state
functions in this paper.</p>
        <p>History Basis State Functions: A history basis
state function f (l, t, y) depends only on the history y
and the time t and not the label l. In this paper,
we concentrate on a particular class of history basis
state functions fa,v,d1,d2 (l, t, y) indexed by an attribute
a ∈ A, a value v ∈ Va and time offsets d2 &gt; d1 ≥ 0,
and given by
fa,v,d1,d2 (l, t, y) =
1




0 otherwise.</p>
        <p>if ∃(t0, l0) ∈ y :
t0 ∈ [t − d2, t − d1)
∧ va(l0) = v
That is fa,v,d1,d2 (l, t, y) tests if the history y contains
an event in the time window between d1 and d2 before
t, whose label has the value v of attribute a.
Example. In modeling web search query
logs, the history basis state function
fquery-category,Health,1 hr,1 day(l, t, y) tests whether
y contains a query whose query-category attribute
is Health between 1 hour and 1 day before t.
Label Basis State Functions: A label basis state
function f (l, t, y) depends only on the label l and not
the time t nor the history y. A label basis state
function is fa,v(l, t, y) is indexed by an attribute a ∈ A, a
value v ∈ Va and is given by
fa,v(l, t, y) =
(1 if va(l) = v
0 otherwise.</p>
        <p>That is fa,v(l, t, y) simply tests whether the attribute
a of label l has value v.</p>
        <p>Example. The label basis
fquery-category,Health(l, t, y) tests
query-category attribute Health.</p>
        <p>state
whether
function
l has</p>
      </sec>
      <sec id="sec-4-3">
        <title>Match Basis State Functions:</title>
        <p>function fa,d1,d2 (l, t, y) is given by
A match basis
fa,d1,d2 (l, t, y) =
1




0 otherwise.</p>
        <p>if ∃(t0, l0) ∈ y :
t0 ∈ [t − d2, t − d1)
∧ va(l0) = va(l)
In other words, the match basis state function tests
whether the history y contains an event in the time
window between d1 and d2 before t, whose label
matches l in attribute a. This kind of basis state
function is useful in modeling repetitions of a given
attribute in an event stream.</p>
        <p>
          Example. The basis state function
fquery-category,1 hr,1 day(l, t, y) tests whether y
contains a query with the same query-category
attribute as l between 1 hour and 1 day before t.
We note that history basis state functions are
equivalent to the history basis functions of PCIMs [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] when
the attribute a is restricted to be the identity
attribute described above. Thus, a PCIM can be
represented as a C-PCIM that uses only the identity
attribute, and whose state function uses a tree that
first splits based on every possible label basis state
function, and then uses only history basis state
functions. We use the term Attribute PCIM (A-PCIM)
to refer to the slight generalization of PCIMs that
allows the history basis state functions to use arbitrary
attributes.
6
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Experimental Results</title>
      <p>
        In this section we evaluate the value of C-PCIMs on
two real world tasks with large structured label spaces.
The first is to model the query behavior of web search
users, and the second is to model the behavior of a
cluster of machines in a commercial data center.
In order to evaluate the value of C-PCIMs in
modeling event streams with large label spaces, we
compare C-PCIMs to PCIMs. To explore the gains due
to conjoint modeling as opposed to the use of richer
label attributes in modeling, we also compare to
APCIMs. It has been shown that PCIMs have better
computational and predictive performance in
comparison to Poisson networks [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], which model conditional
intensity functions using generalize linear models. We
therefore do not compare to Poisson networks and
other closely related approaches that use regression
techniques to model the conditional intensity
functions [
        <xref ref-type="bibr" rid="ref23 ref24">23, 24</xref>
        ]. CTBNs with “toggle” variables
modeling events and latent variables modeling dynamics
are a natural baseline for continuous time event
modeling. We explored building such models using the
CTBN-RLE toolkit [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], but the current version does
not scale to these data sets [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ].
6.1
      </p>
      <sec id="sec-5-1">
        <title>Web Search Query Behavior</title>
        <p>Queries issued by the users of a major commercial
search engine were used to generate a training set
consisting of approximately 100,000 queries collected
-4
5) -5
0
(x1 -6
d
o
iho -7
l
e
ikL -8
g
oL -9
-10
1%</p>
        <p>10%
Training Set Size</p>
        <sec id="sec-5-1-1">
          <title>PCIM A-PCIM C-PCIM 100%</title>
          <p>from approximately 6,000 users over a two month
period and a test set consisting of approximately 170,000
queries from approximately 6,000 users over the next
month. There was no user or time overlap between the
training and test sets. The test set was restricted to
contain only users whose query history was available
for at least two weeks. The queries were
automatically mapped to a two level hierarchy of categories
such as Health &amp; Wellness/Mental Health. Thus,
our label set consisted of the 476 categories in the
hierarchy, while the 37 coarse level categories were used
as a second (i.e. non-identity) attribute, which we
name coarse. All labels occurred in the training set.
We use a product of terms of the form of equation (1),
one per user, to model the data, choosing not to model
inter-user dependencies. We investigated three model
classes for modeling users’ query behavior. First, we
built PCIMs which used only history basis state
functions using the identity attribute (i.e. the history
basis functions only tested for the occurrence of
specific labels in the history). Second, we built A-PCIMs
that were also allowed to use the coarse attributes in
the history basis functions. Third, we built C-PCIMs
that also used label basis state functions that used
the identity and coarse attributes and match state
functions that used the identity attribute. Match
state functions using the coarse attribute were not
allowed due to reduce the computation time. All
models used a prior with α = 1/365 and β = 1 day, and
κ = 0.001. The history and match basis state functions
used the time windows [t − 1 hr, t), [t − 1 day, t − 1 hr),
[t − 7 days, t − 1 day), and (∞, t − 7 days). All
models took less than 12 hours to train on a single 3 GHz
workstation.</p>
          <p>Figure 3 shows the test set log likelihood of all three
models as the amount of training data is varied. The
log likelihoods of the PCIM and A-PCIM are nearly
indistinguishable, while the C-PCIM performs much
better, especially with smaller amounts of training
data. This is the expected behavior, since C-PCIMs
are better able to share parameters. Note that since
C-PCIMs, A-PCIMs, and PCIMs define the same
family of marked point processes, we expect them to
approach the same predictive performance as the training
set grows. While the gap between C-PCIMs and
APCIMs/PCIMs does shrink as the amount of training
data grows, C-PCIMs have higher training set
likelihood even when all the training data is used. We
examined the likelihoods assigned to each test event
by the C-PCIM and the A-PCIM trained with the full
training set, in order to determine the statistical
significance of this gap. We grouped the per-event
likelihoods by label, and found that the C-PCIM
significantly outperforms the A-PCIM (p = 0.01) on 391
out of the 436 labels observed in the test set, while
under-performing the A-PCIM on none, according to
a paired sign test.</p>
          <p>
            To understand the practical impact of the
likelihood gains, we used importance sampling [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ] to
forecast whether each test user would issue Health &amp;
Wellness/Mental Health queries on the eighth day
in the test set given their behavior in the first week.
Precision-recall curves for the three models are given
in Figure 4. Although there are only eight test users
who issued these queries on that day, C-PCIMs make
much better predictions than A-PCIMs and PCIMs.
Such predictions are useful in applications such as
targeted display (banner) advertising, where an
advertiser may only wish their advertisements to be shown
to web users who are interested in a topic related to
their advertisement. The assumption is that users who
will issue a query in a particular category during the
day may be more receptive to advertisements related
to that category during that day.
6.2
          </p>
        </sec>
      </sec>
      <sec id="sec-5-2">
        <title>Data Center Machine Behavior</title>
        <p>System logs from a cluster of machines in a
commercial data center were used to generate a data set of
about 300,000 logged system events from 71 machines,
over the period of a month. There were 221 possible
messages. This gave 15,691 possible labels, each of
which was a machine-message combination. Each
machine belonged to one of four machine types that was
known a priori. Thus, each label had four attributes
{machine, message, machine-type, identity}. The
first two weeks of data was used for training, and the
rest for testing.</p>
        <p>We use a product of terms of the form of equation (1),
one per machine, to model the data, choosing to not
allow inter-machine dependencies. We experimented
with using the power of C-PCIMs to allow machine
specific dependencies. In particular, we compare a
PCIM and a C-PCIM that treat machines identically
with a PCIM and a C-PCIM that allow machine
specific dependencies. Non-identical modeling of
machines may be useful if, for example, a certain machine
is old is more prone to failures. Models that treat
machines identically are allowed to use only the message
attributes of labels. The PCIM that treats machines
identically is forced to use the same conditional
intensity function for all labels that agree on their message
attributes, pooling data from these labels during
training. Note that in this setting, PCIMs and A-PCIMs
are equivalent in both the identical machine and
nonidentical machine cases.</p>
        <p>All models used the prior α = 0.01, β = 1.0 day, and
κ = 0.01. The C-PCIM trees were truncated at a
depth of 30 to save computation. The history and
match basis state functions used the time windows [t−
20 min, t) and [t − 1 hr, t − 20 min). The models took
less than 2 hours to train, except the non-identical
machine PCIM, which learned a separate tree for each
of the 5,307 labels present in the training data. This
took less than 12 hours.</p>
        <p>Figure 5 shows the log likelihood of events after the
first two weeks given the events of the first two weeks
for all four models. Note the log likelihoods can be
positive since the likelihoods are density values and
not probabilities. It can be seen that building separate
PCIMs for each label, without pooling data across
machines for each message results in a large loss in test
set likelihood, due to data sparsity. Both C-PCIMs
outperform the PCIMs. Note that the identical
machine C-PCIM only has access to message information,
and therefore does not have access to any label
struc</p>
        <sec id="sec-5-2-1">
          <title>PCIM</title>
          <p>(ident)</p>
          <p>PCIM
(non-ident)</p>
          <p>C-PCIM
(ident)</p>
          <p>C-PCIM
(non-ident)
ture. However, it gives a large gain over PCIMs due
to the use of match basis state functions, which model
repeated events. The ability of the non-identical
machine C-PCIM to leverage label structure to learn
dependencies specific to machines or machine types leads
to a further gain in likelihood. Unfortunately, events
of interest such as machine failures are very rare in
this data set, so that there are not enough test cases
to obtain statistically significant comparisons between
C-PCIMs and PCIMs.
7</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusions</title>
      <p>We have introduced Conjoint PCIMs, and shown how
they improve upon PCIMs in modeling the
dynamics of two real world event streams with large
structured label sets. We have shown how conjoint
modeling across labels allows better models to be built from
sparse data, and how C-PCIMs can leverage known
structure in the label space. We have also shown that
the predictive gains of C-PCIMs are not achieved by
Attribute PCIMs that leverage label structure but do
not use conjoint modeling.</p>
      <p>While it would be of interest to compare the
performance of C-PCIMs with other approaches such as
CTBNs, limitations in the currently available CTBN
implementation prevented us from doing so. It would
also be interesting to investigate approaches that
extend CTBNs to allow them to take advantage of label
structure in the manner of C-PCIMs. Another future
direction of interest is to investigate other extensions
of PCIMs that allow parameter sharing across labels,
such as hierarchical Bayesian approaches or
regularization approaches.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Leonard</surname>
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Baum</surname>
            and
            <given-names>Ted</given-names>
          </string-name>
          <string-name>
            <surname>Petrie</surname>
          </string-name>
          .
          <article-title>Statistical inference for probabilistic functions of finite state Markov chains</article-title>
          . Ann. Math. Stat.,
          <volume>37</volume>
          (
          <issue>6</issue>
          ):
          <fpage>1554</fpage>
          -
          <lpage>1563</lpage>
          ,
          <year>December 1966</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Emery</surname>
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Brown</surname>
            , Robert E. Kass, and
            <given-names>Parth P.</given-names>
          </string-name>
          <string-name>
            <surname>Mitra</surname>
          </string-name>
          .
          <article-title>Multiple neural spike train data analysis: state-of-the-art and future challenges</article-title>
          .
          <source>Nature Neuro.</source>
          ,
          <volume>7</volume>
          (
          <issue>5</issue>
          ),
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>David</given-names>
            <surname>Maxwell</surname>
          </string-name>
          <string-name>
            <surname>Chickering</surname>
          </string-name>
          , David Heckerman,
          <string-name>
            <given-names>and Christopher</given-names>
            <surname>Meek</surname>
          </string-name>
          .
          <article-title>A Bayesian approach to learning Bayesian networks with local structure</article-title>
          .
          <source>In UAI</source>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D. J.</given-names>
            <surname>Daley</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Vere-Jones</surname>
          </string-name>
          .
          <article-title>An Introduction to the Theory of Point Processes: Elementary Theory and Methods</article-title>
          , volume I. Springer, 2nd edition,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Dean</surname>
          </string-name>
          and
          <string-name>
            <given-names>Keiji</given-names>
            <surname>Kanazawa</surname>
          </string-name>
          .
          <article-title>Probabilistic temporal reasoning</article-title>
          .
          <source>In AAAI</source>
          ,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Vanessa</given-names>
            <surname>Didelez</surname>
          </string-name>
          .
          <article-title>Graphical models for marked point processes based on local independence</article-title>
          .
          <source>J. Roy. Stat. Soc.</source>
          ,
          <string-name>
            <surname>Ser</surname>
          </string-name>
          . B,
          <volume>70</volume>
          (
          <issue>1</issue>
          ):
          <fpage>245</fpage>
          -
          <lpage>264</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>N.</given-names>
            <surname>Friedman</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Nachman</surname>
          </string-name>
          , and
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>Pe´er. Using Bayesian networks to analyze expression data</article-title>
          .
          <source>J. Comp. Bio.</source>
          ,
          <volume>7</volume>
          :
          <fpage>601</fpage>
          -
          <lpage>620</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Asela</given-names>
            <surname>Gunawardana</surname>
          </string-name>
          , Christopher Meek, and
          <string-name>
            <given-names>Puyang</given-names>
            <surname>Xu</surname>
          </string-name>
          .
          <article-title>A model for temporal dependencies in event streams</article-title>
          .
          <source>In NIPS</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Mei-Yuh Hwang</surname>
            and
            <given-names>Xuedong</given-names>
          </string-name>
          <string-name>
            <surname>Huang</surname>
          </string-name>
          .
          <article-title>Shareddistribution hidden Markov models for speech recognition</article-title>
          .
          <source>IEEE Trans. Spch. &amp; Aud. Proc.</source>
          ,
          <volume>1</volume>
          (
          <issue>4</issue>
          ):
          <fpage>414</fpage>
          -
          <lpage>420</lpage>
          ,
          <year>October 1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Mei-Yuh</surname>
            <given-names>Hwang</given-names>
          </string-name>
          , Xuedong Huang, and
          <string-name>
            <surname>Fileno</surname>
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Alleva</surname>
          </string-name>
          .
          <article-title>Predicting unseen triphones with senones</article-title>
          .
          <source>IEEE Trans. Spch. &amp; Aud. Proc.</source>
          ,
          <volume>4</volume>
          (
          <issue>6</issue>
          ):
          <fpage>412</fpage>
          -
          <lpage>419</lpage>
          ,
          <year>November 1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Slava</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Katz</surname>
          </string-name>
          .
          <article-title>Estimation of probabilities from sparse data for the language model component of a speech recognizer</article-title>
          .
          <source>IEEE Trans. Acoust</source>
          .,
          <string-name>
            <surname>Spch</surname>
            <given-names>.</given-names>
          </string-name>
          , &amp; Sig..
          <source>Proc., ASSP-35</source>
          (
          <issue>3</issue>
          ):
          <fpage>400</fpage>
          -
          <lpage>401</lpage>
          ,
          <year>March 1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Uri</surname>
            <given-names>Nodelman</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Christian R. Shelton</surname>
            , and
            <given-names>Daphne</given-names>
          </string-name>
          <string-name>
            <surname>Koller</surname>
          </string-name>
          .
          <article-title>Learning continuous time Bayesian networks</article-title>
          .
          <source>In UAI</source>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Adam</given-names>
            <surname>Oliner</surname>
          </string-name>
          and
          <string-name>
            <given-names>Jon</given-names>
            <surname>Stearley</surname>
          </string-name>
          .
          <article-title>What supercomputers say - an analysis of five system logs</article-title>
          .
          <source>In IEEE/IFIP Conf. Dep. Sys. Net.</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Lawrence</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Rabiner</surname>
          </string-name>
          .
          <article-title>A tutorial on hidden Markov models and selected applications in speech recognition</article-title>
          .
          <source>Proc. IEEE</source>
          ,
          <volume>77</volume>
          (
          <issue>2</issue>
          ):
          <fpage>257</fpage>
          -
          <lpage>286</lpage>
          ,
          <year>February 1989</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Shyamsundar</surname>
            <given-names>Rajaram</given-names>
          </string-name>
          , Thore Graepel, and
          <string-name>
            <given-names>Ralf</given-names>
            <surname>Herbrich</surname>
          </string-name>
          .
          <article-title>Poisson-networks: A model for structured point processes</article-title>
          .
          <source>In AIStats</source>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>Vinayak</given-names>
            <surname>Rao</surname>
          </string-name>
          and
          <article-title>Yee Whye Teh. Fast MCMC sampling for Markov jump processes and continuous time Bayesian networks</article-title>
          .
          <source>In UAI</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Vinayak</given-names>
            <surname>Rao</surname>
          </string-name>
          and
          <article-title>Yee Whye Teh</article-title>
          .
          <article-title>Gaussian process modulated renewal processes</article-title>
          .
          <source>In NIPS</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>Ardavan</given-names>
            <surname>Saeedi</surname>
          </string-name>
          and
          <article-title>Alexandre Bouchard-Cˆot´e. Priors over recurrent continuous time processes</article-title>
          .
          <source>In NIPS</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <surname>Christian</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Shelton</surname>
          </string-name>
          . Personal communication,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <surname>Christian</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Shelton</surname>
            , Yu Fan,
            <given-names>William</given-names>
          </string-name>
          <string-name>
            <surname>Lam</surname>
            ,
            <given-names>Joon</given-names>
          </string-name>
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>and Jing</given-names>
          </string-name>
          <string-name>
            <surname>Xu</surname>
          </string-name>
          .
          <article-title>Continuous time Bayesian network reasoning and learning engine</article-title>
          .
          <source>JMLR</source>
          ,
          <volume>11</volume>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <surname>Aleksandr</surname>
            <given-names>Simma</given-names>
          </string-name>
          , Moises Goldszmidt, John MacCormick, Paul Barham, Richard Brock, Rebecca Isaacs, and
          <string-name>
            <given-names>Reichard</given-names>
            <surname>Mortier</surname>
          </string-name>
          .
          <article-title>CT-NOR: Representing and reasoning about events in continuous time</article-title>
          .
          <source>In UAI</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>Aleksandr</given-names>
            <surname>Simma</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael I.</given-names>
            <surname>Jordan</surname>
          </string-name>
          .
          <article-title>Modeling events with cascades of Poisson processes</article-title>
          .
          <source>In UAI</source>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>Wilson</given-names>
            <surname>Truccolo</surname>
          </string-name>
          , Uri T. Eden,
          <string-name>
            <surname>Matthew R. Gellows</surname>
          </string-name>
          , John P. Donoghue, and
          <string-name>
            <surname>Emery</surname>
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Brown</surname>
          </string-name>
          .
          <article-title>A point process framework relating neural spiking activity to spiking history, neural ensemble, and extrinsic covariate effects</article-title>
          .
          <source>J. Neurophysiol.</source>
          ,
          <volume>93</volume>
          :
          <fpage>1074</fpage>
          -
          <lpage>1089</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <surname>Duy</surname>
            <given-names>Q.</given-names>
          </string-name>
          <string-name>
            <surname>Vu</surname>
            , Arthur U. Asuncion,
            <given-names>David R.</given-names>
          </string-name>
          <string-name>
            <surname>Hunter</surname>
            , and
            <given-names>Padhraic</given-names>
          </string-name>
          <string-name>
            <surname>Smyth</surname>
          </string-name>
          .
          <article-title>Continuous-time regression models for longitudinal networks</article-title>
          .
          <source>In NIPS</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>M.</given-names>
            <surname>Yuan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Lin</surname>
          </string-name>
          .
          <article-title>Model selection and estimation in regression with grouped variables</article-title>
          .
          <source>J. Roy. Stat. Soc.</source>
          ,
          <string-name>
            <surname>Ser</surname>
          </string-name>
          . B,
          <volume>68</volume>
          (
          <issue>1</issue>
          ):
          <fpage>49</fpage>
          -
          <lpage>67</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>