[Paper Review] A Simple Dual-decoder Model for Generating Response with Sentiment
This paper proposes a simple dual-decoder sequence-to-sequence model that generates responses with specified sentiment by connecting two sentiment-specific decoders to a shared encoder. The model achieves significant improvements in sentiment accuracy (up to 25.1 points higher than single-decoder baselines) and word diversity (distinct-1 and distinct-2 scores increased by nearly 10 points), demonstrating superior control over sentiment expression and response variety.
How to generate human like response is one of the most challenging tasks for artificial intelligence. In a real application, after reading the same post different people might write responses with positive or negative sentiment according to their own experiences and attitudes. To simulate this procedure, we propose a simple but effective dual-decoder model to generate response with a particular sentiment, by connecting two sentiment decoders to one encoder. To support this model training, we construct a new conversation dataset with the form of (post, resp1, resp2) where two responses contain opposite sentiment. Experiment results show that our dual-decoder model can generate diverse responses with target sentiment, which obtains significant performance gain in sentiment accuracy and word diversity over the traditional single-decoder model. We will make our data and code publicly available for further study.
Motivation & Objective
- To address the challenge of generating diverse, sentiment-controlled responses in open-domain dialogue systems.
- To improve upon single-decoder models that struggle with sentiment accuracy and response diversity.
- To construct a new conversation dataset with paired responses of opposite sentiment for training and evaluation.
- To develop a simple yet effective dual-decoder architecture that enables conditional generation of responses with specific sentiment.
Proposed method
- A shared encoder processes the input post and generates a context representation for both decoders.
- Two separate decoders are trained: one for positive sentiment and one for negative sentiment, each conditioned on the same encoded post.
- Sentiment labels are used to select the appropriate decoder during inference, ensuring target sentiment control.
- The model uses a dual-decoder structure where each decoder learns to generate responses based on sentiment-specific training data.
- Word embeddings of size 300 and 100-dimensional hidden states are used for both encoder and decoders.
- A sentiment score is computed via a lexicon-based method: $\text{scoreSent} = N_{\text{pos}} - N_{\text{neg}}$, with positive/negative sentiment assigned based on sign.
Experimental results
Research questions
- RQ1Can a simple dual-decoder architecture effectively generate responses with specified sentiment while maintaining diversity?
- RQ2How does the dual-decoder model compare to single-decoder models in terms of sentiment accuracy and response diversity?
- RQ3To what extent can the model capture and correctly use sentiment-specific vocabulary in generated responses?
- RQ4Does the use of paired positive and negative responses in training improve sentiment control and generation quality?
Key findings
- The dual-decoder model achieves a sentiment accuracy of 89.1% on the test set, representing a 25.1-point improvement over the single-decoder baseline (64.0%).
- The model improves word diversity by nearly 10 points in distinct-1 and distinct-2 metrics compared to the single-decoder baseline.
- The dual-decoder model uses 496 distinct positive sentiment words and 591 distinct negative sentiment words in generated responses, showing broader sentiment vocabulary usage than the baseline.
- Error rate for incorrect sentiment word usage drops to 6.2% for negative responses and 8.3% for positive responses, indicating better sentiment consistency.
- The model generates more diverse and sentiment-consistent responses, as shown in qualitative case studies where generated responses clearly reflect intended sentiment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.