UnibucKernel: A kernel-based learning method for complex word identification
Andrei M. Butnaru, Radu Tudor Ionescu

TL;DR
This paper introduces UnibucKernel, a kernel-based learning method combining low-level and high-level features for complex word identification, achieving competitive results in shared tasks.
Contribution
The paper presents a novel kernel-based approach that integrates multiple feature types for complex word identification, improving upon previous methods.
Findings
Achieved third place in the 2018 CWI Shared Task on Wikipedia data.
Reported improved results beyond the competition.
Demonstrated effectiveness of combining semantic and character features.
Abstract
In this paper, we present a kernel-based learning approach for the 2018 Complex Word Identification (CWI) Shared Task. Our approach is based on combining multiple low-level features, such as character n-grams, with high-level semantic features that are either automatically learned using word embeddings or extracted from a lexical knowledge base, namely WordNet. After feature extraction, we employ a kernel method for the learning phase. The feature matrix is first transformed into a normalized kernel matrix. For the binary classification task (simple versus complex), we employ Support Vector Machines. For the regression task, in which we have to predict the complexity level of a word (a word is more complex if it is labeled as complex by more annotators), we employ v-Support Vector Regression. We applied our approach only on the three English data sets containing documents from…
Click any figure to enlarge with its caption.
Figure 1
Figure 2| Data Set | Train | Validation | Test |
|---|---|---|---|
| English News | |||
| English WikiNews | |||
| English Wikipedia |
| Data Set | Kernel | Accuracy | -score | Competition Rank | Post-Competition Rank | |
|---|---|---|---|---|---|---|
| English News | linear | |||||
| English News | RBF | |||||
| English WikiNews | linear | |||||
| English WikiNews | RBF | |||||
| English Wikipedia | linear | |||||
| English Wikipedia | RBF | |||||
| Data Set | Kernel | Mean Absolute Error | Post-Competition Rank |
|---|---|---|---|
| English News | linear | ||
| English News | RBF | ||
| English WikiNews | linear | ||
| English WikiNews | RBF | ||
| English Wikipedia | linear | ||
| English Wikipedia | RBF |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
UnibucKernel: A kernel-based learning method for complex word identification
Andrei M. Butnaru
Radu Tudor Ionescu
University of Bucharest
Department of Computer Science
14 Academiei, Bucharest, Romania
Abstract
In this paper, we present a kernel-based learning approach for the 2018 Complex Word Identification (CWI) Shared Task. Our approach is based on combining multiple low-level features, such as character n-grams, with high-level semantic features that are either automatically learned using word embeddings or extracted from a lexical knowledge base, namely WordNet. After feature extraction, we employ a kernel method for the learning phase. The feature matrix is first transformed into a normalized kernel matrix. For the binary classification task (simple versus complex), we employ Support Vector Machines. For the regression task, in which we have to predict the complexity level of a word (a word is more complex if it is labeled as complex by more annotators), we employ -Support Vector Regression. We applied our approach only on the three English data sets containing documents from Wikipedia, WikiNews and News domains. Our best result during the competition was the third place on the English Wikipedia data set. However, in this paper, we also report better post-competition results.
1 Introduction
A key role in reading comprehension by non-native speakers is played by lexical complexity. To date, researchers in the Natural Language Processing (NLP) community have developed several systems to simply texts for non-native speakers Petersen and Ostendorf (2007) as well as native speakers with reading disabilities Rello et al. (2013) or low literacy levels Specia (2010). The first task that needs to be addressed by text simplification methods is to identify which words are likely to be considered complex. The complex word identification (CWI) task raised a lot of attention in the NLP community, as it has been addressed as a stand-alone task by some researchers Davoodi et al. (2017). More recently, researchers even organized shared tasks on CWI Paetzold and Specia (2016a); Yimam et al. (2018). The goal of the 2018 CWI Shared Task Yimam et al. (2018) is to predict which words can be difficult for a non-native speaker, based on annotations collected from a mixture of native and non-native speakers. Although the task features a multilingual data set, we participated only in the English monolingual track, due to time constraints. In this paper, we describe the approach of our team, UnibucKernel, for the English monolingual track of the 2018 CWI Shared Task Yimam et al. (2018). We present results for both classification (predicting if a word is simple or complex) and regression (predicting the complexity level of a word) tasks. Our approach is based on a standard machine learning pipeline that consists of two phases: feature extraction and classification/regression. In the first phase, we combine multiple low-level features, such as character n-grams, with high-level semantic features that are either automatically learned using word embeddings Mikolov et al. (2013) or extracted from a lexical knowledge base, namely WordNet Miller (1995); Fellbaum (1998). After feature extraction, we employ a kernel method for the learning phase. The feature matrix is first transformed into a normalized kernel matrix, using either the inner product between pairs of samples (computed by the linear kernel function) or an exponential transformation of the inner product (computed by the Gaussian kernel function). For the binary classification task, we employ Support Vector Machines (SVM) Cortes and Vapnik (1995), while for the regression task, we employ -Support Vector Regression (SVR) Chang and Lin (2002). We applied our approach only on the three English monolingual data sets containing documents from Wikipedia, WikiNews and News domains. Our best result during the competition was the third place on the English Wikipedia data set. Nonetheless, in this paper, we also report better post-competition results.
The rest of this paper is organized as follows. Related work on complex word identification is presented in Section 2. Our method is presented in Section 3. Our experiments and results are presented in Section 4. Finally, we draw our conclusions and discuss future work in Section 5.
2 Related Work
Although text simplification methods have been proposed since more than a couple of years ago Petersen and Ostendorf (2007), complex word identification has not been studied as a stand-alone task until recently Shardlow (2013), with the first shared task on CWI organized in 2016 Paetzold and Specia (2016a). With some exceptions Davoodi et al. (2017), most of the related works are actually the system description papers of the 2016 CWI Shared Task participants. Among the top participants, the most popular classifier is Random Forest Brooke et al. (2016); Mukherjee et al. (2016); Ronzano et al. (2016); Zampieri et al. (2016), while the most common type of features are lexical and semantic features Brooke et al. (2016); Mukherjee et al. (2016); Paetzold and Specia (2016b); Quijada and Medero (2016); Ronzano et al. (2016). Some works used Naive Bayes Mukherjee et al. (2016) or SVM Zampieri et al. (2016) along with the Random Forest classifier, while others used different classification methods altogether, e.g. Decision Trees Quijada and Medero (2016), Nearest Centroid Palakurthi and Mamidi (2016) or Maximum Entropy Konkol (2016). Along with the lexical and semantic features, many have used morphological Mukherjee et al. (2016); Paetzold and Specia (2016b); Palakurthi and Mamidi (2016); Ronzano et al. (2016) and syntactic Mukherjee et al. (2016); Quijada and Medero (2016); Ronzano et al. (2016) features.
Paetzold and Specia (2016b) proposed two ensemble methods by applying either hard voting or soft voting on machine learning classifiers trained on morphological, lexical, and semantic features. Their systems ranked on the first and the second places in the 2016 CWI Shared Task. Ronzano et al. (2016) employed Random Forests based on lexical, morphological, semantic and syntactic features, ranking on the third place in the 2016 CWI Shared Task. Konkol (2016) trained Maximum Entropy classifiers on word occurrence counts in Wikipedia documents, ranking on the fourth place, after Ronzano et al. (2016). Wróbel (2016) ranked on fifth place using a simple rule-based approach that considers one feature, namely the number of documents from Simple English Wikipedia in which the target word occurs. Mukherjee et al. (2016) employed the Random Forest and the Naive Bayes classifiers based on semantic, lexicon-based, morphological and syntactic features. Their Naive Bayes system ranked on the sixth place in the 2016 CWI Shared Task. After the 2016 CWI Shared Task, Zampieri et al. (2017) combined the submitted systems using an ensemble method based on plurality voting. They also proposed an oracle ensemble that provides a theoretical upper bound of the performance. The oracle selects the correct label for a given word if at least one of the participants predicted the correct label. The results reported by Zampieri et al. (2017) indicate that there is a significant performance gap to be filled by automatic systems.
Compared to the related works, we propose the use of some novel semantic features. One set of features is inspired by the work of Butnaru et al. (2017) in word sense disambiguation, while another set of features is inspired by the spatial pyramid approach Lazebnik et al. (2006), commonly used in computer vision to improve the performance of the bag-of-visual-words model Ionescu et al. (2013); Ionescu and Popescu (2015).
3 Method
The method that we employ for identifying complex words is based on a series of features extracted from the word itself as well as the context in which the word is used. Upon having the features extracted, we compute a kernel matrix using one of two standard kernel functions, namely the linear kernel or the Gaussian kernel. We then apply either the SVM classifier to identify if a word is complex or not, or the -SVR predictor to determine the complexity level of a word.
3.1 Feature Extraction
As stated before, we extract features from both the target word and the context in which the word appears. Form the target word, we quantify a series of features based on its characters. More specifically, we count the number of characters, vowels and constants, as well as the percentage of vowels and constants from the total number of characters in the word. Along with these features, we also quantify the number of consecutively repeating characters, e.g. double consonants. For example, in the word “innovation”, we can find the double consonant “nn”. We also extract n-grams of 1, 2, 3 and 4 characters, based on the intuition that some complex words tend to be formed of a different set of n-grams than simple words. For instance, the complex word “cognizant” is formed of rare 3-grams, e.g. “ogn” or “niz”, compared to its commonly-used synonym “aware”, which contains 3-grams that we can easily find in other simple words, e.g. “war” or “are”.
Other features extracted from the target word are the part-of-speech and the number of senses listed in the WordNet knowledge base Miller (1995); Fellbaum (1998), for the respective word. If the complex word is actually composed of multiple words, i.e. it is a multi-word expression, we generate the features for each word in the target and sum the corresponding values to obtain the features for the target multi-word expression.
In the NLP community, word embeddings Bengio et al. (2003); Karlen et al. (2008) are used in many tasks, and became more popular due to the word2vec Mikolov et al. (2013) framework. Word embeddings methods have the capacity to build a vectorial representation of words by assigning a low-dimensional real-valued vector to each word, with the property that semantically related words are projected in the same vicinity of the generated space. Word embeddings are in fact a learned representation of words where each dimension represents a hidden feature of the word Turian et al. (2010). We devise additional features for the CWI task with the help of pre-trained word embeddings provided by word2vec Mikolov et al. (2013). The first set of features based on word embeddings takes into account the word’s context. More precisely, we record the minimum, the maximum and the mean value of the cosine similarity between the target word and each other word from the sentence in which the target word occurs. The intuition for using this set of features is that a word can be complex if it is semantically different from the other context words, and this difference should be reflected in the embedding space. Having the same goal in mind, namely to identify if the target word is an outlier with respect to the other words in the sentence, we employ a simple approach to compute sense embeddings using the semantic relations between WordNet synsets. We note that this approach was previously used for unsupervised word sense disambiguation in Butnaru et al. (2017). To compute the sense embedding for a word sense, we first build a disambiguation vocabulary or sense bag. Based on WordNet, we form the sense bag for a given synset by collecting the words found in the gloss of the synset (examples included) as well as the words found in the glosses of semantically related synsets. The semantic relations are chosen based on the part-of-speech of the target word, as described in Butnaru et al. (2017). To derive the sense embedding, we embed the collected words in an embedding space and compute the median of the resulted word vectors. For each sense embedding of the target word, we compute the cosine similarity with each and every sense embedding computed for each other word in the sentence, in order to find the minimum, the maximum and the mean value.
Using pre-trained word embeddings provided by the GloVe framework Pennington et al. (2014), we further managed to define a set of useful features based on the location of the target word in the embedding space. In this last set of features, we first process the word vectors in order to reduce the dimensionality of the vector space from 300 components to only 2 components, by applying Principal Component Analysis (PCA) Hotelling (1933). Figure 1 illustrates a couple of semantically related words, that are projected in the same area of the 2-dimensional (2D) embedding space generated by PCA. In the newly generated space, we apply a grid to divide the space into multiple and equal regions, named bins. This process is inspired by the spatial pyramids Lazebnik et al. (2006) used in computer vision to recover spatial information in the bag-of-visual-words Ionescu et al. (2013); Ionescu and Popescu (2015). After we determine the bins, we index the bins and encode the index of the bin that contains the target word as a one-hot vector. Various grid sizes could provide a more specific or a more general location of a word in the generated space. For this reason, we use multiple grid sizes starting from coarse divisions such as , , and , to fine divisions such as and . In Figure 2, we show an example with a grid that divides the space illustrated in Figure1 into bins, and the word “valedictorian” is found in bin number . The corresponding one-hot vector, containing a single non-zero value at index , is also illustrated in Figure 2. The thought process for using this one-hot representation is that complex words tend to reside alone in the semantic space generated by the word embedding framework.
We would like to point out that each and every type of features described in this section has a positive influence on the overall accuracy of our framework.
3.2 Kernel Representation
Kernel-based learning algorithms work by embedding the data into a Hilbert space and by searching for linear relations in that space, using a learning algorithm. The embedding is performed implicitly, that is by specifying the inner product between each pair of points rather than by giving their coordinates explicitly. The power of kernel methods Ionescu and Popescu (2016); Shawe-Taylor and Cristianini (2004) lies in the implicit use of a Reproducing Kernel Hilbert Space induced by a positive semi-definite kernel function. Despite the fact that the mathematical meaning of a kernel is the inner product in a Hilbert space, another interpretation of a kernel is the pairwise similarity between samples.
The kernel function offers to the kernel methods the power to naturally handle input data that is not in the form of numerical vectors, such as strings, images, or even video and audio files. The kernel function captures the intuitive notion of similarity between objects in a specific domain and can be any function defined on the respective domain that is symmetric and positive definite. In our approach, we experiment with two commonly-used kernel functions, namely the linear kernel and the Radial Basis Function (RBF) kernel. The linear kernel is easily obtained by computing the inner product of two feature vectors and :
[TABLE]
where denotes the inner product. In a similar manner, the RBF kernel (also known as the Gaussian kernel) between two feature vectors and can be computed as follows:
[TABLE]
In the experiments, we replace with a constant value , and tune the parameter instead of .
A technique that improves machine learning performance for many applications is data normalization. Because the range of raw data can have significant variation, the objective functions optimized by the classifiers will not work properly without normalization. The normalization step gives to each feature an approximately equal contribution to the similarity between two samples. The normalization of a pairwise kernel matrix containing similarities between samples is obtained by dividing each component to the square root of the product of the two corresponding diagonal elements:
[TABLE]
3.3 Classification and Regression
In the case of binary classification problems, kernel-based learning algorithms look for a discriminant function, a function that assigns to examples that belong to one class and to examples that belong to the other class. This function will be a linear function in the Hilbert space, which means it will have the form:
[TABLE]
for some weight vector and some bias term . The kernel can be employed whenever the weight vector can be expressed as a linear combination of the training points, , implying that can be expressed as follows:
[TABLE]
where is the number of training samples and is a kernel function.
Various kernel methods differ in the way they find the vector (or equivalently the dual vector ). Support Vector Machines Cortes and Vapnik (1995) try to find the vector that defines the hyperplane that maximally separates the images (outcomes of the embedding map) in the Hilbert space of the training examples belonging to the two classes. Mathematically, the SVM classifier chooses the weights and the bias term that satisfy the following optimization criterion:
[TABLE]
where is the label (/) of the training example , is a regularization parameter and . We use the SVM classifier for the binary classification of words into simple versus complex classes. On the other hand, we employ -Support Vector Regression (-SVR) in order to predict the complexity level of a word (a word is more complex if it is labeled as complex by more annotators). The -Support Vector Machines Chang and Lin (2002) can handle both classification and regression. The model introduces a new parameter , that can be used to control the amount of support vectors in the resulting model. The parameter is introduced directly into the optimization problem formulation and it is estimated automatically during training.
4 Experiments
4.1 Data Sets
The data sets used in the English monolingual track of the 2018 CWI Shared Task Yimam et al. (2018) are described in Yimam et al. (2017). Each data set covers one of three distinct genres (News, WikiNews and Wikipedia), and the samples are annotated by both native and non-native English speakers. Table 1 presents the number of samples in the training, the validation (development) and the test sets, for each of the three genres.
4.2 Classification Results
Parameter Tuning. For the classification task, we used the SVM implementation provided by LibSVM Chang and Lin (2011). The parameters that require tuning are the parameter of the RBF kernel and the regularization parameter of the SVM. We tune these parameters using grid search on each of the three validation sets included in the data sets prepared for the English monolingual track. For the parameter , we select values from the set . For the regularization parameter we choose values from the set . Interestingly, we obtain the best results with the same parameter choices on all three validation sets. The optimal parameter choices are and . We use these parameters in all our subsequent classification experiments.
Results. Our results for the classification task on the three data sets included in the English monolingual track are presented in Table 2. We would like to note that, before the competition ended, we observed a bug in the code that was used in most of our submissions. In the feature extraction stage, the code produced NaN (not a number) values for some features. In order to make the submissions in time, we had to eliminate the samples containing NaN values in the feature vector. Consequently, most of our results during the competition were lower than expected. However, we managed to fix this bug and recompute the features in time to resubmit new results, but only for the RBF kernel on the English Wikipedia data set. The rest of the results presented in Table 2 are produced after the bug fixing and after the submission deadline. Nevertheless, for a fair comparison with the other systems, we include our -scores and rankings during the competition as well as the post-competition -scores and rankings.
The results reported in Table 2 indicate that the RBF kernel is more suitable for the CWI task than the linear kernel. Our best -score on the English News data set is , which is nearly lower than the top scoring system, which attained during the competition. On the English WikiNews data set, our best -score () is once again about lower than the top scoring system, which obtained during the competition. On the English Wikipedia data set, our best -score is . With this score, we ranked as the third team on the English Wikipedia data set. Two systems performed better on English Wikipedia, one that reached the top -score of and one that reached the second-best scored of . Overall, our system performed quite well, but it can surely benefit from the addition of more features.
4.3 Regression Results
Although we did not submit results for the regression task, we present post-competition regression results in this section.
Parameter Tuning. For the regression task, the parameters that require tuning are the parameter of the RBF kernel and the -SVR parameters and . As in the classification task, we tune these parameters using grid search on the validation sets provided with the three data sets included in the English monolingual track. For the parameter , we select values from the set . For the regularization parameter we choose values from the set . The preliminary results on the validation sets indicate the best parameter choices for each data set. For the English News data set, we obtained the best validation results using and . For the English WikiNews and English Wikipedia data sets, we obtained the best validation results using and . For the parameter , we leave the default value of provided by LibSVM Chang and Lin (2011).
Results. The regression results on the three data sets included in the English monolingual track are presented in Table 3. The systems are evaluated in terms of the mean absolute error (MAE). As in the classification task, we can observe that the RBF kernel provides generally better results than the linear kernel. On two data sets, English News and English WikiNews, we obtain better MAE values than all the systems that participated in the competition. Indeed, the best MAE on English News reported during the competition is , and we obtain a smaller MAE () using the RBF kernel. Similarly, with a MAE of for the RBF kernel, we surpass the top system on English WikiNews, which attained a MAE of during the competition. On the third data set, English Wikipedia, we attain the second-best score (), after the top system, that obtained a MAE of during the competition. Compared to the classification task, we report better post-competition rankings in the regression task. This could be explained by two factors. First of all, the number of participants in the regression task was considerably lower. Second of all, we believe that -SVR is a very good regressor which is not commonly used, surpassing alternative regression methods in other tasks as well, e.g. image difficulty prediction Ionescu et al. (2016).
5 Conclusion
In this paper, we described the system developed by our team, UnibucKernel, for the 2018 CWI Shared Task. The system is based on extracting lexical, syntactic and semantic features and on training a kernel method for the prediction (classification and regression) tasks. We participated only in the English monolingual track. Our best result during the competition was the third place on the English Wikipedia data set. In this paper, we also reported better post-competition results.
In this work, we treated each English data set independently, due to the memory constraints of our machine. Nevertheless, we believe that joining the training sets provided in the English News, the English WikiNews and the English Wikipedia data sets into a single and larger training set can provide better performance, as the model’s generalization capacity could improve by learning from an extended set of samples. We leave this idea for future work. Another direction that could be explored in future work is the addition of more features, as our current feature set is definitely far from being exhaustive.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Bengio et al. (2003) Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Jauvin. 2003. A neural probabilistic language model. Journal of Machine Learning Research , 3(Feb):1137–1155.
- 2Brooke et al. (2016) Julian Brooke, Alexandra Uitdenbogerd, and Timothy Baldwin. 2016. Melbourne at Sem Eval 2016 Task 11: Classifying Type-level Word Complexity using Random Forests with Corpus and Word List Features. In Proceedings of Sem Eval , pages 975–981, San Diego, California. Association for Computational Linguistics.
- 3Butnaru et al. (2017) Andrei M. Butnaru, Radu Tudor Ionescu, and Florentina Hristea. 2017. Shotgun WSD: An unsupervised algorithm for global word sense disambiguation inspired by DNA sequencing. In Proceedings of EACL , pages 916–926.
- 4Chang and Lin (2002) Chih-Chung Chang and Chih-Jen Lin. 2002. Training ν 𝜈 \nu -Support Vector Regression: Theory and Algorithms. Neural Computation , 14:1959–1977.
- 5Chang and Lin (2011) Chih-Chung Chang and Chih-Jen Lin. 2011. Lib SVM: A Library for Support Vector Machines. ACM Transactions on Intelligent Systems and Technology , 2:27:1–27:27. Software available at http://www.csie.ntu.edu.tw/~cjlin/libsvm .
- 6Cortes and Vapnik (1995) Corinna Cortes and Vladimir Vapnik. 1995. Support-Vector Networks. Machine Learning , 20(3):273–297.
- 7Davoodi et al. (2017) Elnaz Davoodi, Leila Kosseim, and Matthew Mongrain. 2017. A Context-Aware Approach for the Identification of Complex Words in Natural Language Texts. In Proceedings of ICSC , pages 97–100.
- 8Fellbaum (1998) Christiane Fellbaum, editor. 1998. Word Net: An Electronic Lexical Database . MIT Press.
