paper-with-me

홈 › Papers

ReCoSa: Detecting the Relevant Contexts with Self-Attention for Multi-turn Dialogue Generation

2019-07-09 · ACL 2019 7 · Hainan Zhang, Yanyan Lan, Liang Pang, Jiafeng Guo, Xue-Qi Cheng

In multi-turn dialogue generation, response is usually related with only a few contexts. Therefore, an ideal model should be able to detect these relevant contexts and produce a suitable response accordingly. However, the widely used hierarchical recurrent encoderdecoder models just treat all the contexts indiscriminately, which may hurt the following response generation process. Some researchers try to use the cosine similarity or the traditional attention mechanism to find the relevant contexts, but they suffer from either insufficient relevance assumption or position bias problem. In this paper, we propose a new model, named ReCoSa, to tackle this problem. Firstly, a word level LSTM encoder is conducted to obtain the initial representation of each context. Then, the self-attention mechanism is utilized to update both the context and masked response representation. Finally, the attention weights between each context and response representations are computed and used in the further decoding process. Experimental results on both Chinese customer services dataset and English Ubuntu dialogue dataset show that ReCoSa significantly outperforms baseline models, in terms of both metric-based and human evaluations. Further analysis on attention shows that the detected relevant contexts by ReCoSa are highly coherent with human's understanding, validating the correctness and interpretability of ReCoSa.

📄 PDF Abstract BibTeX arXiv:1907.05339

Code (2)

zhanghainan/ReCoSa 공식 구현 tf
devJWSong/bert-crf-entity-recognition-pytorch pytorch

Tasks

Dialogue GenerationResponse Generation

Methods 이 논문이 사용한 방법론

Interpretability 설명 없음
Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…

Similar Papers 제목 키워드 기반

KSAT: Knowledge-infused Self Attention Transformer -- Integrating Multiple Domain-Specific Contexts

2022-10-09 · Kaushik Roy, Yuxin Zi, Vignesh Narayanan, Manas Gaur 외

Domain-specific language understanding requires integrating multiple pieces of relevant contextual information. For example, we see both suicide and depression-related behavior (multiple contexts) in the text ``I have a …

Specificity

EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contexts

2025-02-20 · Subhajit Chaudhury, Payel Das, Sarathkrishna Swaminathan, Georgios Kollias 외

Recent advances in Large Language Models (LLMs) have yielded impressive successes on many language tasks. However, efficient processing of long contexts using LLMs remains a significant challenge. We introduce \textbf{Ep…

16kDecoderQuestion AnsweringRetrieval-augmented Generation

X-ReCoSa: Multi-Scale Context Aggregation For Multi-Turn Dialogue Generation

2023-03-14 · Danqin Wu

In multi-turn dialogue generation, responses are not only related to the topic and background of the context but also related to words and phrases in the sentences of the context. However, currently widely used hierarchi…

DecoderDialogue GenerationResponse GenerationSentence

Focus Directions Make Your Language Models Pay More Attention to Relevant Contexts

2025-03-30 · Youxiang Zhu, Ruochen Li, Danqing Wang, Daniel Haehn 외

Long-context large language models (LLMs) are prone to be distracted by irrelevant contexts. The reason for distraction remains poorly understood. In this paper, we first identify the contextual heads, a special group of…

An Evolved Universal Transformer Memory

2024-10-17 · Edoardo Cetin, Qi Sun, Tianyu Zhao, Yujin Tang

Prior methods propose to offset the escalating costs of modern foundation models by dropping specific parts of their contexts with hand-designed rules, while attempting to preserve their original performance. We overcome…