LDA-based term profiles for expert finding in a political setting
Abstract
This work has been funded by the Spanish Ministerio de Economı́a y Competitividad under projects TIN2016-77902-C3-2-P and PID2019-106758GB-C31, and the European Regional Development Fund (ERDF-FEDER).
Full text
Journal of Intelligent Information Systems manuscript No. (will be inserted by the editor) LDA-based Term Profiles for Expert Finding in a Political Setting Luis M. de Campos ·Juan M. Fern´andez-Luna ·Juan F. Huete ·Luis Redondo-Exp´osito Received: date / Accepted: date Abstract A common task in many political institutions (i.e. Parliament) is to find politicians who are experts in a particular field. In order to tackle this problem, the first step is to obtain politician profiles which include their interests, and these can be automatically learned from their speeches. As a politician may have various areas of expertise, one alternative is to use a set of subprofiles, each of which covers a different subject. In this study, we propose a novel approach for this task by using latent Dirichlet allocation (LDA) to determine the main underlying topics of each political speech, and to distribute the related terms among the different topic-based subprofiles. With this objective, we propose the use of fifteen distance and similarity measures to automatically determine the optimal number of topics discussed in a document, and to demonstrate that every measure converges into five strategies: Euclidean, Dice, Sorensen, Cosine and Overlap. Our experimental results showed that the scores of the different accuracy metrics of the proposed strategies tended to be higher than those of the baselines for expert recommendation tasks, and that the use of an appropriate number of topics has proved relevant. Keywords Expert finding, user profiles, topic selection, LDA, politics CR Subject Classification 10002951.10003317.10003347.10003350 · 10002951.10003317.10003347.10003354 1 Introduction The broad context of our work is content-based recommender systems [7] for recommending items to users based on the item’s textual description according to user requirements and preferences. When the recommended items are the best people All the authors have equally contributed to this paper. Departamento de Ciencias de la Computaci´on e Inteligencia Artificial. ETSI Inform´atica y de Telecomunicaci´on, CITIC-UGR. Universidad de Granada. Periodista Daniel Saucedo Aranda, s/n, 18014, Granada, Spain E-mail: {lci,jhg,jmfluna,luisre}@decsai.ugr.es
2 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito to perform a certain task (a task which is represented as a query to the system), we are referring to the expert finding problem [3]. In our case, the specific context where our recommender system/expert finding methods will be applied is in the political sphere, and the experts are politicians who specialize in certain areas. For example, any national or regional Member of Parliament (MP) sitting on the Agriculture Committee would be expected to have a comprehensive knowledge of the different relevant issues relating to this subject (national and European legislation, problems, initiatives, subsidies, type of crops and their geographical distribution, export-related topics, etc.). The same would happen with other MPs working on other committees such as those concerned with health, culture, the economy, education, etc. When someone needs to solve a specific problem (e.g. the high temperatures that students have to endure in classrooms towards the end of the academic year) or to find information about a certain issue (e.g. the increase in noise levels at night in a residential area due to the large number of bars), the first hurdle to overcome is to identify who to contact so that a solution can be found. A first line of action might be to use general search engines to find web pages listing politicians but this is time-consuming as the information is not centralized and comes from a variety of different sources, noise is extremely high, and considerable effort is required to obtain relevant information about the correct individuals. A second line of action might be to use a specialized system such as an expert finding system, where textual information from politicians is stored and users can access the information once they have submitted their query. In this instance, the recommender system would return a ranking of relevant MPs instead of documents, thereby enabling the user to contact the relevant MP who could help them resolve their problem. The textual information about each expert with their areas of interest and expertise is collated from a variety of different sources, for example the reports or documents they have written, or the transcriptions of their interventions in parliamentary debates from which their interests and expertise can be inferred (you are what you speak). The expert finding system would subsequently be fed by a set of textual transcriptions of each of their interventions in the parliamentary plenary or committee sessions. So that the relevant experts might be found, the areas of interest or expertise of the possible candidates to be recommended must be represented in some way by using a profile [19]. The most common form of profile associated to a candidate is a set of terms to describe their areas of interest and expertise. When a candidate has a wide range of heterogeneous interests (e.g. a politician is interested in a number of topics such as health, education, and the environment), it may not be ideal to merge them all into a single profile. The reason for this is that certain topics might be underrepresented in relation to others, and it might therefore be difficult to associate these topics with the candidate (if a politician mainly works in the areas of health and education and less so on environmental concerns, their environmental work might go almost unnoticed in their overall profile). Also for the purposes of clarity, it may be interesting to consider a profile as comprising various, more homogeneous subprofiles rather than a single monolithic profile. For this reason, our objective is to find a way of dividing a heterogeneous single profile, which comprises the terms extracted from all the documents associated with a candidate (in our case, the MP’s interventions in parliamentary debates), into a set of homogeneous subprofiles. We believe that if we are able to determine
LDA-based Term Profiles for Expert Finding in a Political Setting 3 the candidates’ areas of interest and expertise more accurately, we will be able to offer better recommendations. In this paper, we will use latent Dirichlet allocation (LDA) [6,20] to try to detect the underlying topics in the document collection. In a previous paper, we tackled the same problem but by using clustering techniques [16] instead of topic models. Our use of the LDA technique in this work is quite different from work where LDA or other topic models are combined with expert finding. As we have already mentioned, the most common way of representing documents and profiles (which can be associated to experts) is by using term vectors (bag-of-words representation). Another option is to use a topic model, e.g. LDA to change the problem representation from a representation based on term vectors to another based on topic vectors. Some approaches, therefore, work in the term space, others in the topic space, and even some in both spaces (see the related work). We use LDA to divide the documents into subdocuments which are associated with the different topics but which still remain in the term space rather than the topic space (we essentially use LDA to determine how to distribute the terms among the subprofiles). The subdocuments associated with the same topics (and with the same candidate) are then merged to form the subprofiles. As this process can generate an excessive number of subprofiles for some candidates (some of them having only a small number of terms), we have also developed a general method to reduce the number of subprofiles by selecting only the most relevant topics for each document in a principled way. The objective of this paper is therefore to determine if LDA is a good method for building expert subprofiles in the term domain in the context of political expert finding. The main contributions of this paper are: (1) we study the use of LDA to generate multiple subprofiles of terms, thematically homogeneous, for expert finding in a political setting; (2) we propose a method to divide documents into homogeneous subdocuments by distributing the appearances of each term in the document, using the matrices generated by LDA from the document collection; (3) we propose a method based on distance and similarity measures to assign to each document an optimal subset of the topics originally associated to this document by LDA; (4) we have carried out an extensive experimentation using a collection of parliamentary documents, comparing our proposals with several alternative models. This paper is organized as follows: Section 2 examines related work on expert finding and LDA; Section 3 shows how to divide a document into a set of topicbased subdocuments which will be used to create the user subprofiles; Section 4 presents the experimental settings in the real context of politician finding; Section 5 analyzes the resulting subprofiles; Section 6 discusses the performance on the expert finding task and compares with the baselines; and, finally, Section 7 outlines our conclusions and presents our future lines of research. 2 Related work The aim of expert finding methods (also referred to as expert recommendation, expert search, or expert identification) is to find experts in specific areas. A sign of the increasing interest in these methods is the existence of recent reviews on the subject [2,31,42,52,59].
4 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito Expert finding methods have many applications: assigning appropriate reviewers to papers submitted for a conference or journal [39], detecting potential answerers in community question answering (CQA) systems [46,52,51], finding collaborators for a project [2], identifying suitable experts [23] in the academic world [32,45], social media [8,54], companies, institutions and organizations [5,27] or the whole web [21]. Other potential applications of expert finding are explained in [42]. The only expert finding applications in a political domain are those by the authors of this paper [14,15]. 2.1 Basic models of expert finding The two basic expert finding approaches in terms of representing candidate experts are profile-based methods and document-based methods [4,40]. The first method is also called the query-independent approach and the second method is also known as the query-dependent approach [43]. Profile-based methods build a profile for each candidate expert by concatenating all of the relevant documents. Given a query, these “macro documents” (each of which is associated to an expert) can be ranked using document retrieval techniques. This monolithic approach is also known as the single-document author model [39]. Document-based methods keep the documents associated to an expert as separate entities and retrieve those documents which are relevant to the query. The candidates are then ranked by combining the relevance scores of the documents associated to each candidate. A specific instance of this method uses the maximum to aggregate the scores of each candidate’s documents and is known as the max-document author model [39]. Different ways of aggregating these scores are studied in [38]. Due to the fact that in our case the documents are the interventions associated to each MP, we shall classify this document-based approach as intervention-based. Although document-based methods are generally considered to be better than profile-based methods [4], certain studies reached the opposite conclusion [33]. Both monolithic and intervention-based approaches will be used as baselines in our experiments. In our political domain of interest, relationships between expert candidates (MPs in our case) are not as natural as those appearing between askers and answerers in CQA systems, or between e-mail senders and recipients in other domains. For this reason, we do not explicitly consider expert finding methods based on link analysis [25,35]. Our interest in this review of related work mainly focuses on topic models which are applied to expert finding (and LDA in particular) since our proposal is mainly based on this technique. 2.2 Expert finding using topic models Various approaches are based on probabilistic latent semantic analysis (pLSA) [44,56,57] in the context of CQA. In [56], pLSA is applied to the collection of questions, users are modeled indirectly, and each user is represented as the average of the topic distributions of the questions in which they are involved. In [44], users are modeled directly, all the questions relating to a user are grouped into a single document, and pLSA is then applied to this document collection. [57] distinguishes
LDA-based Term Profiles for Expert Finding in a Political Setting 5 between the two roles that users can play, either as an asker or an answerer. These two roles are jointly modeled using an extension of pLSA. In a document-based model, the probabilities p(q|d) of query terms given a document are normally estimated using maximum likelihood and Dirichlet smoothing. In [55], on the other hand, these probabilities p(q|d) are calculated differently using the LDA-learned topics from the document collection as bridges, p(q|d) = Pxp(q|x)p(x|d), where xare the different topics. The document-based model is essentially used in [34] in conjunction with a non-uniform prior for the candidates which is built from an LDA modification. In [36], language models and LDA are combined to predict the best answerers in CQA systems. In both cases, the probabilities of each query term given a user are computed from the user profile comprising all the answers (documents) associated to that user (monolithic profile). In the case of LDA, this computation is performed by averaging over topics, p(t|userprofile) = Pxp(t|x)p(x|userprofile), where p(t|x) is the distribution of terms given a topic, and p(x|userprofile) is the distribution of topics given the document/userprofile associated to the user, both of which are obtained with LDA. In [40], LDA is applied to the document collection (where the documents include the names of the experts). The fact that the query terms and the experts’ names appear, with a high degree of probability, associated to the same topics indicates that the candidate is an expert in the query-associated topics. LDA is used to compute the query term probabilities given the topics and the expert names probabilities given the topics, and these are combined into a formula that is able to compute the probability of a query given an expert. [62] computes a relevance degree between categories using LDA in CQA systems (whereby categories are represented as topic distributions and relevance is measured with KL divergence). This is combined with a link analysis to find experts in a given target category by considering the information from other relevant categories. [61] uses LDA on a collection of documents, a single document associated to every user in a CQA system comprising all of their questions, in order to detect similarities between the topics of the askers and answerers. This topic similarity is integrated into a topic-sensitive page rank algorithm in the network that connects askers and answerers. In [12], both traditional (static) and dynamic LDA models are considered. In both cases, the topic distributions for the documents associated to the same candidate are averaged. The topic distribution for the query is also computed in order to obtain a similarity measure between the distributions associated to the candidates and to the query. [13] considers temporal topic modeling for expert finding in scientific literature. In [39], the new Author-Persona-Topic (or APT) topic model is proposed to recommend reviewers for submitted papers. In this model, each author can adopt the role of different “personas”, and these are represented as independent distributions over hidden topics. Each persona represents different topical combinations. Another topic model is the author-topic model (ATM) [47], an extension of LDA to include authorship by considering relationships between authors, documents, topics, and words. In [46], both LDA and another topic model, the Segmented Topic Model (STM), are used in a CQA system. The Segmented Topic Model enables a user profile (comprising in this case the text of questions answered by this candidate) to be modeled as a hierarchical structure, where each question in the profile may have a different distribution over the topics. In [22], a new topic
6 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito model is proposed: the User-Question-Answer (UQA) model is an extension of LDA for discovering latent topics contained in terms, categories and users in CQA systems. Users are modeled as pseudo documents by combining all the questions and answers associated to them. In addition to the usual document/user-topic and topic-word distributions, also topic-category distributions are considered. The best performing model considered is a linear combination of the results obtained using topic models with term-based models (a document-based model using BM25). [60] proposes the Topic-level Expert Learning (TEL) model and this combines both graph-based link analysis and content-based semantic analysis for expert modeling in CQA. Topic-level Expert Learning is a generative, LDA-based model. Also in the context of community question answering, [37] proposes another combination of LDA (to measure the similarity between candidates) and link analysis. The profile for each candidate is obtained from all of their posted answers. [58] combines topic models and expertise in a probabilistic Topic Expertise Model (TEM) in CQA systems, and this also incorporates information about categories of questions as well as voting information. The CQArank model, which combines user topical interests and expertise learning using TEM with link structure, is then proposed. [30] proposes a hybrid model for expert finding in CQA which exploits much of the information available in these systems, such as question tags, votes, and the best answers. These are considered in a link analysis combined with topic analysis, thereby considering both authority and topic similarity between questions and users. In terms of the topic analysis part, the textual content of questions associated to each user is supplemented with the ten most similar words (extracted from Wikipedia using word2vec) for each tag associated to the question. Finally, an extension of LDA, tag-LDA, is used to find the topics associated to each user. In the context of CQA, [48] extends supervised LDA by considering a learning-to-rank paradigm, posing question recommendation as a pairwise ranking problem and taking into account the votes that different experts who have answered a question receive from other users. 2.3 Other models of expert finding [49] considers the top documents retrieved for the given query. Each of these documents is represented as a mixture of language models of the different experts (in addition to the global language model) because they assume that each document can be associated to several experts. The EM algorithm is then used to estimate the probabilities of query terms given an expert. In [14,15], we applied expert finding methods (without using topic models) in the political domain. Basic profile-based (monolithic) and document-based (intervention-based) approaches were used in [14], whereas [15] considered subprofiles based on the MPs’ involvement on the various parliamentary committees. In the last few years, and given the success of deep learning models [1], there is a growing interest in using some of these models for expert finding, particularly doc2vec [29] and convolutional neural networks (CNN) [28]. Most of the works are focused on CQA systems, where there are abundant data for training, as in [17,41,53]. In [50], doc2vec and CNN are both used to finding experts in financial forums. Some models of this type will be used in our experiments for comparative purposes.
LDA-based Term Profiles for Expert Finding in a Political Setting 7 3 Using LDA to obtain homogeneous subprofiles Let us assume that we have a set of potential candidates for the expert finding problem and a collection Dof documents, each of which is associated with one of the candidates. The interests and expertise of each candidate will be inferred from their associated documents. In our specific case, the candidates will be Members of Parliament (MP) and each document in the collection corresponds to an MP’s interventions in parliamentary debates. As we mentioned previously, our goal is to separate a heterogeneous monolithic profile comprising the terms that appear in every document associated to the candidate into a set of more homogeneous, thematic subprofiles. For this purpose, our first step is to apply LDA to the entire document collection in order to extract the various topics1. When we apply LDA using ktopics2to a document collection containing n documents and mdifferent terms, we essentially obtain two matrices of order m×k and k×n, where each entry represents the probabilities p(t|x) (for the probability of relevance of a term tfor topic x) and p(x|d) (for the probability of topic xbeing associated to document d). 3.1 Separating documents into homogeneous subdocuments Once applied LDA to the document collection, the second step is to separate each document din the collection into a number of subdocuments di(initially ksubdocuments) so that each subdocument dlcovers the part of ddealing with the corresponding topic xl. Therefore, for each term t∈d, we need a method to determine which subdocument must contain t. For example, in a document on the schooling of hospitalized children, LDA would probably identify two main topics: health and education. The terms relating to health (hospital, patient, etc.) should mainly be assigned to one subdocument whereas the terms relating to education (school, teaching materials, etc.) should be assigned to another. This division, however, cannot be exclusive since certain terms may match a number of different topics to a greater or lesser extent (in our example, the term children). For each term tappearing in d, we must therefore decide how many instances of tto assign to each subdocument dl. Our proposal is to distribute the number of appearances of each term tin document d, denoted as freq(t, d), among the subdocuments associated to dproportionally to the probabilities p(xl|t, d), l= 1,...,k. It is then necessary to efficiently estimate these probabilities from the results obtained by LDA. In order to do so, we will assume an independence relationship: terms and documents are conditionally independent given the topics, i.e. p(t|x, d) = p(t|x). We use this independence to obtain p(t, x|d) = p(t|x, d)p(x|d) = p(t|x)p(x|d) 1We could also apply LDA iteratively only to the documents associated to each candidate, thereby obtaining specific topics for each candidate. In this article, we prefer to explore the usefulness of global topics, although the other approach will be considered in the future. 2The number of topics being considered, k, is an input parameter of the LDA process.
8 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito and also p(t|d) = k X l=1 p(t, xl|d) = k X l=1 p(t|xl)p(xl|d) in order to obtain p(x|t, d) = p(t, x|d) p(t|d)=p(t|x)p(x|d) Pk l=1 p(t|xl)p(xl|d)(1) In this way, we have a way of computing p(x|t, d) from the LDA matrices. Once we have the topic probabilities p(x|t, d) for every term tin each document d, we distribute the instances of tamong the subdocuments of dby computing the product freq(t, d)∗p(x|t, d) and rounding up the result to the nearest unit. Because of the rounding up in this process, some instances of the term may be missed or additional instances may even be obtained, thus altering the original count freq(t, d). We detect this situation and, if necessary, we either remove the leftover instances from the subdocuments associated to the least probable topics or add the missing instances to the subdocuments associated to the most probable topics, in order to restore the original count. For example, if the probabilities p(x|t, d) (k= 6) are (0.390,0.225,0.157,0.077,0.076,0.075) and freq(t, d) = 7, after multiplying we obtain (2.730,1.575,1.099,0.539,0.532,0.525) and after rounding up we obtain (3,2,1,1,1,1) and we have two extra instances (9 instead of 7). We then remove one instance from each of the two least probable topics, thereby obtaining (3,2,1,1,0,0). If we have the same probabilities but in this case freq(t, d) = 3, we obtain (1.170,0.675,0.471,0.231,0.228,0.225) and (1,1,0,0,0,0) after multiplying and rounding up, respectively, and we have lost one instance. We then add one instance to the most probable topic, thereby obtaining (2,1,0,0,0,0). The algorithm which generates the subdocuments associated to a document d, using Equation (1) and the rounding method described before is shown in Figure 13. 3.2 Merging subdocuments to obtain homogeneous subprofiles After applying the algorithm in Figure 1 to the document collection, we separate each document dinto a set of (at most4)ksubdocuments, each of which contains those terms of dthat are more related to a given topic. The third step is then to use these subdocuments to build the candidates’ subprofiles. Let Dibe the subset of the nidocuments (not subdocuments) in the original collection Dwhich are associated to candidate i,Di={di1,...,dini}. Each document dij ∈ Dihas been separated into (at most k) subdocuments dij1,...,dijk (in such a way that dij is the union of all these subdocuments, dij =∪k l=1dijl), where each dijl is associated to the topic xl. The subprofile of candidate iwhich is associated to topic xl,S(i, l), is then built as S(i, l) = ∪ni j=1dijl (2) 3Although other different ways of restoring the original frequency counts are possible we believe that, for practical purposes, the possible differences for the whole process are not important. 4If, for example, the probability p(x|d) of a topic given document dis zero, then the subdocument associated to this topic will be empty.
LDA-based Term Profiles for Expert Finding in a Political Setting 9 compute p(x|t,d) for each topic x, each document d and each term t in d for each document d { for each term t in d { sr=0 for each topic x { s[x]=freq(t,d)*p(x|t,d) r[x]=round(s[x]) sr+=r[x] } if (sr<freq(t,d)) add 1 to r[x] for the freq(t,d)-sr topics x having greater values of s[x] else if (sr>freq(t,d)) substract 1 from r[x] for the sr-freq(t,d) topics x having smaller values of s[x] but having r[x]>0 for each topic x add r[x] instances of term t to the subdocument of d associated to topic x } } Fig. 1 Algorithm to generate subdocuments from the probabilities p(x|t, d) In other words, we concatenate all the terms of the subdocuments corresponding to topic xlassociated to all the documents for candidate i. It is apparent that this process tends to generate a relatively high number of subprofiles for each candidate, although this number may be smaller than k (this would be the case if, for example, p(x|d) were zero for all the documents associated to a candidate for one or several topics). It should be noted that as soon as a non-empty subdocument for a topic xlhas been generated from a document associated to candidate i, then this candidate will have a subprofile for topic xl. Some of these subprofiles might be fairly unimportant with only a small number of terms, and these could be problematic when they are used as indexed documents by an information retrieval system. In the following section, we therefore examine various methods to reduce the number of subprofiles by reducing the number of topics associated to each document. 3.3 Selecting the optimal number of subdocuments: distribution strategies The number of topics, k, considered may be relatively large depending on the situation5. Although we do not expect a single document to deal with all these topics, if the probability p(x|d)>0 then, strictly speaking, document dwill be to some extent about topic x. Positive but small probabilities can cause the document dto be separated into many subdocuments, some of which with only a small number of terms associated to them and not particularly informative. For this reason, we propose that a subset of the most probable topics be selected in order to obtain a better division of dinto subdocuments. The problem can be formalized in the following way: given a probability distribution over the ktopics, p= (p1, p2,...,pk), with p1≥p2≥. . . ≥pk, we want 5For example, in the experiments conducted later in this paper, we use k= 24,70,300.
16 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito 3.4 Building the optimal number of subdocuments The algorithm for generating the subdocuments, displayed in Figure 1, must be slightly modified when we apply some of the methods developed in the previous section in order to select a subset of topics. It is important to remember that this selection is based on a probability distribution over the topics. In our context, however, we can use two different distributions, namely p(x|d) (the distribution of topics per document generated by LDA) and p(x|t, d) (the distribution of topics per document and term computed in Equation (1)), i.e. selecting topics either at the document level or at the document and term level. Since we think that it is preferable to deal with topics at the document level, we will use this option in this paper10. If we use the distributions p(x|d) to select the optimal number of topics and subdocuments, it is only therefore necessary to replace the original probability p(x|t, d) in Equation (1) by po(x|t, d): po(x|t, d) = p(t|x)pn(x|d) Pk l=1 p(t|xl)pn(xl|d)(6) where pn(x|d) is defined as pn(xl|d) = (p(xl|d) Pid j=1 p(xj|d)l= 1,...,id 0l=id+ 1,...,k (7) where idrepresents the number of the most probable topics selected by the selection method being considered, beginning with the probabilities p(x|d). In this process, we are simply recomputing the probabilities in Equation (1) by using a normalized version, pn(x|d), of p(x|d) and only considering the selected topics. In this case, we will assume that a document only deals with a small number of topics, and the instances of terms that would originally be assigned to other topics and subsequently eliminated are reassigned to the remaining topics. Each document d is only associated to its idmost probable topics (according to p(x|d)) and each subdocument is associated to exactly one of these topics. If we combine Equations (6) and (7), we can write po(xl|t, d) as follows: po(xl|t, d) = (p(t|xl)p(xl|d) Pid j=1 p(t|xj)p(xj|d)l= 1,...,id 0l=id+ 1,...,k (8) By proceeding in this way, the subdocuments associated to the selected topics include not only their corresponding terms but also the terms that would be associated to the discarded topics. A different option might be to exclude from the subdocuments the instances of terms associated to discarded topics. In this case, the original document would not be equal to the union of its subdocuments as some terms (or instances of terms) are lost. Previous experiments with this 10 We did in fact conduct experiments with the other option, working at the document and term level, and obtained worse results. The reason for this is probably that terms which are very representative of improbable topics, i.e. those with high p(x|t, d) but low p(x|d), generate their own small subdocuments, resulting in small subprofiles.
LDA-based Term Profiles for Expert Finding in a Political Setting 17 last option led us to discard it mainly because these excluded terms provide some context for the selected subdocuments. Let us consider the following example: one of the documents contains an intervention where a politician who is a member of the housing committee is speaking about apartments which are allocated to certain social groups, for example young people, groups at risk of social exclusion, or victims of gender violence. The politician’s speech contains terms such as woman,abuse, etc. and these terms would correspond to a topic relating to “Gender Equality”. This intervention could therefore be divided into at least two topics: “Housing” and “Gender Equality”. However, the reference to gender violence is marginal since the main topic of the intervention is housing. After using a method to reduce the number of topics associated to a given document, we would only keep the dominant topic “Housing”, and therefore the terms woman,abuse, etc. would remain associated to this topic. As this politician is a member of the housing committee, then their subprofile is likely to contain many housing-related terms from their interventions that deal primarily with “Housing” and relatively few marginal terms (such as woman). Consequently, if a user submits a query about gender violence, it is reasonable that this politician will not be very relevant (compared with other politicians who deal more specifically with this topic), whereas they might well be erroneously considered more relevant if these words were assigned to a specific, smaller subprofile on “Gender Equality”. This illustrates the importance of selecting only the most important topics for each document. However, if the query were more specific, e.g. asking about social housing for victims of gender-based violence, then this politician would be more relevant and this would be detected by the system, since both things are combined in the politician’s subprofile. In this case, any term which is not specific to a topic but which is included in the corresponding subprofile provides a context so that the other terms can be better understood. If we discard these terms, the system would not be able to highlight the relevance of this politician. In other words, the terms added to a subprofile which are not specific to the corresponding topic probably do not negatively affect system behavior but they can improve it. 3.5 Using the subprofiles Once we have obtained the final subprofiles associated to each candidate (using LDA and the procedures described in the previous subsections), we are going to explain how these subprofiles will be used to recommend the most appropriate candidates for a given query. Each subprofile S(i, l) of a candidate i, associated to a topic xl, is composed of all the terms assigned to the subdocuments of icorresponding to that topic, as stated in Equation (2). Then each of the obtained subprofiles can be viewed as a document (bag of words) which represents a particular snapshot of the user’s interests. All these documents (topic-based subprofiles) are then indexed to feed an Information Retrieval (IR) system, that will try to return the most relevant documents given a query submitted to the system. However, a ranking of documents (each being associated to both a candidate and a topic) is not what we require, we need a ranking of candidates. For that reason we need to include a fusion step in or-
18 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito der to transform the ranking of documents into the final ranking of candidates. In other words, we also need a method that aggregates the scores generated by the IR system for all the different documents appearing in the ranking which are associated to the same candidate into a single value, which will be the final score of this candidate. Different fusion strategies can be considered [38]. Some of them use a pure score-based approach, where only the scores of the retrieved documents are used to generate the final ranking. Other strategies use a pure rank-based approach, where the scores are not considered and only the positions of the documents in the original ranking are used. Our proposal in this paper is to use a hybrid method called CombLgDCS [15]. This method aggregates the scores of all the documents associated to the same candidate while logarithmically devaluing them by taking into account their positions in the ranking in accordance with the following expression: score(i, q) = X l sv(i, l) log2(rank(i, l) + 1),(9) where sv(i, l) denotes the original score value obtained by the IR system for the document associated to candidate iand topic xlregarding a query q, and rank(i, l) is defined as 1 in the case of xlbeing the first occurrence of a topic for the candidate iin the original ranking and, otherwise, it is the raw value of the position of the document in this ranking. 4 Experimental settings Our main objective in this paper (and therefore of this evaluation section) is to determine whether the creation of topic-based term subprofiles through the application of LDA is an appropriate method for the expert finding problem. We will therefore consider a political framework in a Parliamentary context. 4.1 Data sets and evaluation methology We will use the Records of Parliamentary Proceedings from the Andalusian Parliament (in Spanish) in its 8th Term of Office11. These records contain all the speeches in the 5258 initiatives addressed during this term, participating 312 different persons (MPs or stakeholders) in the different sessions, having a total of 12633 interventions. The initiatives will be randomly partitioned into two sets, ensuring that all the initiatives used for testing do not belong to the training set. We randomly sample the 80% of the initiatives for training purposes, i.e. to run the LDA and build the MPs’ subprofiles, and the remaining 20% is the test set, used to obtain the queries for the expert finding problem. The random sampling process is then repeated five times to obtain unbiased predictions of our model’s performance. The results reported in this paper are the average values of the runs over the five splits or partitions. Three classic IR measures are computed for every query in each test partition: the first two are 11 http://irutai2.ugr.es/ColeccionPA/legislatura8.tgz
LDA-based Term Profiles for Expert Finding in a Political Setting 19 precision@10 and Normalized Discounted Cumulative Gain (NDCG@10 [24]) and these focus on the top 10 MPs, and the third one is recall@nr and this considers the accuracy of the total number of relevant MPs for each query (nr)12. We consider NDCG to be the most appropriate measure of the three for expert finding as we are interested in retrieving the largest number of relevant MPs (as the recall measure would show) but we also wish them to be ranked highest, and this information is given by NDCG. 4.2 LDA implementation The implementation used for this task was the one presented in the topicmodels R package. One parameter is the number of topics, k, and we had considered three alternatives: –k=m∗n/t: classic method [9] where, for the problem at hand, mis the number of terms in the Andalusian Parliament collection (m= 4208), nis the number of MP interventions in the collection (n= 10025, 80% of the total number of interventions –the training partition), and tis the number of nonzero entries in the document-term matrix (t= 1,702,296). The value of kis therefore 24. –k=pn/2: another classic method [26], which only considers the number of interventions in the collection. In this case, k= 70. –k= 300: this number is higher than those commonly found in LDA-related literature [12,22,36,37,40,55,58] although it obtains the best results in [20] when compared with both lower and higher values of k. With respect to the other parameters, and as suggested in [20], the αhyperparameter is set to 50/k, where kis the number of topics that we wish to extract, and the value of βis set at 0.1. These are the by-default values for this LDA implementation. Note that the greater the αhyperparameter the greater the possibility that in an initiative (a document) more topics were discussed. The value βcontrols the distribution of the words in the topics, and is fixed for all the experiments13. Docs (Interv) Profile Extract p(x|d) p(t|x) Sa Sb Sk MPs MP1 LDA IRS p(t|x) User Query Mp2 Mp1 Mp3 Fusion <Mp1,Sa> <Mp2,Sb> <Mp1,Sb> <Mp2,Sc> <Mp2,Sd> <Mp3,Sb> Fig. 4 Global process 12 We do not use recall@10 because in most cases there are more than 10 relevant MPs for each query. It should also be noted that when @nr metrics are considered, the recall and precision values are the same. 13 We have tried other values of αand βbut the results do not differ too much from the ones presented here, so we decided to include only these by-default values in the paper.
20 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito 4.3 Training set, profile generation and retrieval system If we focus on the training set, Figure 4 shows how each input document contains the MP’s interventions in an initiative (once their stop words have been removed and stemming performed, and any remaining term that occurs in fewer than 1% of the interventions has been deleted). This set of documents has been used to feed the LDA in order to obtain p(x|d) and p(t|x). These probabilities are then used to extract the different users’ subprofiles, using Euclidean, Dice, Sorensen, Cosine and Overlap as the distribution strategies, which in turn are used to feed an IR system, as explained in Section 3. More specifically, the subprofiles will be indexed using the Lucene library14. The IR system will return the most relevant MPs subprofiles for a given query qsubmitted by a citizen. In order to match a query with these subprofiles, we use the Language Model (LM)15. Finally, the fusion/aggregation strategy which converts the ranking of MP subprofiles generated by LM in a final ranking of MPs is carried out using the CombLgDCS method described in Equation (9). 4.4 Query formulation and relevance assessments For each initiative in the test set, only one query will be obtained. This query should be a plausible description of what information the citizen requires and so we have chosen to use its title (a short description of the initiative) and its subjects16. In this way, we build a short, natural language-based query (in mean 21.6 term occurrences, without any preprocessing) that might be used in a real expert finding task, for example “Transport concessions for older people. Public Transport, Elderly”, which is discussed on the “Equality and Social Welfare Committee”. Concerning the ground truth used to evaluate our approach, we will only focus on the initiatives in the test set that belong to any of the twenty-six committee sessions (on average a total number of 612 initiatives per partition, i.e. queries, have been used). We can therefore take advantage of our knowledge about the committee in which the issue was discussed and, by extension, we can assume that any MP who is a member of this committee (on average 15.2 MPs per committee17) would be interested in it. Thus, for the above query, only the MPs in the “Equality and Social Welfare” committee are considered experts for the query. In this way, we form a wide group of relevant experts who could be useful to users. 5 Analyzing the effects of the distribution strategies The manner in which intervention terms are distributed among the different topics has a direct impact on the learned subprofiles (which will then be indexed) and 14 https://lucene.apache.org/ 15 We have also conducted experiments with other models such as BM25 and Vector Space and the results are very similar to those presented in this paper with LM. 16 Elements from the EUROVOC thesaurus (https://data.europa.eu/euodp/en/data/dataset/eurovoc) which are manually allocated by Parliament staff to each initiative. 17 Only those MPs who have participated at least 10 times in the training set (a total of 132 different MPs) have been considered.
LDA-based Term Profiles for Expert Finding in a Political Setting 21 consequently also on the output ranking of an IR system. In this section, we perform a detailed analysis that will ultimately help us understand the results obtained by our proposal for the expert finding task. 5.1 Analysis of the subprofile size In this section, we will focus on a single partition18 and examine various statistics relating to the subprofile size. For this purpose, Table 2 shows the total number of subprofiles obtained (row #SP ) for each distribution strategy (Euclidean, Dice, Sorensen, Cosine and Overlap) and each k, the average value per MP (row Avg. #SP) and the average number of terms per subprofile (Avg.SP-size). If we consider the number of topics, k, we could state that, as expected, every MP does not deal with every topic, so our approach can recognize some sort of specialization in their speeches. Furthermore, the number of subprofiles increases with ksince the LDA is able to identify more specific topics. In this case, however, the subprofiles contain fewer terms and consequently a certain degree of representativeness might be lost. In terms of the number of subprofiles generated, we can see that Overlap > Cosine >Sorensen >Dice >Euclidean. This is coherent with the way in which the terms are distributed among the topics. As the number of selected topics decreases, we therefore obtain fewer but more heterogeneous subprofiles. The extreme case is the Euclidean metric since all the terms in a document are assigned to a single topic (the most probable topic in the document). On the other hand, the Overlap strategy obtains purer subprofiles since each term occurrence might be assigned to any of the kcandidate topics. As expected, the most probable topic tends to receive more terms, but less probable topics also have a chance of receiving some terms (generally speaking, a small number of them). In order to illustrate this, we will focus on tiny subprofiles which can be defined as those with fewer than 50 term occurrences (including repetitions). One problem with this type of subprofile is that they might be worthless because of their lack of representativeness and may be viewed as spurious snapshots which are obtained when an MP marginally covers a topic. Table 2 shows both the absolute number of tiny subprofiles (#tinySP) and their relative values as a percentage (#tinySP/#SP). In this case, we can see that the number of tiny subprofiles obtained might be more troublesome as the number of topics (k) or selected topics increases, with the Overlap strategy obviously obtaining large values. 5.2 Analysis of the effect on the IR system’s output ranking Once we have analyzed various statistics relating to the number of subprofiles obtained, we shall briefly consider their effect on the IR system’s output ranking. It should be noted that in this analysis, we do not consider either the fusion process or the relevance assessments. Firstly, we will consider an illustrative example: if we analyze the output ranking obtained for the query “Transport concessions for older people”, we might 18 In the other four partitions, the numbers are very similar and tendencies are maintained.
22 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito Table 2 Analysis of the profile size per distribution technique, where m∗n/t = 24 and pn/2 = 70 kOverlap Cosine Sorensen Dice Euclidean m∗n/t #SP 2987 2147 1919 1664 1438 Avg. #SP 9.73 6.99 6.25 5.42 4.68 Avg. SP-size 1573.87 2190.0 2450.48 2822.10 3266.65 #tinySP 559 172 130 98 57 %#tinySP/#SP 18.71 8.01 6.77 5.89 3.96 pn/2 #SP 10772 5774 4340 3254 2762 Avg. #SP 35.09 18.81 14.14 10.60 9.00 Avg. SP-size 442.125 819.90 1087.50 1448.28 1704.62 #tinySP 3696 784 375 196 118 %#tinySP/#SP 31.34 13.58 8.64 6.02 4.27 300 #SP 56122 15644 7486 4182 4122 Avg. #SP 182.81 50.96 24.38 13.62 13.43 Avg. SP-size 164.8 381.75 709.52 1203.13 1219.08 #tinySP 35986 5864 1209 223 225 %#tinySP/#SP 64.12 37.48 16.15 5.33 5.45 expect various subprofiles relating to the topics “Transportation” and “Social Welfare” to appear in the top results while other topics might be less probable. We are therefore interested in studying the output distribution on topics and it is desirable that this is concentrated in only a small number of them. Although it might also be interesting to study the concentration of MPs in the output ranking, our aim in this case is to discover as many MPs as possible. In the cases of both topics and MPs, we are talking about the same concept, i.e. the diversity or variability of the obtained results and we therefore need a metric which is able to capture this idea. In probability theory, the classical metric used to measure variability is the entropy of a distribution. Our first step is therefore to use the frequencies of topics/MPs in the ranking to compute both distributions, and then to study how they relate. We would expect to obtain low entropy values over the topic distribution (the queries might only focus on a small number of topics) and at the same time, large entropy values over the MP distribution (the system could find a suitable number of MPs). The results are shown on the scatterplot in Figure 5 when considering k= pn/2 = 70 and focusing on the top twenty subprofiles S(i, l)19. More specifically, in order to relate both entropies to the distribution strategy, we use the normalized entropy20, which gives values between [0,1], so we can use the same scale irrespective of the number of topics and the number of MPs. From this graph, we can see that the result obtained by the Overlap measure, which obtains the “purest” subprofiles, outputs a ranking that focuses on a small number of topics (probably the most representative ones), obtaining also a great diversity on the set of MPs. Although this can be a good option, as we will see later (see Section 6), it is not a good choice since the documents in the top positions of the ranking are not representative of MPs’ real interests (these subprofiles have a 19 Similar results are obtained when considering the other values of k. 20 The normalized entropy of a distribution over n possible outcomes, with probabilities p1, p2, ..., pn, is defined as Hn(p) = −Pi pilogbpi logbn.
LDA-based Term Profiles for Expert Finding in a Political Setting 23 Fig. 5 Normalized entropy of the distribution of MPs versus the distribution of topics considering k=pn/2 small number of terms and as some of these match the query terms, they therefore obtain high similarity scores). On the other hand, Euclidean strategy, which results in heterogeneous subprofiles (it is not possible to distinguish between intradocument topics), has greater difficulty focusing on a small number of topics in the output ranking. This is because a query term might be located in different topic-based subprofiles, depending on the main topic discussed in the original intervention. Consequently, the output ranking exhibits greater topic variability while returning more subprofiles of the same MP in the top positions (the ranking also somehow represents the heterogeneity of the MPs’ speeches). The other strategies present a balance between both situations, but the tendency is clear: increasing subprofile purity (by extracting more topics from a single document) helps to focus on a small number of topics while increasing the MPs’ variability. 6 Performance in the expert finding task In this section, we will discuss the quality of the ranking in terms of the accuracy of the different strategies when considering MP recommendation, which is ultimately the main objective of our research. 6.1 Baselines First, we will consider four baselines, which are the classical approaches found in expert finding literature, and which have already been described in Section 2: profile-based and document-based methods, but considering both term and topic domains. –Term-based baselines: terms comprise the MPs’ profiles and subprofiles, when no LDA is applied
24 de Campos, Fern´andez-Luna, Huete, Redondo-Exp´osito –Term-based monolithic profiles (T ermMon): a single profile is built for each MP containing the entire set of terms from all of their interventions. –Term-based intervention subprofiles (TermInt): there is one subprofile per initiative in which an MP is involved. In both cases, the MPs’ profiles and subprofiles are created according to the training set, and LM is considered as the retrieval model where CombLgDCS is used, when necessary, to obtain the final score for the MPs. –Topic-based baselines: we use LDA to change the representation space from terms to topics, thereby reducing the dimensionality of the problem. A subprofile will therefore be defined through a probability distribution over the set of topics, pi(xl), l = 1,...,k. These probabilities will be obtained as follows: –Topic-based monolithic profiles (T opicMon): for each MPi, all of their ni interventions are compiled into a single document, Di, by combining the terms they contain. These compiled documents are used as the input of the LDA algorithm with ktopics and the output distribution over topics, pi(xl|Di), is the probability representation of the MP’s interests. –Topic-based intervention subprofiles (TopicInt): all of the MP’s interventions are used as the input of the LDA process by considering ktopics. Their associated probability distributions are obtained as the output and these will be used as subprofiles in the topic domain. Each MPiis therefore represented by a set of probability distributions over the ktopics, one for each intervention dij with j= 1,...,ni, i.e. {pi(xl|dij ), j = 1,...,ni}. Since the profiles and subprofiles are in the topic domain, we need to transform the queries to the same domain. For this purpose, the LDA output matrices are used to convert the set of queries into topic vectors. Cosine similarity is subsequently used to match query and profiles/subprofiles in this domain. In the case of TopicInt, the final score is obtained by applying the CombLgDCS combination method. In addition to these four baselines, we have also considered for comparison with our approach two other models, coming from the deep learning literature. They are, as we mentioned in Section 2, doc2vec [29] and CNNs [28]. –doc2vec is a technique to create document vectors based on shallow neural networks. This is a way of creating an alternative representation of a document collection, as we are doing with the LDA-based topic modelling. After the learning stage, applied to the MPs’ interventions, in order to recommend MPs given a query composed of terms, firstly this query is transformed into a query vector using the already learnt doc2vec model. Secondly, the relevance degrees of all document vectors with respect to the query vector are computed by means of the cosine similarity. The final MP ranking is obtained by using again CombLgDCS. We have used the Gensim Python implementation of doc2vec, with the default values for some parameters21. We have also selected the best values for the dimensionality of the feature vectors and the number of iterations for the problem at hand by experimenting with some values. The best results are obtained with a length of 50 and 15 iterations, respectively. –In order to use CNN, we are going to consider this problem as a classification task with as many labels as MPs and using the interventions of each MP as the 21 Distributed memory as the training algorithm, window of 5 words and a minimal frequency of 5 to consider a word for training.
LDA-based Term Profiles for Expert Finding in a Political Setting 25 Table 3 Baseline models: Term and topic-based approaches, where m∗n/t = 24 and pn/2 = 70, doc2vec, CNN and MLP NDCG@10 Precision@10 Recall@nr TermInt 0.7098 0.6732 0.4973 TermMon 0.6762 0.6514 0.4919 doc2vec 0.5112 0.5376 0.4130 CNN 0.1358 0.1338 0.1482 MLP 0.6267 0.5547 0.3357 km∗n/t pn/2 300 m∗n/t pn/2 300 m∗n/t pn/2 300 TopicInt 0.6257 0.6045 0.6009 0.5772 0.5581 0.6154 0.4616 0.4393 0.4650 TopicMon 0.4446 0.4636 0.5071 0.4434 0.4583 0.5000 0.4395 0.3840 0.3844 training set. We used an one-hot-encoding representation with the objective to allow the CNN to compress the input vectors to a dense representation and obtaining in this way our own word embedding that could represent the structure of the language used in the parliament. The structure of the CNN is composed by one convolutional layer for 1-dimension data and a kernel size of 10, its respective pooling layer, two hidden dense layers with Rectified Linear Unit (ReLU) as activation function with 5000 and 1000 nodes respectively, and then a final layer with the activation function sigmoid. Once the CNN has been trained, the obtained values from each of the test documents (queries) represent the strength of each output label, from which we obtain the ranking of MPs. This output works as Nnetworks of one output neuron playing the role of Nbinary classifiers. Finally, we have to highlight that as loss function we used the keras binary crossentropy, keras rmsprop as optimizer and a total of 100 epochs in order to train the CNN22. 6.2 Results and discussion of the performance at the expert finding task The objective of this section is to ascertain whether the application of LDA and the distribution strategies are good approaches for building MP subprofiles, and therefore useful for recommending MPs. Firstly, we will analyze the results obtained by the baselines. Table 3 presents the values for the different metrics and the best results are highlighted in bold. From this table, we can conclude that firstly, the term domain performs better than the topic domain (12% accuracy was lost in the topic domain), and secondly, intervention-based profiles obtain better results than monolithic profiles (this tallies with the results in expert finding literature [4]). Regarding deep learning models, both doc2vec and especially CNNs perform poorly. doc2vec results are only slightly better than those of topic-based monolithic profiles, and always quite worse than the other term-based and topic-based baselines. The performance obtained with CNN was not really good. The reason is probably the complexity of this problem (approached in this case as a multilabel classification task with more than 300 classes) for the amount of training data available (the number of interventions in our parliamentary collection). Deep learning with large models brings benefits when you have a lot of data and a lot of redundancy to 22 We tried with higher number of epochs but the accuracy value converges pretty fast in train and validation sets and the accuracy results on test were quite similar.