arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1809.00410v1 [cs.CL] 02 Sep 2018

Modeling Topical Coherence in Discourse without Supervision

Disha Shrivastava Thanks:  *Work done as part of IBM Research, Bangalore Affiliation: MILA, Université de Montréal Affiliation: Montreal, Canada Email: dishu.905@gmail.com    Abhijit Mishra Affiliation: IBM Research Affiliation: Bangalore, India Email: abhijimi@in.ibm.com    Karthik Sankaranarayanan Affiliation: IBM Research Affiliation: Bangalore, India Email: kartsank@in.ibm.com
Abstract

Coherence of text is an important attribute to be measured for both manually and automatically generated discourse; but well-defined quantitative metrics for it are still elusive. In this paper, we present a metric for scoring topical coherence of an input paragraph on a real-valued scale by analyzing its underlying topical structure. We first extract all possible topics that the sentences of a paragraph of text are related to. Coherence of this text is then measured by computing: (a) the degree of uncertainty of the topics with respect to the paragraph, and (b) the relatedness between these topics. All components of our modular framework rely only on unlabeled data and WordNet, thus making it completely unsupervised, which is an important feature for general-purpose usage of any metric. Experiments are conducted on two datasets - a publicly available dataset for essay grading (representing human discourse), and a synthetic dataset constructed by mixing content from multiple paragraphs covering diverse topics. Our evaluation shows that the measured coherence scores are positively correlated with the ground truth for both the datasets. Further validation to our coherence scores is provided by conducting human evaluation on the synthetic data, showing a significant agreement of 79.3%.

1 Introduction

Discourse coherence measurement has been an important task for evaluating human generated text Attali and Burstein 2004; Crossley and McNamara 2011; Taghipour and Ng 2016 and text output produced by natural language generation (NLG) systems such as summarizers, descriptive question answering systems and automatic creative content generators. Measuring coherence is an essential need for evaluation of NLG systems that are currently impeded by lack of robust quality-estimation metrics Belz and Kilgarriff 2006; Nenkova et al. 2007. A robust evaluation metric may not only evaluate and interpret NLG systems better, but can also contribute to better system designs (such as using the metric as a loss or reward function in risk minimization or reinforcement learning settings).

Example 1 (Coherent): The most important part of an essay is the thesis statement. The thesis statement introduces the argument of the essay. It also helps to create a structure for the essay. Therefore, one should always begin with a thesis statement while writing an essay.
Example 2 (Locally Incoherent): It also helps to create a structure for the essay. The thesis statement introduces the argument of the essay. The most important part of an essay is the thesis statement.
Example 3 (Topically Incoherent): The most important part of an essay is the thesis statement. Essays can be written on various topics from domains such as politics, sports, current affairs etc. I like to write about Cricket because it is the most popular team sport played at international level.
Table 1: Example of topically coherent, locally incoherent, and topically incoherent paragraphs

We propose a metric for topical coherence (referred to as coherence, henceforth) in paragraphs. Our work is motivated from the fact that automatic NLG systems (such as abstractive summarizers) often produce text with topics that may be quite unrelated to each other. For example, in a recently proposed work See et al. 2017, the summary generated by Pointer-Gen+Coverage system (Figure 1 in See et al. 2017), has a considerable topic shift (from “administration” to “winning the election”), a mistake that is more likely to be committed by machines than humans.

Topical coherence differs from local coherence. To illustrate the difference, Table 1 shows examples of coherent, locally incoherent and topically incoherent paragraphs. Example 11 is quite coherent as it revolves around one central topic i.e., importance of thesis statement. Example 22 is more incoherent as compared to Example 11, due to the fact that sentences are not ordered naturally. However, it still talks about the same central topic as Example 11. Example 33 on the other hand, confusingly covers multiple topics such as importance of thesis statement, possible essay domains, and popular sports, which are quite unrelated to each other and hence, is topically incoherent. Our metric for topical coherence is designed to address two key aspects: (a) how effectively each sentence contributes to the topic(s) that the paragraph expresses, and (b) to what extent topics expressed by the paragraph are related to each other. These aspects are tackled by independent modules, making our metric modular and interpretable. Typically, gold labels for coherence scores are difficult to obtain, and therefore the unsupervised nature of our framework along with its simplicity makes it easier and convenient to employ. We perform experiments on different sets of a publicly available human graded essay dataset, and a synthetic dataset constructed by injecting incoherence into already available coherent paragraphs (possibly mimicking machine generated discourse). Evaluation results show a positive correlation of the measured coherence scores with the gold-standard scores, hence making our system acceptable for coherence based ranking of paragraphs. Additionally, human evaluation on a set of synthetic data essays shows a significant agreement (79.3%), demonstrating the effectiveness of our proposed metric. Finally, a comparison with the supervised systems discussed in Barzilay and Lapata 2008 shows that our framework, even though unsupervised and less complex, can exhibit performance competitive to the supervised systems that require significant amount of training data and in some cases, deep linguistics meta information such as role labels, coreferences, dependency parses etc., to produce reasonable results.

2 Methodology

2.1 Formulation

Based on the motivation laid above, a prima-facie formulation of coherence of a paragraph (denoted as CSCS) can be proposed assuming that CSCS varies linearly and positively with: (a) to what degree of certainty topics expressed by the paragraph (denoted as TT) are supported by its constituent sentences (denoted by variable E(T)E(T)), and (b) to what extent these topics are related to each other (denoted by variable λ(T)\lambda(T)). Mathematically,

CS=κ×E(T)×λ(T)CS=\kappa\times E(T)\times\lambda(T) (1)

For empirical purposes, κ\kappa, the constant term can be set to 11. The two components of the above formula require topics expressed by the paragraph to be extracted first. This process is explained below.

2.2 Defining Topics

The first step before extracting the topics (which are abstract “concepts”) is to define a set of wide variety of generic topics which could be mapped to any given paragraph. This one-time process is carried out by performing word-clustering on a large scale mixed domain unlabeled data. The assumption here is that clusters extracted from large scale data represent generic topics in the universal space of English language. After defining generic topics, the next step is to infer topics discussed in a given input paragraph. We explain each of these steps in detail below.

For word clustering, we consider embeddings learned on a large scale corpora Pennington et al. 2014 and cluster them via k-means clustering. The assumption here is that words connected to a particular topic would exhibit strong syntagmatic and paradigmatic relations. Since word embeddings are good at capturing such relations, topically connected words may eventually lie in the same cluster in the vector space. Each cluster in this space hence represents a topic. Topic models such as the ones based on Latent Dirichlet Allocation Blei et al. 2003 are other alternatives for topic extraction. However, it is well known that the behavior of topic models changes drastically11 1 basic LDA based experiments did not show good performance in our setting based on the prior distribution, hyper-parameters and document processing applied Chang et al. 2009. Hence, we rather keep the topic extraction process simplistic by using word embeddings.

2.3 Extracting Relevant Topics

Each sentence in the input paragraph is POS tagged and only nouns are selected for topic extraction. The intuition behind choosing only nouns is that nouns are most representative of the topic in a given sentence. For each noun, we determine the topic-cluster to which it belongs. To avoid noise, for each sentence, we choose a dominant cluster by assigning cluster scores to all clusters identified within a given sentence (the reason we try to extract topics for each sentence separately is that sentences are the atomic units that are capable of discussing independent topics from others). The cluster topic score of a cluster is (a) directly proportional to the fraction of nouns within the sentence that belong to the cluster and the mean pairwise cosine similarity of nouns in the sentence, and (b) is inversely proportional to the diameter of the cluster. The diameter of the cluster is the maximum distance between any two points in the cluster. The dominant cluster for a sentence is the one which has the highest cluster topic score. After determining the dominant cluster, we take all points within the cluster and check for its existence in WordNet. This eliminates highly specific terms, jargon, named entities which could potentially add noise to the clusters. Therefore, each topic can now be represented as a subgraph of the WordNet where the nodes in the subgraph are bag-of-words representing a topic (topicBOW).

Given the topics relevant to the paragraph, we now explain the two components E(T)E(T) and λ(T)\lambda(T) of Equation 1 in the following subsections.

Refer to caption
Figure 1: Architecture for estimating p(P,ti)p(P,t_{i})

2.4 Component E(T)E(T)

For an input paragraph PP, with MM sentences (s1,s2,,sMs_{1},s_{2},...,s_{M}), expressing a set of topics (T=t1,t2,,tNT=t_{1},t_{2},...,t_{N}), the component E(T)E(T) can be expressed as:

E(T)=i=1Np(ti|P)log(p(ti|P))E(T)=-\sum_{i=1}^{N}p(t_{i}|P)log(p(t_{i}|P)) (2)

where p(ti|P)=p(ti|s1,s2,,sM)p(t_{i}|P)=p(t_{i}|s_{1},s_{2},...,s_{M}) represents the probability of the topic tit_{i} conditioned over the paragraph. E(T)E(T) corresponds to the conditional entropy of topics here. Intuitively, if sentences in the paragraph are well distributed across all the topics emerging out of the paragraph, i.e. each sentence in the paragraph is somewhat related (even though loosely) to all the topics, the paragraph may exhibit more coherence, with less topic-shift. On the other hand, if the paragraph can be divided in such a way that each segment of the paragraph is related to a unique topic, the paragraph will be less coherent. This is adequately captured by the conditional entropy formula which rewards when the distribution p(T|P)p(T|P) is smooth and penalizes when it is sparse. Moreover, this formulation of E(T)E(T) captures another essential aspect: if the number of topics in the paragraph become very large, it inherently pulls the conditional probabilities p(ti|P)p(t_{i}|P) down, making the distributions sparse22 2 it is highly improbable to have sentences discussing a large number of topics and thus, reducing the entropy. So, when number of topics grow, E(T)E(T) is penalized more.

The term p(ti|P)p(t_{i}|P) in Equation 2 can be expanded further, with the help of Bayes’ rule as follows:

p(ti|P)=p(P|ti)p(ti)j=1Np(P|tj)p(tj)p(t_{i}|P)=\frac{p(P|t_{i})p(t_{i})}{\sum_{j=1}^{N}p(P|t_{j})p(t_{j})} (3)

Furthermore, term p(P|ti)p(P|t_{i}) can be expanded using chain rule, as:

p(P|ti)=p(s1,s2,,sM|ti)\displaystyle p(P|t_{i})=p(s_{1},s_{2},...,s_{M}|t_{i}) (4)
=p(s1|ti)p(s2|s1,ti)p(sM|s1,s2,,sM1,ti)\displaystyle=p(s_{1}|t_{i})p(s_{2}|s_{1},t_{i})...p(s_{M}|s_{1},s_{2},...,s_{M-1},t_{i})
=k=1Mp(sk|Ck1,ti)\displaystyle=\prod_{k=1}^{M}p(s_{k}|C_{k-1},t_{i})

Here Ck1C_{k-1} can be considered as the context that appears before the the kthk_{th} sentence.

Since, no topic in the paragraph can be given more importance over another, the probability term p(ti)p(t_{i}) can be uniformly distributed across TT i.e., p(ti)=1Np(t_{i})=\frac{1}{N}. For estimating p(sk|Ck1,ti)p(s_{k}|C_{k-1},t_{i}) (without applying any simplifying assumptions), we follow the distributed bag-of-words (BOW) model by Le and Mikolov 2014. The idea here is to train distributed bag-of-words model using a large number of sentences (covering good number of topics); and later on use the model for inferring p(sk|Ck1,ti)p(s_{k}|C_{k-1},t_{i}). The inference time snapshot of the model is given in Figure 1 and the probability estimation algorithm is given in Algorithm 1.

Algorithm 1 Probability Estimation
1:modelmodel \leftarrow TrainDistBOWModel
2:REM TrainDistBOWModel is the process of training a distributed representation model for bag-of-words with unlabeled data.
3:C0C_{0} \leftarrow nullnull
4:tvt_{v} \leftarrow InferBOWVector (tit_{i})
5:REM InferBOWVector infers encoded vector for topic tit_{i} from the distributed representation model.
6:p(P|ti)=1p(P|t_{i})=1
7:for skP=s1,s1,,sMs_{k}\in P={s_{1},s_{1},...,s_{M}} do
8:    svs_{v} \leftarrow InferBOWVector (sks_{k})
9:    Ck=Ck1svC_{k}=C_{k-1}\oplus s_{v}
10:    Ccurr=CktvC_{curr}=C_{k}\oplus t_{v}
11:    Cprev=Ck1tvC_{prev}=C_{k-1}\oplus t_{v}
12:    p(sk,Ck1,ti)p(s_{k},C_{k-1},t_{i}) \leftarrow InferProb(CcurrC_{curr})
13:    REM InferProb produces the joint probability score of a given bag-of-word distributed representation.
14:    p(Ck1,ti)p(C_{k-1},t_{i}) \leftarrow InferProb(CprevC_{prev})
15:    p(sk|Ck1,ti)=p(sk,Ck1,ti)p(Ck1,ti)p(s_{k}|C_{k-1},t_{i})=\frac{p(s_{k},C_{k-1},t_{i})}{p(C_{k-1},t_{i})}
16:    p(P|ti)=p(P|ti)×p(sk|Ck1,ti)p(P|t_{i})=p(P|t_{i})\times p(s_{k}|C_{k-1},t_{i})
17:end for
18:Output: p(P|ti)p(P|t_{i})

As discussed earlier in Section 2.3, since topics are also treated as bag of words (topicBOW), it is easy to do conditional inference using a bag-of-words based distributed representation model. In such a setting, both sentences and topics are treated as bag-of-words, and hence, there is no special signal to be passed to the model with respect to the topic bag-of-word representations. We agree that bag-of-words based techniques can be agnostic to within-sentence sequentiality and natural order of sentences. However, since modeling topical coherence involves inferring sentence-topic associations, and does not necessarily aim to model within-sentence properties; not preserving sentence order would not adversely affect our goal. We now describe the second component of Equation 1.

2.5 Component λ(T)\lambda(T)

The component λ(T)\lambda(T) aims to capture relatedness between topics expressed by the paragraph. For two paragraphs with same number of topics, the coherence score should be more if topics are strongly related with each other as compared to the case where the correlation between topics of the paragraph is less. This helps us to refrain from penalizing the coherence scores even though the paragraph contains large number of topics if such topics are strongly related. For example, a topical shift from the topic carnivore to mammals in general should be penalized less than that from carnivore to electronics. The inter-relatedness between topics is captured by λ(T)\lambda(T), for which we rely on lexical knowledge networks such as WordNet Fellbaum 1998, that preserve various forms of conceptual-semantic and lexical relations between words and are well-curated. Note that, we do not opt for simplistic topic-relatedness measures such as inter-cluster distance between topic-clusters, as such measures are significantly affected by the bias in the data used for clustering, and noise introduced by imperfect algorithm and parameter selection.

Refer to caption
Figure 2: Sample WordNet subgraph extracted for calculating λ(T)\lambda(T). Dashes indicate indirect connections.

Each word in the topic bag-of-words (for the whole paragraph) is mapped to a node in the WordNet (if its lemma exists in WordNet), according to its most frequent sense. The mapped nodes in the WordNet are then connected with each other through other intermediate nodes to form a subgraph. Figure 2 illustrates a subgraph extracted for Example 2 discussed in Section 1. From the WordNet subgraph, we compute λ(T)\lambda(T) as follows:

λ(T)=NodeSim(T)ND(T)TC(T)ED(T)\lambda(T)=\frac{NodeSim(T)*ND(T)}{TC(T)*ED(T)} (5)
  • NodeSim(T): This corresponds to the average similarity between nodes representing the topics in the subgraph. This is obtained by calculating the average cosine similarity between the corresponding node embedding, obtained via the TransE multi-relational embedding learning technique Bordes et al. 2013. TransE operation on a graph results in low-dimensional embeddings of the nodes that capture its relationship with the other nodes in the graph in a distributional manner. In our setting, a higher similarity between two node embeddings indicate higher inter-relationship between them. We compute cosine similarity between the embeddings of each pair of nodes in the sub-graph and then average the similarity scores.

  • ND(T): This represents the average neighborhood degree of the nodes in the subgraph. Intuitively, a higher average neighborhood degree indicates higher degree of connectedness amongst nodes, indicating higher topic relatedness.

  • ED(T): This denotes the edge-density of the graph33 3 https://en.wikipedia.org/wiki/Dense_graph. The notion behind using this measure is that if topics are distantly placed in the WordNet graph (a case of higher incoherence), the subgraph generated will be denser with more number of nodes and even more number of edges established through various WordNet relationships. So, higher ED(T)ED(T) should penalize λ(T)\lambda(T) and the overall coherence score.

  • TC(T): We define this term as:

    TC(T)=#edgesinthesubgraph#edgesinitstransitiveclosureTC(T)=\frac{\#edges~in~the~subgraph}{\#edges~in~its~transitive~closure}

    Since transitive closure of a graph indicates the node reachability, the term TCTC reduces the reachability of nodes in the subgraph. For a graph like Wordnet where there are limited relations between nodes, subgraphs with non-ambiguous reachable paths are indicative of stronger topic-relatedness. Hence, a higher TCTC score should penalize λ(T)\lambda(T) and the overall coherence score.

We provide an end-to-end algorithm for coherence score calculation in Algorithm 2.

Algorithm 2 Coherence Score Calculation
1:function CalculateCoherenceScores (Para PP, WordNet graph GG)
2:TT \leftarrow FindTopics (PP)
3:SGSG \leftarrow CreateSubGraph (GG, TT)
4:E(T)E(T) \leftarrow calcEntropy (TT, PP)
5:NodeSim(T)NodeSim(T) \leftarrow calcTransESimilarity (SGSG)
6:ND(T)ND(T) \leftarrow calcConnectivity(SGSG)
7:ED(T)ED(T) \leftarrow calcEdgeDensity (SGSG)
8:TC(T)TC(T) \leftarrow calcTCScore (SGSG)
9:λ(T)=NodeSim(T)×ND(T)ED(T)×TC(T)\lambda(T)=\frac{NodeSim(T)\times ND(T)}{ED(T)\times TC(T)}
10:CS=κ×E(T)×λ(T)CS=\kappa\times E(T)\times\lambda(T)
11:return coherence_score,CScoherence\_score,CS

3 Experimental Setup

3.1 Datasets

We carry out our experiments on two sets of data as described below:

3.1.1 Human Essay Data

We take the Kaggle data released by the Hewlett Foundation for the task of Automated Essay Grading Foundation 2012. The dataset consists of eight essay-sets corresponding to two types of essay prompts. We consider the persuasive/ narrative/ expository sets of essays (i.e., essay set id 1, 2, 7 and 8). Each essay is provided with scores of two or more human experts. We take the resolved expert scores for essay sets 1, 7 and 8; and mean of domain1 and domain2 scores for essay set 2 as gold labels. The expert scores indicate the overall goodness of the essay in terms of coherence, cohesion, organization, language-structure etc. Though the overall grades are not exact labels for coherence, coherence plays an influential role while grading the essays. Hence, showing a positive correlation to these human graded essay scores can provide a validation for our coherence metric.44 4 We refrain from creating a dataset with manually labeled coherence scores, due to the subjective nature of the labeling task. From the Kaggle data we extracted 5870 essays in total with varied number of sentences in each essay ranging from 1-84. More details on the dataset can be found in Table 2.

3.1.2 Synthetic Data

We created a synthetic data based on the essays provided by The Louvain Corpus of Native English Essays (LOCNESS) catholique de Louvain 2017. The corpus consists of argumentative and literary essays written by British and American university students. The essays are written on different topics ranging from computers, biology, British society etc.. We take the original essays and replace a fraction of the paragraph with sentences randomly chosen from essays on completely different topics. All the original paragraphs are labeled with a coherence score of 1.0. The coherence scores of the synthesized variants are determined by the degree of incoherency introduced. For example, if 20% of the original paragraph is replaced with sentences from essays on a different topic, the coherence score is reduced by 20%. If replaced sentences are extracted from essays on “two” different topics, the score is reduced further by another 20%. Since many of the essays are extremely big, we sampled 81 essays (including variants) which had less than 1000 words. In the dataset, essays are labeled with coherence scores of C = [1.0,0.8,0.6,0.4] based on the above criteria, which is later treated as ground truth.

The state-of-the-art data-driven NLG systems that generate discourses often mix different topics (ref. abstractive summarization work discussed in the introduction). We try to mimic that by replacing portions of the coherent paragraphs with sentences from other paragraphs discussing unrelated topics. This is the rationale behind creating such a dataset for evaluation.

3.2 Systems Details for E(T)E(T) and λ(T)\lambda(T)

To cluster the GloVe word vectors we experimented with different values of K for K-means clustering algorithm. Finally, we chose K=1000 based on the values of average inter-cluster and intra-cluster distances. The conditional probability inference model discussed in Section 2.4 above was trained on a mixed domain corpus, i.e., UMBC55 5 http://ebiquity.umbc.edu/blogger/2013/05/01/umbc-webbase-corpus-of-3b-english-words/ WebBase corpus of 3 billion English words. The pre-computed transE embeddings trained on the Wordnet graph were obtained from Bordes et al. 2013. Our coherence scores were in the real-valued range [0.1-1000].

3.3 Evaluation Metrics

We obtained coherence scores CSCS using Algorithm 2 for each of the four sets of human graded essays (referred to as Set1Set1, Set2Set2, Set7Set7 and Set8Set8 henceforth); and the synthetic data generated (referred to as SyntheticSynthetic). We obtained Spearman’s rank correlation coefficient between the gold labels and calculated coherence scores to see how they are correlated. Since, for most practical purposes, the relative ranking of paragraphs based on coherence may be more important than computing the absolute coherence scores, we chose the Spearman’s rank correlation metric instead of Pearson’s correlation. We also computed the rMSE between the scaled coherence scores and gold labels for each of the five sets of data.

Dataset #Essays Avg. #Sents
Synthetic 81 27.38
Set 1 1783 22.77
Set 2 1800 20.36
Set 7 1569 11.71
Set 8 723 34.88
Table 2: Data statistics
Dataset Correlation (pp) rMSE
Synthetic 0.417 (1e-4) 0.37
Set 1 0.502 (1.2e-114) 0.63
Set 2 0.433 (4.3e-83) 0.78
Set 7 0.411 (4.9e-65) 0.72
Set 8 0.283 (8.2e-15) 0.46
Table 3: Results for synthetic and human essay datasets. CorrelationCorrelation\rightarrow Spearman’s Rank Correlation Coefficient between measured and gold values of coherence with statistical significance test values pp. rMSErMSE\rightarrow Root Mean Squared Error between normalized measured and gold values of coherence. All correlation values are within 99% confidence (p<0.01p<0.01).
Dataset E(T)E(T) NodeSim(T)NodeSim(T) ED(T)ED(T) TC(T)TC(T) ND(T)ND(T)
Synthetic 0.255 0.107 -0.084 -0.015 0.042
Set 1 0.207 -0.015 -0.494 -0.497 0.516
Set 2 0.205 -0.115 -0.384 -0.438 0.496
Set 7 0.293 0.157 -0.427 -0.351 0.401
Set 8 0.08 0.142 -0.385 -0.28 0.356
Table 4: Spearman Rank Correlation between different components of the coherence metric and gold labels

4 Results and Discussion

4.1 Correlation Analysis

The results for the Spearman’s rank correlation and rMSE between the coherence scores and gold labels are reported in Table 3. As it can be seen, in all cases our coherence scores obtain a positive correlation with the corresponding gold labels, suggesting that we are indeed modeling coherence, which plays an essential role in human essay grading. The low values of rMSE indicates that the predicted coherence scores are quite acceptable. To see the importance of each component in our coherence score, we calculated the component-wise Spearman’s rank correlation coefficients w.r.t. the gold labels for each of the five datasets (Table 4). It can be seen that entropy and average neighborhood degree are positively correlated and TC score and edge density are negatively correlated as expected. The correlation with NodeSim(T)NodeSim(T) is mostly positive, though for essay sets 2 and 7 we get slightly negative correlations. This might be due to the specific nature of prompts of these essay sets. Set 1 and Set 2 are persuasive essay prompts. Hence, the responses may contain complex relations between words which might not be captured by a WordNet graph which models very few specific kinds of relations. The comparatively high correlation of entropy component shows that it is an essential part of our coherence score formulation.

4.2 Topic Membership Visualization

We ran our pipeline for Example 1 given in Table 1 (Coherent) and the example shown in Figure 3 (Incoherent). We got coherence score values of 17.2917.29 and 0.9640.964 respectively, for the two cases. In each case, out of all the topics obtained for the paragraph, we obtained the topic membership of each sentence. Interestingly for the second case, as shown in Figure 3, out of the two topics obtained for the paragraph, the first, third and fourth sentences belong to one topic (coloured blue), and the second sentence belongs to the second topic (coloured red), indicating a significant drift in topic and hence incoherence.

Refer to caption
Figure 3: Colour coded representation of topic membership for the incoherent paragraph.

4.3 Human Evaluation

We conducted human evaluation on a random group of 27 essays (9 sets) from our synthetic dataset. The task was to rank each paragraph within a set (1 original and 3 perturbed variants) based on the coherence. We compared these rankings done by human subjects with the ranking produced by our system based on the values of coherence scores. We found an agreement of 79.3% between the two rankings, which suggests that the rankings produced by our system are acceptable.

4.4 Comparison with Supervised Techniques

Intrigued to see how our system performs as compared to supervised techniques for measuring local coherence, we tested our system on the Earthquakes and Accidents datasets released by Barzilay and Lapata 2008. We obtained coherence scores for the essays given in the test set of the two datsets. Then the accuracy was measured by considering the fraction of test pairs ranked correctly based on the values of our coherence scores. If the relative difference between the coherence scores was less than a fixed tolerance, we marked them as positive. We got accuarcies of 77.3% and 71.5% on Earthquakes and Accidents datasets, respectively. These values are competitive to the reported accuracy figures of 81.4% and 86.0% (row Coreference-Syntax-Salience- in Table 5 of Barzilay and Lapata 2008) on the two datasets. Considering the fact that our system is unsupervised and does not need additional complex meta-information like dependency parses and coreferences, syntax and saliency information etc., which the best supervised systems use today; our system offers significant advantages and is more generalizable compared to the popular supervised techniques.

5 Related Work

The importance of discourse coherence analysis and measurement was identified long back by classical and computational linguists. Earlier works by Bamberg 1983, Ryan 1984, McCulley 1985 formalize coherence and properties of coherent discourses. There have been several works on automated essay grading Attali and Burstein 2004, modeling paragraph organizations Persing et al. 2010, automated text scoring Alikaniotis et al. 2016, and measuring coherence quality Somasundaran et al. 2014. Our metric can certainly be used in these scenarios.

In domains such as education, e-commerce, judicial and compliance many automatic scorers have been proposed over the last couple of decades. Higgins et al. 2004 and Miltsakaki and Kukich 2004 propose frameworks for measuring text coherence for essays collected by ETS. Since their data is not available publicly, a comparative study could not be carried out. Foltz et al. 1998 propose a coherence model using latent semantic analysis. Using various textual and grammatical properties of the text, Crossley and McNamara 2011 implemented a statistical regression based system for essay scoring and ranking. Recent works on evaluating the holistic scores of essays rely on deep learning based techniques Alikaniotis et al. 2016; Taghipour and Ng 2016. However, relatively very little work has been done for individual aspects of the essay, such as organization Persing et al. 2010, coherence and cohesion Somasundaran et al. 2014.

A significant amount of research has been carried out on modeling sentence ordering and local coherence in paragraphs. Barzilay and Lapata 2008, in a pioneering work, modeled local coherence in paragraphs (a comparison with them is provided in Section 4.4 above) The rank-labels are predicted in a supervised setting with features extracted from the paragraphs based on an entity-grid model. Several works that addressed the problem of local coherence using the same (or similar) datasets are: (a) HMM based approach considering syntactic patterns by Louis and Nenkova 2012, (b) Window Based Approach by Li and Hovy 2014, (c) Sequence-to-sequence based approach by Li and Jurafsky 2017, and recurrent neural network based approach by Logeswaran et al. 2016. These approaches, unlike ours, are supervised, and some of them require complicated meta-linguistic information to be extracted through Role labeling, Coreference resolution, dependency parses etc. thus requiring expensive additional resources.

6 Conclusion and Future Work

In this paper, we presented a metric for scoring paragraph topical coherence of natural language text on real valued scale. To measure topical congruency, our system first extracts a set of possible topics that emanate, as sentences in the paragraph unfold. Paragraph coherence is then measured as a product of two components capturing (a) paragraph-topic association, and (b) topic relatedness. Experiments on two datasets of human generated and automatically synthesized paragraphs reveal that the coherence scores produced by our system are positively correlated with the ground-truth. An additional human evaluation on a subset of synthetic dataset also proves the goodness of our measure, showing a strong agreement between coherence based ranking of paragraphs done by humans and our system. Our framework is quite simple, unsupervised and highly modular, making it possible to interpret, evaluate as well as plug-and-play individual components. Moreover, our framework offers the flexibility to trivially extend it to other languages with a Wordnet. Our future agenda includes introducing additional relevant components of coherence measurement into our formulation. We would also like to apply our metric to optimize NLG systems for abstractive summarization and descriptive QA.

References

  • Alikaniotis et al. (2016) Dimitrios Alikaniotis, Helen Yannakoudakis, and Marek Rei. 2016. Automatic text scoring using neural networks. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 715–725, Berlin, Germany. Association for Computational Linguistics.
  • Attali and Burstein (2004) Yigal Attali and Jill Burstein. 2004. Automated essay scoring with e-rater® v. 2.0. ETS Research Report Series, 2004(2).
  • Bamberg (1983) Betty Bamberg. 1983. What makes a text coherent? College Composition and Communication, 34(4):417–429.
  • Barzilay and Lapata (2008) Regina Barzilay and Mirella Lapata. 2008. Modeling local coherence: An entity-based approach. Computational Linguistics, 34(1):1–34.
  • Belz and Kilgarriff (2006) Anja Belz and Adam Kilgarriff. 2006. Shared-task evaluations in hlt: Lessons for nlg. In Proceedings of the Fourth International Natural Language Generation Conference, pages 133–135. Association for Computational Linguistics.
  • Blei et al. (2003) David M Blei, Andrew Y Ng, and Michael I Jordan. 2003. Latent dirichlet allocation. Journal of machine Learning research, 3(Jan):993–1022.
  • Bordes et al. (2013) Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. In Advances in neural information processing systems, pages 2787–2795.
  • Chang et al. (2009) Jonathan Chang, Sean Gerrish, Chong Wang, Jordan L Boyd-Graber, and David M Blei. 2009. Reading tea leaves: How humans interpret topic models. In Advances in neural information processing systems, pages 288–296.
  • Crossley and McNamara (2011) Scott Crossley and Danielle McNamara. 2011. Text coherence and judgments of essay quality: Models of quality and coherence. In Proceedings of the Cognitive Science Society, volume 33.
  • Fellbaum (1998) Christiane Fellbaum. 1998. WordNet. Wiley Online Library.
  • Foltz et al. (1998) Peter W Foltz, Walter Kintsch, and Thomas K Landauer. 1998. The measurement of textual coherence with latent semantic analysis. Discourse processes, 25(2-3):285–307.
  • Foundation (2012) Hewlett Foundation. 2012. The hewlett foundation essay grading data.
  • Higgins et al. (2004) Derrick Higgins, Jill Burstein, Daniel Marcu, and Claudia Gentile. 2004. Evaluating multiple aspects of coherence in student essays. In Proceedings of the Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics: HLT-NAACL 2004.
  • Le and Mikolov (2014) Quoc Le and Tomas Mikolov. 2014. Distributed representations of sentences and documents. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pages 1188–1196.
  • Li and Hovy (2014) Jiwei Li and Eduard Hovy. 2014. A model of coherence based on distributed sentence representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2039–2048.
  • Li and Jurafsky (2017) Jiwei Li and Dan Jurafsky. 2017. Neural net models of open-domain discourse coherence. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 198–209.
  • Logeswaran et al. (2016) Lajanugen Logeswaran, Honglak Lee, and Dragomir Radev. 2016. Sentence ordering using recurrent neural networks. arXiv preprint arXiv:1611.02654.
  • Louis and Nenkova (2012) Annie Louis and Ani Nenkova. 2012. A coherence model based on syntactic patterns. In Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 1157–1168. Association for Computational Linguistics.
  • catholique de Louvain (2017) Université catholique de Louvain. 2017. Locness.
  • McCulley (1985) George A McCulley. 1985. Writing quality, coherence, and cohesion. Research in the Teaching of English, pages 269–282.
  • Miltsakaki and Kukich (2004) Eleni Miltsakaki and Karen Kukich. 2004. Evaluation of text coherence for electronic essay scoring systems. Natural Language Engineering, 10(1):25–55.
  • Nenkova et al. (2007) Ani Nenkova, Rebecca Passonneau, and Kathleen McKeown. 2007. The pyramid method: Incorporating human content selection variation in summarization evaluation. ACM Transactions on Speech and Language Processing (TSLP), 4(2):4.
  • Pennington et al. (2014) Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532–1543.
  • Persing et al. (2010) Isaac Persing, Alan Davis, and Vincent Ng. 2010. Modeling organization in student essays. In Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, pages 229–239. Association for Computational Linguistics.
  • Ryan (1984) Michael P Ryan. 1984. Conceptions of prose coherence: Individual differences in epistemological standards. Journal of Educational psychology, 76(6):1226.
  • See et al. (2017) Abigail See, Peter J. Liu, and Christopher D. Manning. 2017. Get to the point: Summarization with pointer-generator networks. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1073–1083, Vancouver, Canada. Association for Computational Linguistics.
  • Somasundaran et al. (2014) Swapna Somasundaran, Jill Burstein, and Martin Chodorow. 2014. Lexical chaining for measuring discourse coherence quality in test-taker essays. In COLING, pages 950–961.
  • Taghipour and Ng (2016) Kaveh Taghipour and Hwee Tou Ng. 2016. A neural approach to automated essay scoring. In EMNLP, pages 1882–1891.