Papers › Augmenting Neural Response Generation with Context-Aware Topical Attention

Augmenting Neural Response Generation with Context-Aware Topical Attention

2 Nov 2018WS 2019 8arXiv:1811.01063archive 2025-07-28

Nouha Dziri, Ehsan Kamalloo, Kory W. Mathewson, Osmar Zaiane

Sequence-to-Sequence (Seq2Seq) models have witnessed a notable success in generating natural conversational exchanges. Notwithstanding the syntactically well-formed responses generated by these neural network models, they are prone to be acontextual, short and generic. In this work, we introduce a Topical Hierarchical Recurrent Encoder Decoder (THRED), a novel, fully data-driven, multi-turn response generation system intended to produce contextual and topic-aware responses. Our model is built upon the basic Seq2Seq model by augmenting it with a hierarchical joint attention mechanism that incorporates topical concepts and previous interactions into the response generation. To train our model, we provide a clean and high-quality conversational dataset mined from Reddit comments. We evaluate THRED on two novel automated metrics, dubbed Semantic Similarity and Response Echo Index, as well as with human evaluation. Our experiments demonstrate that the proposed model is able to generate more diverse and contextually relevant responses compared to the strong baselines.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1811.01063")

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

By repository: official repository: 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nouhadziri/THRED officialmentioned in papermentioned on GitHubtfMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 0 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from nouhadziri/THRED. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basic_tokenizer nouhadziri/THRED/thred/models/data_utils.py official repository unverified MIT (permissive) · e40595a62d93569d · report
create_attention_mechanism nouhadziri/THRED/thred/models/attention_helper.py official repository unverified MIT (permissive) · b9c67528d9265a61 · report
create_model nouhadziri/THRED/thred/models/model_factory.py official repository unverified MIT (permissive) · cde612444096ca52 · report
create_or_load_model nouhadziri/THRED/thred/models/model_helper.py official repository unverified MIT (permissive) · 9f06a9503cb890f0 · report
get_config_proto nouhadziri/THRED/thred/models/model_helper.py official repository unverified MIT (permissive) · f4cd70b4af6f3433 · report
get_translation nouhadziri/THRED/thred/models/ncm_utils.py official repository unverified MIT (permissive) · f3efe1580a80c6a4 · report
initialize_vocabulary nouhadziri/THRED/thred/models/data_utils.py official repository unverified MIT (permissive) · 7d413a0bbeda1f32 · report
initialize_vocabulary nouhadziri/THRED/thred/models/topical_base.py official repository unverified MIT (permissive) · 2c909688ddd29cad · report
is_attention_enabled nouhadziri/THRED/thred/models/attention_helper.py official repository unverified MIT (permissive) · 9abf699de58bc952 · report
iter_corpus nouhadziri/THRED/thred/topic_model/lda.py official repository unverified MIT (permissive) · 0c91758a8bd64888 · report
load_model nouhadziri/THRED/thred/models/model_helper.py official repository unverified MIT (permissive) · 86296f212902a365 · report
normalize nouhadziri/THRED/thred/topic_model/analyzer.py official repository unverified MIT (permissive) · 29e39efb902dd8e2 · report
normalize_sequence nouhadziri/THRED/thred/topic_model/analyzer.py official repository unverified MIT (permissive) · 4fc7a88811b57aaf · report
sentence_to_token_ids nouhadziri/THRED/thred/models/data_utils.py official repository unverified MIT (permissive) · a8ba4fe282270810 · report

Tasks

DecoderOpen-Domain DialogResponse GenerationSemantic Similarity

Datasets

Introduced by this paper, per the archive.

Reddit Conversation Corpus

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

LSTMSeq2SeqSigmoid ActivationTanh Activation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections