Venue: NAACL 2022

# Unsupervised Slot Schema Induction for Task-oriented Dialog

Dian Yu1, Mingqiu Wang2, Yuan Cao2,

**Izhak Shafran2, Laurent El Shafey2, Hagen Soltau2 1 University of California, Davis 2 Google Research dianyu@ucdavis.edu {mingqiuwang, yuancao, izhak, shafey, soltau}@google.com**

Work done during internship at Google Research

###### Abstract

Carefully-designed schemas describing how to collect and annotate dialog corpora are a prerequisite towards building task-oriented dialog systems. In practical applications, manually designing schemans can be error-prone, laborious, iterative, and slow, especially when the schema is complicated. To alleviate this expensive and time consuming process, we propose an unsupervised approach for slot schema induction from unlabeled dialog corpora. Leveraging in-domain language models and unsupervised parsing structures, our data-driven approach extracts candidate slots without constraints, followed by coarse-to-fine clustering to induce slot types. We compare our method against several strong supervised baselines, and show significant performance improvement in slot schema induction on MultiWoz and SGD datasets. We also demonstrate the effectiveness of induced schemas on downstream applications including dialog state tracking and response generation.

+
Footnote †: _Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies_, pages 1174 - 1193

July 10-15, 2022 ©2022 Association for Computational Linguistics

## 1 Introduction

Defining task-specific schemas, including intents and arguments, is the first step of building a task-oriented dialog (TOD) system. In real-world applications such as call centers, we may have abundant conversation logs from real users and system assistants without annotation. To build an effective system, experts need to study thousands of conversations, find relevant phrases, manually group phrases into concepts, and iteratively build the schema to cover use cases. The schema is then used to annotate belief states and train models. This process is labor-intensive, error-prone, expensive, and slow Eric et al. (2020); Zang et al. (2020); Min et al. (2020); Yu and Yu (2021). As a prerequisite, it hinders quick deployment for new domains and tasks. We therefore are interested in developing automatic schema induction methods in this work to create the ontology1 from conversations for TOD tasks.

Footnote 1: We use “schema” and “ontology” interchangeably in this paper. Following previous work in literature, we focus on schema induction for slots, which is more challenging than domains and intents.

Most existing approaches for slot schema induction rely on syntactic or semantic models trained with labeled data Chen et al. (2013); Hudecek et al. (2021); Min et al. (2020). Our proposed method, on the other hand, is completely unsupervised without requiring generic parsers and heuristics, and hence portable to new tasks and domains seamlessly, overcoming the limitations of previous research. Analogous to human experts, our procedure is divided into two general steps: relevant span extraction, and slot categorization. Fig. 1 provides an overview of our approach. We introduce a bottom-up span extraction method leveraging a pre-trained language model (LM) and regularized by unsupervised probabilistic context-free grammar (PCFG) structure. We also propose a multi-step auto-tuned clustering method to group the extracted spans into fine-grained slot types with hierarchy.

We demonstrate that our unsupervised induced slot schema is well-aligned with expert

Figure 1: Overview of slot schema induction from raw conversations. We use a bottom-up representation level distance function derived from pre-trained LMs (combined with PCFG structure) to extract informative candidate phrases such as “after 16:15” and “expensive”. The spans are subsequently clustered through multiple stages to form coarse to fine categories. The ground truth mapping is shown on the right (such as “train leaveat”).



designed reference schema on the public Multi-Woz (Budzianowski et al., 2018) and SGD (Rastogi et al., 2020) datasets. We further evaluate the induced schema on dialog state tracking (DST) and response generation to indicate usefulness and demonstrate performance gains over strong supervised baselines. Meanwhile, our method is applicable to more realistic scenarios with complicated schemas.

## 2 Related Work

Schema induction from dialog logs has not been studied extensively in the literature and developers resort to a patch work of tools to automate parts of the process. We first introduce related work on schema induction for dialog, and then discuss previous research on span extraction as part of schema induction for slots.

Schema induction for dialogMotivated by the practical advantages of unsupervised schema induction such as reducing annotation cost and avoiding human bias, Klasinas et al. (2014); Athanasopoulou et al. (2014) propose to induce spoken dialog grammar based on n-grams to generate fragments. Different from studying semantic grammars, Chen et al. (2013, 2014, 2015a, 2015b, 2016) propose to utilize annotated FrameNet Baker et al. (1998) to label semantic frames for raw utterances Das et al. (2010). The frames are designed on generic semantic context, which contains frames that are related to the target domain (such as "expensiveness") and irrelevant (such as "capability"), while other relevant slots such as "internet" cannot be extracted because they do not have corresponding defined frames. This line of work focuses on ranking extracted frame clusters and then manually maps the top-ranked induced slots to reference slots. Instead of FrameNet, Shi et al. (2018) extract features such as noun phrases (NPs) using part-of-speech (POS) tags and frequent words and aggregate them via a hierarchical clustering method, but only about 70% target slots can be induced. In addition to the unsatisfactory induction results due to candidate slot extraction, most of the previous works are only applicable to a single domain such as restaurant booking with a small amount of data, and require manual tuning to find spans and generate results. These methods are not easily adaptable to unseen tasks and services.

The most comparable work to ours is probably Min et al. (2020), which is not bounded by an existing set of candidate values so that potentially all slots can be captured. They propose to mix POS tags, named entities, and coreferences with a set of rules to find slot candidates while filtering irrelevant spans using manually updated filtering lists. In comparison, our method does not require any supervised tool and can be easily adapted to new domains and tasks with self-supervised learning. In addition to flexibility, despite our simple and more stable clustering process compared to their variational embedding generative approach Jiang et al. (2017), our method achieves better performance on slot schema induction and our induced schema is more useful for downstream tasks.

We survey schema induction work for other natural language processing tasks in AppendixA.11.

Span extractionPrevious works in span extraction consider all combination of tokens as candidates Yu et al. (2021). Alternatively, keyphrase extraction research Campos et al. (2018); Bennani-Smires et al. (2018) mostly depends on corpus statistics (such as frequency), similarity between phrase and document embeddings, or POS tags Wan and Xiao (2008); Liu et al. (2009), and formulates the task as a ranking problem. Although these methods can find meaningful phrases, they may result in a low recall for TOD settings. For instance, the contextual semantics of a span (such as time) in an utterance may not represent the utterance-level semantics compared to other generic phrases. Other methods for span extraction include syntactic chunking, but mostly require supervised data Li et al. (2021) and heuristics (such as considering "noun phrases" or "verb phrases"), and thus are not flexible and robust compared to our method.

Finally, target spans can be found in syntactic structures which can be potentially induced from supervised parsers or unsupervised grammar induction Klein and Manning (2002, 2004); Shen et al. (2018); Drozdov et al. (2019); Zhang et al. (2021). Kim et al. (2020) probe LMs and observe that recursively splitting sentences into binary trees in a top-down approach can correlate to constituency parsing. However, unlike the task of predicting relationship between words in a sentence where phrases at each level of a hierarchical structure are valid, detecting clear boundaries is critical to span extraction but challenging with various phrase lengths. Even though more flexible compared to semantic parsers that are limited by pre-defined roles, there is no straightforward way to apply these meth 

ods to span extraction.

## 3 Unsupervised Slot Schema Induction

Our proposed method for slot schema induction consists of a fully unsupervised span extraction stage followed by coarse-to-fine clustering. The resulting clusters can be mapped to slot type labels.

### Overview

Given user utterances from raw conversations, our goal is to induce the schema of slot types \(\mathcal{S}\) and their corresponding slot values. The span extraction stage extracts spans (e.g., "with wifi") from an utterance \(\mathbf{x}\). The candidate spans from all user utterances are then clustered into a set of groups \(\mathcal{S}\) where each group \(s_{i}\) corresponds to a slot type such as "internet" with values "with wifi", "no wifi", and "doesn't matter". The induced slot schema can be later used for downstream applications such as dialog state tracking and response generation.

```
1:\(\mathbf{x}=z_{1},x_{2},\ldots,x_{n}\); a user utterance \(\mathbf{x}\)
2:\(\mathbf{t}\gets PCFG(\mathbf{x})\) [A Chomsky normal form (binary) tree structure from self-supervised PCFG]
3:\(\mathbf{a}\leftarrow LM(\mathbf{x})\) [Attention distribution from a LM]
4:\(\mathbf{d}\leftarrow[d_{i}=f(a_{i},a_{i+1})\text{ for }i=1,2,\dots,n-1]\)
5:Distance between consecutive tokens using a distance function f]
6:\(\tau\leftarrow\text{median(d)}\)
7:sort d in increasing order
8:for all\(d_{i}\) in ddo
9:if\(d_{i}<\tau\) and using PCFG then
10: if\(node_{i}\) and \(node_{i+1}\) are siblings in PCFG then
11:\(node_{i+1}\leftarrow\{node_{i},node_{i+1}\}\) {merge nodes, assign new parents}
12:endif
13:elseif\(d_{i}<\tau\)then
14:\(w_{i+1}\leftarrow\{w_{i},w_{i+1}\}\) {merge two tokens}
15:endif
16:endfor
```

**Algorithm 1**Span Extraction

### Candidate span extraction

ChallengesSince it is unclear what spans are meaningful phrases representative of task-specific slots, candidate span extraction presents two challenges. Firstly, with either supervised or unsupervised predicted structures, there is no protocol on what constituent and from what level we should extract the spans from without relying on dataset-specific heuristics, especially as structured representations are often compositional Herzig and Berant (2021). The second challenge is that span extraction methods should be flexible and robust to unseen tasks and domains. To tackle these problems, we leverage pre-trained LMs and propose a novel bottom-up attention-based span extraction method regularized by unsupervised PCFG for better structure representation. Because our method does not need any supervised data, the second problem can be effectively addressed by in-domain self-training. The full algorithm is outlined in Algorithm 1.

Bottom-up attention-based extraction with LMs and PCFG regularizationRecent studies reveal that attention distributions in pre-trained LMs can indicate syntactic relationships among tokens Clark et al. (2019). Therefore, we hypothesize that similar attention distributions indicate tokens to form a meaningful phrase. We define the distance between attention distributions as a symmetric Jensen-Shannon divergence Clark et al. (2019), and iteratively merge tokens whose distance is smaller than a threshold2 in a bottom-up fashion. We start from the smallest distance to the largest, where the merged tokens are considered as a new token in the next iteration but the distribution distance with adjacent tokens remains the same. Fig. 2 illustrates the distances between tokens from a pre-trained LM for an example sentence where adjacent tokens such as "global" and "cuisine" are merged but not "severs" and "modern". This new decoding method enables us to effectively group tokens into phrases with precise boundaries.

Footnote 2: We use the median of all pairwise distances in an utterance in the experiments. We also compared other thresholds such as mean but did not observe significant difference.

Although LMs can b 

their training objectives are not optimized for sentence structure prediction, hence falling behind unsupervised PCFG (Kim et al., 2020) on syntactic modeling3. Utilizing attention distribution from LM representations to extract spans can thus be fuzzy and noisy. We therefore employ unsupervised PCFG proposed by Kim et al. (2019) as a mechanism to regularize our bottom-up span extraction. Instead of relying solely on attention distribution, we in addition require two tokens to share the same parent in the predicted PCFG tree structure before merging. This extra requirement reduces the noise from the distribution divergence in a sub-optimal structure representation. An example illustrating the necessity of span constraint is given in Fig. 2. Even though the distance between "restaurant" and "which" is small \((0.33)\), we disregard this span since they do not belong to the same parent in the PCFG structure. After merging two tokens, we assign the grandparent of the two tokens as the new parent, and continue the iteration until all distances are examined.

Footnote 3: Note that although Kim et al. (2020) utilizes attention to construct constituency trees, our methods are different: we propose a bottom-up approach to identify meaningful spans with clear boundaries (rather than a tree structure) after in-domain further pre-training.

Self-supervised in-domain trainingOur attention-based approach enables us to extract phrases beyond certain n-grams, or certain types of phrases in a specific hierarchical layer. More importantly, it is appealing to adapt to new domains and services, where a LM can be further trained to encode structure representations without any annotated data and to group tokens into candidate phrases based on the training corpus. To encourage efficient span extraction above token-level representation, we further pre-train a SpanBERT model Joshi et al. (2020) by predicting masked spans together with a span boundary objective (denoted as TOD-Span) on TOD data Wu et al. (2020). In addition to masking random contiguous spans with a geometric distribution, we also mask spans inspired by recent findings such as segmented PMI Levine et al. (2021) among other methods (See Appendix A.3 for details). This process can be thought of as incorporating corpus statistics such as phrase frequency into the model implicitly Henderson and Vulic (2021).

The unsupervised PCFG is trained to maximize the marginal likelihood of in-domain utterances with the inside-outside algorithm on the same TOD dataset. Similar to self-supervised LMs, this process is flexible and robust against domain mismatch, a common problem with supervised parsers Davidson et al. (2019). At inference time, the trained model predicts a Chomsky normal form from Virterbi decoding Forney (1973).

### Clustering candidate spans

ChallengesAfter extracting candidate spans as potential slot values, we apply contextualized clustering on them to form latent concepts each slot value belongs to. We face two major challenges. Firstly, for any clustering method, hyperparameters such as the number of clusters are critical to the clustering quality, while they are not known for a new domain. Secondly, because of the trivial differences in slot types (for example, a location can be a "train departure place", or a "taxi arrival place"), clustering requires considering different dimensions of semantics and pragmatics. To address these problems, we propose an auto-tuned, coarse-to-fine multi-step clustering method. The pseudo code of the clustering algorithm can be found in Appendix A.2.

Auto-tuning hyperparametersTo avoid hyperparameter tuning, we utilize density-based HDBSCAN McInnes et al. (2017). Compared to other clustering methods such as K-Means, HDBSCAN is mainly parametrized by the minimum number of samples per cluster, and resulting clusters are known to be less sensitive to this parameter. We set this number automatically by maximizing the averaged Silhouette coefficient Rousseeuw (1987)

\[s=\frac{b-a}{max(a,b)}\]

across all clusters where \(a\) represents the distance between samples in a cluster, and \(b\) measures the distance between samples across clusters.

Multi-step clusteringThe input to our first-step clustering is the contextualized span-level representation from the extracted spans. Specifically, we consider the mean representation of tokens in the span from the last layer as the span representation. To prevent the surface-level token embeddings from playing a dominant role, we replace candidate spans with masked tokens and use the contextual representation of the masked spans Yamada et al. (2021). After the first step of clustering, we have coarse groups illustrated in Appendix A.5.

 

Michael et al. (2020) suggest that we may only identify salient clusters (e.g., cardinal numbers), but cannot separate for example, different types of cardinals (e.g., number of people or number of stays). Thus, in the second step, we cluster examples within each cluster from the first step leveraging utterance level representation of spans (i.e., the [CLS] token of the utterance). Specifically, we identify the utterance-level representation for spans grouped from the first step. This enables us to distinguish between domains and intents as they reflect utterance-level semantics. For example, we may find a cluster of time information (e.g., "11 AM") in the first step, and the second step clustering is to differentiate between train and taxi booking time. Lastly, we cluster groups developed from the second step into more fine-grained types using span-level representations similar to the first step. After this multi-step clustering, we can potentially separate for instance, departure time and arrival time in train booking. This process is illustrated in Fig. 3. Each cluster represents a slot type, with slot values shown as data points. This multi-step clustering brings an additional benefit of inducing the slot schema with hierarchy, where sub-groups in further steps belong to the same parent group.

## 4 Experiments

To examine the quality of our induced schema, we perform _intrinsic_ and _extrinsic_ evaluations. Our intrinsic evaluation compares the predicted schema with the ground truth schema by measuring their overlap in slot types and slot values. This indicates how well our induced schema aligns with the expert annotation. The extrinsic evaluation estimates the usefulness of the induced schema for downstream tasks, for which we consider dialog state tracking and response generation tasks. Experiments are conducted on MultiWOZ Eric et al. (2020) and SGD Rastogi et al. (2020) datasets following previous research. See Appendix A.1 for implementation details. We also apply and evaluate our method for both intent and slot schema induction on realistic scenarios (See Section 5).

BaselinesWe compare our proposed approach with different setups against DSI Min et al. (2020), which uses supervised tools and heuristics. We evaluate different span extraction methods including using parsers only, leveraging distance functions from LMs, and combining LMs with unsupervised PCFG. Specifically, NP extracts all noun phrases4, DSI cand. uses the same candidates phrases as DSI, and PCFG and CoreNLP Manning et al. (2014) extract phrases from an unsupervised and supervised structure respectively by taking the smallest constituents above the leaf level. These baselines solely rely on parsers. For our bottom-up attention-based LM methods (Section 3.2), we compare spans extracted using representations from BERT Devlin et al. (2019), SpanBERT Joshi et al. (2020), TOD-BERT Wu et al. (2020), and our span-based TOD pre-training from masking random spans (TOD-Span). Lastly, we combine the LMs with unsupervised PCFG structures.

Footnote 4: [https://spacy.io/](https://spacy.io/)

Due to space constraints, we show results on MultiWOZ in this section. Observations on SGD can be found in the Appendix.

### Slot schema induction

To evaluate the induced schema against ground truth, we need to match clusters to ground truth labels5. Previous work on dialog schema induction either requires manual mapping from a cluster to the ground truth Hudecek et al. (2021) or compares predicted slot values to its state annotation at each turn Min et al. (2020). These can create noises and biases, hence not practical when no annotation is available. Particularly, Min et al. (2020)

Figure 3: Multi-step clustering procedure. Each coarse cluster is further refined by next-step clustering. The first step uses contextualized span representations to capture salient groups (such as a cluster about time), and the second step uses the utterance-level representations of each span to capture domain and intent information (such as the train service and taxi service). The third step utilizes span-level representation for fine-grained slot types.

 

compare candidate spans to corresponding reference slot types at each turn, which is a small subset of the ground-truth ontology. This would overestimate the performance of schema induction since the matching is more evident and is different from defining schemas in realistic settings. Instead, we simulate the process of an expert annotator mapping clusters to slot names by considering the general contextual semantics of spans in a cluster.

SetupWe consider semantic representations of ground truth clusters as labels. Specifically, we calculate the contextual representation of spans averaged across all spans in an induced cluster as cluster representations, and compare that with ground truth slot type representations computed in the same way. For fair comparison among different methods, we use BERT to obtain span representations. We assign the name of the most similar slot type representation to a predicted cluster measured by cosine similarity. If the score is lower than 0.8 Min et al. (2020), the generated cluster is considered as noise without mapping, which simulates when a human cannot label the cluster. We report precision, recall, and F1 on the induced slot types. When the number of clusters is larger than the ground truth, multiple predicted clusters can be mapped to one slot type. This evaluation process is identical to human annotation, where the ground truth clusters serve as references (before assigning cluster labels) to predicted clusters, but may be biased towards more clusters when more clusters are likely to cover more ground truth clusters (i.e., potentially higher recall). Thus we report the number of induced clusters for reference. Similarly, within each slot type, we compute the overlapping of cluster values to all ground truth slot values and report precision, recall, and F1 by fuzzy-matching scores Min et al. (2020), averaged across all types.

ResultsTable 1 shows the results of schema induction on slot types and slot values. All methods lead to a number of clusters within a similar range (except the slightly larger 522 clusters for DSI), indicating that the results are not biased and are comparable. When the candidate span input to our proposed multi-step clustering is the same as the baseline DSI using POS tagging and coreference (DSI cand.), we achieve similar performance on slot type induction (\(85.19\)) and better results on slot values (\(49.71\)). This illustrates the effectiveness of our proposed clustering method since the only difference from the DSI baseline is clustering. Compared to methods leveraging noun phrases (NP), or supervised parsers (CoreNLP), using an unsupervised PCFG trained on in-domain TOD data can achieve comparable or superior results.

If we extract spans using LMs only, different models perform similarly on both slot types and slot values. However, when regularized by an unsupervised PCFG structure, we observe a large performance boost especially with TOD-Span. This indicates that the unsupervised PCFG can provide complementary information to LMs. In addition, results show that further pre-training a LM at the span level is more efficient. The better representation from span-level in-domain self-training can also be justified by a standard dialog state tracking task with few-shot or full data shown in Appendix A.3. Detailed comparison among different LM pre-training results can be seen in Appendix A.13.

### Application in DST

Now that we have mapped induced clusters to ground truth names, we can immediately evaluate DST performance by identifying slot values and types as described above. This can be considered as a zero-shot setting.

\begin{table}
\begin{tabular}{l c c c} \hline \hline method & \# clusters & slot type & slot value \\ \hline _Baseline_ & & & \\ \hline DSI & 522 & 87.72 & 37.18 \\ \hline _Parser only_ & & & \\ \hline NP & 88 & 69.39 & 47.46 \\ DSI cand. & 113 & 85.19 & 49.71 \\ PCFG & 339 & 91.53 & 53.62 \\ CoreNLP & 292 & 87.72 & 54.43 \\ \hline _Language model only_ & & & \\ \hline BERT & 340 & 85.71 & 55.80 \\ SpanBERT & 343 & 89.66 & 45.21 \\ TOD-BERT & 219 & 89.66 & 50.89 \\ TOD-Span & 374 & 85.71 & 55.29 \\ \hline \hline \end{tabular} 
\begin{tabular}{l l l l} \hline \hline BERT & 350 & 87.72 & 52.32 \\ SpanBERT & 203 & 89.66 & 44.51 \\ TOD-BERT & 245 & 91.53 & 48.13 \\ TOD-Span & 290 & **96.67** & **58.71** \\ \hline \hline \end{tabular}
\end{table}
Table 1: Schema induction results on MultiWOZ. TOD-Span (span-based LM further pre-trained on in-domain data) regulated by PCFG achieves the best performance on slot type induction and slot value induction evaluated by F1 scores. All methods (except DSI) differ only by span extraction (i.e., same clustering).

 

SetupFollowing Min et al. (2020), we calculate the overlapping of the predicted slots and values with their corresponding ground truth at both the turn level and the joint level. At each turn, a fuzzy matching score is applied on predicted values Rastogi et al. (2020) whose corresponding slot types are in the ground truth. On the other hand, even if a slot value is predicted correctly but its slot type does not match the ground truth, no reward is accredited. On the joint level, we calculate the score for accumulative predictions up to the current turn.

ResultsTable 2 summarizes the results for DST. Similar to the trend in schema induction, constraining an in-domain fine-tuned LM (TOD-Span) on an unsupervised structure representation (PCFG) achieves the best performance (\(39.95\) on turn level), significantly outperforming a strong baseline DSI (\(18.29\))6. We also note that because all accumulated predictions are evaluated for partial rewards instead of exact matching on all slot types in standard DST evaluation, the joint level scores are higher than the turn level from accumulative scores. See Appendix A.8 for more detailed discussions.

Footnote 6: We use the provided data and model to run the DSI baseline. The reason the score is lower here than the original report is due to slot type matching (Section 4.1).

### Application in response generation

The above settings map latent slot clusters to ground truth analogous to expert designs so that we can evaluate the alignment with human annotations. This experiment investigates whether the induced latent schema is still useful before mapping.

SetupWe modify the model of Lei et al. (2018); Zhang et al. (2020) by appending the predicted labels (i.e., a cluster index such as "10-15-2" indicating a specific slot type where each number represents a slot type from a clustering step. This can also be considered as a hierarchical cluster label) and values to the context (e.g., "I need a train at 7:45. [10-15-2] ?45" as input). The added belief state can be considered as a prior to generate responses similar to Hosseini-Asl et al. (2020). Since we do not have the mapped names of the slots, we only report the BLEU score rather than other metrics used in response generation that require entity-level matching (e.g., inform rate). This is a more practical setting directly evaluating on the induced schema compared to previous work Min et al. (2020), where dialog act is modeled with delexicalized input utterances Chen et al. (2019); not feasible because ontology is required from a pre-defined schema for delexicalization).

ResultsTable 3 compares the performance of using no belief state (None), belief state induced by DSI, our introduced method (TOD-Span + PCFG), and ground truth. Results show that our induced schema introduces a positive inductive bias (\(16.4\)) compared to the baseline (\(15.6\)) and is close to the ground truth schema with actual slot type names. We conjecture that the lower performance of DSI is due to the larger number of latent types (\(522\)) which creates noises in model training. Thus, our induced slot schema is useful for downstream applications.

## 5 Analysis

Comparison among different methodsOur results show that in general, span-based pre-training methods outperform token-based, and continued pre-training on in-domain data is important. When regularized by PCFG structures, we observe a large performance boost on TOD-BERT and TOD-Span,

\begin{table}
\begin{tabular}{p{56.9pt} p{56.9pt} p{56.9pt}} \hline \hline method & turn level & joint level \\ \hline _Baseline_ & & \\ \hline DSI & 18.29 & 25.22 \\ \hline _Parser only_ & & \\ \hline PCFG & 25.43 & 32.39 \\ \hline _Language model only_ & & \\ \hline BERT & 24.35 & 30.18 \\ SpanBERT & 20.24 & 26.07 \\ TOD-BERT & 25.05 & 34.94 \\ TOD-Span & 29.72 & 38.89 \\ \hline _Language model contrained on unsupervised PCFG_ & & \\ \hline BERT & 23.27 & 30.09 \\ SpanBERT & 20.96 & 27.25 \\ TOD-BERT & 27.11 & 31.92 \\ TOD-Span & **39.59** & **46.69** \\ \hline \hline \end{tabular}
\end{table}
Table 2: DST results on MultiWOZ. We show F1 scores of turn and joint level. TOD-Span regularized by PCFG achieves the best performance.

\begin{table}
\begin{tabular}{p{113.8pt} p{56.9pt}} \hline \hline belief state & BLEU \\ \hline None & 15.6 \\ DSI & 13.9 \\ TOD-Span + PCFG Ground truth & 16.4 \\ \hline \hline \end{tabular}
\end{table}
Table 3: Response generation results on MultiWOZ. Our method introduces positive inductive bias.

 

however the PCFG structure does not help BERT and SpanBERT when the LM is trained on general domain data only. We speculate that the LM representation trained on generic text is not compatible with the predicted structure induced via in-domain self-supervision. This justifies our hypothesis in Section 3.2 that optimized structures from in-domain PCFG can regularize target span extraction.

In addition, we believe that the performance gap between our proposed method and previous research using rules from supervised parsers (such as NPs and coreference) is larger when the data is less biased (for example, if NP is not dominant as slot values, Du et al., 2021). Moreover, our proposed method is data-driven, indicating that the slots are determined by the dialog corpus and are more robust again label bias. If there are specific annotation requirements, we can inject inductive bias to the LM to change distribution distances (Shi et al., 2019) or add rules to incorporate such conditions. See Appendix A.12 for discussions.

Comparison among different datasetsOn MultiWOZ, our method induces 30 out of 31 slot types in the ontology except "hospital-department", which only appears once in the dialog corpus. For slot values, errors are mostly from low precision due to loose boundaries and semantic matching (e.g., predicting "free wifi", and "include free wifi", where the target value is "yes"). In comparison, DSI induces 26 slot types, with similar slots mixed (such as mapping "taxi-arriveyy" to "taxi-leaveat"). It receives a relatively low slot value score since spans extracted using rules are not robust and compatible.

On SGD where 82 slot types are defined in the ontology, our method induces 50 and DSI induces 72. The main reason for this low recall is similar slot types with overlapping (such as "mediagenre" and "movies-genre"), and single-value slots (such as "has-wifi" with the value "True"). More importantly, SGD has a smaller utterance length, making it more difficult to map to the correct slot type without considering more context. With a magnitude more number of clusters, DSI (11992 clusters) has a higher chance to map predicted slots to target slot types which explains better performance than ours on schema induction. However, this large number of clusters make it infeasible for humans to use, and our induced schema is comparable in downstream tasks such as DST despite having a much smaller number of clusters.

On both datasets, in addition to values that can be extracted by spans, our method can also extract phrases such as "doesn't matter" which maps to the "don't care" slot value. In particular, on MultiWOZ, "hotel-internet" receives the lowest f1 score (0.07 with precision of 0.04 and recall of 0.35), mainly because of imprecise boundaries for low precision (e.g. "free wifi", "include free wifi", and "offer free wifi"). It also mixes with "free parking" because of the context (hotel). On SGD, due to our filtering step and many slots have only one value (e.g. "Homes-has-wifi" and "Homes-has-pets"), and the value ("True") cannot be detected by spans, we received a lower schema induction score. In addition, there are 16 groups with lower matching score (< 0.8). This is particularly an issue when the number of instances is small (only 8 instances for "home-furnished" in total). If more instances are available, it is likely that our method can recover these missed slots due to low matching scores.

However, the schema defined here is less complicated compared to more realistic settings. For example, spans may not be a noun phrase (such as "until the 30th" to distinguish from "after the 30th" in the utterance "Do I have access to my premium account until the 30th or will I have to pay additional $15 on the 29th" to distinguish different constraints), and spans may not necessarily be meaningful arguments to intents (such as "Can you help me to reset my password" even though "reset my password" can be considered as a phrase). ABCD (Chen et al., 2021) collects more realistic TOD conversations with more in-depth discussion on finishing tasks in the shopping domain. However, they propose to leverage actions, rather than slot-value pairs as used before in slot discovery, where the actions are defined above the utterance level.

We also apply our method on internal customer data for both intent (by applying multi-step clustering directly on utterances) and slot schema induction. Compared to MultiWOZ and SGD, schema in more realistic scenarios is more complicated and the slot boundaries are less clear. Nevertheless, our method is still effective in inducing the majority of the schema to find intents such as "change password" and slot types such as "devices". We observe similar findings on the Ubuntu dialog corpus (Lowe et al., 2015). See more discussions in Appendix A.9.

 

Ablation studiesTable 4 illustrates the performance comparisons with different numbers of clustering steps, as well as input representations. Results demonstrate that compared to one-step (using masked span representation) and two-step (adding utterance representation), our three-step clustering method induces a more fine-grained schema, which is more effective for downstream tasks. The number of steps can be customized to real use cases depending on target granularity7. In addition, if we use the original input rather than the masked phrase representation, the performance drops by a large margin (\(85.71\) on slot type). This suggests that the surrounding context is more critical than the surface embeddings for schema induction, especially when the same phrase can serve different functions even in the same domain (such as locations).

Footnote 7: More steps were also conducted but we observed lower Silhouette coefficient and lower quality in preliminary studies.

DST Error analysisSuggested by the relatively high span extraction accuracy (\(68.13\) F1 score) from Appendix A.4, we find that the majority of the problems in DST come from cluster mapping. This is caused by either excessive surrounding information or by the lack of context from previous turns. For instance, in the utterance "Can I book it for 3 people", the "3 people" can be mapped to either "restaurant-book people" or "hotel-book people", since we extract the contextual information from the current turn only. If more context is considered, the mapping performance including results on downstream tasks is expected to improve. Another issue is with span boundary. Even though we apply fuzzy matching, the evaluation still penalizes correct predictions (such as "indian food") from its ground truth ("indian"), since we do not have training signals to identify the target boundaries.

Meanwhile, we acknowledge that since we extract phrases as candidates of slot values, our DST cannot deal with other linguistic features such as coreferences and ellipses annotated in MultiWOZ and SGD. This partially explains the relatively low performance on the full zero-shot DST task. However, these features are not important for schema induction since the majority of the slot values can be found as phrases in the raw conversation, which can further be categorized into slot types. Obtaining better performance on DST is out of the scope of this paper.

## 6 Conclusion

In this paper, we propose a fully unsupervised method for slot schema induction. Compared to previous research, our method can be easily adapted to unseen domains and tasks to extract target phrases before clustering into fine-grained groups without domain constraints. We conduct extensive experiments and show that our proposed approach is flexible and effective in generating accurate and useful schemas without task-specific rules in both academic and realistic datasets. We believe that our method could also be applied to other languages (since no supervised parser, model, or heuristic is required) and tasks such as question answering where the answering phrase is not explicitly annotated Min et al. (2019). In the future, we plan to extend our method to problems with more complex structures and data where slots are less trivial to identify.

## 7 Ethical Considerations

Our intended use case is to induce the schema of raw conversations between a real user and system, where the conversation is not structured or constrained. Our experiments are done on English data, but our approach can be used for any language, especially because our method does not require any language-specific tools such as parsers which generally require a lot of labeled data. We hope that our work can reduce design and annotation cost in building dialog systems for new domains, and can inspire future research on this practical bottleneck in applications.

## Acknowledgements

We thank Abhinav Rastogi from Google Research, and anonymous reviewers for their constructive suggestions. We would also thank Kenji Sagae from UC Davis for early discussions.

\begin{table}
\begin{tabular}{l c c c c c} \hline \hline  & \multicolumn{3}{c}{schema} & \multicolumn{2}{c}{DT} \\ method & \# clusters & type & value & turn & joint \\ \hline _Different number of clustering steps_ & & & & \\ \hline one-step & 31 & 60.87 & 39.74 & 23.58 & 30.68 \\ two-step & 99 & 83.64 & 46.66 & 35.21 & 41.94 \\ \hline _Original representation instead of masked_ & & & & \\ \hline unmasked rep. & 284 & 85.71 & 53.30 & 27.93 & 36.40 \\ \hline _Three-step masked clustering_ & & & & & \\ \hline Three-step masked & 290 & 96.67 & 58.71 & 39.59 & 46.69 \\ \hline \end{tabular}
\end{table}
Table 4: Ablation results on MultiWOZ with TODSpan constrained on PCFG. Using masked presentation for multi-step clustering improves the performance on schema induction and DST by a large margin.

 



## References

* Athanasopoulou et al. (2014) Georgia Athanasopoulou, Ioannis Klasinas, Spiros Georgiladakis, Elias Iosif, and Alexandros Potamianos. 2014. Using lexical, syntactic and semantic features for non-terminal grammar rule induction in spoken dialogue systems. In _2014 IEEE Spoken Language Technology Workshop (SLT)_, pages 596-601. Cited by: SS3.
* C. F. Baker, Charles J. Fillmore, and John B. Lowe (1998)The Berkeley FrameNet project. In COLING 1998 Volume 1: The 17th International Conference on Computational Linguistics, External Links: ISBN 978-3-319-3861-3 Cited by: SS1.
* K. Bennani-Smires, Claudiu Musat, Andreea Hossmann, Michael Baeriswyl, and Martin Jaggi (2018)Simple unsupervised keyphrase extraction using sentence embeddings. In Proceedings of the 22nd Conference on Computational Natural Language Learning, Brussels, Belgium, pp. 221-229. External Links: Link, Document Cited by: SS1.
* a large-scale multi-domain Wizard-of-Oz dataset for task-oriented dialogue modelling. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, pp. 5016-5026. External Links: Link, Document Cited by: SS1.
* R. Campos, V. Mangaravite, A. Pasquali, Alipio Mario Jorge, Celia Nunes, and Adam Jatowt (2018)Yake! collection-independent automatic keyword extractor. In Advances in Information Retrieval, Cham, pp. 806-810. External Links: Link, Document Cited by: SS1.
* D. Chen, H. Chen, Y. Yang, Alexander Lin, and Zhou Yu (2021)Action-based conversations dataset: a corpus for building more in-depth task-oriented dialogue systems. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Online, pp. 3002-3017. External Links: Link, Document Cited by: SS1.
* W. Chen, J. Chen, P. Qin, X. Yan, and W. Yang (2019)Semantically conditioned dialog response generation via hierarchical disentangled self-attention. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, pp. 3696-3709. External Links: Link, Document Cited by: SS1.
* Y. Chen, W. Y. Wang, and A. I. Rudnicky (2015)Learning frame semantics and distributional semantics for unsupervised semantic slot induction in spoken dialogue systems. In 2014 IEEE Spoken Language Technology Workshop (SLT), Vol. , pp. 584-589. External Links: Link, Document Cited by: SS1.
* Y. Chen, W. Y. Wang, and A. I. Rudnicky (2015)A review of conversational language understanding. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Denver, Colorado, USA, pp. 619-629. External Links: Link, Document Cited by: SS1.
* Y. Cheng, W. Y. Wang, and A. I. Rudnicky (2013)Unsupervised induction and filling of semantic slots for spoken dialogue systems using frame-semantic parsing. In 2013 IEEE Workshop on Automatic Speech Recognition and Understanding, pp. 120-125. External Links: Link, Document Cited by: SS1.
* Y. Chen, W. Y. Wang, and A. I. Rudnicky (2015)Learning semantic hierarchy with distributed representations for unsupervised spoken language understanding. In Proceedings of The 16th Annual Meeting of the International Speech Communication Association (INTERSPEECH 2015), pp. 1869-1873. External Links: Link, Document Cited by: SS1.
* K. Clark, U. Khandelwal, O. Levy, and C. D. Manning (2019)What does BERT look at? an analysis of BERT's attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, Florence, Italy, pp. 276-286. External Links: Link, Document Cited by: SS1.
* D. Das, N. Schneider, D. Chen, and Noah A. Smith (2010)Probabilistic frame-semantic parsing. In Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Los Angeles, California, pp. 948-956. External Links: Link, Document Cited by: SS1.
* S. Davidson, D. Yu, and Z. Yu (2019)Dependency parsing for spoken dialog systems. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China, pp. 1513-1519. External Links: Link, Document Cited by: SS1.
* J. Devlin, M. Chang, K. Lee, and K. Toutanova (2019)BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, pp. 4171-4186. External Links: Link, Document Cited by: SS1.
* D. Downey, Matthew Broadhead, and O. Etzioni (2007)Locating complex named entities in web text. In IJCAI, IJCAI'07, San Francisco, CA, USA, pp. 2733-2739. External Links: Link, Document Cited by: SS1.
* A. Drozdov, P. Vega, Y. Chen, M. Iyyer, and A. McCallum (2019)Unsupervised labeled parsing with deep inside-outside recursive

autoencoders. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China, pp. 1507-1512. External Links: Link Cited by: SS4.
* X. Du, L. He, Q. Li, D. Yu, P. Sapat, and Y. Zhang (2021)QA-driven zero-shot slot filling with weak supervision pretraining. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), Online, pp. 654-664. External Links: Link Cited by: SS3.
* M. Eric, R. Goel, S. Paul, A. Sethi, S. Agarwal, S. Gao, A. Kumar, A. Goyal, P. Ku, and D. Hakkani-Tur (2020)MultiWOZ 2.1: a consolidated multi-domain dialogue dataset with state corrections and state tracking baselines. In Proceedings of the 12th Language Resources and Evaluation Conference, Marseille, France, pp. 422-428. External Links: Link Cited by: SS4.
* 278. External Links: Document, ISSN 1532-842X Cited by: SS4.
* M. Henderson and I. Vulic (2021)ConVEx: data-efficient and few-shot slot labeling. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Online, pp. 3375-3389. External Links: Link Cited by: SS4.
* J. Herzig and J. Berant (2021)Span-based semantic parsing for compositional generalization. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), Online, pp. 908-921. External Links: Link Cited by: SS4.
* E. Hosseini-Asl, B. McCann, C. Wu, S. Yavuz, and R. Socher (2020)A simple language model for task-oriented dialogue. In Advances in Neural Information Processing Systems, Vol. 33, pp. 20179-20191. External Links: Link Cited by: SS4.
* L. Huang, T. Cassidy, X. Feng, H. Ji, C. R. Voss, J. Han, and A. Sil (2016)Liberal event extraction and event schema induction. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Berlin, Germany, pp. 258-268. External Links: ISBN 978-3-319-31 

Meeting of the Association for Computational Linguistics_, pages 128-135, Philadelphia, Pennsylvania, USA. Association for Computational Linguistics.
* Lang and Lapata (2010) Joel Lang and Mirella Lapata. 2010. Unsupervised induction of semantic roles. In _Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics_, pages 939-947, Los Angeles, California. Association for Computational Linguistics.
* Lei et al. (2018) Wenqiang Lei, Xisen Jin, Min-Yen Kan, Zhaochun Ren, Xiangnan He, and Dawei Yin. 2018. Sequicity: Simplifying task-oriented dialogue systems with single sequence-to-sequence architectures. In _Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)_, pages 1437-1447, Melbourne, Australia. Association for Computational Linguistics.
* Levine et al. (2021) Yoav Levine, Barak Lenz, Opher Lieber, Omri Abend, Kevin Leyton-Brown, Moshe Tennenholtz, and Yoav Shoham. 2021. {PMI}-masking: Principled masking of correlated spans. In _International Conference on Learning Representations_.
* Li et al. (2021) Yangming Li, Lemao Liu, and Kaisheng Yao. 2021. Neural sequence segmentation as determining the leftmost segments. In _Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies_, pages 1476-1486, Online. Association for Computational Linguistics.
* Liu et al. (2009) Zhiyuan Liu, Peng Li, Yabin Zheng, and Maosong Sun. 2009. Clustering to find exemplar terms for keyphrase extraction. In _Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing_, pages 257-266, Singapore. Association for Computational Linguistics.
* Lowe et al. (2015) Ryan Lowe, Nissan Pow, Iulian Serban, and Joelle Pineau. 2015. The Ubuntu dialogue corpus: A large dataset for research in unstructured multi-turn dialogue systems. In _Proceedings of the 16th Annual Meeting of the Special Interest Group on Discourse and Dialogue_, pages 285-294, Prague, Czech Republic. Association for Computational Linguistics.
* Manning et al. (2014) Christopher Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven Bethard, and David McClasky. 2014. The Stanford CoreNLP natural language processing toolkit. In _Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations_, pages 55-60, Baltimore, Maryland. Association for Computational Linguistics.
* McInnes et al. (2017) Leland McInnes, John Healy, and Steve Astels. 2017. hdbscan: Hierarchical density based clustering. _Journal of Open Source Software_, 2(11):205.
* Michael et al. (2020) Julian Michael, Jan A. Botha, and Ian Tenney. 2020. Asking without telling: Exploring latent ontologies in contextual representations. In _Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)_, pages 6792-6812, Online. Association for Computational Linguistics.
* Michael and Zettlemoyer (2021) Julian Michael and Luke Zettlemoyer. 2021. Inducing semantic roles without syntax. In _Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021_, pages 4427-4442, Online. Association for Computational Linguistics.
* Min et al. (2020) Qingkai Min, Libo Qin, Zhiyang Teng, Xiao Liu, and Yue Zhang. 2020. Dialogue state induction using neural latent variable models. In _Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20_, pages 3845-3852. International Joint Conferences on Artificial Intelligence Organization. Main track.
* Min et al. (2019) Sewon Min, Danqi Chen, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2019. A discrete hard EM approach for weakly supervised question answering. In _Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)_, pages 2851-2864, Hong Kong, China. Association for Computational Linguistics.
* Rastogi et al. (2020) Abhinav Rastogi, Xiaoxue Zang, Srinivas Sunkara, Raghav Gupta, and Pranav Khaitan. 2020. Towards scalable multi-domain conversational agents: The schema-guided dialogue dataset. _Proceedings of the AAAI Conference on Artificial Intelligence_, 34(05):8689-8696.
* Rousseeuw (1987) Peter J. Rousseeuw. 1987. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. _Journal of Computational and Applied Mathematics_, 20:53-65.
* Shen et al. (2021) Jiaming Shen, Yunyi Zhang, Heng Ji, and Jiawei Han. 2021. Corpus-based open-domain event type induction.
* Shen et al. (2018) Yikang Shen, Zhouhan Lin, Chin wei Huang, and Aaron Courville. 2018. Neural language modeling by jointly learning syntax and lexicon. In _International Conference on Learning Representations_.
* Shi et al. (2018) Chen Shi, Qi Chen, Lei Sha, Sujian Li, Xu Sun, Houfeng Wang, and Lintao Zhang. 2018. Autodialabel: Labeling dialogue data with unsupervised learning. In _Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing_, pages 684-689, Brussels, Belgium. Association for Computational Linguistics.
* Shi et al. (2019) Haoyue Shi, Jiayuan Mao, Kevin Gimpel, and Karen Livescu. 2019. Visually grounded neural syntax acquisition. In _Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics_, pages 1842-1861, Florence, Italy. Association for Computational Linguistics 

Xiaojun Wan and Jianguo Xiao. 2008. Single document keyphrase extraction using neighborhood knowledge. In Proceedings of the 23rd National Conference on Artificial Intelligence - Volume 2, AAAI'08, pp. 855-860. Cited by: SS1.
* T. Wolf, L. Debutt, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, J. Davison, S. Shelifer, P. von Platen, C. Ma, Y. Jenrite, J. Du, C. Xu, T. Le Scao, S. Gugger, M. Drame, Q. Lhoest, and A. Rush (2020)Transformers: state-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Online, pp. 38-45. External Links: Link, Document Cited by: SS1.
* C. Wu, S. C.H. Hoi, R. Socher, and C. Xiong (2020)TOD-BERT: pre-trained natural language understanding for task-oriented dialogue. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online, pp. 917-929. External Links: Link, Document Cited by: SS1.
* C. Wu and C. Xiong (2020)Probing task-oriented dialogue representation from language models. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online, pp. 5036-5051. External Links: Link, Document Cited by: SS1.
* K. Yamada, R. Sasano, and K. Takeda (2021)Semantic frame induction using masked word embeddings and two-step clustering. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), Online, pp. 811-816. External Links: Link, Document Cited by: SS1.
* D. Yu, L. He, Y. Zhang, X. Du, P. Pasupat, and Q. Li (2021)Few-shot intent classification and slot filling with retrieved examples. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Online, pp. 734-749. External Links: Link, Document Cited by: SS1.
* D. Yu and Z. Yu (2021)MIDAS: a dialog act annotation scheme for open domain human machine spoken conversations. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, Online, pp. 1103-1120. External Links: Link, Document Cited by: SS1.
* X. Zang, A. Rastogi, S. Sunkara, R. Gupta, J. Zhang, and J. Chen (2020)MultiWOZ 2.2 : a dialogue dataset with additional annotation corrections and state tracking baselines. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI, Online, pp. 109-117. External Links: Link, Document Cited by: SS1.
* S. Zhang, L. Song, L. Jin, K. Xu, D. Yu, and J. Luo (2021)Video-aided unsupervised grammar induction. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Online, pp. 1513-1524. External Links: Link, Document Cited by: SS1.
* Y. Zhang, Z. Ou, and Z. Yu (2020)Task-oriented dialog systems that consider multiple appropriate responses under the same context. Proceedings of the AAAI Conference on Artificial Intelligence34 (05), pp. 9604-9611. External Links: Link, Document Cited by: SS1.

 

Appendices

### Implementation details

For language model further pre-training, we implement our code based on Wu et al. (2020) where the training data and hyperparameters are kept the same. Their evaluation script is used to show results on the standard supervised dialog state tracking with the full-data and few-shot learning setting. We run all experiments on three random seeds and report the average score. The TOD-BERT baseline is the "TOD-BERT-JNT-V1" provided by Wolf et al. (2020). For span-based pre-training methods, we use the provided "spanbert-base-cased" model from Joshi et al. (2020) as the initial checkpoint and add a span boundary object. For random masking, we use a 15% masking budget and sample a span length by geometric distribution with \(p=0.2\) and clip the max length to 10. For other masking methods, we follow Levine et al. (2021) by considering n-grams of lengths 2 to 5 which appear more than 10 times in the corpus. We choose the top 10 - 20% of n-grams by each criterion so about half of the tokens can be identified as part of correlated n-grams. We also experimented with different number of n-grams to mask and evaluate on both pre-training loss and DST results, but did not observe significant difference. We further pre-train using the same data as TOD-BERT with early stopping by prediction loss. For the attention distribution used to define our distance function, we use the eighth layer of the model suggested by Kim et al. (2020). We modify Jin and Schuler (2020) to train our unsupervised PCFG model using their suggested hyperparameters on the text input only with data cleaned by Wu et al. (2020). These existing techniques, however, cannot be applied to induce schema without our proposed novel method. They only inspire us to propose an fully unsupervised method leveraging the potential benefits. All our experiments run on eight V-100 GPUs. The training time varies from three hours to 14 hours.

For the baseline DSI, we run their provided public codebase on the same MultiWOZ 2.1 data and SGD dataset respectively (since each corpus has different schemas in the output space, we cannot pre-train on more task-oriented dialog data as ours), following their suggested hyperparameters on the best model DSI-GM.

For our auto-tuned multi-step clustering, we set the minimum number of samples per cluster by dividing the total number of samples by 5, 10, 15, 20, 25 and choose the best one auto-tuned by the Silhouette coefficient. A more rigorous grid search can potentially generate better performance on our tasks. All other parameters are kept as default in HDBSCAN.

For our experiments on MultiWOZ and SGD, we use the development portion of the data (following the standard separation in their original Github repositories), which represents a sample of whole corpus. MultiWOZ and SGD are commonly used task-oriented dialog datasets collected in English. On MultiWOZ, we use 7374 user utterances from the development set (1000 conversations), which covers 31 slot types. On SGD, we use 24363 user utterances (2482 conversations), which covers 82 slot types. We also report the induced schema results on the training portion of the data in AppendixA.6 where there are 56668 user utterances (8420 conversations) on MultiWOZ 2.1., and 164982 user utterances (16142 conversations) on SGD. We build the ground-truth ontology from the annotated corpus with slot types and values in the dialog state.

### Algorithm

Algorithm 1 shows the algorithm for span extraction. For simplicity, we compare the distance from left to right for both the settings with and without PCFG structure. For using language model only, we merge tokens into phrases if their distance is small. If PCFG structure is constrained, we compare the distance between tokens and check if their corresponding nodes belong to the same parent. In practice, we implement the PCFG span extraction from bottom to top where we merge tokens into nodes from the lower level and represent the tokens with merged nodes. At each level, we compare the distance between consecutive nodes. To illustrate this process, for example in Figure 2, we compare the distance between the node "modern" and "global cuisine", and the distance between "a restaurant" and "which" to check if they are siblings in the same level. Since "which" is not merged in a lower level, itself serves as the node whereas "a restaurant" serves as the node for "restaurant". All merged phrases, with left-out unigrams, are considered as candidate extracted spans.

``` Input: Training sequence \(\{t_{i}\}\), \(k\), \(l\), \(m\), \(n\), \(s\), \(t_{j}\), \(r\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t_{k+2}\), \(t_{k+1}\), \(t 

grouped from the previous step. In other words, for each sub-groups clustered by the previous step, we further cluster the embeddings into fine-grained groups. Figure 3 illustrates this process. The clustering algorithms returns groups of embeddings and corresponding labels (0, 1, ...) and we choose the minimum number of samples per cluster based on Silhouette score. We filter clusters where the frequent spans of each sub-cluster are the same, indicating that there is only one value for this cluster. We consider the rest clusters as the input to the next step, or return as our final clusters.

### Supervised DST results

Wu and Xiong (2020) suggest that further pretraining on TOD data Wu et al. (2020) helps generating better utterance-level representation, but less so for other features such as slots. To encourage better span-level representation, we further pretrained a SpanBERT model on TOD data by masking spans based on frequency, Pointwise Mutual Information (PMI), symmetric conditional probability (SCP, Downey et al., 2007), and segmented PMI Levine et al. (2021) following recent research, together with randomly masking contiguous random spans. Implementation details can be found in Appendix A.1. Here we evaluate different pre-trained methods on the standard DST benchmark.

\begin{table}
\begin{tabular}{l l c r} \hline \hline  & Model & Joint Acc. & Slot Acc. \\ \hline BERT & 45.6 & 96.6 \\ SpanBERT & 1.5 & 81.1 \\ ToD-BERT & 46.0 & 96.6 \\ \hline _Span-based model trained on TOD data_ \\ \hline TOD-Span & 49.0 & 96.9 \\ freq & **49.7** & **97.0** \\ freq w/o stop & 47.3 & 96.8 \\ PMI & 48.7 & 96.9 \\ PMI\_seg & 49.4 & **97.0** \\ SCP & 48.3 & 96.8 \\ \hline \hline \end{tabular}
\end{table}
Table 5: Supervised DST results with the full-data setting. Results show that span-based methods outperform token-based pre-training methods, and this improvement is not from the initial checkpoint. Different masking methods achieve similar performance.

 

Table 5 and Table 6 shows the performance of supervised DST performance evaluated on joint accuracy and slot accuracy with the full data and few-shot data (1 - 10%), respectively. Note that this was not used to choose the best model to perform schema induction and related tasks. These results compare different pre-training methods to illustrate the quality of the initial checkpoints on a more standard benchmark. As shown similarly in recent work, TOD-BERT can only show marginal improvement over BERT averaged over different random seeds. Meanwhile, SpanBERT when used as an initial checkpoint is not stable at downstream DST tasks even if multiple random seeds were tested. However, after further pre-training on task-oriented dialog dataset, TOD-Span achieve significantly better performance in both the few-shot and full-data setting. When comparing different span masking methods, random masking (TOD-Span) is quite effective. Although freq and PMI_seg achieves better performance (over the naive PMI), the improvement is not large. We conjecture that this might be due to that compared to general domains and tasks with more diverse prediction space such as question answering, the number of task-relevant phrases in task-oriented dialog is limited.

### Span Extraction Results

Table 7 shows the recall for span extraction results. We manually annotate 200 user utterances so that acceptable span boundaries would not be penalized. For instance, given the utterance "I need to book a hotel in the east that has 4 stars", instead of the DST annotation "hotel-starts: 4" and "hotel-area: east" together with coreference and annotation errors that cannot be detected from the context, we manually annotate the candidate spans as ["in the east", "the east", "east"] and ["4 stars", "has 4 stars", "4"] which relaxes the rigid requirement of strict matching of slot values. Compared to fuzzy matching, this evaluation is cleaner. Because of the annotation errors and coreference that a value does not appear in the current utterance, the ground truth score is \(78.83\). Similar to our schema induction and DST evaluation results, we observe that constraining on predicted structures can increase model performance. In particular, using an in-domain self-supervised PCFG structure and achieve similar or even better performance than using a supervised parser. We only evaluate recall here because there are non-meaningful spans extracted, and is not important to downstream tasks since they are potentially filtered by our clustering method.

### Clustering

Figure 4 shows the clustering results after the first step. This shows that we can get some coarse clusters with non-meaningful groups (such as "thank you"). Some slot types (such as day of the week as "wednesday") are not distinguished by their domain and intent. Further clustering can generate more fine-grained schema.

In addition, from empirical analysis, we found that meaningless spans extracted together with meaningful ones from the previous stage may add noises in the process. To study its influence by filtering out noisy clusters, we automatically examine clusters and their corresponding sub-clusters from the first two steps based on the assumption that valid slot types include more than one slot value. We choose one here because if one cluster is dominated by examples such as "thank you" with a few other instances such as "thanks", the latter can be considered as outliers from our clustering method. Afterwards there is only one value left. We can also choose to filter out clusters with more than one slot value, which may result in lower recall. Since the goal of schema induction is to build a complete ontology with high recall, noisy groups are actually acceptable. In other words, we observed similar performance before and after filtering out such noisy cluster since the cluster mapping step would assign a low score to such groups from cluster embedding representations (Section 4.1), which is similar to how human experts would ignore a cluster of meaningless spans.

### Schema induction on training portion

Since our goal is to induce the schema of a corpus without using any labeled data, there is no major

\begin{table}
\begin{tabular}{l c c c} \hline Model & R (LM only) & R (+ supervisited) & R (+ unsupervised) \\ \hline NP & 62.13 & & \\ BERT & 62.30 & 62.05 & 64.30 \\ SpanBERT & 58.43 & 64.60 & 62.52 \\ TOD-BERT & 54.15 & 60.88 & 65.05 \\ TOD-Span & 64.21 & 67.22 & **68.13** \\ \hline Ground Truth & 78.83 & & \\ \hline \end{tabular}
\end{table}
Table 7: Span extraction results on manually labeled utterances. Results show that constrained on unsupervised PCFG structure, our span-based further pre-training method TOD-Span achieves the best recall (\(68.13\)), close to the ground truth performance (\(78.83\)) 

difference in whether the schema is induced on the training set of MultiWOZ or the development set. The main difference is the number of utterance where the training data is ten times larger than the development data. Here we show the results for reference. Table 8 demonstrates that despite our much smaller number of clusters, our method achieves significantly better performance than the DSI baseline on both schema induction and DST.

### SGD results

Table 9 shows the results for schema induction and DST on the SGD dataset. We conjecture that the similar performance results with the strong DSI baseline is due to large difference in cluster numbers. Intuitively, with a larger number of clusters, each group with fewer examples can be mapped to the ground truth embeddings correctly. On the other hand, if different slot types are mixed into one cluster, all slot values are assigned an inaccurate name. Another potential reason is that compared to MultiWOZ, SGD dataset requires more contextual information (SGD has less average tokens per turn and more turns per dialogue). Thus the mapping from relatively noisy clusters to ground truth creates errors for downstream tasks, especially that the evaluation metric require exact match of slot types.

However, the results are still comparable. Although predicting a magnitude smaller number of clusters to be less favoured in evaluation, our method still achieves similar or better performance.

### Comparison to DSI on DST

We note that the DST results on MultiWOZ for DISI is lower than that reported in Min et al. (2020). As shown in Section 4.1, the original number was reported by mapping predicted slot types to target ontology at the turn level (before accumulating for the final prediction), where a small subset is used. This process makes mapping more evident (for ex

Figure 4: Clustering after first step. Grey labels are outliers detected by HDBSCAN. The numbers in each group represent a latent cluster label, and the texts represent the most frequent phrase in cluster.

\begin{table}
\begin{tabular}{l r r r r r} \hline \hline  & \multicolumn{3}{c}{schema} & \multicolumn{2}{c}{DST} \\ method & \# clusters & type & value & turn & joint \\ \hline DSI & 4981 & 95.08 & 43.23 & 21.10 & 28.14 \\ Ours & 374 & 93.33 & **47.32** & **37.64** & **44.74** \\ \hline \hline \end{tabular}
\end{table}
Table 8: Results for schema induction and DST when the schema is induced on the training portion of MultiWOZ data. Our method significantly outperforms the strong DSI baseline.

 

ample, instead of mapping a predicted slot type to the target 30 slot types, it only compares a slot type to one of two slot types that appear in the reference). Hence, it overestimates the performance and is very different from how a human expert would assign labels when inducing the schema for a new corpus without (turn-level) annotation. Since DST is evaluated to make sure that the slot type matches, an incorrect slot type matching would result in a 0 true positive score. The actual performance in our experiments is thus lower.

In addition, we follow the exactly same settings including training and evaluation scripts (on DST) with their provided pre-processed span-level data and suggested hyperparameters. We use the same metrics and scripts to evaluate all methods. Accordingly, all the numbers reported in Table 2 are fair and comparable.

Lastly, since we use fuzzy matching scores Rastogi et al. (2020); Min et al. (2020), turn-level performance is accumulated to the joint level. For that reason, different from joint goal accuracy commonly used where all slot types and values are required to be exactly match, partial true positives are counted again in future turns. For example, if the current turn predicts "train leave-at: 10" with the target dialog state "train leave-at: 10:00", even if the next turn predicts nothing correctly, this partial score is counted in the joint level score in the next turn. This procedure follows the setting of Min et al. (2020). In fact, in their reported performance of DSI-GM on MultiWOZ 2.1 with precision and recall of 52.5, 39.3, and 49.2, 43.2 at turn and joint level respectively, the actual F1 scores are actually 45.0 for the turn level and 46.0 at the joint level. Similar to ours, they also received higher score on the joint level due to accumulative partial scores (by calculating F1 using their reported precision and recall scores directly). Since we follow the same evaluation script and metrics, the results and conclusion we have in our experiments comparing different methods are comparable.

### Further analysis of schema induction among datasets (including realistic data)

When we apply our method on internal customer data for slot schema induction, we follow the same pipeline introduced in Section 3. For intent schema induction, we consider both the system turn and utterance turn as the context to our multi-step clustering to find schema with the hierarchy. Because our method is data-driven and does not require heuristics, it can induce expected slots explained before (e.g. "until the 30th"). We observed empirically satisfying performance but the results cannot be reported publicly because of restrictions. Therefore, we only report results on the public datasets to compare to previous research, as well as to inspire follow-up works for comparison.

We also applied our approach to the Ubuntu dialog corpus Lowe et al. (2015). Compared to general TOD systems where a user and an knowledgeable agent communicate with each other, this data is collected from online forms to discuss technical issues. The utterances are less conversational, and include coding scripts, making it very noisy. We experiment on this more realistic dataset only for reference, since it is significantly different from building a TOD systems to interact with real users where schema is critical. We sample 8k utterances from the training data, and apply our method on both the intent level and the slot level. On the intent level, our method generates 70 clusters from the first step, and 154 clusters after three steps. Apart from greetings (which appear very frequently), we can induce intents such as suggesting one question is off topic (e.g. "this is a support channel; please leave and go to xxx channel"). There are also some more evident intent clusters such as suggested command line, suggested url, and questions for installations in a specific setup (e.g. "how to install firefox on 64 bit"). When the input sentence is long with mixed intents, our method may group these into one large cluster (such as providing suggestions to a specific problem, which is more similar to dialog act). We may choose to mix slot- and utterance-level clustering to solve such an issue by treating each complete segment in an utterance as a long span. On the slot level induction, our method generates 36 clusters from the first step, and 287 clusters after three steps. Our method can induce slot types such as "ubuntu verision" and "software name". However, compared to MultiWOZ and SGD, the induced slots are much nosier with lower precision where meaningless verbs (e.g. "set up" are grouped). Meanwhile, there a many other slot types that are not meaning such as a cluster regarding part of a path (e.g., "/var\({}^{\prime\prime}\)"), which may be due to that we use the same LM trained on TOD dat which does not handle code scripts. Further in-domain pre-training within the Ubuntu dialog corpus may solve this issue. To conclude, 

even though this dataset is noisy and different from TOD, our method is still applicable to discover useful schema on both the intent and the slot level without any supervision.

### Applying induced schema on testing data

After inducing the schema on the training data, we may apply the induced schema directly to a different set of data (such as testing data) for downstream applications (such as DST). Since we already induced slot clusters and mapped them to ground truth, we do not need to follow the same span extraction before clustering again. Alternatively, we adopt the following procedure. We extract all candidate phrases in the same way, but instead of clustering, we map the extracted phrases to clustered groups. Specifically, similar to mapping induced latent clusters to ground truth groups in schema induction, we find the most similar latent cluster to the candidate in the contextualized embedding space, and assign the cluster name to the phrase as its slot type. We observed that even though the schema is not induced on the testing data, the performance on both turn and joint level maintains (36.58 and 48.98).

#### Related work in schema induction of other natural language processing tasks

Similar to grammar induction and unsupervised parsing, schema induction can help to eliminate the time-consuming manual process and serves as the first step to build a large corpus Klein and Manning (2002); Klasinas et al. (2014). Related tasks include event type induction Huang et al. (2016, 2018), semantic frame induction Yamada et al. (2021), and semantic role induction Liang and Lapata (2010); Michael and Zettlemoyer (2021). Relationship in these tasks such as predicate and head or patient and agent are relatively evident compared to that in conversational dialog. In addition, most of previous research requires either strong statistical assumptions based on pre-defined parsers, or existing ontologies and annotations for some seen types, and formulate the problem similar to word sense disambiguation on predicate-object pairs Shen et al. (2021). In contrast, our method does not require any formal syntactic or semantic supervision.

#### Incorporating task-specific annotation requirements for schema induction

Our method is data-driven, indicating that if two tokens appear frequently (thus form a span), it might be a good idea to consider them as a slot together. Our motivation here is to induce the most probabilistic schema based on distributed representations. Incorporating annotation requirement is not specific to schema induction from corpus, and is a broader concept of neuro-symbolic integration by merging symbolic rules with connectionist models like neural networks.

However, if there is a specific requirement, we can either inject inductive bias similar to Shi et al. (2019); Kim et al. (2020) to change the attention distribution (so that the requirement-specific bias can result in smaller or larger divergence explicitly). We can also add such requirements as rules directly on certain spans. In this way, we can incorporate the requirements. In comparison, previous methods relying on supervised parser are not applicable.

#### Detailed schema induction results

Table 10 shows detailed results comparison on different proposed methods on schema induction. All methods result in a similar number of clusters, while span-based further pre-training methods constrained on unsupervised PCFG structures achieve the best performance overall.

 



\begin{table}
\begin{tabular}{l c c c c c c c}  & \multicolumn{4}{c}{slot type} & slot value \\ \hline method & \# clusters & precision & recall & f1 & precision & recall & f1 \\ \hline _Baseline_ & & & & & & & \\ \hline DSI & 522 & 96.15 & 80.65 & 87.72 & 41.53 & 57.40 & 37.18 \\ \hline _Parser only_ & & & & & & & \\ \hline NP & 88 & 94.44 & 54.84 & 69.39 & 42.26 & 67.80 & 47.46 \\ DSI cand. & 113 & **100.00** & 74.19 & 85.19 & 56.46 & 60.80 & 49.71 \\ PCFG & 339 & 96.43 & 87.10 & 91.53 & 62.14 & 58.01 & 53.62 \\ CoreNLP & 292 & 96.15 & 80.65 & 87.72 & 57.80 & 63.18 & 54.43 \\ \hline _Language model only_ & & & & & & \\ \hline BERT & 340 & 96.00 & 77.42 & 85.71 & 62.11 & 58.60 & 55.80 \\ SpanBERT & 343 & 96.30 & 83.87 & 89.66 & 56.34 & 51.95 & 45.21 \\ TOD-BERT & 219 & 96.30 & 83.87 & 89.66 & **63.58** & 57.64 & 50.89 \\ TOD-Span & 374 & 96.00 & 77.42 & 85.71 & 54.88 & 69.13 & 55.29 \\ freq & 100 & 93.33 & 45.16 & 60.87 & 47.31 & 63.32 & 45.97 \\ freq w/o stop & 337 & 95.65 & 70.97 & 81.48 & 48.63 & 63.66 & 48.27 \\ PMI & 369 & **100.00** & 80.65 & 89.29 & 53.97 & **73.60** & 56.38 \\ PMI\_seg & 551 & 96.55 & 90.32 & 93.33 & 60.37 & 66.68 & 58.33 \\ SCP & 374 & 96.00 & 77.42 & 85.71 & 55.06 & 61.23 & 51.78 \\ \hline \end{tabular}

\end{table}
Table 10: Schema induction results for different proposed methods. High precision scores indicate that the clusters are relatively clean without noises that result in fuzzy representations for mapping.