Learning Comment Generation by Leveraging User-generated Data

Zhaojiang Lin, Genta Indra Winata, Pascale Fung

TL;DR

Generating high-quality, relevant comments for online articles is notoriously difficult because a single article can inspire thousands of diverse—and often contradictory—responses. This paper introduces a framework that uses user-generated data (specifically upvote counts) to train a neural "ensemble scorer" that filters for the best comments, which are then used to train a pointer-generator network. The result is a model that significantly outperforms standard baselines, producing comments that are both more relevant to the text and more engaging to readers.

What Problem Does This Paper Address?

If you’ve ever scrolled through the comment section of a news site, you know the variety is staggering. For a machine learning model, this "one-to-many" mapping is a nightmare. When a model is trained on an article paired with every single comment it received—ranging from insightful analysis to "me too" or spam—it often suffers from mode collapse. Instead of learning to be interesting, the model plays it safe and generates repetitive, generic, and uninformative responses.

Existing Information Retrieval (IR) methods can pick real human comments, but they are rigid and struggle to scale to new topics. Purely generative models (like standard Seq2Seq) often lose the thread of the article or produce bland text. The authors set out to bridge this gap by leveraging the wisdom of the crowd—upvotes—to identify what makes a "good" comment and then teaching a model to generate similar high-quality content.

Methods

The authors propose a two-stage framework: Scoring and Generation.

1. The Comment Scorer

To identify high-quality training pairs, they developed three scoring methods:

  • Relevance Scorer (RS): A traditional approach using TF-IDF weighted vectors to measure how much a comment overlaps with the article's vocabulary.
  • Upvote Scorer (US): A semi-supervised neural classifier. Since not all articles have upvote data, they trained a BiLSTM with an attention mechanism on a subset of data where comments had 10+ upvotes (positive samples) versus those that didn't (negative samples). This allows the model to "predict" the popularity of a comment even for new articles.
  • Ensemble Scorer (ES): A linear combination of the RS and US. This ensures the chosen comments are both relevant to the topic and likely to be popular with readers.

2. The Generator

Once the best comments are selected for each article, they train a Pointer-Generator Network. This is a Seq2Seq model with two key additions:

  • Copy Mechanism: It can choose to either generate a word from its fixed vocabulary or "point" to and copy a specific word directly from the source article. This is crucial for handling names, places, or technical terms found in the news.
  • Coverage Mechanism: A technique to prevent the model from repeating the same phrases over and over, a common flaw in basic RNNs.

Datasets

The researchers used a massive, real-world dataset:

  • Tencent News Dataset: A Chinese-language dataset containing approximately 4 million comments across 177,368 news articles.
  • Metadata: Each article includes a title, body text, and metadata like category and user upvote counts.
  • Distribution: The authors noted a "long-tail" distribution—most comments have zero upvotes, while a few popular ones have thousands, making the filtering process essential.

Key Insights and Ideas

  • Upvotes as a Proxy for Quality: The most important insight is that raw upvotes are a noisy but powerful signal. By training a neural scorer (US) on this data, the model learns the latent features of a good comment (e.g., persuasiveness, sentiment) rather than just memorizing popular words.
  • Mitigating Mode Collapse: By filtering the training set to only include "high-scoring" comments, the model is no longer confused by contradictory or low-quality training signals. This forces the generator to converge on more expressive language.
  • The Power of the Ensemble: Relevance alone isn't enough (it leads to boring repetition of the article), and popularity alone isn't enough (it leads to generic "great post!" comments). The ensemble approach balances these two, ensuring the output is both topical and engaging.

Key Results

The proposed model, Pointer-Generator + Coverage + ES, showed dramatic improvements over baselines:

  • BLEU-1 Scores: The model achieved a score of 65.70, compared to just 38.80 for a standard Seq2Seq with attention and 35.55 for a traditional IR-based approach. This represents a nearly 30-point jump in performance.
  • Qualitative Expressiveness: In human-readable tests, the model moved away from generic phrases like "Me too" (我也是) to more specific reactions like "Poor dog!" (可怜的狗狗!) when responding to an article about animal rescue.
  • Metric Gains: Beyond BLEU, the model saw significant gains in CIDEr, ROUGE_L, and METEOR, suggesting the generated text was more similar to human-written summaries and responses.

Limitations and Future Work

While the results are impressive, the authors acknowledge a few hurdles:

  • Grammaticality vs. Relevance: There is still a trade-off. IR methods always produce perfect grammar (because they are human-written) but often lack context. The generative model is highly relevant but can occasionally produce ungrammatical sequences.
  • Language Specificity: The study was conducted on a Chinese dataset. While the architecture is language-agnostic, the effectiveness of the TF-IDF and BiLSTM components might vary across different linguistic structures.
  • Future Direction: The authors suggest that Reinforcement Learning (RL) could be the next step, using the ensemble score directly as a reward signal to fine-tune the generator in real-time.

Summary updated

BibTeX
@inproceedings{lin2019learning,
  author = {Zhaojiang Lin and Genta Indra Winata and Pascale Fung},
  title = {{Learning Comment Generation by Leveraging User-generated Data}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2019},
  doi = {10.1109/icassp.2019.8682945},
}
Figure