Abstract: In dialog studies, we often encode a dialog using a hierarchical encoder where each utterance is converted into an utterance vector, and then a sequence of utterance vectors is converted into a dialog vector. Since knowing who produced which utterance is essential to understanding a dialog, conventional methods tried integrating speaker labels into utterance vectors. We found the method problematic in some cases where speaker annotations are inconsistent among different dialogs. A relative speaker modeling method is proposed to address the problem. Experimental evaluations on dialog act recognition and response generation show that the proposed method yields superior and more consistent performances.
Introduction: The Challenge of Speaker Modeling
Teaching a machine to understand a conversation requires more than just processing text; it requires understanding the social context of who is speaking. In Natural Language Processing (NLP), dialogs are typically processed using a hierarchical encoder. First, an utterance encoder ($f^{uttr}$) converts each sentence into a vector. Then, a dialog encoder ($f^{dial}$) processes these vectors sequentially to create a comprehensive dialog representation ($z$). This representation is then used for downstream tasks like dialog act recognition or response generation.
To aid this process, researchers traditionally incorporate speaker labels. In specialized domains like technical support, speaker roles (e.g., "Agent" vs. "User") are consistent. However, in open-domain datasets like the Switchboard corpus, which features hundreds of unique speakers, researchers often simplify labels to an arbitrary "Speaker A" and "Speaker B" for every session.
The Problem with Absolute Labels
This "absolute modeling" approach introduces significant noise. Speaker "A" in one conversation might be a talkative teenager, while Speaker "A" in another is a reserved professor. If a model tries to learn a specific representation for "Speaker A," it becomes confused by these inconsistent identities across different dialogs. This inconsistency can lead to "speaker bias," where the model performs well for one arbitrary label but poorly for the other, sometimes even performing worse than a baseline that ignores speaker information entirely.
Proposed Method: Relative Speaker Modeling
To address this, Zhao and Kawahara propose Relative Speaker Modeling. Instead of using fixed labels, the model focuses on the relationship between the speaker of a past utterance and the "current" speaker ($s_{cur}$). The current speaker is defined by the task: for dialog act recognition, it is the speaker of the utterance being classified; for response generation, it is the person expected to speak next.
The researchers implemented this through two primary mechanisms:
- Relative Speaker Embedding: A "relation vector" is added to each utterance. The model uses one vector if the speaker is the "current" speaker (Self) and a different vector if it is the other participant (Other).
- Relative Utterance Encoders: The model employs two distinct sets of Recurrent Neural Network (RNN) weights. One RNN processes "own" utterances, while the other processes "other" utterances.
By anchoring the perspective to the current speaker, the model learns universal conversational patterns—such as the tendency for speakers to provide feedback to others rather than themselves—without being misled by inconsistent absolute labels.
Experimental Evaluation
The approach was evaluated on two major benchmarks:
- Switchboard Dialog Act (SwDA) Corpus: Used for Dialog Act Recognition (e.g., classifying an utterance as a statement, question, or agreement).
- DailyDialog (DD) Corpus: Used for Response Generation.
Key Results
The relative modeling approach consistently outperformed both the baseline (no speaker info) and conventional absolute methods:
- Dialog Act Recognition: The Relative Utterance Encoder achieved 80.17% accuracy, a significant improvement over the 79.00% baseline.
- Response Generation: The improvements were even more pronounced. Using SIF (Smooth Inverse Frequency) embedding similarity, the relative model showed a 62% relative increase in performance over the baseline.
- Diversity and Consistency: Relative models produced more diverse responses (measured by Distinct-n scores) and showed much more consistent accuracy across both participants in a conversation, effectively eliminating the speaker bias found in absolute models.
Conclusion
Relative speaker modeling provides a robust framework for incorporating speaker information into dialog encoders. By shifting from absolute identities to relative relationships, models can better generalize across diverse datasets. Future work may involve extending this "Self vs. Other" logic to multi-party conversations and combining relative structural information with more sophisticated speaker style modeling.
Summary updated