Modeling Local Contexts for Joint Dialogue Act Recognition and Sentiment Classification with Bi-channel Dynamic Convolutions
Paper · 2020 · Jingye Li, Hao Fei and Donghong Ji
Summary
A short reply can be hard to classify until you see what it replies to. The preceding turn may tell you that the speaker is answering a question, and the turns around it may help you judge the sentiment. These are separate questions about the same utterance. Dialogue act recognition assigns a label to the speaker’s communicative move, such as asking, answering, or agreeing. Sentiment classification labels the feeling or polarity expressed in that turn. The authors study how to make both judgments across a conversation and how the evidence for one judgment can help with the other. Dialogue systems and sentiment and emotion are the wider areas in which those judgments matter.
The authors give nearby turns a direct role in the computation. A bidirectional recurrent network first reads the words of each utterance, and a position signal marks where the utterance occurs in the conversation. Convolutional layers then combine information across turns. A convolution uses a set of weights, called a kernel, to decide how strongly to mix nearby representations. In the authors’ BDCN system, the representation at the turn being classified determines those weights. Their BCDCN system also lets neighboring turns influence the choice of weights. Both systems keep separate processing streams for dialogue acts and sentiment. At successive layers, each stream can draw on features already developed by both, and each has its own final classifier.
The experiments use Mastodon and DailyDialog. In the comparison without contextual pretraining, BCDCN has the highest reported test F1 averaged across the tasks, at 52.7% on Mastodon and 64.5% on DailyDialog. The figures refer to each benchmark’s own scoring protocol. Adding contextual representations improves both sets of results. With BERT, BCDCN reaches an average test F1 of 65.1 on Mastodon. With DiaBERT, which represents the utterances together in the dialogue, it reaches 68.5 on DailyDialog. BERT gives the better result on Mastodon, and it also has the advantage when the authors use less than 20% of DailyDialog’s training data for fine-tuning.
The component tests give a more specific account of the gains. On DailyDialog, sentiment F1 falls when the authors remove the position signal, cut the exchange between channels, or replace the context-aware convolution. It also falls when they assign equal fixed weights to the training losses. A visualization of one dialogue illustrates how the kernel can draw on both channels when the target turn is an answer. The benchmark comparisons establish that the design improves prediction in these settings, while the visualization shows what that design can pay attention to in a particular exchange.
Deep dive: Modeling Local Contexts for Joint Dialogue Act Recognition and Sentiment Classification with Bi-channel Dynamic Convolutions
The paper tests how dynamic convolutions over nearby dialogue turns help identify what speakers are doing and what sentiment they express. · about 32 minutes to read
The problem and its context
The unit of prediction is a turn
A dialogue act describes the role an utterance plays in an exchange. An answer supplies something requested by a question. An agreement endorses a previous contribution. A statement presents something for the other participant to take into account. These descriptions concern how a turn functions in the conversation. The relationship between the words someone uses and what they are doing with them is also the concern of speech act theory.
The sentiment label describes another property of that contribution. A question can be negative, and the answer to it can carry the same sentiment. A negative contribution can then give way to a neutral one when the speaker moves to a statement on a different footing. For a dialogue system, identifying the conversational move helps determine what sort of response would be appropriate. Identifying the sentiment gives a further cue about the speaker’s position as the exchange unfolds.
The authors illustrate the connection with a Mastodon conversation that begins with someone asking whether others experience anxiety and emptiness together. The early turns, including a reply and a contribution labeled as agreement, carry negative sentiment. The later turn about going for a smoke is labeled as a statement with neutral sentiment. The value of the example is its alignment. The act labels track what the turns do, while the sentiment labels track continuity and change over those same positions. The agreement continues the prevailing sentiment in this dialogue. The move to a neutral statement gives the authors an example of a sentiment change that coincides with a change in the conversational act.
This leads to a prediction problem with two aligned label sequences. Each utterance receives a dialogue act and a sentiment. The order of the utterances is retained because a label can depend on how the target fits into the exchange. If a short response follows a question, the earlier turn supplies evidence for calling the response an answer. If a reply is an agreement, the previous sentiment can help interpret what is being endorsed. The input at prediction time is the conversation text. The annotations supply the labels against which the system learns and is evaluated. Relating two kinds of linguistic annotation is central to the setup.
Why give nearby utterances a direct role?
The authors’ premise is that short-range reply relationships often carry strong evidence about dialogue acts and sentiment. The utterance just before an answer can specify what is being answered. Another turn close by can help establish whether a speaker is carrying on an expression of dissatisfaction or moving on to a different conversational act. The aim is to give a learner direct access to these relationships when it decides how to combine the available features.
There are two design questions here. One is which turns can contribute to a representation. The other is what information helps determine how much each of those turns contributes. A fixed convolution answers the first question with a window and answers the second with weights learned in training and reused at each position. A dynamic convolution keeps the window and varies its weights with the input. The paper’s context-aware version goes further by consulting the neighborhood during weight generation. That distinction matters when the target utterance is brief or ambiguous and the neighboring turns help determine how it should be read.
The convolution is centered on the turn being represented. The authors study this arrangement as a way to label an available conversation. A following utterance can therefore contribute evidence alongside a preceding one. The emphasis on locality describes the computation at a layer. Stacking layers lets information propagate from farther positions, and the dialogue-level pretrained encoder can contextualize utterances before they reach the convolutions. Local processing is an explicit part of the architecture even when some of its inputs already contain broader context.
How earlier work framed the tasks
The paper describes early dialogue act recognition as mostly an utterance-by-utterance classification problem. Traditional statistical classifiers used hand-designed features to make a prediction for each contribution. Its review groups work such as Stolcke and colleagues’ study of conversational speech and Keizer and colleagues’ Bayesian-network study with this earlier phase. Dialogue act modeling for automatic tagging and recognition of conversational speech and Dialogue Act Recognition with Bayesian Networks for Dutch Dialogues are among the examples it cites.
Subsequent work, in the authors’ account, treated dialogue acts as labels on an ordered sequence and used neural representations. The act assigned to an utterance could then depend on information drawn from the surrounding exchange. The baselines in this tradition include hierarchical encoding with a conditional random field, a structured approach that combines a conditional random field with attention, and a context-aware self-attention system. They provide ways to relate a turn to the rest of the dialogue while concentrating on act recognition. Hierarchical encoding with a CRF, CRF-ASN, and context-aware self-attention are the relevant approaches.
Sentiment classification had its own research tradition in identifying polarity and opinion in text. The work closest to this paper joined sentiment and dialogue act recognition so that features learned for either could inform the other. The authors situate their approach after joint systems by Cerisara and colleagues, Kim and Kim, and Qin and colleagues. Their description of earlier joint work emphasizes recurrent ways of building features across the dialogue. The comparison they treat as most relevant is the co-interactive joint system DCR-Net.
The convolutional side of the method comes from work on detecting local patterns in text. A convolution slides over a sequence and applies a learned operation at successive positions. In earlier text classification work, the sequence can be words or characters. Here the contextual layers slide over utterance representations. The authors also draw on depth-wise processing, where feature dimensions can be convolved independently, and on dynamic kernels, where the input determines the weights used at a position. The starting points include convolutional networks for sentence classification, depthwise separable convolutions, and lightweight and dynamic convolutions.
The paper brings these lines of work together at the level of a single turn. The act and sentiment streams each need features suited to their own labels. Both streams can benefit from information developed by the other, especially when it concerns adjacent contributions. A kernel generated from nearby turns makes that neighborhood part of the decision about how to integrate evidence. The authors test this design alongside a version that predicts the kernel from the target turn’s representation.
The method, step by step
From an utterance to two predictions
The architecture begins by turning each utterance into a vector, a list of numerical features. The utterance vectors retain their conversational order. A stack of convolutions builds features at each turn by combining vectors from nearby positions. This processing takes place in two channels, one for dialogue acts and one for sentiment. Each channel can read the features produced by both channels at the previous layer. At the top of the stack, a separate classifier for each task assigns probabilities to its possible labels at every turn.
An intuition for the convolution is to follow a target utterance through a window centered on it. The operation can give considerable weight to the preceding turn if that turn helps establish that the target is an answer. Different feature groups can respond to different patterns, so the same operation can preserve evidence relevant to sentiment while extracting evidence for the act. In BDCN, the target representation is the input to the kernel generator. In BCDCN, it is one part of the local window supplied to that generator. The window used to choose the weights and the window to which the weights are applied are separately configurable.
From ordered dialogue turns to act and sentiment labels
The steps in order.
Representing words, utterances, and positions
Let a dialogue be called C. Its ordered utterances and the two label sequences can be written as follows.
U = (u₁, …, u_T)
U is the ordered utterance sequence in C. Each u is an utterance, with its subscript giving its position. T is the number of utterances in the dialogue, and the ellipsis stands for the intervening positions.
Yᵈ = (y₁ᵈ, …, y_Tᵈ)
Yᵈ denotes the dialogue act sequence. A y with superscript d is a dialogue act label, and its subscript identifies the utterance receiving it. The sequence runs through the turn at position T.
Yˢ = (y₁ˢ, …, y_Tˢ)
Yˢ denotes the sentiment sequence. A y with superscript s is a sentiment label, and the subscript identifies the corresponding turn in the same sequence. The output equations later use y for the predicted probabilities over labels, so the meaning at that stage is a distribution rather than a single label.
The input encoder reads the words of each utterance individually. In the basic input configuration, a lookup table associates each word with a vector, an approach based on word embeddings. A bidirectional long short-term memory network, or BiLSTM, reads the resulting sequence in both directions. In this part of the architecture, the directions are through the words of an utterance. The later convolutions have a different sequence to work with, namely the turns of a dialogue.
Xₜ = (wₜ,₁, …, wₜ,ᵣ)
Xₜ is the word sequence of utterance uₜ. A term wₜ,ⱼ is the word at position j inside the utterance at turn t, and r is the word-sequence length of that utterance. The paper reuses Xₜ for the corresponding sequence of vectors after lookup.
hₜ = BiLSTM(Xₜ)
Here Xₜ is the embedded word sequence. BiLSTM denotes the bidirectional encoder, and hₜ is the utterance representation it produces for turn t. This is the representation that enters dialogue-level processing after the position signal is included. The equation specifies the utterance encoder as a single operation on the word sequence.
hₜ ← hₜ + PE(t)
The arrow means that hₜ is updated. On the right, hₜ is the vector from the utterance encoder, and PE(t) is the sinusoidal encoding of its absolute turn position t. The plus sign follows the paper’s displayed equation, which gives elementwise addition. The accompanying prose describes concatenation, so the paper gives two descriptions of this particular combination. The role of the position encoding is clear in either description. It gives a feature for where an utterance occurs in the dialogue, even when the same words recur. The authors take the position encoding from Attention Is All You Need.
Absolute position and position inside a convolutional window are different. The former locates a turn in the full conversation. The latter describes whether a feature came from the turn in focus or from a particular nearby offset. A convolution can use ordered offsets when it combines features. The extra position signal supplies information about the turn itself, which can be used by the subsequent layers and by the kernel generator.
Applying a kernel over neighboring turns
A convolution starts by gathering the utterance representations around the target. The paper describes a symmetric window of odd width, with the current turn in the middle.
Cₜ = [hₜ₋ₖ₀, …, hₜ₊ₖ₀] with k = 2k₀ + 1
Cₜ is the ordered context used by the convolution at turn t. Each h is the representation at the position given in its subscript. The quantity k₀ is the number of positions on either side of the center, and k is the total window width, including the center. The square brackets indicate a collection of vectors whose order is preserved.
The starting operation is a depth-wise convolution. Its mixing runs along the turn axis in each feature dimension, so a feature can combine its values at neighboring positions. The paper abbreviates the weighted operation as follows.
oₜ = SConv(Cₜ | W_c) = ∑ᵢ₌₁ᵈ W_c,ᵢ cₜ,ᵢ
Here oₜ is the output representation at turn t. SConv is the depth-wise convolution operation, and the vertical bar says that it applies kernel W_c to Cₜ. The index i and the hidden dimension d follow the paper’s compact notation. W_c,ᵢ denotes the corresponding kernel entry, and cₜ,ᵢ denotes the indexed component of the context. The displayed sum gives the weighted operation in abbreviated form. The prose specifies the axes more directly: processing is independent across input dimensions, and within a dimension the convolution combines values at the offsets of the turn window.
A dynamic convolution organizes dimensions into heads. A head is a group of features that uses a shared kernel within that group. Several heads allow the layer to learn different local weighting patterns, with each acting on its own part of the representation. The outputs are joined and projected into the layer’s output space.
DConv(Cₜ | W_DConv) = (head₁ ⊕ … ⊕ head_N) Wᴼ
DConv is the dynamic convolution operation. Cₜ is the turn window and W_DConv stands for the generated kernel in the head-wise computation. N is the number of heads, and head₁ through head_N are the outputs of those heads. The symbol ⊕ denotes concatenation, which appends the outputs along their feature dimension. Wᴼ is the output projection applied to the resulting vector.
headₙ = SConv(Cₜ | W_DConv)
Here n selects a head. The SConv operation uses the portion of Cₜ corresponding to that head and applies the kernel W_DConv generated for it. The kernel is shared within the head across its feature dimensions. The head index is implicit on W_DConv in the paper’s notation.
W_DConv = KerGen(hₜ) ≡ softmax(Wₙ hₜ)
KerGen is the function that generates a kernel. In this case its input is hₜ, the representation of the target turn. Wₙ denotes the learned parameters for head n, which turn that representation into scores for the kernel. Softmax converts the scores into normalized weights over the kernel positions. The equivalence sign indicates how KerGen is implemented in the equation.
The learned parameters Wₙ can be reused across the dialogue while the output of KerGen changes from position to position. This is what makes the convolution dynamic. The head applies the generated weights to Cₜ, so surrounding turns already influence the result in ordinary dynamic convolution. The design choice addressed by the paper is where to obtain the information that generates those weights. Within a particular layer, BDCN uses hₜ for that purpose. In a deeper layer, this hₜ can already carry context gathered at previous layers.
Generating weights from a second window
The context-aware variant gives the generator a centered window of its own. This window can be tuned independently of the one used by the convolution.
Vₜ = [hₜ₋ₘ₀, …, hₜ₊ₘ₀] with m = 2m₀ + 1
Vₜ is the kernel-generation context at turn t. The entries are turn representations h at the indicated positions. The radius m₀ counts the positions on each side, and m is the full width. The target representation occurs at the center. The notation Vₜ distinguishes the generator’s input from Cₜ, whose width k determines where the resulting kernel is applied.
W_CDConv = KerGen(Vₜ) ≡ softmax(Wₙ Vₜ)
W_CDConv is the kernel for a head of the context-aware convolution. KerGen, softmax, and the head’s learned parameters Wₙ have the same roles as in ordinary dynamic convolution. The product here expresses the projection of the window representation into kernel scores. The paper names Vₜ as the input to KerGen and defines it immediately afterward, while the softmax part of its printed equation uses Cₜ. The formula above follows the stated generator input, which is also how the authors distinguish m from k in their experiments.
CDConv(Cₜ | W_CDConv) = DConv(Cₜ | W_CDConv)
CDConv denotes context-aware dynamic convolution. DConv on the right denotes the same head-wise application and recombination used in the dynamic operation. Cₜ supplies the turn representations to combine, and W_CDConv supplies the weights generated using Vₜ. The distinctive step is the construction of the weights. A neighboring utterance can help determine them and can also supply features to which they are applied.
The distinction gives a concrete interpretation to the two widths. A relatively short generator window can choose how to mix features over a longer application window. The reverse configuration is also expressible by the two definitions. When the widths coincide, the same range of positions serves both purposes, with different computations at those stages. In all cases, the output at t is a new representation for that turn.
ĥₜ = ConvLayer(hₜ)
The caret on ĥₜ marks the updated representation. ConvLayer stands for a layer using either dynamic convolution or its context-aware variant. The compact notation identifies hₜ as the target being updated, with the windows supplying the neighboring representations used within the operation. The single-channel networks built with these layers are called DCN and CDCN, respectively.
Stacking the layers and connecting the channels
A single convolution directly combines information from its application window. A stack can reach farther through successive combinations. For instance, a neighboring representation in a deeper layer can carry evidence from the window around that neighbor in an earlier layer. The authors also normalize the features before each convolution and apply a rectified linear activation afterward.
hₜ⁽ˡ⁾ = ReLU(ConvLayer⁽ˡ⁾(LayerNorm(hₜ⁽ˡ⁻¹⁾)))
The superscript l is the current layer and l−1 is the preceding layer. The h terms are the representations at position t at those layers. LayerNorm denotes layer normalization, applied before the convolution. ConvLayer⁽ˡ⁾ is the layer’s convolutional operation. ReLU is the rectified linear activation, which sets negative entries to zero and keeps positive entries.
For joint training, the authors build a convolutional stream for each task. At every layer with preceding channel outputs, the inputs include both streams’ representations at the same turn. This gives each stream access to a sentiment-oriented view and an act-oriented view of every relevant position. Each stream has its own subsequent convolutional processing. The architecture thus supplies shared evidence through the features while preserving a separate output space for each task.
hₜ⁽ˡ⁾,∗ = ReLU(ConvLayer(LayerNorm(hₜ⁽ˡ⁻¹⁾,ᵈ ⊕ hₜ⁽ˡ⁻¹⁾,ˢ)))
The asterisk stands for either task. The superscripts d and s identify the dialogue act and sentiment channels. On the right, the preceding layer’s two vectors at position t are concatenated with ⊕. LayerNorm, ConvLayer, and ReLU act in that order. On the left, hₜ⁽ˡ⁾,∗ is the new representation at turn t in the channel being updated. For each choice of the asterisk, the convolution uses that channel’s own parameters.
The cross-channel inputs are intermediate vectors. Gold sentiment labels are used to train the sentiment output, and gold act labels are used to train the act output. During prediction, the convolution has access to the features that the other stream has computed from the dialogue. This is what the authors mean by latent interaction. It can affect the way the next layer processes local context, before either stream makes its final prediction. With ordinary dynamic convolutions this architecture is BDCN. With context-aware dynamic convolutions it is BCDCN.
Predicting labels and balancing the losses
The final layer of each channel feeds a linear output transformation. That transformation produces a score for each candidate label. A softmax turns the scores into a distribution for the corresponding task at that turn.
yₜ∗ = Softmax(Linear(hₜᴸ,∗))
The asterisk identifies the act or sentiment task as before. L in the superscript is the last layer’s index. The vector hₜᴸ,∗ is that layer’s representation at turn t for the selected task. Linear maps the vector to scores in the task’s label space, and Softmax normalizes them. The result yₜ∗ is the predicted probability vector.
For a given task the training objective averages the negative log probability of the gold labels across the turns. The product of the target vector and the logarithms of the probabilities selects the gold label’s term.
L∗ = −(1/T) ∑ₜ₌₁ᵀ ŷₜ∗ · log(yₜ∗)
L∗ is the loss for the selected task. T is the length of the dialogue, and t indexes its turns. The vector ŷₜ∗ encodes the gold label at that turn, and yₜ∗ contains the predicted probabilities. The logarithm is taken for each probability, and the dot denotes the sum of the corresponding products over labels. The minus sign makes a small predicted probability on the correct label incur a larger loss.
Both tasks contribute to one training objective. The paper uses a homoscedastic uncertainty scheme, in which each task has a learned uncertainty parameter shared across training instances. The parameters determine how much the task losses contribute overall.
L = Lᵈ/(2σ_d²) + Lˢ/(2σ_s²) + log(σ_d σ_s)
Here L is the combined objective, with Lᵈ and Lˢ the dialogue act and sentiment losses. The symbols σ_d and σ_s are the learned task uncertainty quantities, which the authors describe in terms of the variability of the losses across training instances. The squared quantities determine the inverse weights on the losses, and the logarithm includes both uncertainty parameters in the objective. This L is a loss value. The L in the superscript of the preceding output equation identifies a layer.
A fixed mixture gives each task a predetermined share of the objective. In the learned mixture, the optimization adjusts the task weights along with the network parameters. The logarithmic term makes enlarging the uncertainty parameters costly in the objective, while the inverse squared terms make larger uncertainty reduce a task loss’s contribution. The experiment with a fixed equal mixture evaluates whether learning that balance helps in the authors’ setting.
Adding contextual representations with DiaBERT
The lookup-based input begins from a vector associated with each word. BERT gives text contextual features, and the authors also evaluate a BERT-based encoder that treats the whole conversation as an input. They call it DiaBERT and draw on an earlier encoder for text summarization with pretrained encoders. The paper describes the standard BERT input convention in terms of sentence pieces and uses DiaBERT to mark each utterance as its own segment in the dialogue. A classification marker, written [CLS], occurs at the beginning of each utterance.
(h₁ᴰᴮ, …, h_Tᴰᴮ) = DiaBERT(X₁, …, X_T)
DiaBERT is the encoder applied to the ordered dialogue input. X₁ through X_T are the inputs corresponding to the utterances in sequence, with T the dialogue length. The h quantities marked DB are the contextual results for those utterances. The encoder supplies features at the word level as well as representations at the utterance markers. The authors describe using contextual word representations or taking a [CLS] representation as the utterance vector.
The difference from the lookup option concerns what the conversation-level convolution receives. An input feature from DiaBERT can already reflect other parts of the dialogue. The convolution then explicitly organizes evidence by local windows for the act and sentiment predictions. In the data-scale analysis, the authors vary the amount of task data used for fine-tuning, the stage that adapts a pretrained encoder to the labeling problem.
Training and development choices
The authors set Adam’s starting learning rate to 5e-4 and its weight decay to 1e-5. The mini-batch size is 16. Dropout at the input and output layers has a rate of 0.5. Dropout is used to reduce overfitting by making individual features intermittently unavailable during training. In the comparisons without pretrained contextual features, the word embeddings begin from random initialization. The candidate embedding dimensions are [100,200,300,400]. The paper describes DiaBERT as sharing the architecture of BERT Base and as being pretrained in the same way.
The BDCN and BCDCN stacks have 3 layers, a choice made in preliminary experiments. The authors tune the application width k on the development sets and select [3,5,7] for both architectures on both datasets. The entries give the widths in layer order. For BCDCN they then hold k at that configuration while tuning the generator width m. The chosen m is [3,5,7] for Mastodon and [3,3,3] for DailyDialog. Thus the reported DailyDialog configuration applies wider kernels in later layers while keeping the direct kernel-generation window at the same width throughout the stack.
Training fits the parameters to annotated dialogues. Development performance is used to select a system for test evaluation. That distinction applies both to the encoder settings and to the choice of a trained system within the experiments. The authors make the BCDCN implementation publicly available under the name BCDCN.
Experiments and results
The datasets and what the scores measure
Mastodon and DailyDialog supply utterances labeled for both tasks. Their sizes, label inventories, and evaluation conventions differ. The paper uses these benchmarks to compare methods within each dataset. An average F1 for Mastodon and an average F1 for DailyDialog each summarize two tasks, with different inventories and scoring rules behind the component scores.
DailyDialog has 11,118 training dialogues, 1,000 development dialogues, and 1,000 test dialogues. These splits contain 87,170, 8,069, and 7,740 utterances, respectively. The dialogue act task has 4 labels, and the sentiment task has 7. The unit whose label is predicted and scored is the utterance. The dialogues preserve the order and context in which those utterances are presented to a system.
The Mastodon splits used here contain 240 training dialogues, 25 development dialogues, and 266 test dialogues. They contain 979, 84, and 1,142 utterances, respectively. Mastodon has 15 dialogue act labels and 3 sentiment labels. To obtain a development set, the authors randomly set aside 10% of the training dialogues. The split is at the dialogue level, so the development examples remain sequences of utterances.
For DailyDialog the authors report macro-averaged precision, recall, and F1 for each task. Precision reflects how often predictions of a label are correct, and recall reflects how often the system recovers instances annotated with that label. F1 balances precision and recall. Macro-averaging gives each label the same influence in the resulting metric. On Mastodon, the neutral sentiment label is omitted in sentiment scoring. For Mastodon act recognition, the evaluation gives each label’s F1 a weight based on the label’s prevalence.
The table also reports Avg., the mean of the sentiment and act F1 scores for a system. This is a mean across tasks after each individual F1 has been obtained under its benchmark protocol. A change in this average can occur even if one of the component scores moves in the other direction. This becomes relevant on Mastodon, where the strongest pretrained results for individual tasks and the highest task average occur in different configurations.
The authors select systems by development performance and describe the reported test results as averages over 20 runs. Averaging across runs reduces the role of an individual run in the reported score. The main table also includes baseline results reproduced from DCR-Net. Those entries provide the published comparison scores used by the authors.
What the baselines compare
The baselines include systems focused on recognizing dialogue acts, systems focused on classifying sentiment, and systems trained jointly. The act-only group comprises HEC, CRF-ASN, and CASA. Their role in the comparison is to show the F1 attainable by approaches designed specifically for act recognition. The sentiment-only group comprises VDCNN, Region.emb, and DialogueRNN, along with a BERT entry in the results table. These systems supply a separate-task comparison for the sentiment task. VDCNN is one of the convolutional approaches in that group.
JointDAS, IIIM, and DCR-Net supply earlier joint baselines. The table includes a BERT configuration of DCR-Net as well as the entry without it. This permits a comparison of the authors’ pretrained variants with a previous joint system that also uses BERT. It also permits a comparison of the convolutional architecture with earlier joint approaches under the non-pretrained condition.
The authors train DCN and CDCN separately for the tasks. Those runs make a closer architectural comparison possible. DCN uses dynamic weight generation based on the current representation, while CDCN directly supplies its generator with local context. BDCN and BCDCN add separate, interacting task streams and a joint objective. Comparing the resulting pairs shows the effect of adopting the joint design as a package. The ablations address some of the features bundled into that comparison.
Joint learning without contextual pretraining
On the Mastodon test set, DCR-Net has sentiment F1 of 45.1 and act F1 of 58.0. BDCN reaches 45.6 for sentiment and 58.7 for acts. BCDCN reaches sentiment F1 of 45.9 and act F1 of 59.4, with the highest average among these systems. The movement across both tasks supports the authors’ account of local convolution as a way to improve joint labeling on this benchmark.
Joint systems without contextual pretraining on Mastodon test average F1
The context-aware convolution has the highest average across the tasks.
The numbers
| System or setting | Average F1 |
|---|---|
| DCR-Net | 51.9 |
| BDCN | 52.3 |
| BCDCN (this paper) | 52.7 |
The task-specific BCDCN scores also show how the classifier reaches its result. Its Mastodon sentiment precision is 38.2 and its recall is 62.0. DCR-Net reports 43.2 precision and 47.3 recall on the same task and split. The stronger BCDCN sentiment F1 comes with a higher recall and a lower precision than DCR-Net. Someone interested primarily in how often sentiment predictions are correct has a different comparison to make from someone interested in how many evaluated instances the system recovers.
On the DailyDialog test set, DCR-Net has sentiment F1 of 45.4, act F1 of 79.1, and an average F1 of 62.3. BDCN reports sentiment F1 of 48.1 and act F1 of 80.0, with an average of 64.1. BCDCN has sentiment F1 of 48.6 and act F1 of 80.3, for an average of 64.5. This preserves the ordering of the average scores seen on Mastodon. The additional improvement from BDCN to BCDCN occurs after ordinary dynamic convolution has already given each target a way to combine local information.
The authors also compare the joint systems with their corresponding single-task convolutional networks. On Mastodon, DCN reports sentiment F1 of 44.1 and act F1 of 58.0, while CDCN reports 44.7 and 58.7 on those tasks. Both joint variants improve over their respective single-task counterparts on each metric. DailyDialog shows the same pattern in those paired comparisons. Its single-task DCN results are 47.4 for sentiment F1 and 79.6 for act F1, while CDCN gives 47.8 and 79.9. These comparisons show what changes when each type of convolution is carried over into joint training. A comparison against all specialized systems also depends on which task is considered. For example, the BERT entry in the DailyDialog separate-task group has act F1 of 80.9, above the 80.3 of BCDCN without contextual pretraining.
What changes when BERT or DiaBERT supplies the input
On Mastodon, the BCDCN system with BERT reaches test F1 of 60.3 on sentiment and 69.9 on dialogue acts, with an average F1 of 65.1. The DiaBERT version reports 59.5 for sentiment and 68.3 for dialogue acts, with an average of 63.9. Both variants improve on the BCDCN configuration with randomly initialized word embeddings. The paper relates the larger gains from contextual pretraining on Mastodon to the limited amount of annotated training data available there.
The Mastodon comparison also illustrates why the authors report separate task scores. DCR-Net with BERT has sentiment F1 of 55.1, dialogue act F1 of 66.3, and an average F1 of 61.1. The separate-task CDCN with BERT has sentiment F1 of 59.2 and act F1 of 68.5, which the table summarizes with an average of 63.9. The corresponding BCDCN with BERT leads both of these systems on each task. In the DiaBERT comparison, single-task CDCN has Mastodon act F1 of 67.3, while the joint BCDCN reaches 68.3. The leaderboard combines comparisons of different architectures and different input representations, so each result has to be read with its configuration attached.
On DailyDialog, BCDCN with BERT yields test sentiment F1 of 52.9 and dialogue act F1 of 82.0. With DiaBERT it reaches 54.4 for sentiment and 82.6 for acts. The average F1 is also higher for the dialogue-level encoder. DCR-Net with BERT reports DailyDialog test F1 of 48.9 on sentiment and 80.0 on acts, with an average of 64.5. These results place both contextual BCDCN variants above that earlier joint BERT comparison on the two component metrics.
Contextual input configurations for BCDCN on DailyDialog test average F1
DiaBERT gives BCDCN the highest average across the tasks.
The numbers
| System or setting | Average F1 |
|---|---|
| BCDCN | 64.5 |
| BCDCN with BERT | 67.5 |
| BCDCN with DiaBERT (this paper) | 68.5 |
Within the same BCDCN architecture, the ranking of BERT and DiaBERT changes between the benchmarks. BERT leads on Mastodon and DiaBERT leads on DailyDialog. This is the rationale for the subsequent training-scale comparison within DailyDialog. The cross-benchmark results vary in several ways at once, while a comparison across training fractions on the same benchmark gives a closer look at how much annotated data each encoder needs.
What the ablations show
Position, channel exchange, and dynamic weights
The component tests use DailyDialog and take BCDCN as their reference. The full system has sentiment F1 of 48.6 and 9.42M parameters in the ablation table. Removing the position embeddings gives sentiment F1 of 47.3 with 9.42M parameters. The paper describes a decrease for the tasks and treats it as evidence that an explicit turn position helps. The convolution still has an ordered window in this setting. The tested change is the removal of the added signal for the utterance’s absolute position.
The channel-interaction test keeps the two streams but changes their inputs. Each layer receives the preceding representation of its own stream in place of the concatenation. This setting has sentiment F1 of 47.5 and 9.12M parameters. The change reduces the direct access one channel has to features from the other. The result supports the concatenated input as part of the tested architecture. The removal also changes the parameter count, which is relevant when attributing the full score shift to the exchange of information alone.
A further variant removes dynamic weights. It reports sentiment F1 of 47.4 and 9.03M parameters. This comparison tests the usefulness of making kernels depend on the input within the BCDCN design. The authors describe the decline as small. The broader comparison among convolution types helps place it in context because those variants change which local computations are available and, in some cases, make a much larger change to parameter count.
Replacing the convolution and the loss weighting
The authors compare the full context-aware operation with vanilla convolution of fixed width, vanilla convolution with increasing widths, depth-wise convolution, and ordinary dynamic convolution. The fixed-width vanilla configuration has k=3. The increasing-width vanilla configuration uses k=3,5,7 as reported in the ablation table. The latter more closely matches the progression of application widths in BCDCN. This makes it possible to compare the layer types under a matched width schedule as well as under a constant-width alternative.
Convolution replacements in the DailyDialog BCDCN sentiment F1 ablation
The full context-aware operation leads, with ordinary dynamic convolution the closest replacement.
The numbers
| System or setting | Sentiment F1 |
|---|---|
| Vanilla convolution with fixed width | 45.5 |
| Vanilla convolution with increasing widths | 46.2 |
| Depth-wise convolution | 47.2 |
| Dynamic convolution | 48.1 |
| Context-aware dynamic convolution in BCDCN (this paper) | 48.6 |
The ordinary dynamic variant comes closest when only these convolution replacements are considered. It retains the ability to choose different weights at different turns. The context-aware version’s higher F1 supports making neighboring turns explicit inputs to that choice. The depth-wise alternative already mixes neighboring positions independently within feature dimensions. Its lower score gives a comparison with a related local operator that handles feature dimensions in a similar way.
The parameter counts add another dimension to the comparison. The constant-width vanilla setting has 17.66M parameters, and the increasing-width vanilla setting has 26.30M. The depth-wise and ordinary dynamic replacements have 9.06M and 9.24M, respectively. With 9.42M parameters, the context-aware BCDCN has a higher sentiment F1 than the tested vanilla variants while using fewer parameters. The ordinary dynamic replacement uses somewhat fewer parameters than BCDCN, so the trade between those closest variants includes the extra parameters for the contextual generator. The quantity measured here is parameter count.
The authors also replace the learned uncertainty weighting with the fixed objective 0.5Lᵈ + 0.5Lˢ. The coefficients assign equal weight to the act and sentiment losses. The resulting sentiment F1 is 47.6, and the configuration has 9.42M parameters in the table. The lower score supports learning the weight of each task for this paired objective and dataset. The comparison uses one fixed mixture, so its result applies directly to the equal-weight setting.
How the amount of fine-tuning data changes the comparison
The authors vary how much of the DailyDialog training set is used to fine-tune BERT and DiaBERT. They then evaluate BCDCN on the sentiment and dialogue act tasks using each encoder. This comparison is motivated by the opposite rankings on the two full benchmarks, where training size, label sets, and the character of the dialogues differ. Varying training size within DailyDialog keeps the benchmark and the evaluation tasks the same.
Below 20% of the DailyDialog training data, the authors report higher F1 with BERT than with DiaBERT. DiaBERT shows the stronger gains when more task data are available and has the better full-data result. The percentages in this comparison refer to the share of annotated DailyDialog data used to fine-tune the pretrained encoders. The experiment concerns how the encoders adapt to this task. The pretraining stage and the choice of upstream text are separate from that training fraction.
This result qualifies what the extra dialogue input buys. DiaBERT supplies contextual information across utterances, and the downstream system has to learn which of those features help predict its two labels. In the authors’ comparison, the advantage of dialogue-level encoding appears with a larger supply of task supervision. The result is compatible with their explanation for Mastodon, where the available training set is smaller. The evidence for the change with training fraction comes from DailyDialog itself.
What the kernel visualization can show
The authors inspect the weights for the 3-rd turn of a dialogue, where the target supplies a negative answer to a question. Earlier in the exchange, a participant makes a statement about restricting the visibility of a post and then seeks confirmation. After the answer, another contribution is labeled as thanking and expresses positive sentiment. The exchange closes with a negative contribution labeled as agreement. This example lets the authors compare features around a target for which the previous act and the current sentiment both matter to their interpretation.
The visualization separates the act and sentiment channels and shows weights for multiple heads. In the authors’ reading, the highlighted parts suggest that each channel draws strongly on features suited to its own task and can also draw on the other channel. They point to an act-channel pattern in BDCN that involves both streams. The preceding question and the current negative sentiment together fit the transition from Question to Answer in this dialogue. The weight pattern is consistent with an answer prediction that uses more than the target’s words in isolation.
The BCDCN panels show more highlighted weights than the BDCN panels in the illustrated exchange. The authors interpret this as an indication that a generator informed by several surrounding turns can pick up a wider set of informative local features. The graphic shows how the kernels allocate weight in this case. The channel-removal ablation supplies different evidence by evaluating the system after that route for information exchange is taken away.
Limitations
Qualifications the authors draw from their experiments
The authors qualify the usefulness of DiaBERT by the amount of task data. In the full Mastodon experiment, ordinary BERT gives the better BCDCN results, while DiaBERT leads in the full DailyDialog runs. The DailyDialog training-fraction experiment shows that the ranking can change within a benchmark as well. This is the paper’s clearest stated condition on the architecture’s pretrained extension. It places the advantage of full-dialogue contextual encoding in the settings with enough annotated data for the encoder to adapt effectively.
The paper’s development experiments also indicate that useful context widths are empirical choices. The kernel application schedule selected for the main runs is shared across the two benchmarks, while the generator schedule is benchmark-specific. On DailyDialog the best tested generator uses the same short window at each layer. On Mastodon the selected generator grows with depth. The authors’ practical claim therefore concerns using local context to generate weights, with the amount of direct generator context selected on development data.
The authors motivate locality through nearby reply relationships and illustrate it with examples in which act and sentiment information align across neighboring turns. Their architecture retains a way for broader information to reach a target through its stack. The claim supported by the experiments is that making local relationships explicit helps these benchmarks. Questions about how conversational distance affects each act or sentiment category remain open.
Limits of the experimental setup
The benchmark results cover two text datasets and their annotated label inventories. Mastodon and DailyDialog differ in the number of labels, the amount of supervision, and how F1 is aggregated. A score for sentiment in one benchmark and a score for sentiment in the other come from different tasks as operationalized here. The results provide evidence about utterance labeling under those protocols. Extending the same conclusions to spoken interaction, additional inventories, or other domains would require data and evaluation for those settings.
The centered convolution windows are suited to labeling a conversation that is already available. They can consult subsequent turns when building the current representation. DiaBERT also contextualizes utterances from the dialogue input. A system required to label a turn before the next utterance arrives would face a different information constraint. Its behavior would need to be measured with only the conversation prefix available.
The main experiments report averages across runs, and the comparison between the closest systems is presented through the average scores. Run-level variation and uncertainty around individual gaps are left open by the tables. This matters most for the smaller differences, such as the increment from ordinary dynamic to context-aware dynamic weights. The consistent ordering across several reported comparisons indicates the direction of the result. Its stability under different development splits, particularly for the smaller dataset, remains a separate empirical question.
Several ablations alter more than one property of the computation. Removing the cross-channel concatenation changes the features passed into the layer and its parameter count. The convolution replacements vary in how they share weights, whether they adapt them to the input, and how many parameters they use. Their results establish how those concrete variants perform. The separate contribution of each property in an otherwise capacity-matched comparison remains unresolved.
The parameter counts support an efficiency comparison with the tested vanilla convolutions. Training cost, inference latency, and memory use would require their own measurements. These matter particularly for the DiaBERT setting because encoding a multi-utterance dialogue adds a distinct stage to the architecture. The results quantify prediction quality and, for the ablation variants, the parameter count.
Finally, the heatmaps are an analysis of one exchange and one target turn. They illustrate that a dynamic kernel can give weight to features relevant to an act transition and to sentiment. Establishing which input caused a specific prediction would require testing what happens when the relevant turn or channel features are perturbed. The study’s channel ablation addresses the usefulness of that path for aggregate performance. The visualization supplies a qualitative view of its behavior in an example.
What came after
The later work identified here, from 2022, studies dialogue act classification with sentiment and emotion in a multimodal setting. Its title identifies meta-learning and deferred optimisation as its methodological focus. The connection to the earlier paper is the use of affective information to inform the act task. Li and colleagues treat dialogue acts and sentiment as paired utterance predictions over text, while the later work frames act classification around both sentiment and emotion in multimodal dialogue. Meta-Learning based Deferred Optimisation.
The citation establishes that this later study engages with the earlier work. Its title establishes the shift in task framing and the named approach to optimization. How it uses the earlier convolution design in its implementation, and what it finds about that design, remain open from the citation and title.
Institutions
Fields, topics and concepts
Shelves 6The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksPsychology · 1,673 worksExperimental and Cognitive Psychology · 950 works
Topics 3Research subjects and languages the work is about.Sentiment & emotion · 1,037 worksDialogue systems · 664 worksSpeech act theory · 229 works
Cite
Cite as Jingye Li, Hao Fei and Donghong Ji. 2020. Modeling Local Contexts for Joint Dialogue Act Recognition and Sentiment Classification with Bi-channel Dynamic Convolutions. Proceedings of the 28th International Conference on Computational Linguistics.
@inproceedings{li2020modeling,
title = {{Modeling Local Contexts for Joint Dialogue Act Recognition and Sentiment Classification with Bi-channel Dynamic Convolutions}},
author = {Jingye Li, Hao Fei and Donghong Ji},
booktitle = {Proceedings of the 28th International Conference on Computational Linguistics},
year = {2020},
doi = {10.18653/v1/2020.coling-main.53},
url = {https://doi.org/10.18653/v1/2020.coling-main.53}
}References
- Reinald Kim Amplayo, Jihyeok Kim, Sua Sung, and Seung-won Hwang. 2018. Cold-start aware user and product attention for sentiment classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2535–2544. Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. arXiv:1607.06450. 2016. Layer normalization. arXiv preprint Christophe Cerisara, Somayeh Jafaritazehjani, Adedayo Oluokun, and Hoa Le. 2018. Multi-task dialog act and sentiment recognition on mastodon. In Proceedings of COLING, pages 745–754.
- Zheqian Chen, Rongqin Yang, Zhou Zhao, Deng Cai, and Xiaofei He. 2018. Dialogue act recognition via crf-attentive structured network. In Proceedings of SIGIR, pages 225–234.
- Pierre Colombo, Emile Chapuis, Matteo Manica, Emmanuel Vignon, Giovanna Varni, and Chloe Clavel. 2020. Guiding attention in sequence-to-sequence models for dialogue act prediction. In Proceedings of AAAI, pages 7594–7601.
- Alexis Conneau, Holger Schwenk, Loı̈c Barrault, and Yann Lecun. 2017. Very deep convolutional networks for text classification. In Proceedings of EACL, pages 1107–1116.
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171–4186.
- Hao Fei, Yafeng Ren, and Donghong Ji. 2019. Implicit objective network for emotion detection. In Proceedings of NLPCC, pages 647–659. OpenAlex ↗ · Scholar ↗
- Hao Fei, Meishan Zhang, and Donghong Ji. 2020a. Cross-lingual semantic role labeling with high-quality translated training corpus. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7014–7026. OpenAlex ↗ · Scholar ↗
- Hao Fei, Yue Zhang, Yafeng Ren, and Donghong Ji. 2020b. Latent emotion memory for multi-label emotion classification. In Proceedings of AAAI, pages 7692–7699. OpenAlex ↗ · Scholar ↗
- Nobuo Inui, Toshiaki Ebe, Bipin Indurkhya, and Yoshiyuki Kotani. 2001. A case-based natural language dialogue system using dialogue act. In Proceedings of SMC, pages 193–198. OpenAlex ↗ · Scholar ↗
- Chen Jia, Xiaobo Liang, and Yue Zhang. 2019. Cross-domain NER using cross-domain language modeling. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2464–2474. OpenAlex ↗ · Scholar ↗
- Lukasz Kaiser, Aidan N Gomez, and Francois Chollet. 2018. Depthwise separable convolutions for neural machine translation. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Nal Kalchbrenner and Phil Blunsom. 2013. Recurrent convolutional neural networks for discourse compositionality. arXiv preprint arXiv:1306.3584.
- Nal Kalchbrenner, Edward Grefenstette, and Phil Blunsom. 2014. A convolutional neural network for modelling sentences. In Proceedings of ACL, pages 655–665.
- Simon Keizer, Rieks op den Akker, and Anton Nijholt. 2002. Dialogue act recognition with bayesian networks for dutch dialogues. In Proceedings of SIGDIAL Workshop on Discourse and Dialogue, pages 88–94.
- Alex Kendall, Yarin Gal, and Roberto Cipolla. 2018. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of CVPR, pages 7482–7491. OpenAlex ↗ · Scholar ↗
- Minkyoung Kim and Harksoo Kim. 2018. Integrated neural network model for identifying speech acts, predicators, and sentiments of dialogue utterances. Pattern Recognition Letters., 101:1–5. OpenAlex ↗ · Scholar ↗
- Yoon Kim. 2014. Convolutional neural networks for sentence classification. In Proceedings of EMNLP, pages 1746–1751.
- Harshit Kumar, Arvind Agarwal, Riddhiman Dasgupta, and Sachindra Joshi. 2018. Dialogue act sequence labeling using hierarchical encoder with CRF. In Proceedings of AAAI, pages 3440–3447.
- Tao Lei, Regina Barzilay, and Tommi Jaakkola. 2015. Molding cnns for text: non-linear, non-consecutive convolutions. In Proceedings of EMNLP, pages 1565–1575. OpenAlex ↗ · Scholar ↗
- Piroska Lendvai and Jeroen Geertzen. 2007. Token-based chunking of turn-internal dialogue act sequences. In Proceedings of SIGDIAL, pages 174–181.
- Yanran Li, Hui Su, Xiaoyu Shen, Wenjie Li, Ziqiang Cao, and Shuzi Niu. 2017. Dailydialog: A manually labelled multi-turn dialogue dataset. In Proceedings of IJCNLP, pages 986–995.
- Yang Liu and Mirella Lapata. 2019. Text summarization with pretrained encoders. In Proceedings of EMNLP-IJCNLP, pages 3728–3738.
- Navonil Majumder, Soujanya Poria, Devamanyu Hazarika, Rada Mihalcea, Alexander Gelbukh, and Erik Cambria. 2019. Dialoguernn: An attentive RNN for emotion detection in conversations. In Proceedings of AAAI, pages 6818–6825. OpenAlex ↗ · Scholar ↗
- Chao Qiao, Bo Huang, Guocheng Niu, Daren Li, Daxiang Dong, Wei He, Dianhai Yu, and Hua Wu. 2018. A new method of region embedding for text classification. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
- Libo Qin, Wanxiang Che, Yangming Li, Minheng Ni, and Ting Liu. 2020. Dcr-net: A deep co-interactive relation network for joint dialog act recognition and sentiment classification. In Proceedings of AAAI, pages 8665–8672.
- Vipul Raheja and Joel Tetreault. 2019. Dialogue act classification with context-aware self-attention. In Proceedings of NAACL-HLT, pages 3727–3733.
- Yafeng Ren, Yue Zhang, Meishan Zhang, and Donghong Ji. 2016. Improving twitter sentiment classification using topic-enriched multi-prototype word embeddings. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, pages 3038–3044. OpenAlex ↗ · Scholar ↗
- Andreas Stolcke, Klaus Ries, Noah Coccaro, Elizabeth Shriberg, Rebecca Bates, Daniel Jurafsky, Paul Taylor, Rachel Martin, Carol Van Ess-Dykema, and Marie Meteer. 2000. Dialogue act modeling for automatic tagging and recognition of conversational speech. Computational linguistics, 26(3):339–373. DOI ↗
- Dinoj Surendran and Gina-Anne Levow. 2006. Dialog act tagging with support vector machines and hidden markov models. In Proceedings of InterSpeech. OpenAlex ↗ · Scholar ↗
- Maryam Tavafi, Yashar Mehdad, Shafiq Joty, Giuseppe Carenini, and Raymond Ng. 2013. Dialogue act recognition in synchronous and asynchronous conversations. In Proceedings of SIGDIAL, pages 117–121.
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Proceedings of NeurIPS, pages 5998–6008.
- Felix Wu, Angela Fan, Alexei Baevski, Yann N Dauphin, and Michael Auli. 2019. Pay less attention with lightweight and dynamic convolutions. In Proceedings of ICLR.
- Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text classification. In Proceedings of NeurIPS, pages 649–657.
This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2020-modeling-local-contexts-joint-dialogue/