Intent Mining from past conversations for Conversational Agent
Paper · 2020 · Ajay Chatterjee and Shubhashis Sengupta
Summary
A support archive can show what customers ask for before a team has decided which requests its chatbot should handle. The difficulty is turning that archive into a set of categories and examples. Customers can describe the same problem in different words, useful details can be scattered across a conversation, and common requests can dominate the data. Ajay Chatterjee and Shubhashis Sengupta investigate how to discover these categories, called intents, and use them to prepare training data. Their approach groups similar conversations so that a domain expert can label a group at a time.
The method first gives each conversation a short textual description. That description can come from an agent’s case notes or from selected turns in the conversation. A sentence encoder turns the descriptions into vectors that can be compared by distance. The authors’ clustering algorithm, ITER-DBSCAN, makes successive passes over the data. It first looks for groups that meet stricter neighborhood requirements, then searches among the remaining examples using more permissive requirements. The aim is to find coherent groups of less common requests without specifying beforehand how many intents exist. Experts name the discovered groups, and a classifier trained on those examples can assign existing intent labels to additional conversations when its confidence meets a cutoff.
The experiments cover an airline support conversation corpus, intent datasets, and a short-text dataset drawn from Stack Overflow. On the airline corpus, ITER-DBSCAN with dialogue-act filtering scores 51.3 on F1 and 48.5 on clustering accuracy, the highest values reported for those metrics in that comparison. On FinanceData, it finds examples of all 77 reference intents and scores 0.79 on normalized mutual information, which measures agreement between the groups and the reference labels. Finding every intent is compatible with imperfect group boundaries. The results show how much of a known inventory the clustering can recover and how closely its assignments agree with that inventory. The paper describes the subsequent labeling and propagation workflow, while its numerical evaluation concentrates on the discovery stages.
Deep dive: Intent Mining from past conversations for Conversational Agent
Chatterjee and Sengupta use past support conversations to discover user intents, testing whether iterative clustering can recover uncommon requests. · about 34 minutes to read
The problem and its context
Discovering what a support system should recognize
For the task-oriented dialogue systems discussed in the paper, an intent is a category that brings together requests that call for a similar response or action. Several people might say that they cannot sign in, each describing the difficulty differently. A support system can treat those requests as examples of a shared intent. A training set for intent recognition pairs the text a user might enter with the category the system should recognize. Building that set requires decisions about the categories as well as examples of how people express each one.
An archive of earlier exchanges gives developers and domain experts a place to look for both. In the process the authors describe, experts usually examine conversations and label utterances manually. The work includes deciding how to describe a request, deciding whether it belongs with an existing group, and collecting enough different phrasings to make the category recognizable in future input. Commercial chatbot frameworks such as Microsoft Azure Bot Service and IBM Watson Assistant support supervised intent training. The authors locate the bottleneck upstream of that training, in the work of obtaining a useful collection of labeled examples.
The uncertainty about the categories matters on its own. If an organization already has an intent inventory, an expert can inspect a message and choose among the available labels. When the inventory is still being designed, reading a message may instead lead to a new category or a change to an existing one. An archive can contain a few widely recurring requests and a long tail of less common ones. An approach that makes the recurring requests easy to inspect can still leave much of the inventory undiscovered if it passes over the smaller groups.
The choice of category also depends on the work the agent performs. At a broad level, a customer may be asking for help with a communications application. A narrower description could identify the recording feature and the action the customer wants the agent to take. Language similarity can bring the relevant cases together, but a group of similar texts does not settle how the support team should draw the boundary. The paper’s workflow reserves this decision for a domain expert who can interpret what the members of a cluster have in common.
Why conversation logs differ from collections of questions
A collection of standalone queries already has a natural unit to group. In a conversation, that unit has to be chosen. A customer’s first message might be a greeting, the next might describe a symptom, and an agent might later restate the request more clearly. The paper illustrates this with an IT support exchange about enabling recording in Skype for Business. The customer describes what they want to do, the analyst reformulates the request, and the case also has a short issue description written by the analyst. Each of these gives a different textual view of the same exchange.
The authors use this example to motivate a choice between case metadata and conversation turns. An agent’s note can give a compact account of an exchange when such a note is available. If the archive only has the transcript, the pipeline needs to identify the turns that carry the substance of the request. Taking everything would include material that helps the participants conduct the interaction, such as a greeting, even when it contributes little to identifying the support category. Taking too little can remove the details that distinguish one request from another.
Earlier intent discovery studies cited by the authors include work on clustering standalone questions or queries. The paper also describes work by Perkins and Yang that deals directly with the more complex case of customer support conversations and uses multiple views of an exchange for clustering. The authors take the airline conversation data and a comparison method from that line of work. They ask whether useful groups can be found with a short description of each exchange and a clustering procedure that does not take a predetermined cluster count.
Task-oriented dialogue resources illustrate a different starting point. The paper describes corpora with pre-defined intents or dialogue states, including MultiWOZ. Dialogue state tracking uses the conversation to maintain information about a task as the turns progress. For this paper, work such as Word-Based Dialog State Tracking illustrates research that starts with categories or states already in place. The intent mining task moves the question back to how developers might identify the categories in an archive in the first place.
Where annotation and clustering meet
The paper describes two broad ways of making the construction of intent training data easier. One reuses conversations as a source of examples. Another gives experts interfaces for defining categories, labeling examples, and evaluating the results. The proposed framework combines these approaches. It uses unsupervised clustering to give experts candidate sets of related material, then relies on their annotation to turn those sets into usable intent labels. Unsupervised means that the clustering stage uses the texts and their numerical representations without access to their reference intent labels.
The authors place the work alongside semisupervised learning, active learning, transfer learning, and data programming. In their account, several of these approaches need an initial labeled set, and systems that transfer known intents or ask experts to write labeling functions can presuppose the categories those labels represent. Clustering serves an earlier role in the proposed pipeline. It makes it possible to review examples together before a usable set of labels exists. Once some labels have been assigned, supervised learning becomes a way to reuse that work on the remaining data.
The choice of clustering procedure follows from this starting point. K-means gives the user a way to divide a dataset into a specified number of groups. That number is easy to enter when the goal is to create manageable processing batches. For discovering intents, the number is itself uncertain. DBSCAN, which groups points based on the density of their neighborhoods, can return a variable number of clusters and leave isolated examples unassigned. The paper also discusses HDBSCAN and cites NG-DBSCAN as work on the cost of density-based clustering. The authors focus on the challenge of finding sparse groups in the same archive as much denser ones.
How frequently an intent occurs and how tightly its examples group together are related concerns, but they describe different properties. Frequency counts the utterances with that intent. Density concerns where the encoded utterances lie and how many neighbors meet a distance rule. A common intent can be expressed in several styles that lie apart, and a small set of requests can be tightly grouped if customers use similar words. The paper’s working hypothesis is that searching at several density settings can improve discovery on uneven datasets. That hypothesis can be examined empirically by asking both which reference intents appear in the output and how faithfully the clusters reproduce the reference groupings.
The method, step by step
From an exchange to a piece of text
The framework passes from a conversation to a compact description, from the description to an unnamed cluster, and from the cluster to labeled training examples. Each stage adds information of a different kind. Selecting useful turns identifies where the request is expressed. Encoding those turns makes different phrasings comparable. Clustering proposes which examples belong together. Expert review adds the domain meaning needed to train an intent classifier.
Turning support conversations into intent training data
The steps in order.
The simplest input is a short description already attached to the record. In the IT support example, the analyst’s note summarizes the difficulty with recording calls. This kind of metadata can spare the pipeline from deciding which dialogue turns matter. The authors explain that analysts may add the metadata after resolving a case and that some records lack it. They therefore describe ways to take a suitable piece of text directly from a conversation.
One option is to use the customer’s early messages. The authors look for up to the top-3 user utterances tagged as Information or Question. Their observation is that customers tend to identify the problem near the beginning, even if introductory turns come before it. The tags help omit openings such as greetings. In the support exchanges they consider, users generally ask for help rather than issuing commands. They treat the exclusion of commands as a choice about these data and explicitly allow that commands may carry the request in another setting.
This is a form of information extraction at the level of dialogue turns. Its output is material already present in the exchange. There is no step that writes a fresh natural-language account of the whole event. The filtering determines which existing wording is available to the encoder. This means that it can help simply by replacing a less informative early turn with a later one that passes the tag filter. It can also omit a useful turn if the tag is wrong or if the form of request falls outside the chosen categories.
The other option looks at the support agent’s side. The authors propose identifying agent questions, grouping the kinds of questions agents ask, and marking the kind that clarifies the customer’s intent. An agent might restate that the caller needs recording enabled in a particular application. This reformulation can make the request explicit even if the customer described it indirectly or across multiple turns. A question that asks for a piece of troubleshooting information serves a different purpose and may be a poorer description of the original request. The method therefore needs to distinguish clarification of intent from other questions.
The agent route uses a support vector machine with FastText word embeddings as features to find questions, followed by clustering and labeling to identify the clarification type. A support vector machine is a classifier that separates categories in a numerical feature space. The agent route and the early-user-turn route are alternative sources for a description. The reported airline comparison concerns the early user utterances with and without dialogue-act filtering. The description of the agent route specifies a candidate procedure for making use of the other participant’s wording.
Dialogue acts and domain intents
A dialogue act describes what a speaker is doing with a turn. In the paper’s account, a person can ask whether an agent can arrange a flight or can directly request the booking. The turns differ as a question and a command while pointing to the same booking intent. The separation is important because the dialogue-act classifier has a job that precedes discovering the support categories. It sorts utterances by general conversational function so that the pipeline can keep turns likely to contain information about the underlying request.
The authors connect this role to earlier work on automatic dialogue-act tagging, including the study by Stolcke and colleagues. They train a conditional random field, or CRF, using the ATIS air-travel corpus. A CRF is a statistical method that can choose tags for a sequence together. Here the tags listed by the paper are Information, Query, Command, Greetings, and Confirmation-Affirmation. The extraction procedure later uses the name Question when it describes the user turns it retains. The general categories allow the authors to apply the tagger outside the task inventory on which it was trained.
The CRF uses part-of-speech tags and adjacent pairs of those tags as features. A part-of-speech tag describes a grammatical category such as a noun or a verb. A tag pair supplies information about local grammatical structure. This representation gives the classifier cues about how an utterance is phrased. The authors train it with the lbfgs option in python-crfsuite and set L2 regularization to 0.001. L-BFGS is the optimization method used in training. The regularization setting controls a penalty on large learned weights.
ATIS has another role in the paper. It also names an intent dataset used to evaluate clustering. In the dialogue-act setup, the labels describe the function of a turn. In the intent clustering evaluation, the reference labels describe air-travel request categories. A result about recovering ATIS intents does not measure the dialogue-act tagger’s ability to identify questions or commands. The paper gives the tagger’s training setup and assesses the practical effect of using its selections in the airline clustering comparison.
Turning descriptions into comparable points
The authors pass each short description to the pretrained Universal Sentence Encoder, abbreviated USE. The encoder converts text into a vector, a sequence of numbers treated as coordinates for comparison. The authors use it without fine-tuning. In other words, they keep the pretrained encoder’s parameters fixed for the clustering experiments. The paper describes a one-dimensional array for each description in the sense of a flat vector. It does not specify the vector’s length in that description.
A vector allows descriptions to be compared even when the words overlap only partly. The clustering algorithm relies on the encoder to put texts in useful relative positions. If distinct descriptions of a recording request point in similar directions, the algorithm has a chance to group them. The same representation can also put descriptions of different requests close together if they share the application name or other prominent language. A nearby point is evidence of similarity in the representation, and intent agreement is something the experiments test separately against reference labels.
The distance used for the density-based comparisons is cosine distance. It measures separation through the directions of the vectors. A smaller distance means the descriptions are closer under that rule. A neighborhood is defined by a cutoff on the distance, so any change in the cutoff changes which examples can count as neighbors. The descriptions and vectors give the algorithm its inputs. The density parameters determine how much nearby evidence is enough to start a cluster.
The paper’s procedure is therefore sensitive to both the textual selection and the encoder. If the selected description contains only a greeting, the clustering stage has little access to the actual request. If the selected description includes the request but its numerical representation puts it far from other examples of the same intent, making the density requirements more permissive can help only to the extent that the new neighbors are useful. These are separate routes by which the pipeline can succeed or fail. The conversation experiment varies the former, while the density-based comparisons use the same sentence encoding approach.
Finding a group with DBSCAN
DBSCAN looks for locations where enough points lie within a specified distance. A point qualifies as a core point when its neighborhood contains the required number of points, including the point itself. A cluster can then extend through connected neighborhoods and include nearby points that do not individually meet the core threshold. Points left outside the resulting groups are marked as noise. In the framework, noise is a technical status meaning that the current settings assigned no group. Some of those points can still be valid examples of a recurring customer request.
The neighborhood distance and the required sample count control different ways of admitting a group. Increasing the allowed distance brings more examples into a neighborhood. Decreasing the required number of samples makes it possible for a group to get started with fewer neighbors. A restrictive distance and high neighbor count favor tight concentrations with substantial local support. A setting that helps detect such concentrations can miss a request that only has a small number of observed examples or whose descriptions are farther apart. A more permissive setting can find additional groups at the risk of treating less closely related examples as neighbors.
The paper uses subset conditions to express this intuition. It first defines distance from the origin as follows.
ℓ = D(p, 0) = D(0, p)
Here ℓ is the distance from a point to the origin, p is the point, and 0 denotes the origin. D is the distance function, and the two orders of its arguments express symmetry in this notation. The origin appears in the setup. The clustering decision that follows concerns distances between examples.
For a proposed subset of the input, the paper gives a distance condition.
∀ i ∃ j D(xᵢ, xⱼ) ≤ d
Here X is the input set of points, and the indices i and j range over points in the subset the authors call S(X). The symbol ∀ means “for every,” and ∃ means “there exists.” The vectors xᵢ and xⱼ are the points at the respective indices. D is their distance, d is the maximum permitted distance, and ≤ means less than or equal to.
The subset must also meet a size condition.
N(S(X)) ≥ K
Here N counts the elements in its argument, S(X) is a subset of X, and K is the minimum point count in this condition. The symbol ≥ means greater than or equal to. These conditions give a sketch of proximity and size. They do not specify which points are connected through core neighborhoods, and the distance condition does not explicitly exclude choosing the same index as a neighbor. The algorithm invokes DBSCAN for the actual grouping.
The authors then posit a subset that can be found under an expanded distance allowance.
∃ P(X) ∀ i ∃ j D(xᵢ, xⱼ) ≤ d + δd
Here P(X) is a candidate subset of X, and the first ∃ says that such a subset exists. The indices i and j refer to points in P(X). The remaining quantifiers say that for each indexed point there is an indexed point satisfying the distance condition. The vectors xᵢ and xⱼ and the function D have the same roles as before. The upper bound is d plus δd, where δd is the distance increment.
The intended second size condition can be written with a prime to distinguish the relaxed threshold.
N(P(X)) ≥ K′
Here N counts the points in P(X), and K′ is the point threshold for the relaxed setting. The prose and parameter descriptions specify a decrease from the original point requirement K. The equation and its adjoining inequality in the paper use indistinguishable appearances of K for the two quantities. The prime makes their intended roles explicit. This expresses a search strategy for potentially smaller groups. Even with relaxed thresholds, finding a less frequent intent still depends on the locations of its examples.
Making successive passes over the residual data
ITER-DBSCAN starts with a chosen distance setting and a chosen minimum sample requirement. It runs DBSCAN and retains the groups that pass those requirements. It takes the points marked as noise and uses them as the input for the next pass. Thus an example that entered a cluster early does not reappear as a candidate neighbor in a later pass. A later group is formed from the remaining points under the later settings. This distinguishes the strategy from independently running DBSCAN at different settings and choosing one complete partition at the end.
Holding the early groups fixed has consequences. A cluster found under a restrictive setting is protected from being merged with a nearby group during a more permissive pass. At the same time, a point left on its outskirts cannot subsequently join that early cluster through the residual search. It might join a new cluster, stay unassigned, or be handled by the later classification step. This makes the order of the passes consequential. The first pass establishes which parts of the dataset the later passes can still use.
The parameter description says that the distance allowance increases by delta-min-distance and the minimum sample count falls by delta-number-of-points on each pass. The former name uses “min-distance” even though its role is to set the maximum distance for neighborhood membership. The intended direction of change makes sense for the authors’ stated goal of moving from denser regions towards sparser ones. There is a discrepancy in the paper. The printed pseudocode subtracts the distance increment from the current setting. With the positive increment listed in the experiments, that line would shrink neighborhoods. The equations and prose instead describe widening them. The intended procedure and the literal distance update therefore need to be read separately.
The loop is bounded by an iteration cap and by the point threshold named min-points. The printed check stops when the current sample requirement equals that threshold, before issuing another DBSCAN call. Thus reaching the stated floor in the pseudocode is a stopping condition. Together, the two limits determine how far the method can relax its initial settings. A run can stop while there are still residual examples, which is why the framework provides a separate route for assigning some of them to an intent.
The authors also divide larger datasets into groups for parallel processing. When a dataset exceeds 10K, they use K-means to partition the data and run the density-based procedure on the resulting subsets in parallel. The rule they give for setting the K-means cluster count is as follows.
NumberOfCluster = Max(data size / 10000, 3)
Here NumberOfCluster is the requested number of K-means partitions, Max selects the larger argument, and data size is the number of records to process. The slash indicates division by 10,000, and 3 is the lower bound in the rule. The paper does not state how it converts a fractional result into an integer. In this part of the method, K-means provides a way to divide the computational work. Its partition count is separate from the number of intents sought by the subsequent discovery procedure.
Putting names on the groups and extending the labels
A discovered cluster initially gives the reviewer a set of utterances to inspect together. A domain expert assigns an intent label, turning those items into seed examples for supervised learning. This is the human contribution to the framework. Similarity gives evidence that the rows belong together. Naming the group gives them a shared interpretation that can be used as a training target. The paper frames reviewing groups as a way to reduce the effort of assigning labels throughout an archive.
Some conversations remain unassigned by density-based clustering. The authors propose training a statistical classifier, with logistic regression as the example, on the labeled conversations. Logistic regression uses input features to estimate scores for the known intent labels. The classifier predicts an intent for each remaining conversation, and a confidence cutoff determines which predictions are accepted into the labeled data. This use of label propagation is a supervised prediction step built from the seed labels.
The clustering and propagation stages solve different kinds of coverage problems. Residual clustering can propose a newly discovered group for an expert to name. Once the labels are fixed, propagation can add examples to one of the known groups. It cannot supply an expert interpretation for an intent absent from the seed set. A stricter confidence cutoff would accept fewer predictions under a fixed set of scores, while a more permissive cutoff would accept more. The paper describes this decision rule without giving a numerical cutoff or a detailed evaluation of the added labels. The authors released code and datasets for the work in the IntentMining repository.
Experiments and results
What the datasets test
The evaluation covers 8 datasets. The conversation experiment uses a corpus of airline support exchanges on Twitter, called TwACS in the results. The dataset overview gives 491 utterances and 14 intents, with 107 utterances in the largest intent and 10 in the smallest. Its dialogues are exchanges between customers and airline support agents. The experiment evaluates the clustering of conversation descriptions drawn from early user turns, with a comparison between selecting those turns with and without dialogue-act information.
The other datasets make it possible to compare clustering when the input is already a collection of short texts or labeled utterances. FinanceData contains banking queries. The dataset overview lists 10,003 utterances across 77 intents, with counts of 187 for the largest intent and 35 for the smallest. The finance dataset comes from the work associated with Efficient Intent Detection with Dual Sentence Encoders. Personal Assistant provides another large intent collection, with 25,312 messages assigned to 64 intents. Its largest and smallest intent counts are 1218 and 171.
The smaller corpora offer combinations of sample count and inventory size. AskUbuntuCorpus has 162 utterances, 5 intents, and class sizes ranging from 8 to 57. ChatbotCorpus contains 206 utterances with 2 intents, with 78 examples in the smaller category and 128 in the larger. WebApplicationCorpus has 88 utterances and 7 intents, with 5 examples for its smallest category and 23 for its largest. The results use a slightly different spelling, WebApplicationsCorpus, for that last dataset. The paper describes these corpora as drawing on StackExchange and Telegram chatbot material.
ATIS provides a particularly uneven example in the dataset overview. The intent clustering collection has 4972 utterances with 17 intents. Its largest class has 3666 examples and its smallest has 6. This is a useful setting for the paper’s question because a procedure can group much of the collection while recovering only part of its intent inventory. Stack Overflow supplies a different comparison. Its 20,000 short texts are divided into 20 reference categories, and the overview gives 1000 as both the largest and smallest category size. The balanced reference counts offer a test of the algorithm beyond the setting that motivated it.
Baselines and search settings
DBSCAN and HDBSCAN are the density-based baselines. On TwACS the paper also compares with AV-KMeans, the multi-view clustering method from earlier work on the airline conversations. The density-based runs use cosine distance on USE representations. The authors say they keep a minimum cluster size of 3 for evaluating the density-based methods, while the search grids also vary parameters for minimum samples or cluster size, as applicable. They leave settings outside the described grids at the implementation defaults.
For DBSCAN, the distance parameter ranges from 0.09 to 0.40 in steps of 0.01. The minimum sample count ranges from 3 to 20 in steps of 1. This gives the baseline the opportunity to group with different neighborhood sizes and sample requirements. What distinguishes a given DBSCAN run is that it uses the same setting throughout that run. It does not keep early discoveries and then apply another setting to the residual data.
For HDBSCAN, the authors search a minimum cluster size from 3 to 15 and a minimum sample count from 3 to 15, using a step of 1 for each. The paper reports that HDBSCAN found no clusters on TwACS in this evaluation, so the airline results omit its scores. Its results on the intent and short-text datasets provide the other density-based comparison.
For ITER-DBSCAN, the initial distances tried are 0.09, 0.12, 0.15, 0.20, and 0.30. The iteration cap ranges from 10 to 15, and the initial minimum sample count from 10 to 25, both in steps of 1. The distance increment is 0.01, the sample decrement is 1, and the point threshold used for termination is 3. These settings specify the starts and bounds of the search. Changing the start can change which points become unavailable for subsequent passes, even if some of the later settings would otherwise be similar.
How agreement and coverage are measured
On the conversation corpus, the paper uses precision, recall, F1, and unsupervised clustering accuracy, following the earlier airline study. Precision reflects the correctness of what the clustering identifies under the evaluation’s matching rule, while recall reflects how much of the reference grouping it recovers. F1 summarizes the balance of precision and recall. Clustering accuracy compares assignments with the known categories: cluster IDs are arbitrary, so evaluating accuracy requires relating them to the reference labels. The paper gives the scores for these metrics but does not detail the matching and averaging procedure in its metric discussion.
For the other datasets, the paper reports how many reference intents were found, along with normalized mutual information and adjusted Rand index. The intent count measures the breadth of the discovered inventory against the annotated data. The agreement metrics address the distribution of examples over the discovery groups. A system can find representatives of every known intent while combining some examples that belong apart or separating others that share the same label. Reporting both kinds of result makes these differences visible.
Normalized mutual information, or NMI, measures how much information the predicted partition and the reference partition share, scaled by the uncertainty in each partition.
NMI = (2 × I(Y; C)) / (H(Y) + H(C))
Here NMI is the normalized mutual information score, Y denotes the reference class labels, and C denotes the cluster assignments. I is mutual information and I(Y; C) gives the information shared by Y and C. The semicolon separates the two arguments of mutual information. H is entropy, a measure of uncertainty in a label assignment, so H(Y) and H(C) are the entropies of the reference labels and the cluster labels, respectively. The 2 is the normalization factor in the numerator, × denotes multiplication, and the denominator adds the two entropies. Higher values indicate closer agreement by this measure.
The adjusted Rand index, or ARI, compares how the two partitions treat pairs of examples. A pair might be grouped together both by the reference labels and by the algorithm, split in both, or grouped by one partition and split by the other. The adjustment accounts for agreement expected by chance given the partition sizes. The paper’s fraction can be expressed using counts of pairs chosen from each cell and from each marginal total.
ARI = [Σᵢⱼ choose(nᵢⱼ, 2) − (Σᵢ choose(aᵢ, 2) × Σⱼ choose(bⱼ, 2)) / choose(n, 2)]
/ [(1/2) × (Σᵢ choose(aᵢ, 2) + Σⱼ choose(bⱼ, 2))
− (Σᵢ choose(aᵢ, 2) × Σⱼ choose(bⱼ, 2)) / choose(n, 2)]
Here ARI is the adjusted Rand index. The index i ranges over reference categories and j over predicted clusters. The cell count nᵢⱼ counts examples shared by category i and cluster j. The row total aᵢ counts examples of reference category i, the column total bⱼ counts examples assigned to cluster j, and n is the total number of examples in the comparison. choose with a second argument of 2 counts unordered pairs from the group named in the first argument. Σ adds the relevant counts over the indicated indices. The factor 1/2 takes the average of the two marginal pair totals. The product divided by the total number of possible pairs is the chance term subtracted in both numerator and denominator. Larger reported ARI values indicate better agreement by the pairwise measure.
Airline support conversations
TwACS tests whether a description drawn from a dialogue is sufficient to cluster the underlying requests. The reported comparison includes the proposed method with its dialogue-act feature extraction and a version without that extraction. In this context “without feature extraction” means without the dialogue-act selection used to build the description. Both conditions still require a numerical representation for clustering.
F1 on the TwACS airline conversation corpus
ITER-DBSCAN has its highest F1 when the user turns are selected by dialogue act.
The numbers
| System or setting | F1 |
|---|---|
| DBSCAN | 42.8 |
| AV-KMeans | 46.2 |
| ITER-DBSCAN without dialogue-act filtering | 47.4 |
| ITER-DBSCAN with dialogue-act filtering (this paper) | 51.3 |
ITER-DBSCAN with extraction also has the highest reported clustering accuracy, 48.5. The corresponding accuracy values are 37.5 without extraction, 39.9 for AV-KMeans, and 31.8 for DBSCAN. Thus the filtered version leads on both reported measures of overall performance, while the unfiltered version’s position depends on the metric. Its F1 is higher than that of AV-KMeans, but its accuracy is lower.
The individual precision and recall columns show other tradeoffs. With dialogue-act extraction, ITER-DBSCAN has precision of 48.5 and recall of 54.4. Without it, the respective values are 42.7 and 48.3. AV-KMeans has the highest reported precision at 48.9 and has recall of 43.8. DBSCAN has the highest reported recall at 65.4 and has precision of 31.8. The proposed system’s lead in F1 comes from the combined evaluation. The separate columns show that each of the earlier methods leads on a different component.
Intent and short-text datasets
The finance results illustrate what happens when an algorithm is already close to complete reference intent coverage. ITER-DBSCAN finds 77 of 77 intents, compared with 76 for DBSCAN and 75 for HDBSCAN. Its NMI is 0.79. Its ARI is 0.6, compared with 0.17 for DBSCAN and 0.31 for HDBSCAN. The baselines already find examples of most reference categories. The agreement metrics give the stronger evidence that the proposed procedure improves how the examples are grouped on this dataset.
Normalized mutual information on FinanceData
ITER-DBSCAN gives the closest agreement with the banking intent labels by this measure.
The numbers
| System or setting | NMI |
|---|---|
| DBSCAN | 0.44 |
| HDBSCAN | 0.53 |
| ITER-DBSCAN (this paper) | 0.79 |
On ATIS, ITER-DBSCAN finds 14 of the 17 reference intents. DBSCAN finds 13 and HDBSCAN finds 11. The corresponding NMI values are 0.55 for ITER-DBSCAN, 0.28 for DBSCAN, and 0.24 for HDBSCAN. This is a case where the proposed method improves discovery coverage and agreement in the same comparison. The low count for the smallest ATIS category establishes the presence of very infrequent requests in the dataset. The reported results do not identify which intent categories account for the difference between methods.
Adjusted Rand index on the ATIS intent dataset
ITER-DBSCAN agrees most closely with the reference grouping of utterance pairs.
The numbers
| System or setting | ARI |
|---|---|
| DBSCAN | 0.26 |
| HDBSCAN | 0.24 |
| ITER-DBSCAN (this paper) | 0.66 |
On AskUbuntuCorpus, HDBSCAN and ITER-DBSCAN each find 4 of the 5 reference intents, while DBSCAN finds 3. ITER-DBSCAN has NMI of 0.51 and ARI of 0.45. HDBSCAN records 0.44 and 0.33, respectively, and DBSCAN records 0.35 and 0.23. The equality in intent coverage between the hierarchical and iterative methods leaves room for better assignments, which is what the agreement metrics show for ITER-DBSCAN.
On ChatbotCorpus, all the methods find both reference intents. DBSCAN and HDBSCAN both score 0.59 on NMI and 0.61 on ARI. ITER-DBSCAN scores 0.63 and 0.68, respectively. In this comparison, the inventory count is already saturated for every method. The reported gains concern how the utterances are divided within the same reference inventory.
WebApplicationsCorpus is a case where the algorithm both picks up more of the inventory and improves the reported agreement. ITER-DBSCAN finds 5 of the 7 intents and has NMI of 0.45 and ARI of 0.39. DBSCAN and HDBSCAN each find 4 intents. DBSCAN has NMI of 0.33 and ARI of 0.22, and HDBSCAN has NMI of 0.32 and ARI of 0.23. The proposed method still leaves reference intents undiscovered at the reported setting, even though its scores lead the comparison.
In Personal Assistant, each algorithm finds all 64 reference intents. The NMI values are 0.45 for DBSCAN, 0.64 for HDBSCAN, and 0.65 for ITER-DBSCAN. The ARI scores are 0.25, 0.48, and 0.5 in the same order. Here the difference between the density-based variants is more visible in their agreement scores than in the inventory counts. The hierarchical method already approaches the iterative method on both of those metrics.
Stack Overflow also has full reference coverage for each method, with all 20 categories found. HDBSCAN gives the highest NMI at 0.72. ITER-DBSCAN gives 0.71 and DBSCAN gives 0.48. ITER-DBSCAN has the highest ARI at 0.63, with HDBSCAN at 0.62 and DBSCAN at 0.34. This comparison shows that the ordering can change with the measure even when the methods cover the same inventory. It also gives evidence about the iterative method on a corpus whose reference categories are equal in size.
What the ablations show
Selecting informative turns
The clearest component comparison is the TwACS experiment with and without dialogue-act extraction. Both versions use ITER-DBSCAN, and the report describes them as clustering descriptions made from the top-3 user utterances. The component being varied is the use of dialogue-act information to select the utterances. F1 is 47.4 without the filter and 51.3 with it. Clustering accuracy goes from 37.5 to 48.5, and the filtered version also has higher precision and recall. This supports using the tagger to choose the text that represents a case in that conversation corpus.
The comparison makes sense in light of the task. Two conversations can start in a similar way even when the users want different things, because both participants have to open the exchange before discussing the request. Early utterances of the chosen dialogue-act types are more likely to contain a description of the situation or a question. The experiment measures the effect of clustering the resulting descriptions. It does not identify which kinds of omitted turns had the largest effect or how well the tagger recognized each act on the target corpus.
The paper describes other possible inputs, including case notes and an agent’s reformulation. The airline test does not rank these alternatives. In particular, the comparison with and without the user-side filter offers no measured comparison between selecting early user statements and finding the agent’s clarification. The IT support example shows why an agent turn might be useful. The TwACS comparison shows what happens when the authors apply their reported user-turn selection to the airline data.
What changes when clustering is repeated
The DBSCAN comparison tests the effect of replacing a single clustering pass with the iterative procedure as a package. Both rely on local neighborhoods. The proposed package varies the distance and sample thresholds and restricts each later pass to the unassigned points. On datasets such as FinanceData and ATIS it produces stronger reported agreement and greater reference intent coverage than the single-pass baseline. The comparison does not isolate the effect of each change. The paper does not report a run that changes only the distance rule, a run that changes only the point requirement, or a run that reapplies the changing settings to all examples at each pass.
The count of discovered intents helps interpret these comparisons when read alongside the agreement metrics. In AskUbuntuCorpus the iterative method ties HDBSCAN on the number of intents represented and leads on the agreement scores. In ATIS it leads on both. In Stack Overflow the inventory count is shared by all methods, and HDBSCAN and ITER-DBSCAN each lead on a different agreement metric. These outcomes give distinct forms of support for the proposed procedure. They do not establish that its only effect is to uncover previously invisible classes.
The paper also plots how the number of returned clusters varies with the number of intents found across the datasets. An intent in that analysis refers to a reference category. A cluster is a group created by the algorithm. Several clusters can contribute examples to the same reference intent. An expert may therefore face more groups to review even when the count of represented intents changes little. The two axes make visible a practical question that the coverage column alone cannot answer, namely how many groups the procedure creates while finding a given breadth of intents.
The FinanceData parameter study
A closer study on FinanceData compares the number of detected intents and the number of clusters over different settings. The authors report that the number of clusters falls as the effective minimum cluster size rises. They identify initial distance settings from 0.12 to 0.20 as yielding more stable intent discovery in that comparison. Stability here refers to the behavior of the intent count as settings change. The paper does not report repeated-trial uncertainty around those counts.
These trends concern the configuration of an intent discovery run. Raising the effective size requirement reduces the availability of small candidate groups. The authors use the finance plots to suggest that the start distance and the extent of the iterative search can help balance the number of groups against the number of intents represented. The horizontal-axis description is difficult to reconcile with the method’s parameter units. It describes a difference between the initial distance and the maximum iteration while also interpreting it as a minimum possible cluster size. The plotted trends can be reported as the authors describe them, but that wording does not give a clear expression for reconstructing the axis.
Processing time on larger inputs
The running-time analysis addresses another consequence of using a neighborhood procedure. With more points and higher-dimensional features, local grouping can become more expensive. The authors’ implementation partitions data above 10K with K-means and runs the iterative procedure across the subsets in parallel. They plot the processing time of the density-based algorithms and describe the observed growth for their implementation after that threshold as almost linear in dataset size.
This comparison describes elapsed time for the configured pipeline on the benchmark collections. It does not separate the timing effect of parallel execution from the effect of giving the neighborhood search smaller subsets. The datasets also vary in their content and distribution as well as their size. The plot therefore supports the reported scaling behavior of that setup. It does not establish a general complexity bound for searching the residuals with ITER-DBSCAN.
Limitations
Limits and open directions identified by the authors
The authors explicitly treat the removal of commands as a decision fitted to the support data they investigate. They expect users there to ask for help, often through questions or statements of the problem. In a different service, a direct request can carry the clearest expression of the intent. The same restriction on dialogue acts could then remove the most relevant turn. This caveat follows from their distinction between how a speaker presents a request and what action the speaker wants.
They also point to parts of the exchange that their tested representation could use more fully. In particular, agents ask different types of questions while resolving a task. The authors describe clarification questions as a possible source of short descriptions, and they identify other forms of agent questioning and additional linguistic features as directions for future study. They also propose learning a more general representation of a conversation from chat logs. Those directions reflect the scope of the existing setup, in which the reported conversation comparison uses selected utterances and a fixed sentence encoder.
For propagation, the authors use logistic regression as the representative classifier and leave other statistical or neural classifiers outside the scope of the investigation. The approach is designed to output a labeled set that can be used by a supervised intent recognizer. The choice of classifier, the quality of its confidence estimates, and the effect of its predictions on a final training set are further questions. The numerical results are chiefly about discovering and organizing candidate intents before that final use.
Limits visible in the evaluation
The results address the recovery of known categories on labeled benchmarks. This is a way to evaluate a discovery algorithm because the annotators’ labels provide a point of comparison. It differs from deciding whether a previously unexamined archive has been organized into categories that a support team wants to adopt. Multiple fine-grained clusters might correspond to a single useful support intent. A group that mixes reference labels might still make sense under a different operational taxonomy. The paper’s metrics reward agreement with the selected reference grouping.
Likewise, the paper reports the number of intents found more fully than the outcomes for specific rare classes. The dataset overview supplies minimum and maximum class sizes, and the results say how many reference intents each procedure identified. It is often possible to see that a method finds more of the inventory. It is harder to tell which frequency ranges benefited, which requests stayed unassigned, and whether points from the same rare category were grouped consistently. Full coverage on a dataset such as FinanceData establishes breadth under the paper’s criterion and leaves room for error in individual assignments.
The conversation claim rests on the airline Twitter corpus. The other results show how the clustering behaves on input that already consists of short texts or utterances. They add evidence on the density search without repeating the challenge of selecting a description from several turns. The IT support exchange illustrates what a case note or a clarification can look like, but the paper does not present an additional benchmark comparison on an IT support archive. This leaves the extraction method’s effectiveness across different kinds of dialogue open.
The parameter grids are documented, but the paper does not identify a held-out split for selecting a configuration or give a procedure for deciding on all the settings when reference labels are unavailable. A developer facing a new unlabeled archive has the example text and the candidate groups to inspect. NMI, ARI, and reference intent counts become available only when there are labels to compare against. The reported scores describe the benchmark comparisons under the authors’ parameter exploration. The FinanceData analysis gives a sense of how some settings behave on that collection.
There are also details in the algorithm description that affect reproduction. The distance update in the printed loop and the direction stated in the prose disagree. The relaxed point count has indistinguishable notation in the equations, even though the prose explains how it changes. The large-data partitioning rule leaves integer conversion unspecified. These details matter because changing the order or strength of the passes can change the members of the first clusters, which in turn changes all subsequent inputs. The initial K-means split also limits the neighbors available to each parallel run. Points in different subsets cannot support the same neighborhood in those runs, so the partitioning decision can affect the groups as well as the timing.
Finally, the paper’s framework promises a reduction in manual work by shifting review from individual utterances to groups. It does not report how long reviewers spent, how often they agreed on labels, or how frequently clusters needed to be split or merged before use. The numerical experiments also do not show how confidence-based propagation changes label quality, how many items the classifier adds at a stated cutoff, or how a final recognizer performs on a held-out set. The evidence supports several choices for finding candidate intent groups. The cost and accuracy of taking those groups through expert labeling, propagation, and deployment remain separate empirical questions.
What came after
Hierarchical Reason-of-Contact Detection in Retail Banking cites the paper and studies why customers contact a retail bank. It addresses the organization of those reasons through taxonomy induction driven by a large language system. The hierarchy is an explicit part of the later task, so the organization concerns levels of reasons for contact as well as the identification of individual reasons.
The connection is the use of customer interactions to investigate the categories a support system should recognize. Chatterjee and Sengupta propose discovering candidate intent groups through density-based clustering and having experts name them. The later study frames the banking problem around inducing a taxonomy for hierarchical detection. The citation establishes the link between the works, while the later title identifies the domain, the hierarchical objective, and the approach to inducing the taxonomy. It does not establish that the authors adopted ITER-DBSCAN or the dialogue-act extraction procedure.
Cite
Cite as Ajay Chatterjee and Shubhashis Sengupta. 2020. Intent Mining from past conversations for Conversational Agent. Proceedings of the 28th International Conference on Computational Linguistics.
@inproceedings{chatterjee2020intent,
title = {{Intent Mining from past conversations for Conversational Agent}},
author = {Ajay Chatterjee and Shubhashis Sengupta},
booktitle = {Proceedings of the 28th International Conference on Computational Linguistics},
year = {2020},
doi = {10.18653/v1/2020.coling-main.366},
url = {https://doi.org/10.18653/v1/2020.coling-main.366}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chatterjee-2020-intent-mining-past-conversations-conversational/