PREDICT: Persian Reverse Dictionary
Paper · 2021 · Arman Malekzadeh, Amin Gheibi and Ali Mohades
Summary
When a word is on the tip of your tongue, you may still be able to explain what it means. A reverse dictionary takes that explanation and suggests words that could express it. PREDICT investigates how to build such a tool for Persian. The authors turn entries from Amid, Dehkhoda, and Moein into examples that pair a description with its headword. Persian Wikipedia and Farsnet, a Persian lexical database, supply additional examples for training. A description from a dictionary can then serve as a test question, with the headword recorded as the expected answer.
The systems learn to turn the words of a description into a single vector. They compare that vector with the word embeddings of eligible headwords and return a ranked list. The paper compares a bag-of-words baseline, which ignores input order, with a recurrent baseline that reads the description in sequence. The authors also test recurrent architectures with attention, which gives different positions in the description different influence over the final vector. The recommended architecture combines a forward long short-term memory network, or LSTM, with additive attention. Reading the description in both directions brought no clear advantage in the reported comparisons.
A dictionary headword gives the experiment a definite answer, but another word can express the same idea. The authors therefore measure both exact retrieval and synonym retrieval. They also ask Persian linguistics experts to judge how well individual suggestions fit their descriptions. Under the synonym criterion, the paper reports that its best system finds the recorded headword or a listed synonym among the top 100 suggestions at least 62% of the time. Expert ratings indicate that the recurrent baseline can produce suggestions comparable in relevance to the dictionary headwords. Adding attention can yield suggestions that experts rate more highly than the original headword, a pattern the authors found especially apparent for Dehkhoda descriptions.
The reported results concern dictionary-derived descriptions and a restricted list of eligible answers. The top 100 figure measures whether a qualifying word appears somewhere in a long list. The expert ratings address a different question by examining the first few suggestions individually. Together, those evaluations clarify the distinction between recovering the recorded entry and offering a word that someone could use.
Deep dive: PREDICT: Persian Reverse Dictionary
PREDICT ranks Persian words from their descriptions and tests how exact matches, synonyms, and expert judgments change the picture of retrieval. · about 34 minutes to read
The problem and its context
Finding a word from what it means
A conventional dictionary starts with a word the reader can supply. A reverse dictionary starts with the information the reader still has when the word itself is elusive. The authors illustrate the task with a description of the planet closest to Earth and a possible suggestion of Venus. In their Persian experiments, the description is the query, and the answer is a word chosen from a vocabulary. The system can supply a list because a description may fit several words or leave some of their distinctions unresolved.
This direction of lookup matters for anyone trying to choose a word in writing. A person may know the idea they want to communicate and be able to express it in a longer phrase. A reverse dictionary uses that phrase as evidence for a more compact expression. The paper calls the underlying problem lexical access, the ability to retrieve a word for an intended meaning. Designing a reverse lookup tool turns that ability into a problem of ranking words by their fit to a description, at the intersection of lexicography and information retrieval.
The authors also discuss word-selection anomia, in which a person can identify or describe something while having difficulty saying its name. They cite reverse dictionaries as a possible aid in that setting. Their other examples show how the same input and output pattern can arise in different tasks. A crossword clue describes a missing word. A medical description can be used to look for a corresponding concept. The paper discusses the latter application alongside question answering.
In bilingual lookup, the input can be a description in one language and the answer a word in another. The authors cite work motivated by access to vocabulary in languages with fewer digital resources, including lookup between English and Vietnamese. PREDICT studies lookup within Persian. Its resource question is consequently specific to that task. The authors found machine-readable versions of Amid, Moein, and Dehkhoda, yet they knew of no earlier digital reverse dictionary for Persian. They suggest that the scarcity of sufficiently large collections of words paired with descriptions may have contributed to that gap. This is the sense in which they discuss Persian under low-resource languages.
How earlier systems found candidate words
One approach described in the paper uses a network of lexical relations. Words occupy nodes and relations connect them. With a knowledge graph of this kind, one measure of resemblance is the length of the shortest route from one word to another. A reverse dictionary still needs a way to relate a whole description to a candidate word. The paper recounts approaches that give the phrase a node of its own or combine the similarities between the candidate and the individual words in the phrase. It also describes a WordNet-based system that represents phrases and words as vectors and compares them by cosine similarity, a measure of how closely the vectors point in the same direction.
Another family of approaches starts with electronic texts or dictionary entries. The simplest version compares the query with stored definitions. A version that first converts the query and definitions into vectors can compare their representations in place of directly matching the wording. The authors also describe an approach that uses Wikipedia paragraphs as evidence. A candidate gains support from paragraphs in which it occurs alongside terms from the description. The corpus supplies associations that an individual dictionary entry may leave implicit.
The approach closest to PREDICT comes from Hill and colleagues. Their recurrent system reads a description and learns to predict a vector near the embedding of the word the description denotes. The dictionary provides supervision by pairing text and headword. At lookup time, the predicted vector can be compared with the vectors of available words. PREDICT takes the bag-of-words and recurrent baselines from that work and investigates how to represent a Persian description before carrying out the same kind of vector lookup.
The choices PREDICT inherited
The paper describes several ways earlier researchers tried to improve the mapping. Morinaga and Yamaguchi used a convolutional network to infer a category from the description so that words outside the category could be pruned. A separate study by the same authors examined whether adding bypass connections around recurrent processing could make better use of the system’s capacity than increasing the number of recurrent units. These approaches intervene at different points. Category inference changes which words can compete for a query. Bypass connections change how the system forms its representation.
A separate line of work asks whether a word with several meanings should have a vector for each sense. The paper describes Pilehvar’s results with sense-specific representations and work by Hedderich and colleagues that uses attention to choose embeddings for words in the description. Attention in that latter approach helps decide which meaning representation to use. PREDICT draws on attention for a different decision, how much each position in the encoded description should contribute to the output.
Zheng and colleagues combined a bidirectional recurrent encoder with attention. Their system could also predict features of the target such as its written form and its part of speech, a grammatical category such as noun or verb. The PREDICT authors also describe WantWords, which uses BERT to represent descriptions and supports lookup from an English description into Chinese through translation. They cite shared embedding spaces across languages as another way to connect a description in one language to a target in another.
These lines of research give the Persian study its main design choices. A system needs examples of how words are described, a representation of the query, a space in which to compare it with candidate words, and a criterion for deciding whether the resulting list is useful. A dictionary entry helps with every stage except the last judgment. It provides a headword that can serve as a training target and an exact test answer. It gives less direct guidance about when a different word is equally suitable.
The method, step by step
From a description to suggestions
Each training case contains a phrase and the word the phrase describes. Suppose a dictionary entry lists several descriptions under the same headword. The authors can make a distinct training case from each description while keeping the target word the same. The descriptions may differ because their writers used different expressions, or because the entry covers several senses. In the chosen setup, every such description points towards the same target vector.
The input starts as a sequence of tokens, the units into which the system divides the description. Here the tokens are obtained by splitting at spaces after text cleanup. Each recognized token has an embedding, a list of numerical coordinates that the system uses as the token’s representation. A bag-of-words architecture summarizes a phrase without tracking its order. The recurrent architectures read a sequence and maintain a hidden state, a vector that changes at each position as the system processes the input.
The attention variants retain a sequence of these hidden states. They use them to assign a weight to each position and to combine the positions into one phrase vector. During training, the vector is judged by its closeness to the embedding of the dictionary headword. During lookup, the same vector is used to rank the embeddings of eligible words. The headword is available as a training target or for checking a test result. The ranking itself is produced from the description and the candidate vocabulary.
How PREDICT turns a Persian description into suggestions
The steps in order.
Turning lexical sources into examples
The main source is Vajehyab, a site containing entries from Persian dictionaries. The authors collected 666,941 pages. A page can contain several pieces of information about its main word, including its senses, pronunciation, and grammatical category. The extraction process keeps the word, the descriptions associated with it, and the source dictionary. The paper uses Moin in the description of this processing and Moein in other places for the same source.
The first pass produced 834,750 structured records from the dictionary site. After removing records associated with duplicate, empty, or otherwise unusable content, the authors retained 567,990 records. These counts describe records of extracted entries. The eventual training cases count description–word pairs, and a record can contribute several of those. A dictionary can therefore supply many ways of describing a headword without that headword becoming several distinct answer words.
For Wikipedia, the authors start with the sentences in an article’s opening section and treat them as descriptions of its title. This procedure produced 606,197 records. They then require the title to be a word documented by the dictionaries, leaving 23,728 records. The restriction connects the supplementary material to the lexical inventory of the main task. It also means that an article title alone is insufficient to make the article part of the dataset.
Wikipedia descriptions differ in origin from dictionary glosses. A dictionary writer composes a gloss as part of a lexical entry. The beginning of a Wikipedia article can contain explanatory sentences from which the authors extract a training example under a title. Treating those sentences as descriptions supplies the training procedure with wording from another source. The experiment ultimately tests the systems on dictionary data, so this augmentation matters as a change to what the systems can learn from.
Farsnet supplies a third set of descriptions. The authors request entries for the top 30,000 words on their frequency list and find information for 21,123 of those words. They store the recorded descriptions with the corresponding word and mark the source as Farsnet. The 21,123 figure measures word coverage for that request. As with the dictionary records, an available word can have more than one description.
The authors construct a separate synonym resource. Their source for synonyms is the comprehensive dictionary of Persian synonyms and antonyms. They add associations found when an extracted record gives a word as an entire description of another word. In their notation, if the record for w₂ contains w₁ as a description, w₁ can count as a synonym of w₂. This rule makes use of short descriptions at a different stage from the training cleanup, where short phrases are excluded. The synonym collection is used to judge candidate words in the evaluation.
Choosing which words the system can return
The paper builds a frequency ranking to estimate which words account for much of the Persian text available to the authors. It pools plain text from Vajehyab entries, the full Persian Wikipedia articles, tokens from the Uppsala Persian Corpus, and article text from the Hamshahri Corpus. These collections have a role beyond providing definitions. Together they contribute counts for a ranked inventory that helps determine the available output words.
Before counting, the authors normalize character variants. Some letters can occur in Arabic or Persian forms in a Persian corpus. The authors replace the Arabic forms with the equivalent Persian forms where available and remove characters outside the accepted set. Counting after this normalization makes it possible for spelling variants of the kind they describe to contribute to the same entry in the frequency list.
They use Wikipedia to ask how much running text the highest-frequency words can cover. First they prune the candidate ranking to remove stopwords and words without dictionary entries. A stopword is a word on the authors’ list of items to omit during processing. They normalize the Wikipedia text in the same way, remove stopwords there as well, and convert each remaining word to its lemma, the base form used to group related forms for counting. When a lemma recurs, each occurrence contributes to the coverage calculation.
The authors then examine the share of those lemma occurrences accounted for by the top n words in the pruned ranking. Here n is the number of words taken from the start of that ranking. The paper reports little further coverage improvement above 20,000 words. The experiments use output sets containing 3000, 5000, 10,000, or 20,000 frequent words. For each setting, the authors keep examples whose target belongs to that setting’s recognized output vocabulary. The frequency ranking thus affects both the choices available during lookup and the cases that qualify for training and evaluation.
Preparing descriptions and splitting the data
The descriptions and their headwords receive the same character normalization used for the ranking. Within a definition, the authors replace pseudo-spaces with ordinary spaces. They remove the headword from its own descriptions. That step addresses a straightforward shortcut. If the query contains the desired answer as a word, a system can potentially learn to repeat the answer with little evidence that it has learned to use the definition.
The authors assembled a list of 185 stopwords. They discard records in which the target itself is on that list and remove stopwords from the descriptions that remain. They exclude a phrase with fewer than three tokens and a headword with fewer than three characters. The authors motivate the headword-length rule by their expectation that Persian speakers would have little need for help retrieving such short words. The rule also defines which items can participate in the experiments.
After splitting descriptions at spaces, they rank unique input tokens by frequency and retain the top 100,000. Tokens outside that set are removed from the descriptions. This input limit serves a different purpose from the output limits. The input vocabulary specifies what evidence the encoder can read from a phrase. The output vocabulary specifies what words can be proposed as answers. A word need not have the same role on both sides of the task.
The authors flatten each lexical record into separate phrase–headword pairs. They randomly divide the Vajehyab pairs in the ratio 8:1:1 into training, development, and test sets, respectively. All of the prepared Wikipedia and Farsnet pairs are added to training. The architecture therefore learns from more than one kind of description, while the designated development and test partitions come from the dictionary source. The random split is applied to pairs, which allows different descriptions of a given headword to occur in different partitions.
Representing the phrase in the target space
The authors describe a phrase as an ordered sequence of words:
p = (w₁, w₂, …, wₖ)
Here p denotes the phrase, wᵢ is the word at position i, and k is the number of words in the sequence. Parentheses and commas denote the ordered list, and the ellipsis stands for the intermediate positions.
These words are supplied to the encoder as vectors:
(v₁, v₂, …, vₖ)
Here vᵢ is the embedding of the input word wᵢ, k is again the sequence length, and the parentheses, commas, and ellipsis denote the ordered sequence. Each vᵢ lies in ℝᵈ, where ℝ denotes the real numbers and d is the number of coordinates in a vector. The target word is w, with embedding v_w. The encoder’s prediction is vₒ. Both the prediction and the target embedding have d coordinates, so the system can compare them in the same space.
The common interface makes it possible to compare different encoders. Both baselines produce a phrase representation for the same kind of target. The bag-of-words baseline discards sequence order. The recurrent baseline processes the sequence in order. The proposed architectures use an LSTM, a recurrent network with a memory mechanism, and add an explicit weighting step over the states it produces. That weighting step lets a representation of an earlier position contribute directly to the aggregate used for lookup.
Reading the sequence in one direction
In the forward attention architecture, the LSTM reads the input embeddings in order and produces a hidden state at every timestep. Each hidden state is projected to create a value that the attention step can use.
pₜ = Whₜ + b
Here t indexes a position from 1 through k, with k denoting the length of the phrase. The hidden state hₜ is a column vector of size d × 1, where d is the embedding dimension. W is a learned matrix of size d × d, and Whₜ means matrix multiplication. The plus sign adds the bias vector b, which has size d × 1. The result pₜ is the projected value at time t. The same matrix and bias are used at every position.
The final hidden state also serves a separate role. A different projection turns it into the query used to weight the values.
p′ₖ = W′hₖ + b′
Here hₖ is the hidden state at the last position k. W′ is a separate d × d learned matrix, b′ is a separate d × 1 bias, and p′ₖ is the resulting query. The primes distinguish the query projection and its parameters from the value projection. The query and each value therefore share a dimension while being produced by separate learned transformations.
The reason for the query can be understood by considering a definition with both a general category and a detail that distinguishes the intended answer. An aggregate that weights every position alike has no explicit way to make that detail count more heavily. Here the final recurrent state provides a view of the sequence to use when assessing each projected position. The choice of weights belongs to the input phrase, rather than being a fixed ranking of important words across all queries.
How additive attention combines positions
The attention operator takes a query and a sequence of values. The paper writes the score for a value as follows:
eᵢ = tanh(uᵢ + q)
Here i is the index of the value, uᵢ is the vector at that position, q is the query vector, and the plus sign denotes addition. The function tanh is the hyperbolic tangent. The paper designates eᵢ as a scalar attention score and describes both uᵢ and q as d-dimensional vectors. As written, applying tanh coordinate by coordinate to their sum would yield a vector. The equation leaves unspecified how that vector is reduced to the stated scalar. The subsequent equations express the intended weighting assuming a scalar score at each position.
e = (e₁, e₂, …, eₙ)
Here e is the sequence of scores, eᵢ is the score at position i, and n is the number of values, denoted by capital N in the paper’s attention notation. The numbers on subscripts mark positions. The parentheses, commas, and ellipsis collect the scores in their input order.
α = softmax(e) = (α₁, α₂, …, αₙ)
Here α is the vector of attention weights, softmax converts the scores e into positive weights that sum to one, and αᵢ denotes the weight associated with value i. The subscript n identifies the final value among the n positions, and the commas and ellipsis list the weights in order. Raising a position’s score relative to the others gives its vector more influence in the weighted combination.
attention(q, u) = ∑ᵢ₌₁ⁿ αᵢuᵢ
Here attention names the operation, q is the query, and u is the ordered sequence of values. The summation sign directs the system to add the products at positions i from 1 through n, where n is the number of values. Each product multiplies a value vector uᵢ by its scalar weight αᵢ. The result is one vector with the same dimension as the values.
For the forward LSTM, the projected final hidden state supplies the query, and all the projected states supply the values.
a = attention(p′ₖ, (p₁, p₂, …, pₖ))
Here a is the combined attention vector, p′ₖ is the query projected from the last hidden state, and p₁ through pₖ are the projected values at the k positions. The inner parentheses group the values as a sequence, and the comma after p′ₖ separates the query from that sequence. The values include the final position, which consequently contributes through a value projection as well as through a separate query projection.
vₒ = tanh(W″a + b″)
Here vₒ is the predicted vector that will be compared with word embeddings. W″ is a further d × d projection matrix, a is the attention vector, and b″ is an added bias vector with d coordinates. The double primes distinguish these parameters from those of the previous projections. The function tanh applies the hyperbolic tangent separately to each coordinate after the matrix multiplication and addition.
What changes when the sequence is also read backward
The bidirectional version uses an LSTM that processes the text forward and another that processes it backward. For each input position, the architecture joins the two directional states. A position can then be represented using information from both directions before attention is applied.
cₜ = concat(hₜ, h′ₜ) ∈ ℝ²ᵈˣ¹
Here t is a position in the phrase, hₜ is the forward state there, and h′ₜ is the backward state at the corresponding position. The function concat puts their coordinates end to end. The result is the column vector cₜ. The membership sign ∈ indicates that cₜ belongs to the real column-vector space written to its right. Each component state has d coordinates, so the concatenated column has 2d rows and 1 column.
pₜ = Wcₜ + b
Here pₜ is the value projected from the concatenated state cₜ at position t. W is a learned d × 2d matrix, where d is the dimension used by the attention and output space, and b is an added column bias of size d × 1. The product reduces the concatenated state to d coordinates.
p′ₖ = W′cₖ + b′
Here k is the last position, cₖ is its concatenated state, and p′ₖ is the query. W′ is a separate d × 2d matrix and b′ is its d × 1 bias. The primes identify the parameters for the query projection. The same attention and output operations used by the forward architecture then produce a vector for ranking. The stated query is formed from the concatenated state at the final indexed position.
Learning the mapping and producing the ranking
The authors initialize input embeddings with Persian FastText vectors. Training can change these input representations. The FastText vector of a target word stays fixed for comparisons during training and evaluation. This distinction gives the system room to adapt how it reads the words in a description while holding the target space steady. In that space, a particular word supplies the same target vector whenever it is the expected answer.
For each pair, the training loss is the cosine distance between the predicted vector and the embedding of the target word. Over a set of pairs, the authors average the individual distances. Cosine distance reflects the direction of the prediction relative to the target. Training encourages the encoder to point toward the target word’s vector, without using a separate training label for the rank of each possible answer.
For lookup, the authors sort the recognized output words by decreasing cosine similarity to the prediction. V denotes the list of recognized words, and sᵢ denotes the suggestion at rank i after sorting. Eligibility comes from the frequency-based output list. Position in the result comes from similarity to the description vector. A frequent word can therefore enter the set of choices without necessarily receiving a high rank for a particular query.
The remaining trainable parameters begin with Glorot uniform initialization. The authors use Adam for optimization and give an initial learning rate of 1. Training proceeds in batches of 16 examples. They use early stopping to determine how many passes to make through the training data. The implementation uses TensorFlow. The authors released the PREDICT code on GitHub and the dataset on Kaggle.
Experiments and results
What data each comparison uses
The dictionary examples originate in Amid, Dehkhoda, and Moein entries made available through Vajehyab. Wikipedia and Farsnet contribute descriptions for training only. The Persian Wikipedia dump contains 609,850 articles written through March 16, 2020. That number describes the source collection before the procedure that converts opening sections to descriptions and filters them by title. The Farsnet release used by the authors covers 100,000 words according to the paper. The frequency-based API requests yield the smaller working collection used to add descriptions.
The Uppsala Persian Corpus contributes 2,704,028 tokens with part-of-speech tags to the source material for the frequency ranking. Hamshahri contributes 166,774 documents and is described as containing 417,339 unique terms. Those collections supply counts for estimating which words are common. The comprehensive synonym and antonym dictionary supplies the starting list for synonym judgments. The dictionary groups 15,000 lexical entries into 27,400 semantic categories. The entries and categories describe that resource, rather than the number of phrases tested.
The comparison includes the bag-of-words and recurrent baselines from Hill and colleagues, together with the forward LSTM with attention and the bidirectional LSTM with attention. Each architecture is evaluated within the paper’s output vocabulary settings. A smaller setting presents fewer possible answers for each query. It also limits the experiment to a smaller group of relatively frequent target words. Comparing settings therefore changes the set of competitors and the kinds of targets represented in the examples.
The paper presents separate results for seen and unseen pairs. Seen pairs belong to the training material, while unseen pairs belong to the test partition. A test description can be new to the encoder even when its correct word has appeared in training with another description. This makes the unseen comparison a test of lookup for held-out phrases under the pair-based split. It does not define a test of whether the encoder can retrieve headwords that have never served as training targets.
Sampling across the frequency ranking
For the computational assessments, the authors report a stratified sample of 500 pairs to evaluate seen and unseen performance. Stratification means that the sampling procedure divides the material into groups and takes examples from across those groups. Here the grouping is intended to distribute selections across the frequency ranks of the target words. That way the sample is shaped by where headwords fall in the ranking as well as by how many descriptions each happens to have.
The paper gives the following interval for the ranks included in a bucket:
[⌈(i − 1)(t / s)⌉, ⌊i(t / s)⌋]
Here i is the index of bucket bᵢ, s is the number of buckets and intended sample size, and t is introduced as the number of tuples used in training. The left endpoint rounds up with the ceiling signs ⌈ ⌉, and the right endpoint rounds down with the floor signs ⌊ ⌋. The slash denotes division, juxtaposition denotes multiplication, and i − 1 identifies the index immediately before i. The brackets enclose the lower and upper bounds for the rank of the target word. The procedure randomly chooses a pair from each bucket.
The account introduces t as a tuple count while using the interval to describe word ranks. The range of those ranks is associated with n, the size of the eligible vocabulary. The paper leaves open how the bucket construction uses the tuple count and vocabulary size together, including how it handles a bucket that contains no eligible pair. It is clear about the purpose of the sampling, which is to draw queries across the frequency ordering rather than to let the number of descriptions for a headword alone determine its representation.
Exact words, synonyms, and the headline result
The automatic evaluation reports cosine loss and checks retrieval at cutoffs of 10 and 100 suggestions. For accuracy@10 and accuracy@100, a query counts as successful if its original headword appears within the stated cutoff. A hit can therefore occur anywhere within the first 10 or 100 suggestions, respectively. The measure counts the proportion of queries with a hit. It gives that hit the same credit wherever it falls within the cutoff.
Synonym accuracy applies the same cutoffs while expanding the possible answers to include the synonyms collected for the original headword. The paper illustrates the rationale with the English terms football and soccer, either of which can fit a description of the relevant ball game. If a query’s headword is one of those terms and the ranking contains only the other, exact retrieval misses the entry while synonym retrieval can register a hit. The ranking does not change between those measurements. The change is in which candidates qualify as correct.
The paper’s headline result is at least 62% synonym accuracy among the top 100 suggestions for the best system on the Persian reverse-dictionary task. In practical terms, the event being measured is the presence, anywhere in that ranked prefix, of either the recorded headword or a synonym in the evaluation resource. The abstract gives no vocabulary-size setting or split alongside that figure. The detailed numerical cells of the comparative results are absent from the paper’s account of the tables, so the headline number cannot be used to assign separate scores to the seen and unseen samples or to quantify an advantage over a particular baseline.
Cosine loss gives a different view of the same prediction. It measures the distance from the target embedding rather than asking where the target or a synonym appears in the list. A prediction’s retrieval rank depends on how the target compares with competing words. A cosine distance by itself says nothing about how many of those competitors are even closer. That is why a loss figure and a top-of-list accuracy figure answer different questions, even though both use the same vector space.
The expert comparison
The authors draw a separate sample of 40 test pairs from each dictionary for human evaluation. For each description, Persian linguistics experts rate the original headword and the first three suggestions. A score on a scale of 1 to 5 is assigned to every answer. The rating scale moves from irrelevance through increasing relevance to an acceptable match and finally a perfect fit. The researchers explain the categories with actual dictionary examples before asking the experts to score the test material.
A total of 29 experts participate in the procedure. To decide which ratings to retain, the authors compare each person with their peers on items they both rated. For every pair of raters they use weighted kappa, an agreement statistic that accounts for chance agreement. Linear weights give disagreements more consequence when the selected ratings are farther apart. The paper follows an interpretation in which 0.41 to 0.6 represents moderate agreement, then sets 0.41 as the minimum average agreement for a rater’s scores to be included.
agreement(r, (r′₁, r′₂, …, r′ₘ)) = (∑ᵢ₌₁ᵐ κ(r, r′ᵢ)) / m
Here r is the rater being assessed, the primed symbols r′₁ through r′ₘ denote the other raters, and m is their number. The pairwise coefficient κ(r, r′ᵢ) gives the weighted kappa between r and the other rater indexed by i. The summation sign adds those coefficients from 1 through m, and division by m gives their average. The parentheses and commas group the peers and distinguish the arguments of the agreement function.
Persian dictionary expert evaluation, panel size by inclusion rule
The agreement rule retained most of the participating experts for the relevance scores.
The numbers
| System or setting | raters |
|---|---|
| All participating experts | 29 |
| Experts retained under the agreement rule, on average (this paper) | 27 |
The chart compares the full panel with the panel used to compute the ratings. The retained figure is an average across lists of rated items. It describes the size of the panel contributing to the scores, so a higher value denotes more contributing judgments. The comparison measures panel size and provides context for the reported relevance judgments.
For each answer, the authors average the judgments of the retained raters to obtain a mean opinion score, or MOS. They then average those item-level scores across the selected phrases. The paper calls the resulting average for suggestion position i by the name qᵢ, and the corresponding average for the dictionary headwords qₜ. The subscript i refers to a particular rank in the suggestion list. The subscript t in qₜ identifies the set of original target words. Keeping the ranks separate makes it possible to compare the quality of the earliest suggestions with the reference answers.
The reported qualitative pattern favors recurrent encoding. The bag-of-words suggestions generally fall towards the irrelevant or slightly relevant end of the scale. The recurrent baseline can offer words whose suitability is comparable to that of the reference headwords. With additive attention, the forward LSTM can produce a suggestion that rates higher than the headword, an outcome the authors call especially apparent for Dehkhoda. The bidirectional variant shows no consistent advantage over it in exact accuracy, synonym accuracy, or the expert ratings. The paper therefore favors the forward attention architecture as a balance between complexity and reported performance.
What the ablations show
The effect of adding attention to a recurrent encoder
The paper compares complete architectures, including a recurrent baseline and a forward recurrent architecture with attention. The added computation gives the phrase representation a direct route through the sequence of projected hidden states. The resulting combination can draw more heavily on some positions than others. The authors associate this change with stronger suggestions in the expert evaluation, including cases where a suggested word was judged more fitting than the dictionary headword.
This comparison tests the attention-equipped design as a package. It includes the value projection, the query projection, the weighting operation, and the transformation of their weighted combination. The paper reports no separate evaluation of those parts. A shift in relevance scores therefore supports the proposed architecture under the reported setup. It leaves the contribution of each added operation open. The study also reports no analysis of which description words received high weights, so the reader cannot trace the expert judgments back to particular features of the inputs.
The bag-of-words comparison addresses a wider difference. A representation that preserves sequence through recurrent states can express information unavailable to an order-insensitive summary. The gap in expert judgments is consistent with that capacity helping on dictionary descriptions. The comparison changes the way the input is represented as a whole, so it gives no isolated measurement of how much the order of words accounts for the gap.
Whether processing both directions helps
The comparison between forward and bidirectional LSTMs with attention more directly targets a design decision. In both versions, the architecture projects a sequence of recurrent states, forms a query from a final indexed state, and combines the projected states with attention. The bidirectional version builds each state from forward and backward readings and projects the resulting larger vector back into the working space.
The authors expected the bidirectional variant might be less vulnerable to vanishing gradients, the weakening of training signals as they propagate through a sequence. The reported retrieval and expert measures show no clear gain from the replacement. The experiment measures retrieval outcomes and perceived answer fit. It presents no direct measurements of gradients from which to assess the proposed explanation for why bidirectionality might help. The comparison supports the authors’ preference for the simpler forward design on the outcomes they evaluated.
What the evaluation changes reveal
Counting synonyms changes the criterion while holding the suggestions fixed. An exact miss that qualifies as a synonym hit shows a difference between the identity of the recorded word and the acceptability of an alternative under the lexicon. This comparison helps explain the motivation for synonym accuracy. It cannot show that weighting the input differently caused a particular synonym to appear, because there is no change to the architecture when applying the alternative criterion.
Expert judgment tests a broader notion of fit on a much shorter ranked prefix. An expert can grant partial credit when a suggestion captures an aspect of the description or rate an alternative above the dictionary’s original headword. The outcome for some Dehkhoda material illustrates that possibility. The study gives no controlled comparison of what properties of Dehkhoda descriptions produced it. Dictionary source can stand in for several differences, including writing style, the word being described, or the sense of that word.
The vocabulary comparison also follows from a deliberate experimental choice. The coverage analysis motivates taking a frequent subset of words, and the retrieval experiments examine several sizes of that subset. Changing the size simultaneously changes the candidate pool and which pairs qualify as data. Any resulting change in accuracy could reflect the difficulty of the admitted queries, the availability of training evidence, or the added competition in the ranking. The paper does not vary those influences independently.
Limitations
Limits the authors identify
The authors identify out-of-vocabulary input as a weakness of their approach. Its usable input representations are restricted to frequent, recognized tokens. If an unfamiliar word carries the decisive detail of a description, removing it leaves the encoder with less evidence about the intended answer. The authors discuss sub-word representations as one way other approaches handle unfamiliar words by using smaller recurring pieces. They also point out that a recurring piece of spelling can lack a meaningful linguistic function. Their discussion contrasts a meaningful ending such as ing with a sequence such as pla in playing. PREDICT instead limits the working vocabulary to frequent whole words.
Polysemy creates a different problem. A target word can have several senses, and definitions for those senses can use very different vocabulary. In PREDICT those examples train the encoder towards the same fixed vector. The authors propose studying embeddings that represent individual senses, as earlier reverse-dictionary work had done. They also suggest investigating predictions of the target’s part of speech or semantic category. These are directions they identify for future work. Their Persian comparisons give no measured effect for either change.
The authors also discuss the gap between a binary hit and a judgment of partial relevance. They illustrate it with a description of a tall animal commonly found in Africa. Kangaroo fits the idea of a tall animal more closely than chicken does, even though neither is presented as the intended answer. A binary hit measure gives no credit for satisfying one part of the description. Synonym accuracy extends the set of accepted words, but a candidate that partly fits and falls outside the set still counts as a miss. The authors leave open how to assign such cases reliable graded credit automatically.
Finally, the authors conjecture that learning from lexicographic definitions could help represent rare or obsolete senses. Definitions can preserve meanings that appear infrequently in large digital corpora. The conjecture concerns the potential value of the supervision. The paper presents no separate retrieval or representation results for rare or obsolete senses. Its use of frequency thresholds also makes clear that admitting rare senses of recognized words and admitting rare headwords are different experimental choices.
Limits that follow from the setup
The vocabulary restrictions define the scope of the reported task. A target outside the eligible output set cannot appear in the suggestions. The score on a restricted evaluation set therefore describes retrieval after excluding queries whose headwords fall outside that set. It gives no estimate of how often those exclusions would matter to a person using a broad Persian reverse dictionary. The Wikipedia coverage study counts occurrences of frequent lemmas after filtering and normalization. A word’s share of those occurrences and the likelihood that someone will need help recalling it are distinct quantities.
The pair-based split likewise sets a boundary around the meaning of unseen. It can put definitions of the same headword in training and testing. It also leaves open whether a close paraphrase from another dictionary or a description from Farsnet or Wikipedia resembles a test item. The paper reports cleanup of unusable and duplicate material in the extracted records, but gives no measurement of residual overlap at the level of senses or similar descriptions across sources. The results support generalization to held-out pairs under the reported split. How well lookup generalizes to headwords, senses, or formulations held out as groups remains open.
Dictionary glosses also stand in for queries that people might type when they cannot recall a word. The reported test descriptions are cleaned dictionary material. A user could phrase a request informally, omit a distinguishing property, or include words the preprocessing removes. The study’s expert evaluation concerns whether suggestions fit selected dictionary phrases. It does not measure how people compose queries when they experience difficulty recalling a word or how often the interface helps them find what they had in mind.
The synonym list creates another boundary around the reported 62% figure. It includes the synonyms recovered from the designated lexical resource and the additional relationships inferred from descriptions that are themselves words. A defensible alternative can be absent from those sources. A listed synonym may fit one sense of a headword better than another. The paper’s rule checks membership in the headword’s synonym set. It gives no separate account of how frequently those accepted alternatives fit the specific sense in the test phrase.
The retrieval cutoff also matters for interpreting that number. A hit among the top 100 may be easy to spot or may require the user to inspect a long list. The headline result does not say how frequently the accepted word is the first suggestion. The MOS experiment rates the first three suggestions and therefore provides a closer view of those ranks. Its sample of 40 test pairs per dictionary and its separate relevance scale make it a distinct assessment, so its findings cannot fill in an unreported first-rank synonym accuracy.
The expert comparisons reflect judgments about semantic suitability. Agreement screening specifies which ratings contribute to the means, yet the paper gives no uncertainty estimates for those means or a quantitative account of how agreement varies by item or dictionary. In particular, the reported observation about Dehkhoda describes a pattern the authors found in their sample. It does not establish how often the same pattern would recur across Dehkhoda entries or whether it generalizes to other sources of Persian queries.
Two details constrain precise reconstruction of the experiments. The score equation in the attention description has an unresolved difference between its vector expression and the scalar needed by softmax. The bucket specification uses a count of tuples in bounds described as word ranks. The architecture and the purpose of the stratification are understandable from the paper, while the missing operations matter for reproducing the precise reported procedure. The released code and data are part of the authors’ contribution, but the paper’s equations and algorithm description alone leave those details open.
What came after
Comparing definitions and embeddings in a shared task
The CODWOE shared task frames dictionaries and word embeddings as representations to be compared in a common evaluation. PREDICT gives a concrete example of the connection. It uses a dictionary description as the input to a learned mapping and a word embedding as the target. It then takes the additional step of ranking words so the vector can serve a lookup tool. The CODWOE task title establishes that broader comparison as its subject. The citation to PREDICT connects the Persian effort to that shared-task setting, without establishing a transfer of its architecture or its synonym metric.
The distinction between predicting an embedding and retrieving a word is important when reading this connection. In PREDICT, the predicted vector can be assessed by distance from a reference vector. Delivering a word requires comparison with a candidate vocabulary. The two perspectives invite different questions about what it means to map a definition successfully. CODWOE’s focus on dictionaries and embeddings brings that representational question to the foreground.
Arabic reverse lookup and Transformer encoders
Abed at the KSAA-RD shared task addresses Arabic reverse lookup and focuses on enhancing Arabic word embeddings with a modified multilingual BERT approach. Its stated emphasis is the representation of words in the Arabic shared task. PREDICT uses Persian FastText targets and learns a recurrent representation of the description. The common thread is the problem of connecting a description to a useful lexical representation. The citation establishes that the Arabic work refers to the Persian study. It gives no basis by itself for assuming the same evaluation vocabulary, the same definition sources, or reuse of the fixed-target training setup.
Qamosy at the Arabic reverse dictionary shared task describes a semi-decoder architecture paired with an SBERT encoder. That pairing places a different encoder and output architecture around the same general reverse lookup problem. PREDICT uses recurrent states and additive attention to derive a description vector. Qamosy’s title identifies its encoder as SBERT and its architecture as a semi-decoder. It thus documents a later architectural direction in Arabic reverse lookup. The available description of the work does not establish a component-level comparison with the Persian design.
Advancing Arabic Reverse Dictionary Systems combines a Transformer approach with guidelines for constructing datasets. The explicit attention to dataset construction connects with a substantial part of PREDICT. The Persian study had to decide which lexical sources could supply descriptions, which supplementary texts could be used for training, and which words would qualify as targets. The later Arabic work identifies dataset construction as a topic in its own right alongside architecture. Its description gives no grounds for treating those guidelines as a reuse or validation of PREDICT’s particular filters.
Across these citing works, the documented continuity is the task of relating definitions to lexical representations or suggestions. Their titles point to shared evaluation, Arabic embeddings, different encoder and decoder choices, and dataset construction. The specific results for Persian, including the effect reported for forward attention and the score under the synonym criterion, remain evidence from PREDICT’s own experiments.
Cite
Cite as Arman Malekzadeh, Amin Gheibi and Ali Mohades. 2021. PREDICT: Persian Reverse Dictionary. arXiv (Cornell University).
@misc{malekzadeh2021predict,
title = {{PREDICT: Persian Reverse Dictionary}},
author = {Arman Malekzadeh, Amin Gheibi and Ali Mohades},
year = {2021},
doi = {10.48550/arxiv.2105.00309},
eprint = {2105.00309},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2105.00309}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/malekzadeh-2021-predict-persian-reverse-dictionary/
References
- Hiram Calvo, Oscar Méndez, and Marco A Moreno-Armendáriz. Integrated concept blending with vector space models. Computer Speech & Language, 40:0 79–96, 2016. OpenAlex ↗ · Scholar ↗
- Jonathan D Rohrer, William D Knight, Jane E Warren, Nick C Fox, Martin N Rossor, and Jason D Warren. Word-finding difficulty: a clinical analysis of the progressive aphasias. Brain, 1310 (1):0 8–38, 2008. OpenAlex ↗ · Scholar ↗
- Sushrut Thorat and Varad Choudhari. Implementing a reverse dictionary, based on word definitions, using a node-graph architecture. Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 2797–2806, December 2016. OpenAlex ↗ · Scholar ↗
- Khang Nhut Lam and Jugal Kalita. Creating reverse bilingual dictionaries. Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 524–528, 2013. OpenAlex ↗ · Scholar ↗
- Dimitri Kartsaklis, Mohammad Taher Pilehvar, and Nigel Collier. Mapping text to knowledge graph entities using multi-sense LSTMs. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1959–1970, October-November 2018. OpenAlex ↗ · Scholar ↗
- Felix Hill, KyungHyun Cho, Anna Korhonen, and Yoshua Bengio. Learning to understand phrases by embedding the dictionary. Transactions of the Association for Computational Linguistics, 4:0 17–30, 2016. our card
- Michael Zock and Slaven Bilac. Word lookup on the basis of associations: from an idea to a roadmap. Proceedings of the Workshop on Enhancing and Using Electronic Dictionaries, pages 29–35, 2004. OpenAlex ↗ · Scholar ↗
- Slaven Bilac, Wataru Watanabe, Taiichi Hashimoto, Takenobu Tokunaga, and Hozumi Tanaka. Dictionary search based on the target word description. Proceedings of the Tenth Annual Meeting of The Association for Natural Language Processing (NLP2004), pages 556–559, 2004. OpenAlex ↗ · Scholar ↗
- Ilknur Durgar El-Kahlout and Kemal Oflazer. Use of wordnet for retrieving words from their meanings. Proceedings of the global Wordnet conference (GWC2004), pages 118–123, 2004. OpenAlex ↗ · Scholar ↗
- Dominique Dutoit and Pierre Nugues. A lexical database and an algorithm to find words from definitions. Proceedings of the 15th European Conference on Artificial Intelligence (ECAI), pages 450–454, 2002. OpenAlex ↗ · Scholar ↗
- Hasan Amid. Amid dictionary. Amirkabir Publications, Tehran, Iran, 1963. OpenAlex ↗ · Scholar ↗
- Mohammad Moin. Moin encyclopedic dictionary. Amirkabir Publications, Tehran, Iran, 1972. OpenAlex ↗ · Scholar ↗
- Ali Akbar Dehkhoda, Mohammad Moin, and a Group of Iranian Writers. Dehkhoda dictionary encyclopedia. College of Science and Literature, University of Tehran, Tehran, Iran, 1958. OpenAlex ↗ · Scholar ↗
- Long Duong. Natural language processing for resource-poor languages. PhD thesis, 2017. OpenAlex ↗ · Scholar ↗
- Mehrnoush Shamsfard, Akbar Hesabi, Hakimeh Fadaei, Niloofar Mansoory, Ali Famian, Somayeh Bagherbeigi, Elham Fekri, Maliheh Monshizadeh, and S Mostafa Assi. Semi automatic development of farsnet; the persian wordnet. Proceedings of 5th Global WordNet Conference, Mumbai, India, 29, 2010. OpenAlex ↗ · Scholar ↗
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. Computing Research Repository (CoRR), abs/1409.0473, 2015. our card
- Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 90 (8):0 1735–1780, 1997. OpenAlex ↗ · Scholar ↗
- Olivier Ferret and Michael Zock. Enhancing electronic dictionaries with an index based on associations. Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics, pages 281–288, 2006. OpenAlex ↗ · Scholar ↗
- Oscar Méndez, Hiram Calvo, and Marco A Moreno-Armendáriz. A reverse dictionary based on semantic analysis using wordnet. Mexican International Conference on Artificial Intelligence, pages 275–285, 2013. OpenAlex ↗ · Scholar ↗
- George A Miller. Wordnet: a lexical database for english. Communications of the ACM, 380 (11):0 39–41, 1995. our card
- Ryan Shaw, Anindya Datta, Debra VanderMeer, and Kaushik Dutta. Building a scalable database-driven reverse dictionary. IEEE Transactions on Knowledge and Data Engineering, 250 (3):0 528–540, 2011. OpenAlex ↗ · Scholar ↗
- Yuya Morinaga and Kazunori Yamaguchi. Improvement of reverse dictionary by tuning word vectors and category inference. International Conference on Information and Software Technologies, pages 533–545, 2018. OpenAlex ↗ · Scholar ↗
- Yoon Kim. Convolutional neural networks for sentence classification. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1746–1751, October 2014. our card
- Mohammad Taher Pilehvar. On the importance of distinguishing word meaning representations: A case study on reverse dictionary mapping. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2151–2156, 2019. OpenAlex ↗ · Scholar ↗
- Michael A. Hedderich, Andrew Yates, Dietrich Klakow, and Gerard de Melo. Using multi-sense vector embeddings for reverse dictionaries. Proceedings of the 13th International Conference on Computational Semantics - Long Papers, pages 247–258, May 2019. OpenAlex ↗ · Scholar ↗
- Lei Zheng, Fanchao Qi, Zhiyuan Liu, Yasheng Wang, Qun Liu, and Maosong Sun. Multi-channel reverse dictionary model. Proceedings of the AAAI Conference on Artificial Intelligence, 340 (01):0 312–319, 2020. OpenAlex ↗ · Scholar ↗
- Yuya Morinaga and Kazunori Yamaguchi. Improvement of neural reverse dictionary by using cascade forward neural network. Journal of Information Processing, 28:0 715–723, 2020. OpenAlex ↗ · Scholar ↗
- Fanchao Qi, Lei Zhang, Yanhui Yang, Zhiyuan Liu, and Maosong Sun. WantWords: An open-source online reverse dictionary system. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 175–181, October 2020. . URL https://www.aclweb.org/anthology/2020.emnlp-demos.23. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, June 2019. . URL https://www.aclweb.org/anthology/N19-1423. our card
- Muhao Chen, Yingtao Tian, Haochen Chen, Kai-Wei Chang, Steven Skiena, and Carlo Zaniolo. Learning to represent bilingual dictionaries. Proceedings of the 23rd Conference on Computational Natural Language Learning (CoNLL), pages 152–162, November 2019. . URL https://www.aclweb.org/anthology/K19-1015. OpenAlex ↗ · Scholar ↗
- Mike Schuster and Kuldip K Paliwal. Bidirectional recurrent neural networks. IEEE transactions on Signal Processing, 450 (11):0 2673–2681, 1997. OpenAlex ↗ · Scholar ↗
- Jacob Cohen. Weighted kappa: Nominal scale agreement provision for scaled disagreement or partial credit. Psychological Bulletin, 700 (4):0 213, 1968. OpenAlex ↗ · Scholar ↗
- Domenic V Cicchetti and Truett Allison. A new procedure for assessing reliability of scoring eeg sleep recordings. American Journal of EEG Technology, 110 (3):0 101–110, 1971. OpenAlex ↗ · Scholar ↗
- J Richard Landis and Gary G Koch. The measurement of observer agreement for categorical data. Biometrics, pages 159–174, 1977. OpenAlex ↗ · Scholar ↗
- Mahmood Bijankhan. The role of the corpus in writing a grammar: An introduction to a software. Iranian Journal of Linguistics, 190 (2):0 48–67, 2004. OpenAlex ↗ · Scholar ↗
- Mojgan Seraji. Morphosyntactic corpora and tools for Persian. PhD thesis, Acta Universitatis Upsaliensis, 2015. OpenAlex ↗ · Scholar ↗
- Abolfazl AleAhmad, Hadi Amiri, Ehsan Darrudi, Masoud Rahgozar, and Farhad Oroumchian. Hamshahri: A standard persian text collection. Knowledge-Based Systems, 220 (5):0 382–387, 2009. OpenAlex ↗ · Scholar ↗
- Edouard Grave, Piotr Bojanowski, Prakhar Gupta, Armand Joulin, and Tomas Mikolov. Learning word vectors for 157 languages. Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018), 2018. our card
- Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pages 249–256, 2010. OpenAlex ↗ · Scholar ↗
- Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Computing Research Repository (CoRR), abs/1412.6980, 2015. our card
- Lutz Prechelt. Early stopping-but when? Neural Networks: Tricks of the Trade, pages 55–69, 1998. OpenAlex ↗ · Scholar ↗
- Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., Isard, M. & Others Tensorflow: A system for large-scale machine learning. 12th USENIX Symposium On Operating Systems Design And Implementation (OSDI 16). pp. 265-283 (2016) our card
- Tomas Mikolov, Kai Chen, G. Corrado, and J. Dean. Efficient estimation of word representations in vector space. Proceedings of the International Conference on Learning Representations (ICLR 2013), 2013. our card
- Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics, 5:0 135–146, 2017. . URL https://www.aclweb.org/anthology/Q17-1010. our card
- Peters, M., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K. & Zettlemoyer, L. Deep Contextualized Word Representations. Proceedings Of The 2018 Conference Of The North American Chapter Of The Association For Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). pp. 2227-2237 (2018,6), https://www.aclweb.org/anthology/N18-1202 our card
- Jorge Reyes-Magaña, Gemma Bel-Enguix, Gerardo Sierra, and Helena Gómez-Adorno. Designing an electronic reverse dictionary based on two word association norms of english language. Proceedings of Electronic Lexicography in the 21st Century Conference, pages 865–880, 2019. OpenAlex ↗ · Scholar ↗