Elamur Research

Statistical User Simulation with a Hidden Agenda

Paper · 2007 · Jost Schatzmann, Blaise Thomson and Steve Young

Summary

A person asking a tourist information service for a venue may have several things to say and several things to find out. A question from the service can change what the person says next without changing what they still need. A simulator for training dialogue systems has to sustain that distinction across a conversation. The paper represents it with a goal, which records the user's constraints and information needs, and an agenda, which orders the actions the user might take to meet those needs. The difficulty is that a recorded conversation reveals the actions the user took while leaving the agenda that produced them hidden.

The authors show how to estimate the simulator's probabilities from human–computer dialogues. They first reduce the number of probabilities to learn by grouping similar situations and responses. A confirmation that agrees with the user's goal, for example, can be treated as the same kind of event across different slots and values. They then build a tree of possible agendas for each conversation. A system action can open several branches, and the next observed user action eliminates branches that could not have produced it. A forward and backward pass weighs the surviving possibilities using the whole conversation. Those weights become fractional counts for updating the probabilities, and the process repeats.

Training used 160 tourist information dialogues collected with the Hidden Information State Dialogue System. The utterances were transcribed and labelled with dialogue acts, such as requests and confirmations. No one had to label the internal state of the simulated user at each turn. In a comparison using the same dialogue manager and user goal specifications, the trained simulator produced a mean dialogue length of 3.38 turns, compared with 3.30 for real users and 4.04 for the handcrafted baseline. It also came closer to the human averages for recommending a correct venue and for a score that rewards correct recommendations and charges for dialogue turns.

The results establish that recorded dialogue acts can guide estimation even when the agenda is hidden and too large to enumerate in advance. The evaluation measures resemblance on a small set of dialogue statistics. Whether the trained simulator also produces a better dialogue policy for real users remained an open question.

Deep dive: Statistical User Simulation with a Hidden Agenda

This paper shows how to learn a user simulator from recorded dialogues by inferring the hidden agenda behind each user's spoken actions. · about 40 minutes to read

The problem and its context

Why train a dialogue manager with a simulator?

A dialogue manager decides what a system should do next. In the tourist information setting, it might request a constraint, confirm something it believes the user has said, or recommend a venue. A statistical approach makes it possible to specify success with a reward and learn a policy, a rule for choosing actions in context, from experience. A system can then face a tradeoff directly. Asking another question costs time, while recommending a venue too soon may lead to a wrong answer. The reward specifies how those outcomes are valued. Experience is needed to learn which choice tends to work under which circumstances.

The authors describe a shortage of suitably annotated conversations from the relevant domain. The experience needed to train a dialogue manager can exceed what is available in a recorded corpus by several orders of magnitude. The usual response, as the paper describes it, is to divide the work into stages. A limited collection of human–computer dialogues supplies evidence about how users behave. A simulator then takes the user's part in further dialogues while the manager learns by interacting with it. That arrangement allows the manager to encounter situations generated by its own choices, including choices that need not occur in the original recordings.

The simulator therefore has a demanding job. It has to respond to a manager whose policy may initially choose actions with little regard for the task. A recording can show how a person answered a particular system question. It offers much less direct guidance about what a person would do after a different or irrelevant question at the same point. The authors argue that a user who still has a goal and a set of pending actions can continue to pursue the task under those conditions. In their account, this ability matters both when the learning manager behaves erratically and when recognition errors disrupt an otherwise sensible exchange.

A simulator also needs to distinguish an interruption from the end of a task. If the system asks for a price range and then makes a mistake about a different requirement, a person may correct the mistake first and supply the price range later. What belongs in the later turn depends on an earlier request and on whether it was answered in the meantime. A simulator that depends on a short window of recent acts may lose access to the earlier request. The paper notes that using a longer n-gram context can retain more of that history, at the cost of estimating probabilities for longer histories from limited evidence. An agenda retains the outstanding action explicitly for as long as it remains relevant.

What the earlier agenda approach supplied

The design extends Agenda-Based User Simulation for Bootstrapping a POMDP Dialogue System, which represented the user's objective and pending dialogue actions separately. The earlier work supplied handcrafted parameters and used the simulator to bootstrap a prototype. That was a practical starting point when dialogue data were unavailable. With recordings in hand, the next question was how to make the probabilities reflect observed human behaviour and reduce the work of choosing them by hand. The paper takes up the estimation problem while retaining the earlier representation of goal and agenda.

The authors also trace the agenda idea to earlier approaches in which a dialogue manager organised its own pending work around an agenda. Giving an agenda to the simulated user serves a different role within the interaction. It represents what the person still intends to communicate or obtain, including items that have yet to become visible to the system. The dialogue manager and the simulation can consequently carry different information about the very same exchange. A service may think it has answered a question, while the simulated user's agenda can still contain an action concerning that information.

State-based user simulation had previously dealt with hidden user state by supplying observable dialogue state annotations and predicting user behaviour from those annotations. In that workflow, the dialogue state is an externally recorded description of where the exchange stands. The paper identifies the work involved in creating such labels by hand, including the difficulty of obtaining agreement among annotators. Automatic annotation can reduce the effort of labelling the conversations, but the tool itself takes time to develop. The authors keep labels for the communicative acts and infer the state sequence from them. Knowing that someone asked for an address gives evidence about what the user did at that turn. It leaves open how long the request had been pending, what else was pending, and in what order.

Why hidden state makes the estimation difficult

If every agenda change were visible, the authors could count how frequently a given system action prompted a given addition to the agenda. The observable conversation does not provide those counts. A user may utter an action that was present from the beginning, or the same action may have been added in response to something the system just did. Several sequences of internal actions can lead to the same turn. Even a complete transcript therefore leaves more than one candidate account of how the simulator could have generated it.

There are also separate questions about the size of the problem. The simulator needs probabilities for what to add to the agenda in different circumstances. A table indexed by every complete agenda, system act and goal would require too many entries. During training, the algorithm also needs to consider which agendas could have occurred at particular points in a particular conversation. A small probability table by itself would still leave many possible agendas. The authors address the first issue by sharing probabilities across recurring kinds of situation and the second by constructing only the state paths that each conversation can support.

The method, step by step

What the simulator observes and remembers

The paper works at the level of the dialogue act, a representation of the communicative action performed by an utterance. An act has a type, such as inform or request, and can contain items specifying slots and values. A slot names an attribute, such as food, and a value gives its content, such as Chinese. A request can identify a slot whose value the user wants to learn. This use of meaning representation allows the same procedure to handle utterances that carry the same information in different words. The data for estimation are sequences of user and machine acts. The simulator's output in these experiments is represented at that same level.

A goal records what would satisfy the user. Its constraints describe a suitable venue, such as a bar in a central location that serves beer. Its requests name information the user wants about that venue, such as its name, telephone number and address. A request can be unfilled at one point and have a value later. The agenda records communicative actions that are still pending. It can contain requests derived from the initial goal, statements about its constraints and actions added to handle things the system does during the conversation.

Learning the hidden agenda from dialogue acts

The steps in order.

Learning the hidden agenda from dialogue actsStep 1: Initialise candidate agendas from the user goal1. Initialise candidate agendas from the user goalStep 2: Read the next system act2. Read the next system actStep 3: Branch on possible additions to each agenda3. Branch on possible additions to each agendaStep 4: Keep branches that produce the observed user act4. Keep branches that produce the observed user actStep 5: Weigh transitions using the complete dialogue5. Weigh transitions using the complete dialogueStep 6: Update probabilities from expected transition counts6. Update probabilities from expected transition counts

The state representation separates the agenda from the goal.

S = (A, G)

S is the user state at a particular point, A is its ordered agenda and G is its goal. The parentheses group the agenda and goal as parts of the same state.

G = (C, R)

C is the collection of constraints on the venue and R is the collection of requests for information about it. There is no order among constraints or among requests in the goal, and neither collection contains duplicates. Once these are translated into pending acts on the agenda, their order matters because it determines which actions can be issued first.

For simulation, the procedure randomly generates an initial goal using the system database. It creates an inform act for each constraint and a request act for each piece of desired information. A bye act goes at the bottom. During interaction, the simulator uses the top of the agenda to decide what to say and can add or remove items as the conversation develops. The training procedure uses the goal specification to construct candidate initial agendas. Its uncertainty about their initial order is represented explicitly.

A stack offers a straightforward way to understand the memory in this design. A higher-priority action goes on top of work already pending. When the simulator has issued that act, the older action can become available again. In the paper's example, a system question about price range in turn 1 puts inform(prange=cheap) on the agenda. The simulated user issues negate(drinks=beer) before it and only supplies the price information in turn 3. The intervening action changes what is at the top of the stack. The price response survives underneath.

How a user turn changes the state

The cycle can be written beginning immediately before the simulated user acts.

S → aᵤ → S′ → aₘ → S″ → …

S is the state used to produce the user act aᵤ. S′ is the state after that act has been issued. The machine act aₘ then leads to S″, the state from which the next user act can be produced. The arrows show the order of actions and states, and the ellipsis indicates continuation. The training records are arranged as machine acts followed by user acts. The same alternating process is being described from a different starting position in the cycle.

The state is Markovian in the paper's formulation. For the purpose of choosing the next action or updating the state, the simulator uses the current state and the appropriate incoming action. Earlier dialogue can still matter through the current agenda and goal. In the price example, the agenda holds the consequence of the earlier system question even when that question is no longer the most recent event. The design therefore places a specific memory inside the state used for prediction.

The user action selection step chooses how many pending acts to issue. For a fixed agenda and a given choice of that number, the contents of the user response are fixed by their position on the stack.

P(aᵤ | S) = δ(aᵤ, A[N − n + 1..N]) P(n | A, G)

P denotes a probability and the vertical bar reads as “given.” N is the agenda length and n is the number of items selected from the top. The slice A[N − n + 1..N] contains the selected items, with the dots indicating an inclusive range of positions. The top is at position N and the bottom at position 1. The indicator δ(p, q) is 1 when its arguments p and q agree and is zero otherwise. The indicator checks that aᵤ really is the selected segment. P(n | A, G) supplies the probability for choosing that segment's length. This is the probability for an act with the indicated item count.

Once the selected acts have been issued, the lower portion of the agenda becomes the intermediate agenda.

A′[i] := A[i] for i ∈ [1..N′], with N′ = N − n

A′ is the agenda after the user turn and N′ is its length. i ranges over the positions retained from the old agenda, beginning at its bottom. The symbol ∈ means membership in the range, and := defines the new entries. The formula says that each retained entry keeps its previous contents.

Issuing an act also leaves the goal as it was. The intermediate state is consequently determined by the old state and the emitted act.

P(S′ | aᵤ, S) = P(A′, G′ | aᵤ, A, G) = δ(A′, A[1..N′]) δ(G′, G)

G′ is the goal after the user acts, and the other variables describe the original and intermediate states and the act connecting them. The first indicator requires the new agenda to equal the retained slice. The second requires the goal to stay the same. Their product assigns all probability to the intermediate state that satisfies both requirements. For training, the effect is that an observed user action can eliminate an agenda as a candidate without introducing a separate table of probabilities for what remains after the pop.

How the machine turn changes the goal and agenda

The machine act can supply information, ask for more, or prompt a correction. The authors factor its effect into an update to the goal and an update to the agenda.

P(S″ | aₘ, S′) = P(A″ | aₘ, A′, G″) P(G″ | aₘ, G′)

A″ and G″ are the agenda and goal after the machine act. A′ and G′ are their values just before it. The rightmost factor gives the probability of the new goal using the machine act and previous goal. The other factor gives the probability of the new agenda using the machine act, previous agenda and updated goal. In particular, the agenda update can take account of information that the system has just supplied. The simulator can also prepare a correction when that information conflicts with the goal.

The implemented goal update separates the constraints and requests. With the independence assumptions in the paper, it has this factorisation.

P(G″ | aₘ, G′) = P(R″ | aₘ, R′, C″) P(C″ | aₘ, R′, C′)

C′ and R′ are the old constraints and requests, and C″ and R″ are the updated ones. The constraint factor uses the old constraints, old requests and machine act. The request factor uses the updated constraints in place of the old ones. In particular, once the updated constraints are known, the request update omits a separate dependence on the previous constraints.

In the implementation, both parts of this update use rules. A machine inform can fill an empty request slot if the other information in that act is consistent with the updated constraints. A machine request for a slot adds a slot–value constraint to the user's goal. Whether the simulator actually answers that request is a separate matter for the agenda. The addition of a constraint supplies information about what would constitute an answer. A candidate push can still lead to another action being taken first, or to no answer to that machine request.

The other simplification concerns how much of the stack to emit. The implemented action selection assumes that the item count is independent of the agenda and the goal, replacing the conditional distribution by P(n). The paper describes the typical range of n as 0 to 6. Each count is visible in the annotations, so its frequency can be estimated directly from user acts. Once the pop count is handled this way and the goal updates are fixed by rules, the probabilities that need hidden-state estimation are the ones for adding acts to the agenda.

Why a table over complete agendas is too large

In the Hidden Information State system used for the experiments, the action inventories are already large before taking goals or agendas into account.

|U| ≈ 10³ and |M| ≈ 10³

U is the set of user acts and M is the set of machine acts. The vertical bars denote the number of members of a set and ≈ denotes an approximation. The superscript gives the exponent. These are the paper's estimates for the sizes of the two inventories.

The paper estimates the goal space using typical goal specifications from earlier trials with the same system.

|𝒢| = choose(|𝒞|, N꜀) choose(|ℛ|, Nᵣ) = choose(50, 4) choose(8, 3) ≈ 10⁷

𝒢 is the set of possible goals, 𝒞 the inventory of constraints and ℛ the inventory of requests. N꜀ and Nᵣ are how many constraints and requests a goal contains. choose(b, d) counts the unordered selections of d distinct elements from b available elements. The paper's illustration selects 4 constraints from 50 and 3 requests from 8. Multiplication combines the choices of constraint set and request set. The estimate describes the possible configurations, including configurations that may never be encountered in a recording.

The order of agenda items matters. For fully populated agendas the paper uses an ordered count, with no duplicate items.

|𝒜| = |U|! / (|U| − Nₐ)! ≈ 10²⁰

𝒜 denotes the agenda space in the fully populated calculation, U is the user act set, Nₐ is the maximum number of agenda items and ! denotes a factorial. Division by the factorial of the unused choices gives the number of ordered selections. The estimate is for the paper's design scale, where the authors consider a maximum agenda length of at least 8 necessary for realistic simulation. It is an illustration of the state space, as distinct from a count of the agendas constructed for a real conversation.

A table for an unrestricted agenda update would have to account for both the old and the new agenda.

|𝒜 × M × 𝒜 × 𝒢|

× forms a Cartesian product, the set of tuples obtained by taking an element from each factor. Here the factors cover the old agenda, machine act, new agenda and goal. The expression describes the scale of the unrestricted transition table. Even a recording with enough information to identify each visited agenda would cover only some of those tuples. The authors first restrict what can count as a transition and then reduce the number of distinctions made by the transition probabilities.

Replacing whole-agenda changes with pushes

Before cleanup, the update keeps the old agenda as the lower part of the new one and places any newly proposed acts above it. This restriction decomposes the probability of a full update into a check on the retained portion and a probability for the additions.

P(A″ | aₘ, A′, G″) = δ(A″[1..N′], A′[1..N′]) P(A″[N′ + 1..N″] | aₘ, G″)

N′ is the length of the agenda before the machine act and N″ is its length after the pushes, before cleanup. The indicator compares the bottom slices of the agendas. The final probability concerns the slice of new acts above those retained items. Later cleanup can remove old or new items by deterministic rules. The formula isolates the stage where genuine uncertainty about which acts to add remains.

The paper assigns a push to each item in the incoming act. A push can add an empty act, which will be removed, or an act with several items. The number of pushes can thus follow the length of the machine act without requiring the user to prepare a substantive single-item response to each machine item.

N″ = N′ + M

In this equation M is the number of items in the current machine act, using the paper's notation. It is a count for this act, distinct from the machine act inventory denoted by M in the size calculation. There are M new positions before cleanup.

P(A″[N′ + 1..N″] | aₘ, G″) = ∏ᵢ₌₁ᴹ P(A″[N′ + i] | aₘ[i], G″)

i indexes items within aₘ, and aₘ[i] is the machine act's item at position i. The item added in response is A″[N′ + i]. The product symbol ∏ means that the probability of a whole sequence of pushes is obtained by multiplying the probabilities of the individual pushes. The factorisation makes each push depend on its corresponding item and on the updated goal.

One such push has the conditional probability P(aₚᵤₛₕ | a꜀ₒₙd, G″), where aₚᵤₛₕ is the concrete user act put on the stack and a꜀ₒₙd is the machine act restricted to the conditioning item. When the machine presents a value incompatible with the goal, for example, candidate pushes can express a general rejection, supply the desired value, or combine a denial of the proposed value with a correction. The design gives those alternatives a distribution. The act selected by the push may only appear in a later user turn, depending on what else goes onto the stack.

|U × M × 𝒢| ≈ 10¹³

Here U and M refer to the inventories of user and machine acts, and 𝒢 is the goal space. The product gives the approximate number of entries at the scale of the concrete push probabilities. It no longer has factors for the full old and new agendas. Its size still calls for sharing probabilities across concrete contexts.

Learning which kinds of response follow which kinds of event

The authors introduce a summary space, a smaller inventory that groups concrete circumstances according to their role in the exchange. A confirmation can agree with a constraint or violate it. That relationship to the goal may matter more to the choice of response than the name of the slot. Likewise, an action that gives a requested value can be represented independently of which value it supplies. The authors define both kinds of grouping so that observations about several slots can contribute to estimates for the same event and response classes.

φ : M × 𝒢 → Z꜀ₒₙd, with |M × 𝒢| ≫ |Z꜀ₒₙd|

φ maps a machine act and a goal to a summary condition drawn from Z꜀ₒₙd, the inventory of such conditions. The colon introduces the domain and range of the function. The arrow specifies the direction of the mapping. The sign ≫ indicates that the concrete input space is much larger than the condition inventory.

ω : Zₚᵤₛₕ → U, with |Zₚᵤₛₕ| ≪ |U|

ω converts a summary push action into a concrete user act in context. Zₚᵤₛₕ is the inventory of summary push actions and ≪ indicates that it contains far fewer entries than the inventory U of concrete acts. The compact function notation expresses the mapping back to concrete acts. The worked example also shows cases where the context permits several realisations of a summary push. The implementation shares the probability mass equally among those realisations.

P(aₚᵤₛₕ | a꜀ₒₙd, G″) ≈ P(zₚᵤₛₕ | z꜀ₒₙd)

The a variables are concrete acts and the z variables are the corresponding response and condition classes. The approximation expresses the substitution of a class-based probability for a separately estimated concrete probability. Where a class can realise several concrete acts, the class's probability is split as just described.

z꜀ₒₙd = φ(a꜀ₒₙd, G″)

z꜀ₒₙd is the summary condition obtained by applying φ to the conditioning machine act a꜀ₒₙd and updated goal G″. This step can retain the relevant slot and value for later realisation while sharing the probability estimate with other instances of the same condition.

aₚᵤₛₕ = ω(zₚᵤₛₕ)

aₚᵤₛₕ is the act put on the agenda, and zₚᵤₛₕ specifies its role in the output of the mapping ω. In context, the slot and value used in the concrete act can come from the machine item or from the user goal.

The worked example combines an implicit confirmation of p=q with a request for slot r. The confirmation is compatible with the goal, so its condition class identifies a confirmation that agrees with the user's constraints. The request belongs to a condition class for a requested slot. An action in the class PushInformAX can then supply information about r. The class PushInformBY instead describes supplying information about a different slot. In the illustration, that class can yield an act containing s=y or one containing t=z. Each receives an equal share of its class probability. Candidate sequences combine a concrete choice for the confirmation with a concrete choice for the request. Each sequence has the product of the probabilities assigned to its choices.

Training therefore estimates the tendency to take a kind of action under a kind of condition, while the mapping retains enough information to create a usable act. For their experiments, the authors specify 20 summary conditions alongside 20 summary push actions.

|Z꜀ₒₙd × Zₚᵤₛₕ| = 400

The two sets in the product are the pre-defined condition and response inventories. The result of 400 counts the entries in the conditional table. It is the table's dimensions viewed as a count, with the usual requirement that probabilities for responses under any given condition sum to one. The abstraction gives the same entry opportunities to accumulate evidence from different concrete slot–value pairs.

Constructing the candidate agendas for a dialogue

A summary table reduces the number of probabilities to estimate. To discover where those probabilities should receive credit, the training routine still needs candidate agendas. The authors construct a tree for each observed conversation. Its nodes hold agendas and its branches represent the possible updates. The root begins with an empty agenda. From it, the algorithm generates candidate initial orderings of the acts derived from the goal, keeping the initial groups for constraints and requests.

N꜀! Nᵣ!

N꜀ is the number of constraints in the goal and Nᵣ is the number of requests. Each factorial counts the possible orders within its group, and their product counts the initial agendas considered by the algorithm. The paper gives these initial agendas equal weight.

When a machine act arrives in the training dialogue, the algorithm computes the relevant condition for each of its items and enumerates possible summary pushes with positive probability. It maps each push back to concrete acts. The combinations of those concrete acts extend the existing agendas and create new branches. The probability of each branch reflects which pushes created it. If two candidate responses happen to arrive at the same agenda, the evidence for reaching that agenda can retain contributions from both.

Cleanup removes empty acts and duplicates, clears entries below a bye act, and deletes pending requests for slots already filled in the goal. The last rule has an exception for requests newly added to the agenda. Those can remain, which allows the simulator to ask for information again. Cleanup is deterministic. The search does not need a separate probability distribution for whether each of these items should be retained given the result of the pushes.

The next observed user turn tests every candidate. Its act must match a segment that can be popped from the top of the candidate agenda. A candidate can contain all the relevant slots and still fail because the order of its pending actions would produce a different response. If the pop is possible, the remaining stack becomes a new node, and the branch receives the probability for the number of items emitted. If the pop is impossible, the candidate has zero probability of generating the observed sequence and can be discarded along with branches that lead only to discarded states.

The paper also allows a more aggressive pruning rule based on a minimum probability for a leaf. This can remove some compatible paths if their weights are small. The distinction matters for estimation. Eliminating incompatible states preserves every positive-probability explanation of the observations considered so far. A minimum-probability threshold trades some of those explanations for a smaller search. The authors further reduce the representation by joining nodes with identical agendas. Common future work can then be shared, and probability contributions along incoming paths can be added.

Turning hidden paths into training counts

The authors use expectation–maximization, or EM, to fit the probabilities. The starting point is the distinction between what is observed and what must be inferred. In a recorded dialogue, the acts of both participants are observed. The agenda and goal trajectories belong to the hidden description, even though the implemented training procedure uses a goal specification to initialise the agendas and deterministic rules to update the goal.

D = {aᵤ, aₘ} = {aₘ,₁, aᵤ,₁, …, aₘ,ₜ, aᵤ,ₜ, …, aₘ,ₜₒₜ, aᵤ,ₜₒₜ}

D is the observed dialogue. The unindexed aᵤ and aₘ stand for the user and machine act sequences. The comma-separated subscript t identifies the turn within either sequence, and tot marks the last turn, whose index the paper denotes by T. The braces collect the acts, which are used in their recorded order. The ellipses indicate intervening turns.

X = {A, G}

X is the hidden description of an entire dialogue. In this expression A and G refer to sequences of agenda and goal states, extending the notation for their values at a single instant.

A = {A₁, A′₁, …, Aₜ, A′ₜ, …, Aₜₒₜ, A′ₜₒₜ}

Aₜ records the agenda immediately before the user act at turn t and A′ₜ records it after that act. The sequence begins with the agenda before the first user act and extends through the agenda after the last. As above, tot denotes the final turn index T.

G = {G₁, G′₁, …, Gₜ, G′ₜ, …, Gₜₒₜ, G′ₜₒₜ}

Gₜ and G′ₜ are the goals at the corresponding points before and after user acts. The prime distinguishes the stage in the cycle, even though the goal itself is unchanged by the user act. The double-prime notation used for a machine update gives the state reached after that stage of the cycle.

The paper collects the stochastic factors associated with a compatible trajectory into a product over the turns. The start of the trajectory is handled by the initial agenda weights in the tree, and incompatible outputs and intermediate states are excluded by the indicator checks.

P(X, D) = P(A, G, aᵤ, aₘ) = ∏ₜ₌₁ᵀ P(nₜ | Aₜ, Gₜ) P(A″ₜ | aₘ,ₜ, A′ₜ, G″ₜ) P(G″ₜ | aₘ,ₜ, G′ₜ)

P(X, D) denotes the joint probability of the hidden description and the observed dialogue. The product runs from turn 1 through the final turn T. nₜ is the number of agenda items emitted at turn t. The agenda and goal with a double prime are the results of the machine update in the cycle. The stochastic terms account for the pop length, the agenda changes in response to the machine and the corresponding goal changes. Once the observed act and stack are compatible, the intermediate pop update adds no further stochastic factor.

Let θ denote the entire parameter set in the general estimation argument. An observed dialogue can arise from any compatible hidden trajectory, so its likelihood totals the contributions from those trajectories.

L(θ) = log P(D | θ) = log ∑ₓ P(X, D | θ)

L(θ) is the log likelihood of the dialogue at the parameter values θ. log is the logarithm, and ∑ₓ sums over candidate values of the entire hidden trajectory X. The sum comes inside the logarithm because the probabilities of the alternative explanations are added first.

θₘₗ = arg maxθ L(θ)

θₘₗ denotes maximum-likelihood parameters, and arg maxθ denotes the value of θ at which the objective is maximised. This is the objective of estimation. The iterative algorithm described by the paper can converge to a local optimum.

EM introduces an auxiliary distribution over hidden trajectories. The paper uses Jensen's inequality to establish the following lower bound.

L(θ) ≥ F(q, θ) = ∑ₓ q(X) log [P(X, D | θ) / q(X)]

q(X) is the probability assigned to trajectory X by the auxiliary distribution q. F(q, θ) is the resulting lower bound on the log likelihood, and ≥ gives its relation to L(θ). The ratio inside the logarithm compares the joint probability under the parameter set with the auxiliary probability. The sum averages these logarithms under q. A distribution that concentrates on trajectories ruled out by the dialogue cannot provide useful expected counts. The distribution that makes the bound tight gives weight according to the trajectories' probabilities once the dialogue is known.

In the expectation step, the parameters from the preceding iteration are fixed.

q⁽ᵏ⁾ = arg maxq F(q, θ⁽ᵏ⁻¹⁾)

k is the iteration index in this equation, q⁽ᵏ⁾ is the updated distribution over trajectories and θ⁽ᵏ⁻¹⁾ is the preceding parameter set. arg maxq selects the distribution that maximises the bound at the fixed parameters. The optimum is the posterior, the probability distribution over trajectories conditional on the observed dialogue.

q⁽ᵏ⁾(X) = P(X | D, θ⁽ᵏ⁻¹⁾)

The left side is the weight of trajectory X at iteration k. On the right, the conditioning variables are the observation D and the previous parameter set. The expectation step therefore retains uncertainty over trajectories. A path that explains an early response can lose weight if it makes the rest of the observed conversation difficult to produce.

P(X | D, θ⁽ᵏ⁻¹⁾) = P(D | X, θ⁽ᵏ⁻¹⁾) P(X | θ⁽ᵏ⁻¹⁾) / ∑ₓ P(D | X, θ⁽ᵏ⁻¹⁾) P(X | θ⁽ᵏ⁻¹⁾)

In the numerator, the conditional observation probability given a path is multiplied by the path's prior probability. The denominator repeats that calculation over all paths and sums the weights, so the result is normalised. Substituting the agenda and goal sequences for X and the observed machine and user acts for D gives the posterior over agendas and goals used for estimation. In particular, the later acts help determine which earlier pushes receive training credit.

Next, the maximization step holds this distribution fixed and updates the parameters.

θ⁽ᵏ⁾ = arg maxθ F(q⁽ᵏ⁾, θ)

θ⁽ᵏ⁾ is the updated parameter set, and q⁽ᵏ⁾ is the distribution from the expectation step. The maximisation varies θ alone. The part of the bound that depends on θ is the weighted log probability of observations paired with hidden paths. The paper writes an equivalent maximisation using joint rather than normalised posterior weights.

Q(θ, θ⁽ᵏ⁻¹⁾) = ∑ₓ P(X, D | θ⁽ᵏ⁻¹⁾) log P(X, D | θ)

Q is the auxiliary objective. Its weights are computed using the old parameters and its logarithms are evaluated at the candidate new parameters. For a fixed dialogue, the joint weights differ from posterior weights by a factor constant with respect to the candidate θ. Maximising this expression gives the same parameter choice for that dialogue as using the normalised posterior. Expanding the logarithm of the turnwise product yields contributions for action length, agenda update and goal update. For a conditional probability table, such an update has the form of an expected frequency.

P̂(outcome | context) = expected count(outcome, context) / expected count(context)

P̂ denotes the updated estimate. context identifies the conditioning information for a probability table and outcome identifies the event whose probability is being fitted. The numerator counts occurrences of the outcome in that context, weighted by the posterior over paths. The denominator counts all occurrences of that context with the same weighting. In the general formulation, the outcome can be a pop length, an updated agenda or an updated goal, with their conditioning variables given by the respective transition formulas. In the implementation, direct frequencies supply the pop lengths and rules supply goal updates. The remaining expected counts are for summary pushes under summary conditions.

Computing the counts with a forward and backward pass

Enumerating every complete trajectory and computing a separate posterior for it would repeat work for paths that share parts of the tree. The forward and backward computations allow the algorithm to combine evidence at nodes and then assign credit to branches. Here the paper uses k as the index of an observation or update, separate from the EM iteration index used above.

K = 2T

K is the total number of observation and update positions, and T is the number of dialogue turns. The factor 2 reflects the separate machine and user updates in each turn. Let oₖ be the observation at position k and xₖ the hidden state after that update.

αᵢ(k) = P(o₁, o₂, …, oₖ, xₖ = i | θ)

αᵢ(k) is the forward probability for state i at position k. It gives the joint probability of seeing the prefix of observations and reaching that state under parameters θ. The index i identifies a node at that stage in the representation. A state can receive forward probability through several incoming paths.

βᵢ(k) = P(oₖ₊₁, oₖ₊₂, …, oₖₜₒₜ | xₖ = i, θ)

βᵢ(k) is the backward probability. It measures the probability of the remaining observations, conditional on state i after step k and on θ. The final observation in this notation, oₖₜₒₜ, is o at position K. The backward term lets a later request or correction constrain the credit given to an earlier decision.

αᵢ(1) = 1 / (N꜀! Nᵣ!), for 1 ≤ i ≤ N꜀! Nᵣ!

This initialisation gives the same weight to every candidate initial agenda, where i ranges from 1 to the number of such agendas. The factorials count permutations of constraint and request acts in their respective groups. ≤ denotes the inclusive bounds on i.

βₑₙd(K) = 1

end identifies the single terminal node formed by merging the empty agendas after the last observation. Its backward probability is 1 because the completed dialogue has no remaining observations to generate.

αⱼ(k) = ∑ᵢ αᵢ(k − 1) aᵢⱼ

j is a state at step k, and i ranges over predecessors at step k − 1. aᵢⱼ is the transition probability associated with the branch from i to j at the relevant stage. The transition must be consistent with the observed act. The sum adds the contributions from the ways of reaching j through its predecessors.

βᵢ(k) = ∑ⱼ aᵢⱼ βⱼ(k + 1)

j now ranges over successors of state i at the next step. A branch's probability is multiplied by the probability that the observations after that branch can be generated starting at j. Summing the products accounts for the viable continuations from i. For a pop branch the transition probability is P(n), using the number n of items removed. For a push branch the transition probability is the product of the concrete push probabilities that led to the new agenda.

τₖ(i, j) = αᵢ(k) aᵢⱼ βⱼ(k + 1) / αₑₙd(K)

τₖ(i, j) is the posterior probability of using the branch from i after step k to j at the next step. αᵢ(k) weighs the earlier part of the dialogue and βⱼ(k + 1) weighs the remainder. The probability aᵢⱼ supplies the connection between them. The denominator is the forward probability at the merged end node, which normalises by the probability of the observed dialogue on the constructed paths. The result measures a branch's support from the full dialogue.

The final update adds these branch weights wherever the relevant summary labels occur. A push branch can embody a sequence of concrete additions, so the counts concern the summary decisions used to construct it.

P̂(zₚᵤₛₕ | z꜀ₒₙd) = [∑ over occurrences of (zₚᵤₛₕ, z꜀ₒₙd) τₖ(i, j)] / [∑ over occurrences of z꜀ₒₙd τₖ(i, j)]

zₚᵤₛₕ is the summary action whose probability is being re-estimated and z꜀ₒₙd is the summary condition. The sums range over the relevant labelled transitions at steps k and their endpoints i and j. The numerator gives the expected count for the specified pair of labels. The denominator includes all push choices under that condition. With the updated table, another pass can change the relative weight of competing agenda histories. The alternation lets uncertain training credit depend on the current probabilities, then lets the probabilities respond to that credit.

Experiments and results

What was recorded and what was compared

The authors tested training on a corpus from the tourist information domain collected with the Hidden Information State Dialogue System. The corpus contains 160 dialogues from 40 speakers, with 4 dialogues per speaker. The reported totals are 6452 dialogue turns and 21,667 words. The utterances were manually transcribed and given linguistic annotation in the form of dialogue acts. Those labels supply the semantic sequence on which the tree-building and pop checks operate. The corpus did not require per-turn labels for the internal user state or dialogue state.

For the simulation quality comparison, the authors report a human reference and two simulated conditions. The trained simulator uses the probabilities estimated from the recordings. The handcrafted baseline is the earlier agenda simulator, with its manually chosen parameters. Every user population interacts with an identical decision policy and pursues an identical set of tasks because all conditions share one trained dialogue manager and one set of goal specifications. The manager can respond differently during individual conversations as a consequence of what the user does.

The human reference consists of 84 dialogues with semantic accuracy above 90%. The paper measures semantic accuracy using substitution, insertion and deletion errors. The filter follows the purpose of the simulator, which is to reproduce user behaviour independently of the process by which recognition errors occur. The authors use 1000 dialogues for the trained simulator and 1000 for the handcrafted one. The human filter defines the comparison subset. It does not establish a held-out training split.

What happened during training

A sample training trace follows the number of leaf nodes in the agenda tree as the acts of a dialogue arrive. A machine update can leave the count unchanged or increase it, because positive-probability push sequences can extend each existing branch. The observed user act then checks which branches are compatible. Pruning and merging can reduce the leaf count at that stage, or leave it unchanged. The trace ends with a single leaf representing an empty agenda.

A separate illustration plots the log probability during EM on two dialogues. The plotted lines for the individual dialogues rise, as does the line for their aggregate. The authors report that the algorithm reaches a local optimum quickly in practice, requiring only a few iterations. Their reported evidence here is the shape of the training curve and the behaviour of the tree. The curve shows what happens to the training objective when the probabilities are re-estimated. The comparison with human dialogues addresses behaviour through separate measures.

How closely the simulations matched the human dialogues

The authors report means with 95% confidence thresholds. Dialogue length, measured in turns, gives a sense of how long the interaction lasts. The real-user mean was 3.30±0.53 turns. The trained simulator's mean was 3.38±0.07 and the handcrafted simulator's mean was 4.04±0.19. The trained condition was closer to the human mean on this measure. Shorter length is favourable in the paper's reward calculation, which charges for each turn. For resemblance to human behaviour, proximity to the observed human length is the relevant comparison.

Mean dialogue length in the HIS tourist information comparison

The trained simulator's conversations are closer in length to the human conversations than the handcrafted simulator's are.

Mean dialogue length in the HIS tourist information comparisonReal users: 3.30Real users3.30Handcrafted simulator: 4.04Handcrafted simulator4.04Trained agenda simulator (this paper): 3.38Trained agenda simulator (this paper)3.38
The numbers
System or settingturns
Real users3.30
Handcrafted simulator4.04
Trained agenda simulator (this paper)3.38

Task completion measures whether the manager recommended a correct venue. The mean was 0.98±0.03 for real users, 0.94±0.02 for the trained simulator, and 0.93±0.02 for the handcrafted simulator. The trained condition again falls closer to the human reference. The metric concerns the correct recommendation, so it measures a specific criterion for task success.

Mean correct-venue completion rate in the HIS tourist information comparison

The trained simulator has a completion rate closer to the real-user rate than the handcrafted simulator does.

Mean correct-venue completion rate in the HIS tourist information comparisonReal users: 0.98Real users0.98Handcrafted simulator: 0.93Handcrafted simulator0.93Trained agenda simulator (this paper): 0.94Trained agenda simulator (this paper)0.94
The numbers
System or settingcompletion rate
Real users0.98
Handcrafted simulator0.93
Trained agenda simulator (this paper)0.94

The performance measure combines success and dialogue cost. A successful recommendation earns 20 points, an unsuccessful one earns 0, and every turn costs 1 point. The reported mean performance was 16.23±1.01 for real users, 15.32±0.34 for the trained simulator, and 14.65±0.50 for the handcrafted simulator. With the dialogue manager fixed, the score describes what happened when that manager interacted with each kind of user. The trained simulator gave it dialogues which were shorter on average than the handcrafted condition and which more often ended in the correct recommendation.

Mean dialogue performance score in the HIS tourist information comparison

The trained simulator produces a mean reward closer to the human result than the handcrafted simulator does.

Mean dialogue performance score in the HIS tourist information comparisonReal users: 16.23Real users16.23Handcrafted simulator: 14.65Handcrafted simulator14.65Trained agenda simulator (this paper): 15.32Trained agenda simulator (this paper)15.32
The numbers
System or settingpoints
Real users16.23
Handcrafted simulator14.65
Trained agenda simulator (this paper)15.32

The three measures cover related questions. Length reflects how much interaction occurred, completion records whether the central task succeeded, and the performance score expresses the paper's chosen tradeoff using both. The reward is consequently another view of the length and success outcomes. The reason to consider the individual measures alongside it is that the same score could arise from different combinations of successful recommendations and turn costs.

The authors report that differences between the trained simulator and human dialogues on these statistics were not statistically significant at confidence above 95%. The finding is specific to the quantities measured and the samples compared. Across the reported means, fitting the simulator to recordings moved the outcomes closer to the human reference. The intervals show that the human estimates also carry uncertainty, especially for length and dialogue performance.

What the ablations show

The paper presents no component ablations. Its controlled comparison changes the simulator while keeping the dialogue manager and goal specifications fixed, and its training diagnostics track the search and likelihood as the procedure runs. These analyses answer different questions about the method.

What the handcrafted comparison isolates

The handcrafted baseline already represents the user with an agenda. It can retain pending acts and pursue a goal across multiple turns. The existence of that baseline makes the evaluation a comparison with an earlier use of the same general representation. It tests what the fitted simulator produces relative to the handcrafted version, given the same tasks and the same partner. The trained condition's closer descriptive match shows that useful behavioural information entered through fitting to dialogue data in this setup. Both conditions have the basic capacity to remember outstanding actions.

The most visible separation between the reported means is in dialogue length. The trained simulator's completion rate also moves towards the human figure, and the reward captures the combined direction of those movements under the stated scoring rule. These outcomes can arise without any change to the manager's policy. Changing how users supply constraints, answer questions or bring a dialogue to an end changes the circumstances under which that same policy acts. The comparison does not identify which learned pushes made the conversations shorter, or which changes mattered most to correct recommendations.

The experiments also leave the contributions of several training choices unseparated. The trained condition includes the defined summary conditions and push classes, deterministic goal updates and the separately estimated pop-length distribution. The paper does not report a study that holds the other choices fixed while changing the class inventory or replacing the rule for a particular kind of goal update. The comparison concerns the package of changes used to obtain the trained simulator. Assigning the shift in dialogue length to one of those choices would require additional evidence.

What the search trace says about tractability

The leaf-count trace illustrates the alternating effects of machine input and observed user output. On the machine update, alternative pushes can make multiple new states possible. On the user update, the next act eliminates agendas whose top entries could not have produced it. Merging identical agendas then removes repeated representation of a state reached through several routes. A count that falls after a user act illustrates how the observations can constrain the search even though they do not reveal an agenda outright.

The trace also explains why compatibility checks operate during construction. If the routine waited until the dialogue had ended to compare every possible agenda history with the whole record, it would spend work extending many histories after an observed act had already made them impossible. Popping at each user turn makes that local contradiction available immediately. Positive-probability histories can still compete after that check. The backward pass later distinguishes those that can explain the remainder more or less plausibly.

The figure concerns a sample dialogue. Its ending in a single leaf follows the terminal empty-agenda representation, and several past paths can lead to that leaf. A compact final state therefore coexists with uncertainty over the history. The trace illustrates the intended operation of the search without separately measuring speed or memory savings from summary mapping, compatibility pruning, threshold pruning and node merging. In particular, it gives no comparative estimate of how a probability threshold would affect the fitted parameters.

What the likelihood trace says about estimation

The likelihood illustration shows rising log probabilities during a run with two dialogues. Each iteration uses the probabilities from the preceding iteration to divide credit among possible paths. The next table update favours the kinds of push that received more expected credit under those paths. The observed rise is the behaviour the EM objective is designed to produce. In the plotted example, the individual dialogue curves rise as well as the aggregate curve. The fitting objective concerns aggregate support for the observations, so the rise of each individual curve is an observation about that run.

Likelihood and simulation quality give different forms of evidence. Likelihood asks how much probability the fitted simulator assigns to observed act sequences after the hidden states have been taken into account. The comparison with humans asks how interactions generated under the simulator look across completed tasks with a fixed manager. The former is directly optimised during training. The latter is measured after training using dialogue outcomes. The paper supplies no ablation tying a particular increase in likelihood to a change in any of the reported human-comparison measures.

Limitations

Limits stated by the authors

The authors describe their simulation quality evaluation as preliminary and call for further work on the summary mapping and a fuller evaluation of the trained simulator. The mapping is central to what can be learned. It determines which events share a probability and which kinds of response are represented separately. The paper demonstrates training with one defined inventory of conditions and actions. It leaves refinement of that inventory for further work.

A practical open question is whether the fitted simulator would lead to a better dialogue policy for real users. The evaluation runs the trained and handcrafted simulators with the same already trained manager. That design supports comparison of the conversations elicited by a common policy. Testing policy quality would involve learning policies from the respective simulators and then assessing their subsequent conversations with people. The authors present better performance in that setting as a possibility.

The human comparison is also deliberately limited to conversations with high semantic accuracy. Its purpose is to assess simulation of user behaviour in conditions where recognition errors are relatively limited. The authors' broader motivation includes goal-directed responses to difficult system behaviour, but the reported comparison does not test resemblance across the full range of recognition conditions in the corpus. The estimator also targets a local likelihood optimum. The training trace is evidence for convergence in the illustrated setting and supplies no guarantee about the best attainable solution across initialisations.

Limits visible in the experimental setup

The human data come from the tourist information domain and from users of the Hidden Information State system. The authors point out that the summary inventories do not have to grow with the number of concepts or database entries, which explains how the representation could carry over as those inventories expand. The empirical evaluation nevertheless concerns a single domain and manager. A larger database could retain the same categories, but a task with different kinds of constraint, request or response could require different categories and different update rules. The experiment does not show how well the learned probabilities or the particular categories transfer under those changes.

The use of fixed goals and a fixed partner supports the comparison and sets its scope. A different policy may ask questions in a different order, make different types of mistakes or produce combinations of acts unusual in the recordings. The difference between the two simulators could then appear in other parts of the dialogue. Similarly, the results use a human subset of the described corpus, with no held-out split specified for the human comparison. The figures show proximity to those observed human statistics rather than a direct measure of generalisation to new speakers.

The reported averages can agree even when the underlying conversations differ in ways the metrics do not register. Mean length does not identify turns where the speaker is correcting the system, responding to it or taking the initiative. Completion rate gives a central success criterion, but it does not describe when individual pieces of requested information were obtained. The score incorporates the same length and success information according to its chosen reward. Marginal averages thus leave questions about sequences of acts and about behaviour under particular goals. Similarly, the reported lack of a statistically significant difference is evidence tied to the comparison and its precision. It does not establish that the simulator is equivalent to a human user.

Training still requires semantic acts and a representation of the task. The corpus was manually transcribed and labelled, the initial tree is built using a goal specification, and the summary categories and deterministic rules are defined by the designers. The method removes the need for annotators to supply hidden user-state trajectories. It addresses a narrower and well-defined part of the preparation required for statistical simulation.

The design also constrains what the training procedure can discover. The pop count has the same distribution across agendas and goals. A conditional pattern in which users tend to provide more items in certain contexts cannot be learnt through that count distribution. The goal rules decide how accepted information fills requests and how machine questions affect constraints. Conditional choices are learnt at the level of summary pushes. Behaviours outside those push categories, or outside the permitted ordering of operations on the agenda, are absent from the corresponding search space.

Finally, the training objective asks whether plausible hidden trajectories jointly give the observed acts good probability. The experiment contains no observations of the user's actual internal agenda. Several inferred histories can receive credit for the same dialogue, and aggregating over them is part of the method. The paper's evidence is therefore about fit and simulation under a structured representation of memory and intention. It does not verify that any particular inferred history matches the order in which a person privately formed or revised their intentions.

What came after

Improving Unsegmented Statistical Dialogue Act Labelling (2009) cites the paper in work on assigning dialogue-act labels when act boundaries have not already been supplied. That problem lies at the input side of agenda estimation. The hidden-agenda procedure starts with acts whose identities and positions in the dialogue are observed. It then works backward from those observations to the possible pending actions that could have led to them. In unsegmented labelling, the boundaries and act labels are themselves part of what has to be determined. The connection identifies a different role for uncertainty about dialogue acts. The citation does not establish that the labelling work adopted the agenda stack or its estimation procedure.

Towards End-to-End Reinforcement Learning of Dialogue Agents for Information Access (2017) cites the paper in work on learning the behaviour of dialogue agents for information access. The relationship is clearest at the level of the training problem. The agenda paper learns a simulated conversational partner from recorded acts, within a workflow where a dialogue manager can learn from interaction. The later work addresses the learning of the information-access agent itself. Its citation connects the work to the problem of obtaining interaction for dialogue-policy learning. It does not establish reuse of the hidden-state tree, the summary push table or the particular EM update.

These citations point to different parts of the workflow in which the paper sits. Dialogue-act labelling concerns how the observations used for estimation become available. Reinforcement learning of dialogue agents concerns the policy that simulated interaction is intended to help train. The paper's contribution occupies the step between them. Starting with observable acts and a task specification, it estimates how a user with pending intentions might respond to a system over the course of a conversation.

Cite

Cite as Jost Schatzmann, Blaise Thomson and Steve Young. 2007. Statistical User Simulation with a Hidden Agenda. Proceedings of the 8th SIGdial Workshop on Discourse and Dialogue.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2007.sigdial-1.48

@inproceedings{schatzmann2007statistical,
  title = {{Statistical User Simulation with a Hidden Agenda}},
  author = {Jost Schatzmann, Blaise Thomson and Steve Young},
  booktitle = {Proceedings of the 8th SIGdial Workshop on Discourse and Dialogue},
  year = {2007},
  doi = {10.18653/v1/2007.sigdial-1.48},
  url = {https://doi.org/10.18653/v1/2007.sigdial-1.48}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/schatzmann-2007-statistical-user-simulation-hidden-agenda/