Dialogue Act Tagging for Instant Messaging Chat Sessions
Paper · 2005 · Edward Ivanovic
Summary
A customer can send a question and some background in the same chat message. A shopping assistant can begin answering the question while the customer is still sending the background. Both are ordinary events in instant messaging, but they complicate a basic task for a computer: identifying what each part of the conversation is doing. Edward Ivanovic studies this task through dialogue acts, labels for functions such as asking a question, giving an answer, making a request or acknowledging a response. The labels describe how a contribution is used in the exchange. Recognizing those functions could help a support system decide when to answer, acknowledge a customer or ask for clarification.
The study uses 9 conversations between customers and live assistants on MSN Shopping. Ivanovic adapts a larger inventory developed for spoken conversation into 12 tags suited to the shopping chats. Three graduate students annotate the material, marking where an utterance ends as well as which tag it receives. The reported agreement is 89%, with a chance-adjusted Kappa of 0.87. The boundaries matter because roughly 40% of messages contain more than one utterance. Ivanovic also uses message timestamps and the length of the later message to estimate which earlier contribution its writer had time to consider. The paper reports 94.2% accuracy at identifying that dependency, compared with 80% for assuming that each message depends on the one immediately before it.
For tagging, a naive Bayes classifier estimates how well the words in an utterance fit each possible act. A second source of evidence is the recent sequence of tags. For example, a yes–no question makes a yes answer a plausible next act. In 9-fold cross-validation, with an entire conversation held out for each test, assigning STATEMENT everywhere gives 36.0% accuracy. Using the words alone gives a mean of 80.1%. The best reported mean, 81.6%, comes from a bigram setting that uses the previous dialogue act. The trigram setting, which reaches further back, gives 80.9%. The paper excludes unobserved history conditions from its accuracy calculation, so the context scores need to be read alongside the coverage of those conditions.
The experiment shows how much the wording reveals about conversational function in these shopping chats and how immediate context can contribute. Its starting point is a sequence of utterances whose boundaries have already been marked by people. Finding those boundaries automatically, tracking exchanges with an intervening clarification, and deciding how a support agent should respond remain separate problems.
Deep dive: Dialogue Act Tagging for Instant Messaging Chat Sessions
How dialogue act tagging identifies questions, answers and other functions in typed shopping chats using words, timestamps and conversational context. · about 34 minutes to read
The problem and its context
What a message does in a conversation
A record of a shopping chat tells a reader what the participants typed. Following the exchange requires another kind of information. A reader needs to recognize when the customer requests something, when the assistant reports what they have done, and when a short reply acknowledges a suggestion or answers a question. Dialogue act tagging makes those distinctions explicit. Each tag describes the job an utterance performs at that point in the exchange. The label can be useful even when it leaves the subject matter entirely unspecified. A system can recognize that a customer is asking a yes–no question while still needing to interpret which product or action the question concerns.
The paper takes this idea from the account of illocutionary force in speech act theory. In this account, making an assertion or performing another act is part of what a person accomplishes by saying something. Dialogue act inventories extend that idea to the range of contributions people make in conversation. Some contributions advance the practical business of the exchange, as a request or an answer does. Others manage the interaction itself, as an opening, a closing or an acknowledgment does. In a service conversation, those functions can occur in quick succession. A short stretch of text can contain a social courtesy and a request that needs action. Speech act theory
The distinction between an act and its wording also explains why context can help. Consider the difference between reporting that a colleague is unavailable and giving that same information in response to a question about whether the colleague is there. The phrase can be a statement in the first setting and a negative answer in the second. An inventory that retains both labels asks the annotator to take the surrounding exchange into account. The content remains broadly the same. The relation to what has just been asked changes how the contribution is classified.
Why the chat log needs interpretation
The paper distinguishes a turn, a message and an utterance. A turn is a participant’s contribution while they have the floor in the ordinary conversational sense. In chat, the participant can send it in installments. Each installment is a message, the text transmitted together when the participant sends it. An utterance is the unit assigned a dialogue act. It can be a full sentence, part of a sentence or an emoticon that contributes a recognizable expression by itself.
These divisions answer different questions. A message boundary says where the sender chose to transmit some text. An utterance boundary says where the function being tagged changes. A turn boundary says where another participant’s contribution enters the exchange. Treating the message as the default unit for all of these purposes would collapse distinctions that matter to the experiment. A single transmission can contain a statement followed by a question. Conversely, several transmissions can belong to a turn that the sender was still composing when the other participant began responding.
The possibility of composing a reply before the next message appears creates a problem even when the transcript displays the messages in correct arrival order. The timestamps tell which transmission reached the log first. They leave open when a participant began composing the reply and which earlier messages that participant had seen. A reply can appear immediately below a contribution that it had little or no opportunity to address, while the message that actually prompted it appears further up. A person reading the transcript can sometimes infer the connection from its content. Ivanovic investigates whether timing offers a usable cue independent of that reading.
For the classifier, the consequence is concrete. If recent tags are to help predict the current act, there must be some connection between that context and what the participant was responding to. For instance, an answer may follow a statement in the display because the assistant sent more information while the customer was typing. The answer can still belong with an earlier question. A history built directly from the display would associate the answer with the intervening statement. That changes both the regularities learned from annotated dialogues and the evidence available when tagging a new utterance.
What earlier work supplied
As Ivanovic describes the field, most work on discourse structure had concentrated on transcribed spoken conversation. Earlier studies had already used dialogue acts as an initial representation of what happens in an exchange. The paper cites speech recognition and understanding research by Jurafsky and colleagues and work on probabilistic dialogue by Kita and colleagues. Its most direct starting point for the label inventory is Stolcke and colleagues’ study of conversational speech. Their inventory draws on Dialog Act Markup in Several Layers, or DAMSL, and gives Ivanovic categories to start from when examining typed shopping exchanges. Dialogue act modeling for automatic tagging and recognition of conversational speech
The earlier uses of dialogue acts suggest reasons to care about a representation above the level of individual words. The paper mentions speech translation as one application. It also points to the detection of dialogue games, in which several contributions can be understood together as a conversational activity. The distinction foreshadows an issue in the shopping chats. A tag describes the function of an individual contribution, while a game can describe the relation among contributions that belong to the same activity. Tagging of Speech Acts and Dialogue Games in Spanish Call Home
Ivanovic’s reason for studying instant messaging separately is the combination of written language and real-time exchange. The shopper and assistant respond as a conversation unfolds, but they parcel their contributions into typed messages. That packaging makes the analyst responsible for finding the units to label and for deciding which messages belong together in the conversational sequence. The paper treats this as a practical problem for research on online assistance. A support system could use information about whether an utterance is a statement or a question when deciding what kind of response to offer. The study isolates recognition of those functions as a step towards that application. Dialogue systems
The method, step by step
From a shopping transcript to labelled utterances
Ivanovic begins with conversations from a live shopping service. Customers use MSN Shopping to seek help finding products, and assistants respond through instant messaging. Because the exchanges come from the service being studied, they contain the combination of practical requests, short replies and routine courtesies that the tagger is intended to recognize. The material supplies both the words used for classification and the sequence from which the study estimates conversational context.
The first task is to decide what counts as an instance of a label. A message may begin by explaining a problem and end by asking the assistant to do something. Giving that entire message a single tag would require choosing which contribution stands for the whole. In the paper’s procedure, a person puts a boundary where the act changes and assigns a tag on each side. Annotating the functions therefore also creates the segmentation. Sentence punctuation can sometimes suggest where to split, but the unit the paper defines is the smallest meaningful contribution it needs to label. Several such contributions can appear within a sentence, and a short expression can stand by itself. Linguistic annotation
The paper illustrates this with an exchange about a customer who had previously been talking to another assistant. The customer explains that the earlier conversation was interrupted and then asks to be transferred back. Those parts of the message serve different purposes. The explanation gives the situation, while the question asks about a possible action. Later in the passage, the assistant offers help and prompts the customer to explain what they need. Again the send operation groups together material that can be labelled separately. These examples explain why the classifier’s input is an utterance cut from a message, even though message-level timing is retained for the separate synchronization step.
From shopping chat transcripts to dialogue act predictions
The steps in order.
Adapting the tag inventory
Ivanovic starts with the 42 tags used by Stolcke and colleagues and selects or merges categories while applying them to the shopping corpus. The result is an inventory of 12 tags. The procedure is grounded in what the annotators encounter. The paper describes discarding distinctions such as self-talk and uninterpretable material because it regards them as unsuitable for the typed dialogue at hand. It also describes merging categories that were hard to separate in the collected exchanges. NO-ANSWER, for example, covers negative replies that the larger inventory could distribute among negative-answer and rejection categories.
The resulting inventory distinguishes several ways of contributing information or requesting it. STATEMENT covers an assertion or report. YES-NO-QUESTION seeks a response framed as affirmation or denial. OPEN-QUESTION asks for information that requires a more specific answer. REQUEST is available when an utterance directs the other participant toward an action. YES-ANSWER and NO-ANSWER identify affirmative and negative responses. A short receipt of what someone has said can receive RESPONSE-ACK. These labels capture separate functions even when the practical consequences are similar. An assistant may proceed after receiving an acknowledgment or an affirmative answer, but the former registers another contribution and the latter answers a question.
Other categories capture familiar parts of a service exchange. CONVENTIONAL-OPENING covers greetings, and CONVENTIONAL-CLOSING covers farewells. THANKING marks the expression of thanks. DOWNPLAYER can apply to a courteous response that minimizes the burden of having helped. EXPRESSIVE covers material such as laughter, an emoticon or a written expression of irritation. The inventory therefore includes acts concerned with how the participants manage their interaction alongside those concerned with obtaining shopping information.
Three computational linguistics graduate students carry out the labelling. The reported raw agreement is the proportion on which annotators agree under the study’s procedure. The paper also gives Kappa, a statistic that adjusts agreement for the amount expected by chance. This matters in a corpus where a common label such as STATEMENT can account for many coincident choices. Kappa places observed agreement in relation to an expectation for agreement by chance, giving the reader another way to assess whether the inventory can be applied consistently. Assessing Agreement on Classification Tasks: The Kappa Statistic
Estimating which message a writer could have considered
For the timing procedure, a message depends on an earlier one if its writer had already seen and presumably considered the earlier message when writing it. This is a relation between transmissions. It supplies evidence about the context available to the writer before the utterances inside those transmissions are treated as a tag sequence.
Mᵢ depends on M_d, with 0 < d < i
Here Mᵢ is the current message, and i is its position in the message log. M_d is the candidate earlier message, and d is its position. The inequalities put d after the zero index and strictly before i. The paper indexes the first message as M₁. The candidate can therefore be the immediately preceding message or an earlier one.
The example about the previous shopping assistant shows what the timing signal is meant to contribute. Message 12 is a customer contribution. By the time it appears in the log, Sally has sent message 11 as a continuation of turn 6. Read in display order alone, the customer can appear to disregard that last contribution. Ivanovic instead connects message 12 to message 10. Only 1 second separates messages 11 and 12, which the paper reads as too little time for the customer to have seen message 11 and produced message 12 in response. In this example, the clock supports an interpretation of why adjacent lines in the transcript do not form a conversational pair.
The implementation uses the length of the current message as well as the interval. The guiding idea is that a delay that is plausible for a short acknowledgment may be less plausible for a long reply. If composition had to begin after the candidate message appeared, the logged interval would need to accommodate typing the current text. An earlier candidate offers more elapsed time. The procedure searches backward from the current message to find a stopping point.
The paper displays the timing quantity as follows.
r = [time(Mᵢ) − time(M_d)] / length(Mᵢ)
Here r names the displayed quantity. The function time gives a message’s timestamp, so the subtraction measures the interval between the current and candidate messages. The function length counts the characters in the current message. The bracketed subtraction is evaluated before division. On the displayed definition, r has units of time per character.
The backward scan in the paper begins with d at i, then moves back before making its first comparison.
d ← i
The arrow assigns the value on its right to the index on its left. With i fixed at the current message, this assignment places the candidate index at that message before the scan.
d ← d − 1
The subtraction moves d to the message immediately before its current position. The constant 1 is a single position in the log. On the first pass this makes the previous message the candidate. If the scan continues, the same update moves to the next earlier candidate.
At each step, the pseudocode evaluates the timing quantity and stops when any of its conditions holds.
r < τ or d = 1 or speaker(Mᵢ) = speaker(M_d)
Here τ denotes the timing threshold. The symbol < means strictly below, = tests equality, and or makes any one of the conditions sufficient to stop. The middle condition means the candidate has reached the first message. The function speaker gives the identity of a message’s author, so the final condition stops the scan at a candidate written by the author of the current message. This same-speaker check is part of the published rule, alongside the timing comparison and the start-of-log boundary.
The paper reports calibrating its cutoff from roughly 300 messages whose dependencies had been marked by hand. It takes the 90th percentile of the observed typing rates and gives the resulting threshold as 5 characters per second. The printed equation and the stated threshold use reciprocal units: elapsed time divided by character count is time per character, while the threshold is given in characters per second. There is also a directional issue if the printed ratio and strict less-than test are read together. For a fixed current message length, moving to an earlier candidate increases the elapsed time and hence the ratio. The account of the shopping example motivates searching for a candidate that allows enough composition time. The paper leaves the exact reconciliation of the formula, comparison and units unspecified.
The intended division of work is clear despite that ambiguity. Human annotation tells the study where to find utterances and supplies examples of actual message dependencies for setting the timing cutoff. The timing rule supplies a way to infer dependencies from a transcript. The study then uses re-synchronized context in training and classification. At this point the relevant output is an ordering or history suitable for the tagger, so that it can learn about conversationally related acts with less interference from the order in which the messages reached the log.
Giving each candidate tag a score
Ivanovic states the broad objective in terms of the most probable sequence of dialogue acts given the evidence in a conversation. In the paper’s notation the objective is to select the sequence with the highest posterior, the probability after taking the evidence into account.
argmaxᵁ P(U | E)
Here U is a candidate sequence of dialogue acts, and E denotes the available evidence about the dialogue. P names a probability, and the vertical bar means “given.” The argmax chooses the U with the largest conditional probability. The operational equations that follow give a decision rule for the current utterance using its words and, in the context settings, earlier tags. The paper sets up the local task as classification given past utterances and their tags.
The current utterance enters the classifier as a bag of words. This representation records the words as features and leaves out their order. Two utterances containing the same words have the same lexical representation even if one begins with an auxiliary verb and the other begins with the subject. The classifier asks which tags make the observed features likely. That direction matters. A word can appear across several kinds of utterance, but being especially common under a particular tag makes it evidence for that tag when the system compares candidates.
The starting expression applies Bayes’ rule to the tag score.
d̂ = argmax_{d ∈ D} [P(v̄ | d) P(d) / P(v̄)]
Here d̂ is the selected tag, d is a candidate tag, and D is the set of available tags. The symbol ∈ means that d belongs to D, and the argmax chooses the candidate with the greatest score. The vector v̄ is the bag-of-words representation. P(v̄ | d) is the likelihood of the observed lexical features under the candidate tag. P(d) is the prior probability of that tag, before the words of the current utterance enter the score. P(v̄) is the overall probability of the feature vector. The juxtaposed terms in the numerator are multiplied, and the result is divided by P(v̄).
For the decision about a particular utterance, every candidate uses the same P(v̄). It scales their scores together, so the classifier can drop it when choosing the largest score. What remains is to estimate the likelihood of the observed words under each tag. Estimating a probability for each complete vector would require seeing enough comparable utterances to learn how all their features occur together. Naive Bayes makes this problem simpler by approximating the joint likelihood as a product of feature probabilities conditioned on the tag.
P(v̄ | d) ≈ ∏_{j=1}^n P(vⱼ | d)
Here v̄ and d keep their meanings as the utterance vector and candidate tag. The symbol ≈ marks the approximation, and ∏ indicates multiplication across features. The index j starts at 1 and runs through n, the number of elements in the vector. The feature value at position j is vⱼ. Each factor P(vⱼ | d) gives the probability of that feature value under the tag being scored. This factorization treats the features as conditionally independent given the tag. It is a working assumption for estimating the score from limited data.
Combining the factorization with the shared denominator gives the paper’s basic decision rule.
d̂ = argmax_{d ∈ D} P(d) ∏_{j=1}^n P(vⱼ | d)
Here d̂ is again the selected tag, and argmax ranges over candidate tags d in D. The first factor is the prior P(d). The product takes the conditional probability of every indexed word feature vⱼ, from j equal to 1 through n, and multiplies those probabilities together. The chosen tag has the highest resulting score. The paper specifies add-one smoothing for estimating P(vⱼ | d). This gives an unseen feature event a positive estimate so that a zero in the training counts does not, on its own, force the entire product to vanish.
The linguistic intuition behind the likelihood is simple. Thanking and some greetings or farewells have characteristic vocabulary. A direct answer can be very short and use a conventional affirmation or denial. The product gives the classifier a way to assemble evidence from those patterns without specifying a hand-written test for each tag. It also leaves room for ambiguity. The words of an acknowledgment may offer little information about whether it answers a question or registers what the assistant has just said. In those cases, a prior based on dialogue context can tilt the decision.
Changing the prior changes what counts as context
The paper tries several ways of weighting the same lexical score. The likelihood-only setting omits the prior factor, allowing the words to determine the ranking. The unigram setting uses the overall probability of each act, P(d). This gives more common acts a higher prior wherever they occur. The bigram and trigram settings instead estimate a probability for the current tag given a short history of earlier tags. A unigram concerns a tag by itself, a bigram joins the preceding tag with the current one, and a trigram includes the earlier history position as well. The items counted in these sequences are dialogue act labels. N-gram
The contextual form can be written by substituting the conditional tag probability into the basic decision rule.
d̂ = argmax_{d ∈ D} P(d | H) ∏_{j=1}^n P(vⱼ | d)
Here H is the history of preceding dialogue acts, with the previous act for the bigram and the previous 2 acts for the trigram. The term P(d | H) is the probability of the candidate tag d given that history. As before, D contains the possible tags, the product combines the probabilities of the indexed lexical features vⱼ for j from 1 through n, and d̂ is the candidate with the largest product after weighting by the history-conditioned probability.
The bigram relies on the idea of an adjacency pair. Some moves establish a recognizable expectation for what follows, as a question does for a possible answer. If the preceding act is a yes–no question, an affirmative answer is a more plausible continuation than a conventional closing. The paper says this tendency appears in its estimated bigram transitions. The higher-order setting asks whether another preceding act improves the prediction. In both settings, the current words still contribute. A context that favors an answer and words that favor a question produce competing evidence, resolved by the product in the decision rule. Discourse analysis
The estimates are trained and evaluated with entire dialogues as the units of partition. Word features and tag histories come from the training dialogues, and the trained classifier is applied to the utterances of the held-out dialogue. The history conditions used during testing also determine which contextual decisions the paper includes when calculating accuracy. That is important to the comparison. A longer history can support a specific prediction when the pattern has occurred in training, while the same specificity creates more opportunities for a held-out pattern to be unfamiliar.
Experiments and results
The corpus and its labels
The evaluation uses 9 MSN Shopping dialogues. These are task-oriented exchanges between a customer and a live assistant, with language aimed at finding an item or moving the service interaction forward. The acts in the corpus differ substantially in frequency. STATEMENT accounts for 36.0% of the utterances, followed by THANKING at 14.7% and YES-NO-QUESTION at 13.9%. The frequency of THANKING shows that routine service language makes up a substantial part of the prediction task alongside statements and questions.
The other frequencies give a clearer picture of what overall accuracy represents. RESPONSE-ACK makes up 7.2% of the utterances, REQUEST 5.9%, and OPEN-QUESTION 5.3%. YES-ANSWER has a frequency of 5.1%, and NO-ANSWER has a frequency of 2.5%. A classifier can thus face an affirmative or negative response in a corpus where questions framed for such answers are more common than either answer category. That distribution leaves room for replies whose wording or function fits a different tag.
Among the remaining acts, CONVENTIONAL-CLOSING accounts for 2.9% of utterances. CONVENTIONAL-OPENING and EXPRESSIVE each account for 2.3%, and DOWNPLAYER accounts for 1.9%. These are corpus proportions. They give a sense of how often the classifier encounters the different labels, and why a single overall result is driven more by common acts. The paper does not give a corresponding accuracy for each of these categories, so their individual frequencies should be read as information about the task.
The annotators reach 89% agreement and a Kappa of 0.87. Ivanovic takes this as evidence that the adapted inventory can be applied with high reliability to the collected material. It is a result about human labelling. The classifier evaluation asks a different question, namely how often the predicted act agrees with the annotation for a test utterance. The separate annotation result matters because those labels define success for the automatic system.
How well timing identifies dependencies
Ivanovic reports that 20% of the messages are out of synchronization in the sense used by the paper. For those messages, looking immediately above the current contribution in the transcript leads to the wrong dependency. The direct baseline assumes that the current message depends on the immediately previous message, giving 80% accuracy. The backward search based on timestamps, message length and the algorithm’s stopping conditions reaches 94.2% correct dependency detection.
Message dependency detection accuracy in the MSN Shopping chats
The timing-based search identifies more dependencies correctly than the previous-message rule.
The numbers
| System or setting | accuracy % |
|---|---|
| Immediately preceding message | 80 |
| Timing-based backward search (this paper) | 94.2 |
The unit in this comparison is the message. A correct decision identifies the earlier message indicated by the dependency annotation. This result concerns recovering a link between contributions. Tagging accuracy, by comparison, concerns predicting the function of an utterance. Correcting a link can make a relevant tag available to the history estimator, but the dependency experiment does not measure the subsequent effect on the classifier’s label choices.
The timing cutoff comes from the manually labelled set of approximately 300 messages described in the method. The paper gives a baseline and the accuracy of the resulting rule, while leaving the relationship between the cutoff-setting examples and the examples used to report dependency accuracy unspecified. The comparison establishes the outcome the paper observed for the rule relative to immediate precedence. A separate evaluation of a fixed cutoff on new conversations would address whether that same setting transfers.
How the tagger is tested
The tagger is evaluated by 9-fold cross-validation. In each fold, 8 dialogues supply the training examples and 1 dialogue supplies the test utterances. The held-out dialogue changes across folds so that the reported average reflects testing across the corpus. Holding out conversations as units is important because adjacent utterances share a conversational setting and provide one another’s history. The procedure tests on an exchange that was excluded from the corresponding training fold.
The paper reports minimum, maximum and mean accuracy across the folds for the learned settings. Accuracy asks whether the selected dialogue act matches the annotated act for an utterance included in the evaluation. The minimum and maximum describe the extremes over held-out conversations. They are useful alongside the mean because the results vary across dialogues. A setting that has the best result on a particular held-out exchange need not have the best average over all exchanges.
The baseline selects the most common label, STATEMENT, for every utterance. It achieves 36.0%, matching the reported corpus proportion of the label. This indicates the performance available from a constant prediction in this particular label distribution. The likelihood-only setting is a second point of reference. It is a trained classifier that uses the words and omits any prior over dialogue acts. Comparing it with the other trained settings shows how the scores change when the same form of lexical evidence is weighted by more information about the tags.
Dialogue act tagging accuracy across held-out MSN Shopping dialogues
The bigram has the highest reported mean, with the likelihood-only classifier already scoring strongly.
The numbers
| System or setting | mean accuracy % |
|---|---|
| Always predict STATEMENT | 36.0 |
| Word likelihood only | 80.1 |
| Unigram tag prior | 80.6 |
| Bigram tag context (this paper) | 81.6 |
| Trigram tag context | 80.9 |
What the scores say across dialogues
Using only the words, the classifier attains a mean accuracy of 80.1%. Its minimum across held-out dialogues is 72.3%, and its maximum is 90.5%. The high mean supports Ivanovic’s argument that vocabulary is closely associated with dialogue function in these exchanges. Typical phrases in greetings, thanks and other recognizable moves offer evidence even when the system has no history prior. Because the paper reports overall accuracy, it leaves open how evenly that evidence helps across the inventory.
Adding the unconditional tag prior gives 80.6% mean accuracy. The unigram setting ranges from 74.7% to 90.5% across held-out dialogues. Its weighting can help when a word pattern fits several acts and one occurs more frequently overall. Such a prior expresses a corpus-level tendency that applies regardless of whether the utterance follows a question, a greeting or a request.
The bigram setting gives 81.6% mean accuracy, with a minimum of 75.0% and a maximum of 92.4%. It has the highest reported mean and the highest reported minimum among the learned settings. Conditioning on the previous act gives the score room to favor a candidate because it fits a particular context. The result is consistent with the paper’s argument that the immediately preceding act captures some of the regularity in this kind of exchange.
The trigram has a mean of 80.9%, with a minimum of 69.5% and a maximum of 94.1%. Its maximum is the highest in the table, and its minimum is the lowest among the learned settings. Those extrema indicate that the setting can score very differently depending on the held-out dialogue. The table does not identify the conversations responsible for the extrema. In particular, the best trigram fold and the best bigram fold need not be the same conversation, and the extrema alone cannot identify when the longer history was responsible for a better decision.
Coverage and predictability
The paper collects a hit rate to assess the availability of the history conditions a classifier needs at test time. A hit means that the relevant condition existed in the estimates learned during training. The hit rate is therefore a measure of coverage. It answers whether a test condition can be found in training, while accuracy asks whether a scored decision matches the annotation. The paper describes the trigram’s hit rate as lower and excludes conditions that did not exist from the accuracy measure. The numerical hit-rate entries are unclear in the results table, so their exact values cannot be stated with confidence.
The effect of that exclusion is important. Each contextual score describes performance among the conditions that can be evaluated under its setting. As history grows more specific, it can change which utterances qualify for that calculation. A reported mean can therefore remain close to another setting’s mean even when the two settings cover different cases. The experiment establishes which setting has the best reported mean under the paper’s evaluation procedure. A comparison in which every test utterance receives a prediction would answer an additional question about using those histories in practice.
The paper also reports perplexity for the tag sequences. In this setting it measures how uncertain the estimated probabilities are about the observed continuation. Lower perplexity corresponds to assigning greater probability to the observed tag sequence under the evaluation. This is distinct from top-choice accuracy. A history estimate can give the observed tag a stronger probability while the combination of words and context still selects a different tag for an individual utterance.
Dialogue act sequence perplexity on the MSN Shopping corpus
Perplexity falls with longer tag histories, although the longest history does not have the highest tagging accuracy.
The numbers
| System or setting | perplexity |
|---|---|
| Unigram tag probabilities | 7.7 |
| Bigram tag probabilities | 4.7 |
| Trigram tag probabilities (this paper) | 3.3 |
The reported perplexity values are 7.7 for the unigram, 4.7 for the bigram and 3.3 for the trigram. The star in this chart marks the trigram as the lowest-perplexity setting. Tagging accuracy marks a different winner. The coexistence of these results is informative because the metrics concern different objects. Perplexity measures the probabilities assigned to the acts in a sequence. Accuracy measures the final classification with lexical evidence included and with the paper’s rule for unseen conditions. The lower hit rate also complicates interpreting the trigram’s perplexity as evidence of superior prediction across the full test corpus.
What the ablations show
How much the tagger gets from words
The comparison between the majority baseline and the likelihood-only classifier establishes that the words give substantial evidence about the acts in these shopping conversations. The 36.0% baseline uses the corpus’s most frequent tag and makes the same prediction everywhere. The 80.1% mean for the likelihood-only classifier comes from comparing how probable the features are under each possible tag. The classifier has no term in that setting that favors a candidate because a particular act came before it. Its success can therefore be attributed to the lexical decision rule under the study’s input and evaluation conditions.
This is an informative comparison even though it does not isolate individual words or types of phrases. The inventory contains common categories whose wording can be distinctive, including THANKING and YES-NO-QUESTION. Short responses can also contain conventional lexical cues. The likelihood result combines contributions from all such cases. It does not tell how often the tagger correctly handles a bare acknowledgment, where the act may depend heavily on context. A breakdown by label or by the kinds of confusing examples would be required to locate those successes.
The unigram adds the overall tag prior while keeping the lexical form of the classifier. The move from 80.1% to 80.6% gives a measure of how the reported results change when the tagger is allowed to prefer labels common in the training data before considering the words. This comparison separates that general preference from evidence about a particular preceding act. It is possible for a prior to be useful even when the words already do much of the work, because it affects ambiguous decisions without changing the features supplied by the utterance.
What more history contributes
The shift from the unigram to the bigram changes the prior from a single distribution over tags to one conditioned on the preceding tag. Its mean of 81.6% is the highest of the compared settings. Ivanovic interprets this result in terms of adjacency pairs. A reply that follows a question can draw evidence from the act of questioning, and the association between questions and certain classes of replies is the kind of regularity the bigram can encode.
The relationship between an additional history position and better predictions is less straightforward. The trigram mean is 80.9%, and the history has a lower hit rate. Ivanovic offers two reasons the longer history may be less effective at predicting tags. The corpus gives a limited number of examples from which to estimate specific histories. Also, if much of the useful structure comes from paired acts, the farther-back tag can be less relevant to the current decision. The comparison supports testing those explanations, although it cannot distinguish how much each contributes.
The trigram’s lower perplexity shows why it is useful to keep coverage and classification in the same discussion. More detailed histories can capture patterns in the conditions that are represented in training. The estimates still have to be available in a held-out dialogue, and they have to help the combined lexical and contextual score choose the correct act. The trigram’s higher maximum accuracy also shows that its lower mean is compatible with a strong score on a particular held-out conversation. Since the paper gives no paired fold analysis, the aggregate results cannot identify a characteristic of conversations that would tell an engineer when to prefer that setting.
These are controlled changes to what information the tag score uses. They do not include a comparison of the same tagger trained and tested with the original message order and with the synchronized histories. The dependency result gives direct evidence for the timing procedure on its own task. The classifier experiment uses the prepared sequences throughout. Taken together, the experiments show that recovering dependencies is feasible in the study’s data and that a short tag history can help on the reported tagging task. They leave the size of synchronization’s contribution to tagging accuracy undetermined.
Where the comparisons stop
The paper also gives qualitative analyses of mistakes the representation could make. In its example involving a visit to London, an assertion and a question contain the same words, with the subject and auxiliary in different positions. With punctuation absent, a bag of words gives them the same lexical features. The tag prior could still favor different interpretations in different contexts. For a fixed history, however, this lexical representation has no signal from the switch in word order. The comparison illustrates a specific lost distinction and motivates the paper’s suggestion to examine word sequences, parts of speech or phrase structure. It is an analysis of the representation, without a measured result for adding those features. Part of speech
Another example concerns a request for a price range. The person answering first asks which currency to use, receives that information, and then supplies the range. The original question and its eventual answer remain related across the clarification. An estimator based on immediate succession can represent the acts in the order they occur, while their relation as parts of separate question–answer exchanges requires additional structure. The paper uses this example to motivate dialogue macrogame theory, under which one conversational activity can be nested inside another.
These examples mark different kinds of missing evidence. The assertion and question differ inside the utterance, so a feature that preserves local order can make the difference visible. The price exchange differs in how whole utterances connect, so a richer account of context is needed to relate the eventual answer to the request it fulfills. Neither example comes with a numerical test. They help explain why an increase in the length of a short tag history addresses only one part of the problem.
Limitations
Limits identified by the paper
The clearest limit is manual utterance segmentation. Ivanovic gives the classifier a sequence with the boundaries already marked. Roughly 40% of the messages contain more than one utterance, and the paper notes that multiple acts can occur within a single sentence. An automatic system working from the chat log would have to locate those boundaries, whether as a prior step or as part of a joint decision about boundaries and tags. A misplaced division can mix the words of different acts or cut evidence away from the act it supports. The reported tagging accuracy describes performance with the manual divisions in place.
The paper also calls attention to the subjectivity of labelling and to the number of possible tag sets. There is good agreement for the inventory the annotators use here, but its categories reflect choices about which distinctions matter and can be applied consistently in shopping assistance. A category such as NO-ANSWER brings together distinctions that the source inventory made separately. Another application might need to distinguish rejecting an offer from denying that something is true. Applying the reported score to an inventory that preserves those distinctions would change the task.
Comparisons with work on spoken conversation are limited for the same reason. Ivanovic mentions inventories ranging from 9 tags in Kita and colleagues’ study to 42 in Stolcke and colleagues’ work. The paper also gives a range of ≈ 40% to 81.2% from 13 studies discussed by Stolcke and colleagues. Differences in data, annotation choices and the number of labels prevent a direct ranking based on those percentages. The paper treats the figures as orientation. Its 81.6% result refers to the particular inventory, inputs and evaluation procedure used for the MSN Shopping dialogues.
The bag-of-words limitation is explicit. The text of an utterance can distinguish a question from a statement through the order of the same words. A feature representation that ignores order loses that distinction. Ivanovic proposes looking at the order of the first words, at parts of speech, or at phrase structure. The paper does not measure the effects of those changes. On the context side, dialogue macrogame theory is proposed to represent nested moves such as clarification within a longer exchange. That proposal is also left for further investigation.
Finally, the paper attributes some of the difficulty with trigram histories to the limited training data. A specific succession of acts has to occur often enough to estimate its probabilities and then appear in another dialogue for those estimates to apply. The observed reduction in coverage with the longer history gives the author a reason to suspect that the corpus is too small to exploit it consistently. The study compares histories on this corpus. It has no training-size experiment that establishes how the result would change with more conversations.
Limits visible in the evaluation
The corpus comes from one service and contains 9 dialogues. Cross-validation tests transfer between conversations within that collection. It gives no direct evidence about transfer to another service, to a different support task or to a chat in which the distribution of functions differs. Even within shopping assistance, the relative frequencies of thanks, questions and statements affect the behavior of a word-based classifier and the value of an unconditional prior. The frequency of each tag is part of the study’s setting, not an estimate for typed conversation in general.
The label set is also developed through work on the collected corpus. The cross-validation evaluates classifiers under that already chosen scheme. The result therefore supports automatic classification of new utterances from held-out dialogues with the same labelling conventions. It does not independently establish that the original inventory adaptation would be the right set of choices for new data. Likewise, the reported agreement says that annotators often make the same decisions under the study’s procedure, while leaving boundary-specific agreement and agreement by individual label unspecified.
The treatment of unfamiliar history conditions limits direct comparison across settings. When a test condition is absent from the training estimates, the paper leaves it out of accuracy. An operational tagger would need to issue a prediction for such cases, perhaps using less context, but the experiment gives no evaluated fallback of that kind. The paper frames the classification problem as having previous tags available and does not detail what happens when an earlier tag is itself an uncertain automatic prediction. This matters for running through a transcript sequentially, because a wrong history tag can alter the prior used for the next decision. The reported results alone do not quantify any such propagation.
The accuracy table also leaves several questions about the distribution of errors open. It does not show which functional distinctions are hardest, whether rare acts suffer disproportionately, or how consistently one history setting wins over another on the same held-out dialogue. A mean accompanied by extreme values describes spread in a limited way. With the paired results and a measure of uncertainty, a reader could judge how dependable the ordering of the closely spaced contextual means is. The paper reports the bigram as the best observed setting under its comparison.
The synchronization experiment has a related scope limit. The reported 94.2% describes the accuracy achieved by the paper’s dependency procedure in the collected material. It leaves open the reliability of a fixed typing cutoff for people who type at different speeds, compose part of a reply in advance, or pause while writing. Timestamps record transmissions. Composition and reading behavior enter the procedure as inferences. The inconsistent presentation of the typing quantity and threshold also prevents a reader from reproducing the exact decision rule confidently from the paper alone.
An inferred message dependency and an utterance-level dialogue relation also have different granularity. A message can contain several acts, and a later message can respond differently to the different parts. A link between the transmissions cannot specify which of the earlier utterances a particular reply addresses. This follows from the units in the procedure. The paper’s nested clarification example illustrates another route to the same broader difficulty. Even when delivery order reflects the order of contributions, some acts belong together across intervening utterances.
Ivanovic motivates the work with the possibility of assisting a human representative or supporting an automated agent. The experiments evaluate annotation reliability, message dependencies and predicted tags. They leave response selection and the quality of the ensuing conversation unevaluated. Recognizing an open question can tell a support system what kind of move the customer has made. Answering it requires information about what the customer means and what the system can do. The study establishes evidence for a component of that process under its experimental conditions.
What came after
Later citing work continued the task of assigning functions to contributions in conversation. One direction was to change the classifier and address dialogue act classification in a setting described as domain independent. The 2016 study by Khanpour and colleagues uses a deep recurrent neural network for that problem. This differs in method from Ivanovic’s combination of word-feature likelihoods and probabilities estimated from short histories of tags. The later study’s stated problem also broadens the framing from a particular shopping assistance service to conversations considered across domains. Its citation establishes a connection to the earlier tagging work. The reuse of Ivanovic’s corpus, label inventory and timing procedure is unspecified. Dialogue Act Classification in Domain-Independent Conversations Using a Deep Recurrent Neural Network
Another direction kept the focus on customer service while changing the medium and the linguistic problem under study. The 2018 work by Bhuiyan and colleagues concerns dialogue act prediction in Twitter customer service conversations and singles out the handling of negation. It shares with Ivanovic the premise that written support exchanges contain functions that can be identified automatically. Its stated emphasis is the effect of negation on the prediction, whereas Ivanovic’s chat-specific preprocessing addresses utterance boundaries and messages that arrive while another participant is already composing a reply. The citation connects the prediction tasks, with the adaptation of any particular Ivanovic technique left unspecified. Don't get Lost in Negation
These lines of work develop different parts of the original problem. The recurrent approach changes how evidence for a tag is represented and brings domain scope to the foreground. The Twitter study gives a particular feature of written customer service language its own attention. Ivanovic’s experiment addresses an earlier question that arises whenever a transcript is turned into examples for a tagger: where the contributions begin and end, and what had happened in the conversation when each was written.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 2Research subjects and languages the work is about.Dialogue systems · 664 worksSpeech act theory · 229 works
Cite
Cite as Edward Ivanovic. 2005. Dialogue Act Tagging for Instant Messaging Chat Sessions. Proceedings of the ACL Student Research Workshop.
@inproceedings{ivanovic2005dialogue,
title = {{Dialogue Act Tagging for Instant Messaging Chat Sessions}},
author = {Edward Ivanovic},
booktitle = {Proceedings of the ACL Student Research Workshop},
year = {2005},
doi = {10.3115/1628960.1628976},
url = {https://doi.org/10.3115/1628960.1628976}
}References
- John L. Austin. 1962. How to do Things with Words. Clarendon Press, Oxford. OpenAlex ↗ · Scholar ↗
- Jean Carletta. 1996. Assessing agreement on classification tasks: the kappa statistic. Computational Linguistics, 22(2):249–254.
- Mark Core and James Allen. 1997. Coding dialogs with the DAMSL annotation scheme. Working Notes of the AAAI Fall Symposium on Communicative Action in Humans and Machines, pages 28–35. OpenAlex ↗ · Scholar ↗
- Thomas M. Cover and Joy A. Thomas. 1991. Elements of Information Theory. Wiley, New York. OpenAlex ↗ · Scholar ↗
- Daniel Jurafsky, Rebecca Bates, Noah Coccaro, Rachel Martin, Marie Meteer, Klaus Ries, Elizabeth Shriberg, Andreas Stolcke, Paul Taylor, and Carol Van Ess-Dykema. 1997. Automatic detection of discourse structure for speech recognition and understanding. Proceedings of the 1997 IEEE Workshop on Speech Recognition and Understanding, pages 88–95. OpenAlex ↗ · Scholar ↗
- Kenji Kita, Yoshikazu Fukui, Masaaki Nagata, and Tsuyoshi Morimoto. 1996. Automatic acquisition of probabilistic dialogue models. Proceedings of the Fourth International Conference on Spoken Language, 1:196–199. OpenAlex ↗ · Scholar ↗
- Lori Levin, Klaus Ries, Ann Thyme-Gobbel, and Alon Lavie. 1999. Tagging of speech acts and dialogue games in spanish call home. Towards Standards and Tools for Discourse Tagging (Proceedings of the ACL Workshop at ACL’99), pages 42–47.
- William Mann. 2002. Dialogue macrogame theory. Proceedings of the 3rd SIGdial Workshop on Discourse and Dialogue, pages 129–141. OpenAlex ↗ · Scholar ↗
- John R. Searle. 1979. Expression and Meaning: Studies in the Theory of Speech Acts. Cambridge University Press, Cambridge, UK. OpenAlex ↗ · Scholar ↗
- Sidney Siegel and N. John Castellan, Jr. 1988. Nonparametric statistics for the behavioral sciences. McGraw-Hill, second edition. OpenAlex ↗ · Scholar ↗
- Andreas Stolcke, Noah Coccaro, Rebecca Bates, Paul Taylor, Carol Van Ess-Dykema, Klaus Ries, Elizabeth Shriberg, Daniel Jurafsky, Rachel Martin, and Marie Meteer. 2000. Dialogue act modeling for automatic tagging and recognition of conversational speech. Computational Linguistics, 26(3):339–373.
- Hideki Tanaka and Akio Yokoo. 1999. An efficient statistical speech act type tagging system for speech translation systems. In Proceedings of the 37th conference on Association for Computational Linguistics, pages 381–388. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/ivanovic-2005-dialogue-act-tagging-instant-messaging/