Categorizing Comparative Sentences

Alexander Panchenko, Alexander Bondarenko, Mirco Franzek, Matthias Hagen, Chris Biemann

TL;DR

This paper introduces CompSent-19, a new dataset for identifying and categorizing comparative sentences, and presents a gradient boosting model that achieves an F1 score of 85% in this task. This work is crucial for building systems that can understand and extract comparative arguments from text, enabling better comparative search engines and argumentation analysis tools.

What Problem Does This Paper Address?

In today's information-rich world, people often need to make informed choices, whether it's about products, services, or even abstract concepts. While search engines can answer factual questions, they struggle with comparative queries like "How does X compare to Y?". Existing systems often rely on structured databases, overlooking the vast amount of comparative information embedded in natural language text. This gap limits our ability to automatically extract nuanced comparisons and the underlying arguments that justify preferences, which are essential for informed decision-making and robust argumentation analysis.

Methods

The authors tackle this problem by developing supervised classifiers. They explore various machine learning models, including linear models, tree-based ensembles like XGBoost and Random Forest, and neural network approaches like InferSent. For sentence representation, they experiment with traditional methods like Bag-of-Words and more advanced techniques such as GloVe word embeddings and InferSent sentence embeddings. A key aspect of their approach is the investigation of different feature engineering strategies, including how to represent the comparison targets (e.g., replacing them with generic placeholders like "ITEM_A" and "ITEM_B") and the impact of using different parts of the sentence (beginning, middle, or end). They also compare their best statistical model against a rule-based baseline adapted from prior work.

Datasets

The primary contribution in terms of data is the CompSent-19 corpus. This newly created dataset consists of 7,199 sentences annotated for comparative content. The sentences are drawn from three domains: Computer Science, Brands, and a Random domain, chosen to minimize domain-specific biases. For each sentence, annotators labeled whether it expressed a "BETTER" comparison (first item wins), "WORSE" comparison (first item loses), or "NONE" (no comparison). Notably, 27% of the sentences in the corpus are annotated as comparative. The authors also mention using the SNLI dataset for training the InferSent sentence embeddings.

Key Insights and Ideas

  • The middle part of the sentence is king: The authors found that the words between the two compared items are the most crucial for identifying and categorizing comparative sentences. Including the beginning or ending parts of the sentence did not significantly improve performance.
  • Actual objects are less important than we thought: Replacing or removing the comparison targets themselves had minimal impact on classification performance. This suggests that the model learns to identify comparative structures and sentiment based on the surrounding linguistic cues rather than the specific entities being compared, hinting at the domain-independence of the learned features.
  • Simpler models can be surprisingly effective: Despite exploring complex neural network architectures, a gradient boosting model (XGBoost) with well-engineered features (like InferSent embeddings on the middle sentence part) achieved top performance. This highlights the importance of feature engineering and model selection.
  • "WORSE" is harder to detect than "BETTER": The "WORSE" class proved to be the most challenging to classify correctly. This is attributed to a linguistic bias where people tend to express positive comparisons more frequently and explicitly, and potentially to the models' difficulty in handling negations effectively.

Key Results

The paper's main result is the development of a gradient boosting model (XGBoost) that achieves an F1 score of 85% on the CompSent-19 dataset for categorizing comparative sentences. This performance significantly outperforms a rule-based baseline, which achieved an F1 score of around 0.85 but was potentially inflated by cue word usage. Among the features tested, InferSent sentence embeddings on the middle part of the sentence yielded the best results, outperforming simpler Bag-of-Words models by a few points.

Limitations and Future Work

The authors acknowledge that the "WORSE" class is harder to classify, possibly due to linguistic biases and the models' limited ability to handle negations. They also note that while LexNet (customized) showed promise, its performance was limited by coverage issues in the original setup.

Future work directions include:

  • Exploring more advanced neural classification approaches, potentially with larger datasets.
  • Integrating features based on contextualized word representations (like BERT).
  • Improving the handling of direction shifters such as negations and complex implicit comparative constructions.
  • Developing systems that can mine comparative sentences from web-scale sources and identify comparison directions for user-specified objects.

Summary updated

BibTeX
@inproceedings{panchenko2019categorizing,
  author = {Alexander Panchenko and Alexander Bondarenko and Mirco Franzek and Matthias Hagen and Chris Biemann},
  title = {{Categorizing Comparative Sentences}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
}
Figure