Abstract
We transfer a key idea from the field of sentiment analysis to a new domain: community question answering (cQA). The cQA task we are interested in is the following: given a question and a thread of comments, we want to re-rank the comments so that the ones that are good answers to the question would be ranked higher than the bad ones. We notice that good vs. bad comments use specific vocabulary and that one can often predict the goodness/badness of a comment even ignoring the question, based on the comment contents only. This leads us to the idea to build a good/bad polarity lexicon as an analogy to the positive/negative sentiment polarity lexicons, commonly used in sentiment analysis. In particular, we use pointwise mutual information in order to build large-scale goodness polarity lexicons in a semi-supervised manner starting with a small number of initial seeds. The evaluation results show an improvement of 0.7 MAP points absolute over a very strong baseline and state-of-the art performance on SemEval-2016 Task 3.
Introduction
In Community Question Answering (cQA) forums like StackOverflow or Qatar Living, a single question often triggers a long thread of comments. Not all comments are helpful; some are actual answers, while others are just chat, follow-up questions, or spam. The challenge is re-ranking: given a question and a collection of comments, how do we push the "good" answers to the top? Most existing systems focus heavily on the relationship between the question and the answer (e.g., semantic similarity). However, the authors noticed that "good" and "bad" comments often use distinct vocabularies. Just as sentiment analysis uses lexicons to find "positive" or "negative" words, this research explores whether we can identify "goodness" or "badness" based on the words within the comment itself, independent of the question.
Methodology
The authors employ a semi-supervised approach to build a Goodness Polarity Lexicon using Pointwise Mutual Information (PMI). The process involves two main steps:
- Seed Selection: Instead of manually picking "good" words, the authors analyze a small dataset of comments labeled as Good or Bad. They calculate the Semantic Orientation (SO) of words—a score representing how much more likely a word is to appear in a "Good" comment versus a "Bad" one. The top 5% of words at both extremes serve as "seeds."
- Bootstrapping: These seeds are then used to apply PMI-based logic to a massive, unannotated dataset from Qatar Living (nearly 2 million comments). This allows the induction of goodness polarity for tens of thousands of new words based on their co-occurrence with the initial seeds.
The resulting lexicon scores are integrated as features into a Support Vector Machine (SVM) classifier, alongside standard features like word embeddings (Google News), metadata (answer length, author info), and topic modeling (LDA). Evaluation is performed on the SemEval-2016 Task 3, Subtask A dataset.
Key Results
The addition of the Goodness Polarity Lexicon provided a consistent boost across all major metrics. The system achieved state-of-the-art performance, notably outperforming the top-ranked system in the SemEval-2016 competition in terms of Mean Reciprocal Rank (MRR).
As shown in the results table, the inclusion of PMI lexicons improved the Mean Average Precision (MAP) by 0.7 points absolute (from 78.08 to 78.75). The MRR reached 86.69, surpassing the SemEval 1st place score of 86.42. Furthermore, the system significantly outperformed chronological and random baselines by roughly 19-25 MAP points.
Discussion and Conclusion
The "Goodness" analogy—treating answer quality as a sentiment-like polarity—suggests that quality is not just about relevance to a question, but also about the intrinsic properties of the text. Analysis of the lexicon reveals that "Good" words often refer to specific domain-relevant entities (e.g., local landmarks in the Qatar Living dataset), while "Bad" words are frequently typos, gibberish, or fragments. This indicates the lexicon acts as a proxy for both domain relevance and general writing quality.
While successful, the current approach is limited to unigrams. Future work could explore n-grams (e.g., "I don't know") as stronger quality indicators. Additionally, because the seeds were pulled from a specific forum, the lexicon is domain-specific; future research will investigate how seed selection impacts the generalizability of these large-scale lexicons across different community platforms.
Summary updated