hottub.patents
US 12,406,149 B2#3454532 Most CitedActiveUnited States (USPTO)Utility

System and method for intent discovery from user logs using deep semi-supervised contrastive clustering

0Forward Citations (#3454532 Global)
0.0/yrCitation Velocity (#3454532 Global)
0.00Citation PageRank (#3454532 Global)
8Prior Art Cited
18Claims (3 Indep. · 15 Dep.)
7Drawings / Sheets

Abstract

Existing semi-supervised and unsupervised approaches for intent discovery require an estimate of the number of new intents present in the user logs. The present disclosure receives labeled utterances from known intents and update parameters of a pre-trained language model (PLM). Representation learning and clustering is performed iteratively using labeled and unlabeled utterances from known intents and unlabeled utterances from unknown intents to fine-tune PLM and a plurality of clusters is generated. Cluster merger algorithm is executed iteratively on generated plurality of clusters. A query cluster is obtained by randomly selecting one cluster from the plurality of clusters and by obtaining a corresponding plurality of nearest neighbors based on a cosine-similarity. A response for merging the query cluster and corresponding plurality of nearest neighbors is obtained, and a new cluster is created. The corresponding cluster representation is recalculated and each of the new cluster is interpreted as an intent.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.

Claims (18 — 3 Independent, 15 Dependent)

  1. Claim 1Independent Claim

    A processor implemented method for new intent discovery, comprising: receiving, via one or more hardware processors, a plurality of labeled utterances specific to a plurality of known intents obtained from a domain expert; updating, via the one or more hardware processors, one or more parameters of a pre-trained language model (PLM) based on the received plurality of labeled utterances to obtain a fine-tuned pre-trained language model (PLM) by minimizing a cross-entropy loss over a batch B of size N consisting of the plurality of labeled utterances; iteratively performing, via the one or more hardware processors, a representation learning and clustering using the plurality of labeled utterances and a plurality of unlabeled utterances from the plurality of known intents and the plurality of unlabeled utterances from a plurality of unknown intents for: (i) fine-tuning the pre-trained language model (PLM) using a combination of a semi-supervised contrastive loss at an utterance level and the cross-entropy loss; and (ii) generating a plurality of clusters by running a clustering algorithm wherein, the plurality of clusters comprises an outlier cluster and wherein, each of the cluster of the plurality of clusters comprises of a corresponding cluster representation; executing, via the one or more hardware processors, a cluster merger algorithm iteratively on the generated plurality of clusters based on a plurality of cluster definitions, wherein a plurality of p utterances from each of the plurality of clusters are used as a plurality of cluster definitions comprising: (i) obtaining a query cluster (q) by randomly selecting one cluster from the plurality of clusters and obtaining a corresponding plurality of nearest neighbors based on a cosine-similarity, wherein the cosine-similarity is determined between the cluster representation of the query cluster (q) and the corresponding cluster representation of the plurality of clusters; (ii) obtaining a response for merging the query cluster (q) and the corresponding plurality of nearest neighbors and creating one or more new clusters based on the response; and (iii) recalculating the corresponding cluster representation and assigning a cluster definition of the query cluster (q) to the one or more new clusters; and interpreting, via the one or more hardware processors, each of the one or more new clusters as an intent and training a logistic classifier based on the intent to obtain the plurality of labelled utterances that belong to the outlier cluster.

  2. Claim 2Depends on #1

    The processor implemented method of claim 1, wherein the plurality of unknown intents is received from a plurality of user logs, wherein the plurality of user logs comprises one or more conversations between a user and a user interface, and wherein the one or more parameters of the pre-trained language model (PLM) comprises one or more real valued vectors.

  3. Claim 3Depends on #1

    The processor implemented method of claim 1, wherein the cluster representation is obtained as a mean of the plurality of labeled utterances and the plurality of unlabeled utterances obtained from the plurality of clusters, and wherein each of the plurality of labeled utterances and each of the plurality of unlabeled utterances is represented by the one or more real valued vectors obtained from the pre-trained language model (PLM).

  4. Claim 4Depends on #1

    The processor implemented method of claim 1, wherein the cluster definition is a set of natural language sentences which describes each of the plurality of clusters.

  5. Claim 5Depends on #1

    The processor implemented method of claim 1, wherein the clustering algorithm includes a density-based spatial clustering of applications with noise (DBSCAN) algorithm.

  6. Claim 6Depends on #1

    The processor implemented method of claim 1, wherein the outlier cluster comprises of the plurality of unlabeled utterances from the plurality of different known intents and the plurality of different unknown intents, and further comprises of the plurality of unlabeled utterances which does not satisfy the criteria of the clustering algorithm.

  7. Claim 7Independent Claim

    A system for new intent discovery, comprising: a memory storing instructions; one or more communication interfaces; and one or more hardware processors coupled to the memory via the one or more communication interfaces, wherein the one or more hardware processors are configured by the instructions to: receive a plurality of labeled utterances specific to a plurality of known intents obtained from a domain expert; update one or more parameters of a pre-trained language model (PLM) based on the received plurality of labeled utterances to obtain a fine-tuned pre-trained language model (PLM) by minimizing a cross-entropy loss over a batch B of size N consisting of the plurality of labeled utterances; iteratively perform a representation learning and clustering using the plurality of labeled utterances and a plurality of unlabeled utterances from the plurality of known intents and the plurality of unlabeled utterances from a plurality of unknown intents for: (i) fine-tuning the pre-trained language model (PLM) by using a combination of a semi-supervised contrastive loss at an utterance level and the cross-entropy loss; and (ii) generating a plurality of clusters by running a clustering algorithm wherein, the plurality of clusters comprises an outlier cluster and wherein, each of the cluster of the plurality of clusters comprises of a corresponding cluster representation; execute a cluster merger algorithm iteratively on the generated plurality of clusters based on a plurality of cluster definitions, wherein a plurality of p utterances from each of the plurality of clusters are used as a plurality of cluster definitions further comprising: (i) obtaining a query cluster (q) by randomly selecting one cluster from the plurality of clusters and obtaining a corresponding plurality of nearest neighbors based on a cosine-similarity, wherein the cosine-similarity is determined between the cluster representation of the query cluster (q) and the corresponding cluster representation of the plurality of clusters; (ii) obtaining a response for merging the query cluster (q) and the corresponding plurality of nearest neighbors and creating one or more new clusters based on the response; and (iii) recalculating the corresponding cluster representation and assigning a cluster definition of the query cluster (q) to the one or more new clusters; and interpret each of the one or more new clusters as an intent and training a logistic classifier based on the intent to obtain the plurality of labelled utterances that belong to the outlier cluster.

  8. Claim 8Depends on #7

    The system of claim 7, wherein the plurality of unknown intents is received from a plurality of user logs, wherein the plurality of user logs comprises one or more conversations between a user and a user interface, and wherein the one or more parameters of the pre-trained language model (PLM) comprises one or more real valued vectors.

  9. Claim 9Depends on #7

    The system of claim 7, wherein the cluster representation is obtained as a mean of the plurality of labeled utterances and the plurality of unlabeled utterances obtained from the plurality of clusters, and wherein each of the plurality of labeled utterances and each of the plurality of unlabeled utterances is represented by the one or more real valued vectors obtained from the pre-trained language model (PLM).

  10. Claim 10Depends on #7

    The system of claim 7, wherein the cluster definition is a set of natural language sentences which describes each of the plurality of clusters.

  11. Claim 11Depends on #7

    The system of claim 7, wherein the clustering algorithm includes a density-based spatial clustering of applications with noise (DBSCAN) algorithm.

  12. Claim 12Depends on #7

    The system of claim 7, wherein the outlier cluster comprises of the plurality of unlabeled utterances from the plurality of different known intents and the plurality of different unknown intents, and further comprises of the plurality of unlabeled utterances which does not satisfy the criteria of the clustering algorithm.

  13. Claim 13Independent Claim

    One or more non-transitory machine-readable information storage mediums for new intent discovery, comprising one or more instructions which when executed by one or more hardware processors cause: receiving a plurality of labeled utterances specific to a plurality of known intents obtained from a domain expert; updating one or more parameters of a pre-trained language model (PLM) based on the received plurality of labeled utterances to obtain a fine-tuned pre-trained language model (PLM) by minimizing a cross-entropy loss over a batch B of size N consisting of the plurality of labeled utterances; iteratively performing a representation learning and clustering using the plurality of labeled utterances and a plurality of unlabeled utterances from the plurality of known intents and the plurality of unlabeled utterances from a plurality of unknown intents for: (i) fine-tuning the pre-trained language model (PLM) using a combination of a semi-supervised contrastive loss at an utterance level and the cross-entropy loss; and (ii) generating a plurality of clusters by running a clustering algorithm wherein, the plurality of clusters comprises an outlier cluster and wherein, each of the cluster of the plurality of clusters comprises of a corresponding cluster representation; executing a cluster merger algorithm iteratively on the generated plurality of clusters based on a plurality of cluster definitions, wherein a plurality of p utterances from each of the plurality of clusters are used as a plurality of cluster definitions further comprising: (i) obtaining a query cluster (q) by randomly selecting one cluster from the plurality of clusters and obtaining a corresponding plurality of nearest neighbors based on a cosine-similarity, wherein the cosine-similarity is determined between the cluster representation of the query cluster (q) and the corresponding cluster representation of the plurality of clusters; (ii) obtaining a response for merging the query cluster (q) and the corresponding plurality of nearest neighbors and creating one or more new clusters based on the response; and (iii) recalculating the corresponding cluster representation and assigning a cluster definition of the query cluster (q) to the one or more new clusters; and interpreting each of the one or more new clusters as an intent and training a logistic classifier based on the intent to obtain the plurality of labelled utterances that belong to the outlier cluster.

  14. Claim 14Depends on #13

    The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the plurality of unknown intents is received from a plurality of user logs, wherein the plurality of user logs comprises one or more conversations between a user and a user interface, and wherein the one or more parameters of the pre-trained language model (PLM) comprises one or more real valued vectors.

  15. Claim 15Depends on #13

    The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the cluster representation is obtained as a mean of the plurality of labeled utterances and the plurality of unlabeled utterances obtained from the plurality of clusters, and wherein each of the plurality of labeled utterances and each of the plurality of unlabeled utterances is represented by the one or more real valued vectors obtained from the pre-trained language model (PLM).

  16. Claim 16Depends on #13

    The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the cluster definition is a set of natural language sentences which describes each of the plurality of clusters.

  17. Claim 17Depends on #13

    The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the clustering algorithm includes a density-based spatial clustering of applications with noise (DBSCAN) algorithm.

  18. Claim 18Depends on #13

    The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the outlier cluster comprises of the plurality of unlabeled utterances from the plurality of different known intents and the plurality of different unknown intents, and further comprises of the plurality of unlabeled utterances which does not satisfy the criteria of the clustering algorithm.

Technical Overview & Description

PRIORITY CLAIM This U.S. patent application claims priority under 35 U.S.C. § 119 to: Indian Patent Application No. 202221038929, filed on Jul. 6, 2022. The entire contents of the aforementioned application are incorporated herein by reference. TECHNICAL FIELD The disclosure herein generally relates to the field of intent detection, and, more particularly, to a system and method for intent discovery from user logs using deep semi-supervised contrastive clustering. BACKGROUND Intent detection is a crucial component of dialogue systems wherein the objective is to classify a user utterance into one of the multiple pre-defined intents. A pre-requisite for developing an effective intent identifier is a training dataset labeled with all possible user intents. Intent detection is typically modeled as a multi-class classification problem wherein labeled data comprising of utterances for each known intent is manually created by domain experts. However, most real-world applications must cope with evolving user needs and new functionality. Further the new functionality is routinely introduced into the dialogue system resulting in a continuously increasing number of intents over time. Even for seasoned domain experts estimating future user requirements at design time is challenging and these often have to be discovered from recent user logs which contain information corresponding to past user utterances, model response predicted, implicit, and explicit feedback. Several classical and deep learning-based clustering methods have been used for intent discovery. One of the existing works described modelling intent discovery from unlabeled utterances as an unsupervised clustering problem and further proposed a variant of density-based spatial clustering of applications with noise (DBSCAN) for clustering, but the proposed work do not employ any representation learning and rely heavily on manual evaluation. Another existing work used a contrastive learning based unsupervised approach

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (10)

  • Yassine Ouali; C
  • é
  • line Hudelot; Myriam Tami; An Overview of Deep Semi-Supervised Learning; Jul. 6, 2020; URL: https://arxiv.org/pdf/2006.05278 (Year: 2020).
  • Dominik Stammbach, Elliott Ash; DOCSCAN: Unsupervised Text Classification via Learning from Neighbors; May 11, 2021; URL: https://arxiv.org/pdf/2105.04024v2 (Year: 2021).
  • Ajay Chatterjee, Shubhashis Sengupta; Intent Mining from past conversations for conversational agent; Jan. 18, 2021; URL: https://arxiv.org/pdf/2005.11014 (Year: 2021).
  • Nikhita Vedula, Rahul Gupta, Aman Alok, Mukund Sridhar; Automatic Discovery of Novel Intents
  • &
  • Domains from Text Utterances; May 22, 2020; https://arxiv.org/pdf/2006.01208 (Year: 2020).
  • Chandni Magoo, Dr. Manjeet Singh; An Implemented review for Intent Creation using different Clustering Techniques; Jul. 8-9, 2022; URL https://ieeexplore.ieee.org/document/9913605?source=IQplus (Year: 2022).
  • Anonymous ACL submission,