Dialogue Acts and Conversation Structure

Michael BrenndoerferNovember 17, 202637 min read

Learn how dialogue acts, turn-taking, grounding, and repair structure conversations, and how reply links and act labels improve dialogue state tracking accuracy.

Language AI HandbookAll chapters
Part 9 of 67Coreference, Discourse, Pragmatics, and Dialogue
Chapter 59Dialogue Acts and Conversation Structure
Reading the full chapter · 11 sections · 37 min11 sections · 37 min

All 11 sections · 37 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Dialogue Acts and Conversation Structure

A user replies "3pm" to a booking assistant. The value is easy to recognize. The assistant still needs to decide what to do with it. After "When should I reserve it?" the reply supplies a time. After "Is 4pm still right?" it can correct one. In a group chat, it might answer a different participant's question entirely.

This chapter shows how participants allocate turns, signal understanding, and repair trouble. Two Python trackers process the same ten study-room messages. One uses text alone. The other receives act labels and reply links and knows which two participants are arranging the booking. That extra structure lets it use Ana’s short answer to update the expected slot. Later we inspect which supplied inputs explain differences between the two trackers.

The preceding Part IX chapters cover coreference, discourse relations, and pragmatic inference. Those subjects help explain how a reader resolves references and interprets an utterance in context. Here the focus is the interaction between participants and how its structure can guide a state update.

Turns, Transition Relevance, and Local Management

"Yes" can be a turn, and a single turn can contain several sentences or communicative actions. A speaker may acknowledge an offer and ask a new question before yielding the floor. In their study of ordinary talk, Sacks, Schegloff, and Jefferson describe two components of a turn-taking system and a rule set that ties them together. Sacks, Schegloff, and Jefferson (1974), §§3.1–3.3

The turn-constructional component concerns the units speakers build turns from. A word, phrase, clause, or sentence can form a turn-constructional unit in the English examples in the paper. Participants can anticipate a transition-relevance place, a possible completion where speaker change becomes relevant. "Thursday at three works" can project a completion after "works." "Thursday at three works if…" projects further talk.

The turn-allocation component concerns who may speak next. At a possible completion, the current speaker can select the next speaker. In the absence of that selection, another participant can self-select. If nobody takes the turn, the current speaker can continue and the rules apply again at the next possible completion. These possibilities help explain how participants manage turns locally. Simultaneous speech can arise as two participants start together, among other circumstances. Treat overlap as an observation to interpret in context. Sacks, Schegloff, and Jefferson (1974), §§3–4

For a model, segmenting a speech recording and predicting who speaks next are distinct problems. A submitted chat message gives you a message boundary. A speech recording may contain hesitations, feedback during another person's talk, and simultaneous speakers. Even when the boundary and the act are given, a question can leave its addressee ambiguous.

Adjacency pairs and preference organization

A greeting makes a return greeting relevant. A question makes an answer relevant. In conversation analysis, these sequences are adjacency pairs. The first pair part constrains the kind of second pair part that participants ordinarily expect. Intervening turns can delay the response. In the study-room example, a clarification about room size comes between the request and the offer that addresses it. Schegloff and Sacks (1973)

A first action can make a particular kind of response relevant. Its absence can become noticeable if the response does not follow when participants expect it. Conversation analysts call this relationship conditional relevance. A missing answer to a summons can lead to another summons. In a question–answer sequence, a clarification can intervene before the answer. Schegloff, reprint, pp. 365–366

Preference organization

In conversation analysis, preference is a property of the organization of sequences. A response can be designed as routine, or it can be delayed, qualified, or accompanied by an explanation. Interpret those cues in relation to the preceding action. Pomerantz, Agreeing and disagreeing with assessments

In the study-room dialogue, "Great, book it" accepts an offer. A later correction can revise the available room while leaving that earlier acceptance in the record. A tracker that stores only the most recent room number loses which offer was accepted.

Dialogue Acts

A dialogue act describes a communicative function. "It's cold in here" could report a temperature problem or indirectly ask someone to close a window. "Could you close the window?" and "Close the window, please" can both function as requests. In a computational task, an act label records a function according to the annotation scheme. The labeling unit might be a full turn or a smaller segment.

A booking system needs to distinguish an offer from an acceptance because they have different consequences for the current task. A tutoring system might also need labels for a hint, a request for help, and feedback on a student's answer. The annotation guidelines explain what counts as each act and which units receive a label.

Taxonomies: from DAMSL to ISO 24617-2

DAMSL stands for Dialog Act Markup in Several Layers. Its annotations distinguish aspects of a turn, including forward-looking functions such as requests and backward-looking functions such as responses to earlier moves. A reply can perform a function in each direction. "Yes, and could you check whether it has a screen?" answers the preceding question and requests new information. Allen and Core (1997), DAMSL draft manual

Stolcke and colleagues used a 42-label inventory derived from Switchboard DAMSL. Their dialogue-act n-gram modeled how acts tend to follow one another. The system combined sequence information with cues from words and prosody. The paper reports dialogue-act recognition experiments and a separate experiment on using acts to model speech recognition hypotheses. Stolcke et al. (2000), §§2, 3 and 6

ISO 24617-2:2020 specifies a multidimensional scheme for dialogue-act annotation. Its dimensions include the task and feedback about processing. Auto-feedback concerns the speaker's own processing of another contribution. Allo-feedback concerns the other participant's processing. The DialogBank paper presents dialogues annotated with the 2012 edition, including material newly annotated and material reannotated from existing corpora. Bunt et al. (2016)

Dialogue act

A dialogue act represents a communicative function of a meaningful segment of dialogue. A turn can contain several segments. A segment can contribute to more than one dimension in a multidimensional annotation scheme. Bunt et al. (2016), §2

Multidimensional annotation

Consider "Actually, 204 is taken at 3. How about 205?" The first segment changes what the listener should believe about room 204. The second offers a candidate room. Both concern the task. They can receive different functions because they are distinct segments within the same turn. In "OK, what time?", one segment supplies feedback and another asks a task question.

An evaluation must identify its unit. With supplied segment boundaries, a label score tests which functions the model assigns to those segments. If the system supplies the segments too, an evaluator can measure boundary agreement separately and score labels against an explicit matching policy. The worked example assigns one convenient label to each turn. "Repair" marks the turn that revises the earlier room offer. This label is part of the toy annotation scheme.

Grounding and Repair

To coordinate a booking, a user and an assistant need evidence that they understood each other's references to the day, time, and room. Clark and Brennan call the process of establishing mutual belief that a contribution was understood sufficiently for the current purpose grounding. The criterion depends on the purpose. A quick acknowledgement may suffice during exploration. A confirmation that repeats the room and time gives more specific evidence right before a reservation. Clark and Brennan (1991), Grounding in Communication

Understanding can be displayed in a subsequent action. In the worked example, Ana's ordinal reply selects one of the two sizes Ben names. The reply is evidence that she understood the size choice. They discuss a specific room later.

The medium changes which signals are available. Clark and Brennan discuss dimensions including copresence, visibility, audibility, cotemporality, simultaneity, sequentiality, reviewability, and revisability. Plain chat logs preserve sent text for later review. An audio recording can preserve intonation and speech timing. A live video call can also make gaze and nods visible within the frame. Each system needs to state which signals it observes. Clark and Brennan (1991), Constraints on Grounding

Repair initiation versus correction

A participant can mark a problem in speaking, hearing, or understanding. That is repair initiation. A participant can then resolve it, for example by repeating an unheard name or replacing an incorrect time. That is a possible repair outcome. The two steps can come from different speakers and in different turns. Schegloff, Jefferson, and Sacks (1977), §§2–3

Consider these versions of a repair sequence.

  • In "Room 204, sorry, 205," the original speaker flags and replaces the room number in the same turn.
  • Ben says "Room 205." Ana misses the number and asks, "Which room number did you say?" Ana initiates repair. Ben resolves it by repeating "205."
  • Ben says "Room 204." Ana is unsure she heard him correctly and asks, "Did you say 204?" Ben confirms, "Yes, 204." The room number stays the same.
Repair

Repair concerns trouble in speaking, hearing, or understanding. A sequence can resolve trouble by correcting, repeating, or confirming something. It can also end without a resolution. Schegloff, Jefferson, and Sacks (1977), §§2–3

In the fixture, a supplied repair label activates a rule that takes the last three-digit number as the room. The rule depends on the given annotation and word order. It can select the wrong value if the last number occurs inside a rejection or hypothetical. A deployed tracker needs evidence about the earlier offer and about the role of each value in the update.

Dialogue State Tracking

A dialogue state stores information relevant to choosing the next move. Here we store four slots with associated values. They are day, time, size, and candidate room. A frame can group related slots. This example's room slot records the active candidate even before Ana accepts the offer. A booking procedure needs separate evidence of acceptance, authorization, and a successful reservation.

The history records turns in order. The state stores values selected from that history for a specific purpose. The same state can arise from different histories. When Ben replaces room 204 with 205, his earlier offer remains in the history while the candidate room changes.

A state can be represented as a dictionary of current value predictions or as a distribution over possible assignments. The example uses a dictionary mapping each slot to one concrete value or an absent marker. A probabilistic tracker could keep competing candidate values and represent their probabilities.

The state update combines the previous state with the current turn and its context.

St=update(St−1,at,ut,ct)S_t = \text{update}(S_{t-1}, a_t, u_t, c_t)

The index tt denotes the current turn.

  • StS_t is the state after turn tt. Before the first turn, S0S_0 marks every tracked slot as absent.
  • St−1S_{t-1} is the state before turn tt.
  • ata_t is the dialogue act of turn tt.
  • utu_t is the observed utterance content for turn tt.
  • ctc_t is context available when turn tt is processed. In the example it includes the current reply link, its earlier target, and the membership decision.
  • update\text{update} maps these inputs to the new state.

An engineer can specify the function or estimate it from data. The worked example supplies the act label and the reply link. A deployed system that predicts those fields can propagate their errors into the state. The update reads the previous state and current turn with that context. An ineligible turn leaves St=St−1S_t=S_{t-1}.

This formula is deliberately simple, but it hides several hard questions:

  • Which parts of utu_t should be extracted?
  • Should a new value overwrite an old value, or should both be kept?
  • How should the system handle negation, hypotheticals, and comparisons?
  • How should it know whether a turn is even relevant to the current task?

Different trackers answer these questions differently. The formula is a teaching abstraction for an incremental update. A tracker can also reconstruct a candidate state directly from all available turns.

Annotation challenges

Eric and colleagues report a reannotation of dialogue states and utterances for MultiWOZ 2.1. They describe noisy state annotations and normalize some surface values to match dataset conventions. The examples below illustrate choices an annotator or evaluator has to make. Eric et al. (2020), §§1–3

  • Value normalization: "3pm", "15:00", and "three in the afternoon" may all refer to the same time, but annotators may transcribe them differently.
  • Implicit values: a user may say "the same as before" or "the other one", requiring the annotator to resolve the reference.
  • Conflicting values: a user may change their mind, and the annotator must decide whether the new value replaces the old one or coexists with it.
  • Absent values. An unmentioned slot can be marked absent. Record an explicit statement that any value is acceptable separately.

These choices affect the evaluated target. A value can have several surface forms. An absent field, a carried value, and an explicit waiver of a constraint require separate interpretation.

Within the same day and time zone, "3pm" and "15:00" can denote the same time. A booking still needs the day and any relevant location or time zone to identify an appointment. A reference such as "the same as before" also needs a prior value to point to.

Special state markers

An ontology should say what the state stores and what an update operation expresses. The following conventions are useful examples.

  • ABSENT indicates that the state currently has no value for the slot.
  • UNCHANGED can label an update that leaves the prior slot value in place. It describes an operation on a state and can apply when the old value is absent.
  • DONT_CARE can store an explicit statement that any value is acceptable.
  • CONFLICT can represent incompatible candidate values whose conflict is still unresolved.

For example, "any room is fine" releases the room preference under this convention. An unanswered room question leaves the value absent. The executable demonstration uses only concrete values and ABSENT in the stored state. Updating an empty set of fields preserves its prior values.

Multi-Party Conversation

Several participants can carry on concurrent discussions in a common channel. The most recent message may belong to a different thread from the one being answered. Reply links can branch even in a two-person exchange. Adding participants increases the set of possible speakers and addressees.

An addressee is the participant a turn is directed to. A reply target is the earlier message it addresses. In the study-room exchange, Cleo directs her question to Ben and links it to his earlier offer. Her question starts a separate inquiry about the room. Ben's reply to Cleo advances that inquiry. A single participant can speak in both threads.

Kummerfeld and colleagues annotated messages from a shared chat channel with reply-structure graphs to study conversation disentanglement. Their annotation and thread extraction choices are specific to that corpus. Our demonstration supplies a single target per reply and applies a separate eligibility rule for the booking. Cleo's link to Ben's offer leaves the full graph connected while her question remains outside the booking tracker. Kummerfeld et al. (2019), §§4.2–4.3

With live data, the task could use message threading, lexical evidence, addresses, timing, or speaker identity to infer reply links and membership. These are separate predictions. A model can resolve a reply to the right message yet still need a rule for deciding which workspace or task owns the update.

Worked Example: Booking a Study Room

We now turn to the running example. The dialogue involves three speakers: A (Ana), B (Ben), and C (Cleo). Ana wants to book a study room. Ben is helping her. Cleo interjects with a question about the same room.

The study-room example uses three participants and two threads. Ben's clarification lets Ana specify a room size. Cleo's separate question tests whether a tracker can keep replies in the right thread. Ben's later correction tests whether the state can replace a candidate.

The dialogue has ten turns:

  1. A: "Can I book a study room for Thursday at 3pm?" (request)
  2. B: "Do you need a small room or a large room?" (clarify)
  3. A: "The first one, please." (inform)
  4. B: "Room 204 is free then." (offer)
  5. A: "Great, book it." (accept)
  6. C: "Sorry, is 204 free at 4pm too?" (question)
  7. B: "No, 204 is booked at 4." (answer)
  8. B: "Actually, 204 is taken at 3. How about 205?" (repair)
  9. A: "That works, thanks." (accept)
  10. B: "Booked." (acknowledge)

The dialogue exhibits several phenomena:

  • Clarification subdialogue. Ben names two sizes in turn 2. Ana's reply in turn 3 refers to the order of those options.
  • Acceptance and confirmation. Ana accepts the offer in turn 5. Ben reports the booking in turn 10.
  • Repair. Ben retracts the earlier offer and proposes room 205 in turn 8.
  • Interleaved question. Cleo asks Ben about the room in turn 6. Ben answers Cleo in turn 7. These turns advance a separate inquiry.

The task is to track the state of the booking conversation: day, time, size, and room. The gold state after turn 10 is:

  • day: Thursday
  • time: 3pm
  • size: small
  • room: 205

The reference is an interpretation of the booking thread. The initial offer mentions 204, and that number also appears in a separate availability inquiry. Ben later retracts the initial offer and Ana accepts the alternative. The final booking time remains 3pm.

We will compare two trackers: a context-free baseline that processes each turn in isolation, and a context-aware tracker that uses reply links and act labels.

Segmentation

Segmentation divides a conversation into turns or other declared units. Each line is one turn in this example. A chat platform can supply message boundaries directly. Finding turn or act boundaries in a continuous speech signal may require an additional model and an annotation policy.

Speech segmentation needs an annotation policy for short feedback, overlaps, and pauses. For example, a listener's "mm-hmm" can occur during another person's turn. A diarization track can represent both speakers at the same time. An annotation scheme also needs to decide which stretches count as communicative units and whether boundaries align to words or times.

Act labeling

Act labeling assigns functions to annotated units, which can be turns or smaller segments. The fixture supplies one label per message from this inventory: request, clarify, inform, offer, accept, question, answer, repair, acknowledge.

The same short utterance can fill several functions. "3pm" could answer a question, confirm a suggested time, or propose a new time. An online act labeler can use the preceding turn, an available reply link, and the current task state. Evaluation should specify which of those inputs are supplied.

Response linkage

Response linkage identifies the earlier turn a reply addresses. This example supplies the links. A chat platform may record some links explicitly and leave others to be inferred. The dialogue uses the following links.

  • Turn 2 replies to turn 1 (clarification of the request).
  • Turn 3 replies to turn 2 (answer to the clarification).
  • Turn 4 replies to turn 1 (offer in response to the request).
  • Turn 5 replies to turn 4 (acceptance of the offer).
  • Turn 6 replies to turn 4 (question about the offered room).
  • Turn 7 replies to turn 6 (answer to Cleo's question).
  • Turn 8 replies to turn 4 (repair of the offer).
  • Turn 9 replies to turn 8 (acceptance of the repaired offer).
  • Turn 10 replies to turn 9 (acknowledgement of the booking).

The annotated repair illustrates a reply beyond the most recent turn. Turn 8 reaches back to turn 4 across turns 5 to 7. A baseline that always links to the preceding turn misses this edge. A comparison can score exact target accuracy when each reply has one gold target, or link-level precision and recall when turns can have several targets.

Conversation membership

Conversation membership is the task of determining which turns belong to the same conversation. In our example, the booking conversation is the A-B thread. Cleo's question (turn 6) and Ben's answer (turn 7) form a side thread that does not belong to the booking conversation.

The toy rule admits a root from an eligible booking participant. It admits a later reply if that speaker is eligible and the reply’s parent was admitted. Turn 6 has speaker C and is excluded. Turn 7 has speaker B, but its parent is turn 6, so it is also excluded.

Both threads discuss room 204. The fixture contains one eligible booking root. The helper would also admit another root from A or B and combine its admitted replies with the booking. For concurrent bookings by the same pair, select the root ID for the booking you want to track and pass only that root and its reply descendants to the tracker. The speaker and admitted-parent checks still apply within that branch.

Context-free tracking

The context-free tracker processes each turn in isolation. It extracts slots from the text using pattern matching and applies them to the state, overwriting previous values. It does not use reply links, act labels, or conversation membership.

The baseline writes matching fields from each message in order. For a longer evaluation, define a copy-forward baseline explicitly. Reusing the previous annotated state measures reference stability. Reusing the tracker’s own prediction can propagate its errors.

Three incorrect values remain at the end.

  • The clarification question contains both sizes. The extractor tests small, medium, and large in that order. It keeps renewing the slot as it finds a match, so it retains large. It cannot resolve Ana's ordinal reply.
  • Cleo's question contains 4pm, which overwrites 3pm. Ben's reply repeats 204, but its bare '4' matches no time pattern, so the wrong 4pm is carried forward.
  • Ben's repair contains both 204 and 205. The baseline keeps the first match, 204.

Context-aware tracking

The context-aware tracker uses reply links and act labels. It applies three rules:

  • Conversation membership. The tracker considers updates only on admitted turns.
  • Reply-to routing. An answer labeled inform can select a size by its position in the linked question. The clarification question itself leaves the state unchanged.
  • Repair replacement. The toy parser takes the last room number in a repair turn, corresponding to the replacement candidate in this fixture.

The rules use the supplied reply links and act labels differently. Membership controls which turns can write to the booking. The reply target supplies the two options for Ana's short answer. The repair label activates a distinct rule for which room number to extract.

The context-aware tracker derives 'small' from the linked question, preserves 3pm across Cleo's side inquiry, and changes the candidate to room 205 when Ben repairs his offer.

Evaluation

We evaluate the final state after turn 10, for the booking conversation only, on the four slots day, time, size, and room. The gold state is specified independently by hand. We report two metrics:

  • Joint-state match: 1 if all four slots match the gold state, 0 otherwise.
  • Slot matches. Record a binary match for each slot. The fraction across the four indicators summarizes how many slots agree in this case.

A joint-state match requires every field in this task's four-slot representation to agree. A slot-level report shows where the errors are. For many evaluation cases, average the per-case exact matches and report the slot reference policy, including whether absent slots count. A tracker can recover these four values and still need separate checks before taking an external action.

The summary metrics concern the booking state immediately after turn 10. The state timeline uses separately annotated prefix states to show where each tracker's errors begin. The next-speaker demonstration uses the actual next post in the whole channel as its target.

Code Implementation

The following Python example uses a fixed transcript and hand-labeled inputs. It can run on a CPU without a public corpus or a model endpoint. The slot extractor deliberately supports a restricted set of English words and patterns so that you can follow its behavior by hand.

Setup and data structures

We define the absent marker and a record with the turn ID, speaker, text, annotated reply target, and toy act label.

PythonIn [3]
CollapseExpand
import re
from dataclasses import dataclass
from typing import Optional

ABSENT = "<absent>"

SLOTS = ("day", "time", "size", "room")
BOOKING_PARTICIPANTS = frozenset({"A", "B"})


@dataclass
class Turn:
    turn_id: int
    speaker: str
    text: str
    reply_to: Optional[int] = None
    act: Optional[str] = None

The record stores the same fields for all ten turns. In this experiment an annotator supplies the act and reply fields. The absent marker identifies slots that lack a value.

The dialogue

We encode the ten-turn dialogue as a list of Turn objects.

PythonIn [4]
CollapseExpand
dialogue = [
    Turn(
        1, "A", "Can I book a study room for Thursday at 3pm?", None, "request"
    ),
    Turn(2, "B", "Do you need a small room or a large room?", 1, "clarify"),
    Turn(3, "A", "The first one, please.", 2, "inform"),
    Turn(4, "B", "Room 204 is free then.", 1, "offer"),
    Turn(5, "A", "Great, book it.", 4, "accept"),
    Turn(6, "C", "Sorry, is 204 free at 4pm too?", 4, "question"),
    Turn(7, "B", "No, 204 is booked at 4.", 6, "answer"),
    Turn(8, "B", "Actually, 204 is taken at 3. How about 205?", 4, "repair"),
    Turn(9, "A", "That works, thanks.", 8, "accept"),
    Turn(10, "B", "Booked.", 9, "acknowledge"),
]
ConsoleOut [5]
CollapseExpand
[1] A (request): Can I book a study room for Thursday at 3pm?
[2] B (clarify) -> turn 1: Do you need a small room or a large room?
[3] A (inform) -> turn 2: The first one, please.
[4] B (offer) -> turn 1: Room 204 is free then.
[5] A (accept) -> turn 4: Great, book it.
[6] C (question) -> turn 4: Sorry, is 204 free at 4pm too?
[7] B (answer) -> turn 6: No, 204 is booked at 4.
[8] B (repair) -> turn 4: Actually, 204 is taken at 3. How about 205?
[9] A (accept) -> turn 8: That works, thanks.
[10] B (acknowledge) -> turn 9: Booked.

The printout confirms the structure: each turn has a speaker, an act, and (except for the first) a reply-to link. The reply_to values encode the graph described earlier. The act labels encode the small inventory. Both are inputs in this example.

Slot extraction

We define a context-free slot extractor. It scans the text for day names, times with am/pm, size adjectives, and three-digit room numbers. The time pattern also matches strings such as 99:99pm. It removes ordinary spaces from a match and leaves other whitespace intact.

PythonIn [6]
CollapseExpand
def extract_slots(text):
    """Context-free slot extraction: scan the utterance in isolation."""
    slots = {}
    for day in ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]:
        if day.lower() in text.lower():
            slots["day"] = day
    m = re.search(r"\b(\d{1,2}(?::\d{2})?\s*(?:am|pm))\b", text, re.I)
    if m:
        slots["time"] = m.group(1).lower().replace(" ", "")
    for size in ["small", "medium", "large"]:
        if re.search(rf"\b{size}\b", text, re.I):
            slots["size"] = size
    m = re.search(r"\b(\d{3})\b", text)
    if m:
        slots["room"] = m.group(1)
    return slots

The extractor returns a dictionary containing the fields it recognizes in the current message. It leaves unmatched fields out of the returned dictionary. The tracker decides what to do with those omissions.

Context-free tracker

The context-free tracker applies the extractor to each turn and overwrites the state.

PythonIn [7]
CollapseExpand
def track_context_free(dialogue):
    state = {s: ABSENT for s in SLOTS}
    history = []
    for turn in dialogue:
        for k, v in extract_slots(turn.text).items():
            state[k] = v
        history.append(dict(state))
    return state, history

The tracker returns both the final state and the state after each turn. The history is useful for visualization and debugging. The history is a list of copies, so later updates do not mutate earlier snapshots. That matters if we want to inspect where the tracker went wrong.

Conversation membership

We define a function that determines which turns belong to the booking conversation. A turn belongs if its speaker is A or B and its reply-to chain stays within the conversation.

PythonIn [8]
CollapseExpand
def conversation_membership(dialogue, participants):
    in_conv = {}
    for turn in dialogue:
        if turn.speaker not in participants:
            in_conv[turn.turn_id] = False
        elif turn.reply_to is None:
            in_conv[turn.turn_id] = True
        else:
            in_conv[turn.turn_id] = in_conv.get(turn.reply_to, False)
    return in_conv

The function visits parents before their replies. Turn 6 is written by Cleo, who is outside the pair. Turn 7 is written by Ben and inherits the exclusion of turn 6. The rule assumes unique turn IDs and a transcript in which each reply target appears earlier.

Context-aware tracker

The context-aware tracker uses conversation membership, reply-to routing, and repair replacement.

PythonIn [9]
CollapseExpand
def linked_choice(turn, by_id):
    """Read 'first one' or 'second one' against a linked size question."""
    if turn.act != "inform" or turn.reply_to is None:
        return {}
    question = by_id[turn.reply_to]
    if question.act != "clarify":
        return {}
    match = re.search(r"\b(first|second)\s+one\b", turn.text, re.I)
    options = re.findall(r"\b(?:small|medium|large)\b", question.text.lower())
    if match and len(options) == 2:
        position = {"first": 0, "second": 1}[match.group(1).lower()]
        return {"size": options[position]}
    return {}

We route the short answer before applying updates. The helper reads the options in their order in the antecedent. A repeated option or a more complex answer would need a richer parser. When calling linked_choice directly on an inform turn with a reply link, include the target in by_id. The tracker checks membership first, which excludes replies with missing targets. It preserves the old state when a turn supplies no update.

PythonIn [10]
CollapseExpand
def track_context_aware(dialogue):
    state = dict.fromkeys(SLOTS, ABSENT)
    history = []
    by_id = {turn.turn_id: turn for turn in dialogue}
    in_conv = conversation_membership(dialogue, BOOKING_PARTICIPANTS)
    for turn in dialogue:
        if in_conv[turn.turn_id] and turn.act in {
            "request",
            "inform",
            "offer",
            "repair",
        }:
            updates = extract_slots(turn.text)
            updates.update(linked_choice(turn, by_id))
            if turn.act == "repair":
                rooms = re.findall(r"\b(\d{3})\b", turn.text)
                if rooms:
                    updates["room"] = rooms[-1]
            state.update(updates)
        history.append(dict(state))
    return state, history

At turn 3 the helper uses the link to turn 2 and reads 'small' as the first offered size. At turn 8 the room pattern finds both 204 and 205. The repair rule uses the last match because this transcript puts the replacement last. It is a parser for the fixture's wording. An arbitrary correction could name the candidate first or mention more than two rooms.

Evaluation

We define the gold state and compute the metrics.

PythonIn [11]
CollapseExpand
gold = {"day": "Thursday", "time": "3pm", "size": "small", "room": "205"}

cf_state, cf_hist = track_context_free(dialogue)
ca_state, ca_hist = track_context_aware(dialogue)


def joint_match(pred, gold):
    return int(all(pred[s] == gold[s] for s in SLOTS))


def per_slot(pred, gold):
    return {s: int(pred[s] == gold[s]) for s in SLOTS}
ConsoleOut [12]
CollapseExpand
Gold:           {'day': 'Thursday', 'time': '3pm', 'size': 'small', 'room': '205'}
Context-free:   {'day': 'Thursday', 'time': '4pm', 'size': 'large', 'room': '204'}
Context-aware:  {'day': 'Thursday', 'time': '3pm', 'size': 'small', 'room': '205'}

Joint match (context-free):  0
Joint match (context-aware): 1

Per-slot (context-free):  {'day': 1, 'time': 0, 'size': 0, 'room': 0}
Per-slot (context-aware): {'day': 1, 'time': 1, 'size': 1, 'room': 1}

The context-free tracker gets the day right. It leaves 'large' in the size slot after the clarification, adopts 4pm from Cleo's question, and keeps 204 after the retraction. It matches one of four final values, so its joint match is 0. The context-aware tracker matches all four and its joint match is 1. This is one conversation with oracle labels and links.

The heatmap compares each snapshot to the hand-labeled state for that prefix. We write the expected changes directly from the dialogue. A missing value is marked ABS even when it is expected at that point. The initial candidate 204 is a match from turn 4 through turn 7. It becomes stale when turn 8 proposes room 205.

VisualizationOut [14]
CollapseExpand
The context-aware tracker keeps 3pm through the side inquiry and switches to room 205 at turn 8. The context-free tracker switches to 4pm and keeps room 204.
Slot values after each turn for both trackers. Empty slots are marked ABS. Concrete values are shaded by whether they match the manual reference for that turn. Room 204 matches the reference from turns 4 through 7. ABS shows the tracker has no value. Check the reference to tell whether that absence is expected.

Visualizing the reply-to structure

The reply-to graph shows how turns are linked. The side thread from Cleo hangs off turn 4 but does not belong to the booking conversation.

VisualizationOut [15]
CollapseExpand
Timeline of ten dialogue turns with reply-to arrows, colored by speaker.
Directed reply links in the ten-turn dialogue. Arrows point from each response to its target. Turns 6 and 7 form a side inquiry attached to turn 4.

Turn 6 links to turn 4, and turn 7 links to turn 6. The toy membership rule excludes both from the booking state. Ben appears in both threads, which is why the rule also reads the parent rather than looking only at the current speaker.

Visualizing final slot matches

Each bar records a single slot's final match indicator. The aggregate fraction across slots is reported above.

VisualizationOut [16]
CollapseExpand
The context-aware tracker matches day, time, size, and room. The context-free tracker matches only day.
Final-state matches for day, time, size, and candidate room. Each bar shows a single binary result against the hand-labeled reference after turn 10.

The four bar pairs show one binary match per tracker and slot. The context-free tracker matches only the day. The context-aware tracker matches every slot under the supplied annotations.

Next-speaker prediction

The next-speaker baseline uses the two participant pairs. It derives booking membership from the supplied speakers and reply links, then predicts the other participant in the corresponding pair. We score the predictions against the next post in the full channel. The fixture yields nine scored positions because turn 10 has no observed successor.

PythonIn [17]
CollapseExpand
def predict_next_speaker(dialogue):
    in_conv = conversation_membership(dialogue, BOOKING_PARTICIPANTS)
    predictions = []
    for i, turn in enumerate(dialogue[:-1]):
        nxt = dialogue[i + 1]
        if in_conv[turn.turn_id]:
            # predict the other participant in the booking conversation
            other = "B" if turn.speaker == "A" else "A"
            predictions.append((turn.turn_id, other, nxt.speaker))
        else:
            # predict the other participant in the side thread
            other = "B" if turn.speaker == "C" else "C"
            predictions.append((turn.turn_id, other, nxt.speaker))
    return predictions
ConsoleOut [18]
CollapseExpand
Next-speaker accuracy: 7/9 = 0.78
  after turn 1: predicted B, actual B [OK]
  after turn 2: predicted A, actual A [OK]
  after turn 3: predicted B, actual B [OK]
  after turn 4: predicted A, actual A [OK]
  after turn 5: predicted B, actual C [MISS]
  after turn 6: predicted B, actual B [OK]
  after turn 7: predicted C, actual B [MISS]
  after turn 8: predicted A, actual A [OK]
  after turn 9: predicted B, actual B [OK]

The baseline matches seven of the nine full-channel transitions. It misses when Cleo starts the side inquiry after turn 5 and when Ben returns to the booking thread after turn 7. If the target is instead the next message within each thread, the alternation rule matches all eight observed within-thread transitions in this fixture.

The chart marks each predicted and observed next speaker, making the two misses visible among the nine trials.

VisualizationOut [20]
CollapseExpand
Nine next-speaker predictions with misses at the two thread switches after turns 5 and 7.
Predicted and observed speakers for the nine next posts in the full channel. The rule misses after turn 5, when Cleo starts the side inquiry, and after turn 7, when Ben returns to the booking thread.

Limitations & Impact

The worked example is small and controlled. Real conversations are messier, and the gap between the example and a deployed system is large. Several limitations deserve attention.

Input modality. A transcript of words alone omits intonation, gaze, and the timing of overlaps. Time stamps, audio, or video can add evidence when the application has them. A plain message list supports a different segmentation task from a recording of overlapping talk.

Supplied annotations. The case uses message boundaries and hand-assigned acts and reply links. A live system can use platform boundaries and recorded reply links when available. For any predicted inputs, measure their errors and the resulting change in slot predictions.

Annotation schemes are design choices. The ISO 24617-2 standard provides a rich multidimensional framework, but it is not the only possible framework. Different tasks require different inventories. A system trained on one scheme may not transfer to another. The choice of scheme affects what counts as correct, and therefore what counts as an error.

Evaluation boundary. The end-state comparison uses only four slots after turn 10. Evaluation on every prefix would include additional cases, such as the candidate room proposed before it was corrected. A downstream evaluation can also check whether a system asked for clarification or performed the requested action successfully.

Vocabulary coverage. The extractor matches specified English phrases and time expressions with 'am' or 'pm'. An application needs to cover the expressions used in its deployment languages, including local date and time formats, and needs to test each supported form.

Overlapping membership. The example supplies two speaker pairs. The same pair can pursue several requests in one channel, and one message can contribute to more than one task. Reply-link and membership errors can have different downstream effects when a message directs a tool action.

The example uses one hand-labeled state trajectory. In a live dialogue several candidates can remain plausible. A single returned state does not reveal how strongly the tracker prefers it. Alongside reference-state matching, evaluate whether the system asks for clarification when needed and whether its next action succeeds.

A booking state can contain preferences and details about a person's schedule. A real deployment needs to decide which values are required for the current task, which can be discarded afterward, and what a participant can inspect or change.

The context-aware tracker makes its update rule and supplied annotations visible. This lets us trace when an update depends on a reply link, an act label, or a membership decision. In this transcript the two inquiry turns already fail the writable-act filter, so disabling only the membership filter leaves every tracked state unchanged. Evaluating membership as a separate input requires examples where an otherwise eligible act addresses another task.

Act labels let a system distinguish a question, a clarification, and a correction in the same channel. A system about to book a room can use those distinctions alongside separate checks that the room remains available and that the participant approved the booking.

The next Part IX chapter studies how participants offer evidence and advance positions. The reply structure still matters because a response can address a claim made several turns earlier.

Summary

Turn boundaries and speakers locate an action in a conversation. Act labels describe communicative functions, and reply links identify earlier contributions a turn addresses. Participants establish understanding for a purpose through grounding and can resolve trouble through repair. A dialogue state encodes the subset of information a task needs.

In the study-room example, the context-aware tracker uses the supplied reply link and act label to resolve Ana’s ordinal answer. It keeps 3pm across the inquiry and takes the last number in Ben’s labeled repair. The inquiry also fails the act gate, so this example cannot isolate a membership effect. A live system needs separate evaluation of its structural inputs and its downstream actions.

The key takeaways are:

  • Local turn allocation describes how participants manage who speaks next. Segmentation and next-speaker prediction are separate modeling tasks.
  • Annotation schemes can label whole turns or smaller segments. Multidimensional schemes can capture several functions.
  • Grounding establishes mutual belief that a contribution was understood sufficiently for the current purpose.
  • Repair initiation signals trouble. A repair can resolve it through clarification, confirmation, or correction.
  • Define how a state and its update operations represent absent values, carried values, explicit waivers, and conflicts.
  • Reply target, addressee, and thread membership answer different questions in a multi-party conversation.
  • Evaluation boundaries must be declared explicitly, and results interpreted relative to them.

The fixture shows why a short reply can require information about what action it answers. Explicit structure helps make those assumptions visible when evaluating state updates.

Quiz

Ready to test your understanding? Take this quick quiz to reinforce what you've learned about dialogue acts, grounding, repair, and conversation structure.

Dialogue Acts and Conversation Structure

Question 1 of 80 of 8 completed
In the study-room fixture, why does Ben's reply in turn 7 get excluded from the booking conversation by the membership rule?
Join the discussionAsk a question or share what you learned.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

A different angle
All writing
Language AI Handbook · Vol. 3

Coreference Resolution

Learn how resolvers group mentions into entity clusters, score antecedents, prune candidate pairs, and evaluate partitions with MUC, B-cubed, and CEAF.

62 min read
Language AI Handbook · Vol. 3

Argumentation, Stance, and Persuasion

Separate argument structure, stance, quality, and persuasion. Learn claim-evidence graphs, target-conditioned stance metrics, and causal effect designs.

63 min read
Language AI Handbook · Vol. 3

Discourse Relations and Coherence

Learn how RST trees and PDTB relations model discourse, why entity-grid scores miss causal cycles, and how to diagnose coherence failures in generated reports.

60 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2026dialogueacts, author = {Michael Brenndoerfer}, title = {Dialogue Acts and Conversation Structure}, year = {2026}, url = {https://mbrenndoerfer.com/writing/dialogue-acts-conversation-structure-turn-taking-repair-state-tracking}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-11-25} }
APAAcademic
Michael Brenndoerfer (2026). Dialogue Acts and Conversation Structure. Retrieved from https://mbrenndoerfer.com/writing/dialogue-acts-conversation-structure-turn-taking-repair-state-tracking
MLAAcademic
Michael Brenndoerfer. "Dialogue Acts and Conversation Structure." 2026. Web. November 25, 2026. <https://mbrenndoerfer.com/writing/dialogue-acts-conversation-structure-turn-taking-repair-state-tracking>.
CHICAGOAcademic
Michael Brenndoerfer. "Dialogue Acts and Conversation Structure." Accessed November 25, 2026. https://mbrenndoerfer.com/writing/dialogue-acts-conversation-structure-turn-taking-repair-state-tracking.
HARVARDAcademic
Michael Brenndoerfer (2026) 'Dialogue Acts and Conversation Structure'. Available at: https://mbrenndoerfer.com/writing/dialogue-acts-conversation-structure-turn-taking-repair-state-tracking (Accessed: November 25, 2026).
SimpleBasic
Michael Brenndoerfer (2026). Dialogue Acts and Conversation Structure. https://mbrenndoerfer.com/writing/dialogue-acts-conversation-structure-turn-taking-repair-state-tracking
Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy