Elamur Research

Data-driven Identification of Idioms in Song Lyrics

Paper · 2021 · Miriam Amin, Peter Fankhauser, Marc Kupietz et al.

Summary

A phrase can have a familiar meaning that its individual words give little reason to expect. The German expression about getting a cow off the ice, for instance, can mean finding a way out of a difficult situation. Its words also describe a perfectly conceivable event involving an animal. Amin and colleagues ask which clues in a collection of texts can help a computer recognize expressions of this kind. Their study uses German pop lyrics as a place to look for idioms and multiword expressions.

The authors look for evidence at several levels. They count how strongly words are associated in the lyrics and in DeReKo, a large German reference corpus. They compare those counts with associations predicted from how words generally behave in DeReKo. A conventional phrase can appear often enough to register in the counts even when its combination of words is unexpected given their usual uses. The authors also check whether the words around a candidate resemble the kinds of words associated with its constituents. A phrase can be familiar as a whole while its surroundings give little sign of the literal topics suggested by its parts.

The candidates come from a random sample of 10,000 word sequences from the lyrics. A native speaker labeled them, and the authors used the clearly idiomatic and literal cases to evaluate a Random Forest classifier. In cross-validation on the lyrics, the feature combination with the best F1 reached 61.9% at a decision cutoff of 0.3. Counts from DeReKo provided the strongest individual feature group. The usefulness of other clues depended on what accompanied them and on which phrases the idioms were compared with. Against a subset of strongly associated non-idioms, for instance, idioms tended to have weaker predicted word associations.

The authors also tested the approach on 760 idioms drawn from German Wikipedia, using held-out non-idioms from the lyrics as comparison cases. With features that could be computed without a passage surrounding each listed idiom, the classifier reached 71.0% F1 and 80.3% recall at a cutoff of 0.05. The experiment shows that the classifier could retrieve many unfamiliar entries from a list of established expressions. The study also identifies cases where its clues can be weak, including newly coined idioms and expressions whose figurative meaning is already the dominant use of their words.

Deep dive: Data-driven Identification of Idioms in Song Lyrics

Amin and colleagues test how word associations and surrounding text help identify idioms in German pop lyrics and in a Wikipedia list. · about 34 minutes to read

The problem and its context

Why a familiar phrase can be hard to recognize

In the traditional account the paper starts from, the meaning of an expression normally depends on the meanings of its parts and how those parts are combined. An idiom is a case in which that procedure leaves something unexplained. Looking up each constituent of the German cow expression might tell a reader what an animal and a frozen surface are. Those meanings give little guidance about the conventional use of the expression to talk about resolving a difficulty. The paper is concerned with how to turn that gap between word meanings and phrase meaning into evidence a classifier can use. The underlying question belongs to lexical semantics.

Semantic opacity varies. Some expressions retain recognizable contributions from their parts, and the paper describes earlier work that treats idiomaticity as gradual and dependent on several properties. The extent to which a phrase varies in form also differs from one expression to another. A conventional combination can have some flexibility in its grammar or inflection and still be familiar enough to function as a lexical unit. The paper connects this view to Sinclair’s account of language users drawing on ready-made phrases. Familiarity as a unit, flexibility of form, and ease of interpretation are related questions, each with its own observable consequences.

This creates a practical problem for recognition. A grouping of words can be conventional and frequent while its meaning remains transparent. A grouping can also look semantically surprising simply because somebody has written an unusual literal sentence. Nearby figurative phenomena, such as metaphors and proverbs, make the category harder to delimit. The authors therefore look for a combination of clues. They want to know whether idioms have measurable distributional properties and whether those properties help distinguish them from the range of other word sequences a search through lyrics will encounter.

Getting that distinction right can matter when an application has to decide what a passage says. Translation, for instance, can go astray if a system handles the words individually where the intended meaning belongs to the phrase. Extraction, retrieval and summarization can face the same underlying ambiguity when they use words as evidence for what a passage is about. The authors also point to uses in language learning and dictionary work, where finding a conventional expression is a step towards documenting it. They situate these applications in the earlier survey of multiword expression processing.

What earlier approaches measured

Some earlier work looked for lexical and syntactic fixedness. A phrase may favor particular words or constructions in ways that can be counted. Fazly and Stevenson used such evidence for idioms in verb phrases. That approach gives the researcher a reasonably well-defined group of candidates and a way to quantify their preferences. Amin and colleagues want to examine a broader collection in which a candidate can enter the study regardless of whether it has that grammatical shape. The earlier approach is described in Automatically Constructing a Lexicon of Verb Phrase Idiomatic Combinations.

Other work sought evidence in the surroundings of an expression. Sporleder and Li used lexical chains and cohesion graphs to represent semantic connections among words. They compared supervised and unsupervised ways of deciding whether a particular occurrence of an expression was literal or idiomatic. The intuition is that a literal reading will often fit the network of meanings in the passage. An idiomatic reading can make equal sense to a person while the component words, considered individually, have weaker connections to that network. That distinction is central to Unsupervised Recognition of Literal and Non-Literal Use of Idiomatic Expressions.

Katz and Giesbrecht likewise asked whether similarity between the contexts of a phrase and those of its individual words could signal non-compositional meaning. They represented context through latent semantic indexing. Muzny and Zettlemoyer used another kind of surrounding evidence. Working with Wiktionary, they examined whether words from the phrase were related to words in its definition, using lexical and graph-based signals. The study of lyrics has no corresponding definition for each candidate. It instead uses the text on either side of a candidate where that text is available. The dictionary approach is described in Automatic Idiom Identification in Wiktionary.

Salton and colleagues represented the meaning of sentences to study idiomatic and literal occurrences of verb–noun combinations. Peng and colleagues worked with the same dataset and compared local contexts represented as matrices of word vectors. The paper also describes work that used graded human judgments of verb–noun combinations, and work that gave a potentially idiomatic expression a representation of its own during training and testing. These studies differ in the choice of input and in whether the goal is to find expressions or assign readings to their occurrences. The sentence-level approach appears in Idiom Token Classification using Sentential Distributed Semantics.

The distinction between discovery and disambiguation shapes this paper’s design. To disambiguate a known expression, a system can be given the span to examine and asked how it is used on that occasion. Discovery starts with a potentially large supply of spans, most of which may have little claim to being lexical units at all. Amin and colleagues take a sample from a broad inventory of spans and ask which features distinguish idioms within it. Some of their measurements still depend on the context of an occurrence. Their procedure averages context measurements when a candidate has several occurrences, so the classification problem concerns the candidate expression as represented by the collected evidence.

Why start with lyrics

The authors chose contemporary German pop lyrics as a register with a plausible supply of idioms and relatively little prior study. In their account, lyrics combine properties of spoken and written language with opportunities for wordplay. An established expression might appear in a familiar form, or a writer might use a less familiar turn of phrase. This makes lyrics an interesting setting for an approach that starts with sequences found in the data and can consider expressions outside a predetermined inventory.

Songs also have a formal property that can make a phrase easier to observe. A chorus can repeat a memorable sequence within the same song. Those repetitions supply occurrences from which association and context features can be estimated. They motivate the choice of register while raising a separate question about what a corpus count represents. Repeated words can provide evidence that a phrase belongs together in a particular lyric. The count alone leaves open how broadly that phrase is used elsewhere.

The design joins two strands of earlier work. One concerns the tendency of the words in a phrase to occur together. The other looks at how well those words fit their surroundings or their usual patterns of use. The study keeps both strands in view because an idiom can resemble another conventional phrase on the first dimension and differ from it on the second. A classifier trained on both can be evaluated against a range of alternatives, from incidental word sequences to strongly associated phrases with ordinary meanings.

The method, step by step

From lyrics to labeled candidates

The starting point is the Corpus of German Song Lyrics, which spans five decades and covers a range of artists. Although the corpus has several layers of XML annotation, the candidate search works mainly with the text. The authors enumerate contiguous sequences of two to six word tokens within sentence boundaries. Such a sequence is an n-gram.

The sentence boundary determines which words can enter a candidate together. Within it, a word sequence qualifies by length. The extraction therefore covers possible idioms alongside arbitrary stretches of a sentence and fragments of longer expressions. It can also generate overlapping candidates. When a phrase qualifies as a span, a shorter sequence inside it or a longer stretch containing it can meet the same extraction rule. This breadth gives a subsequent classifier a chance to find several grammatical kinds of idiom. It also leaves the annotator to judge whether the particular words in each candidate form a meaningful unit.

The extraction yields more than six million n-grams, from which the authors randomly draw 10,000. A native speaker supplies the labels through linguistic annotation. The categories are idiomatic, literal and partly idiomatic. The last category covers candidates that mix idiomatic material with words outside that material. The main evaluation leaves those out and uses the remaining labels for binary classification.

The partly idiomatic label has a specific practical purpose. An n-gram can contain a real idiom and still extend past its boundary. A positive label for the whole sequence would then make the extra words part of the evaluated candidate. Treating those cases separately lets the authors concentrate on the distinction between full idiom candidates and literal ones. A separate question, which their error analysis revisits, is what a discovery tool should do with a fragment or a span that combines pieces with different status.

For evaluation, the authors remove duplicates after converting words to lower-case and removing stopwords. Stopwords are common words that the procedure excludes from certain comparisons, leaving the other words to supply the evidence. Deduplication is intended to keep versions of the same normalized candidate from appearing in both training and test data. Stopword removal also enters some feature calculations. In particular, the paper says that the DeReKo count-based and predictive collocation features are calculated on candidates after stopword removal.

From German song lyrics to idiom predictions

The steps in order.

From German song lyrics to idiom predictionsStep 1: Extract candidate spans within sentences1. Extract candidate spans within sentencesStep 2: Sample spans and assign human labels2. Sample spans and assign human labelsStep 3: Remove partial cases and normalized duplicates3. Remove partial cases and normalized duplicatesStep 4: Measure counted and predicted word associations4. Measure counted and predicted word associationsStep 5: Compare candidate words with surrounding words5. Compare candidate words with surrounding wordsStep 6: Add counts describing the available evidence6. Add counts describing the available evidenceStep 7: Train a Random Forest on labeled candidates7. Train a Random Forest on labeled candidatesStep 8: Apply a cutoff to assign idiom labels8. Apply a cutoff to assign idiom labels

Measuring associations within a phrase

The first group of features concerns words inside the candidate. The paper calls these syntagmatic features, meaning that they describe how words combine in a sequence. A collocation measure asks how strongly a word is associated with a neighbor. Ordinary words can have high raw joint counts simply because each occurs often. Association measures use frequency information to characterize how noteworthy it is that the two occur near each other.

The authors compute one set of count-based features, SY_C1, from the general German reference corpus and another, SY_C2, from the pop lyrics. The reference corpus can supply evidence of conventional combinations in a wider collection of written material. The lyrics supply evidence specific to the register being searched. These resources can support the same candidate for different reasons. A phrase familiar from general German can have a strong association in the reference counts, and a wording characteristic of songs can be especially prominent in the lyrics. The general resource is the German Reference Corpus DeReKo.

The association calculations look for neighbors within a window of +/- 5. The count features include measures based on log-likelihood and pointwise mutual information, as well as logDice. The lyrics features also include lexical gravity and estimates of how frequently a whole candidate occurs. These measures give the classifier several ways of seeing whether a combination stands out in the data. A corpus occurrence count describes the sequence itself, while a pairwise measure describes a relationship between words that may also be observed in other sequences. The paper attributes logDice to A Lexicographer-Friendly Association Score.

Some variants use what the paper calls autofocus. The procedure selects neighbors in the window that maximize the measure. A word can appear at different offsets relative to its associated word. Autofocus lets the calculation reflect particularly strong neighboring positions within the window. Other variants summarize the evidence differently, giving the classifier access to both broader aggregations and measures sensitive to the strongest signal.

A classifier needs a feature value for each candidate even when candidates differ in length. The authors take each pairwise collocation measure and average its values over the distinct positions in the candidate.

(∑ᵢ,ⱼ: ᵢ≠ⱼ col(wᵢ, wⱼ)) / (|w| × (|w| − 1))

Here w is the candidate as represented for the calculation, and |w| is its number of words. The subscripts i and j index positions, so wᵢ and wⱼ are the words at those positions. The function col is whichever collocation measure is being aggregated. The sum ∑ ranges over ordered position pairs with i ≠ j, meaning that a position is never paired with itself. The multiplication sign × in the denominator gives the number of ordered pairs: each position has |w| − 1 other positions available. Division by that number produces a mean.

The mean puts shorter and longer spans on a comparable scale for a given measure. Every eligible pair contributes, including pairs whose words are separated within the candidate. Accordingly, a span with a tightly associated pair and several weakly connected words can receive a different score from a span whose words are strongly associated throughout. The average is a description of the candidate as a whole. It does not identify a phrase boundary inside that candidate.

The paper describes an extreme-value convention for missing DeReKo evidence. If the candidate has no pair for which the reference-corpus measure is available, a null value is replaced with a minimum or maximum appropriate to the feature. Which end is appropriate depends on how the feature is defined. The result supplies a value for classification while preserving the distinction between the score that could be computed for an observed pairing and the special case where evidence is missing.

Comparing observed and predicted associations

The second view of combination strength comes from a predictor trained on DeReKo. The paper uses DeReKoVecs, trained with structured skip-gram, a variant of Word2Vec. Skip-gram learns about words through the task of predicting neighboring words. The structured variant supplies information about neighboring positions, and the paper again uses a window of +/- 5. The two pieces of earlier work behind this choice are Distributed Representations of Words and Phrases and their Compositionality and Two/Too Simple Adaptations of Word2Vec for Syntax Problems.

The authors derive the predictive collocation features, SY_W, from the output activations of the trained network. An activation is a value produced by its prediction calculation. Here the relevant activations provide scores for how strongly a word predicts neighbors. The network uses a lower-dimensional representation in its hidden layer to share information across words and combinations. This allows it to give a score to a plausible combination even when that pairing has not been observed. The generalization is also the basis of the authors’ idiom clue. If training evidence largely reflects a word’s ordinary uses, the predictor can favor neighbors associated with those uses and give less support to a conventional figurative phrase.

The paper relates these activations to shifted pointwise mutual information. It gives the following expression for the association a predictive activation approximates.

SPMI(w, wᵢ) = log(p(w, wᵢ) / (p(w) × p(wᵢ))) − log(k)

In this expression, SPMI means shifted pointwise mutual information. The symbol w denotes a focus word and wᵢ its neighbor, with the subscript i identifying the neighbor. The joint relative frequency is p(w, wᵢ), while p(w) and p(wᵢ) are the individual relative frequencies. Multiplying those individual frequencies gives the reference value for independent occurrence. The operation log takes the logarithm of the ratio between the joint frequency and that reference value. The subtraction − log(k) supplies the shift, with k representing the number of negative samples used in training. Negative samples are examples presented to the predictor as contrasts to neighbors it has observed.

The predictive features summarize the activation scores in several ways. The authors use an average with autofocus, a maximum, a combination of activations after normalization by column, and variants that sum activations with normalization. One sum uses all columns for its normalization and another uses columns selected with autofocus. These are ways of turning a set of prediction scores into candidate features. Their outputs go through the same general pairwise aggregation that the paper uses for syntagmatic measures.

The example involving Kuh, the German word for cow, makes the distinction concrete. In the count-based list, several prominent associates come from idiomatic uses. Eis, meaning ice, appears in the expression for resolving a difficult situation. The predictive list instead features words connected with cows as animals, including words for grazing or pregnancy. The appendix of evidence needed for this inference is small in the example: the contrast is visible in which associates reach the top of either list. The study tests across candidates whether that kind of contrast has broader value.

The authors give Versuch, meaning attempt, as a different case. Counted and predicted associates both fit the ordinary meaning, although predicted neighbors favor words connected with failure. That example shows why a general preference in predictive associations can have a linguistic explanation without identifying an idiom. The classifier has access to the pairwise measures along with the other feature groups and can learn which combinations of feature values tend to occur with the positive label.

Putting different association scales on a common footing

A count-based measure and a predictive activation have different numerical scales. The rank features, called SY_R, give the classifier an ordering-based representation of some of the same evidence. The authors rank associations from a DeReKo count measure and from predictive measures, then include those ranks as features. Their inputs are therefore related by construction to the original scores.

The paper also uses a difference between a predictive rank and a count-based rank. This feature expresses whether the two forms of evidence position the combination similarly. A pairing with a strong place among count-based associates can sit much lower among associates favored by the predictor. The method can represent that divergence through rank positions without subtracting a raw activation from a score measured on a different scale. The rank values and their difference complement the original measures as alternative descriptions of the same associations.

Checking whether the surrounding words fit

The context features, CO, shift attention from the words inside the candidate to the words on either side. The authors use word embeddings, numerical representations of words learned from their patterns of use. Words used in similar settings can receive similar vectors. The paper emphasizes that similarity in this representation can include near synonyms, more specific terms and words for parts of related things. It is a broader relationship than interchangeability.

The question for a candidate is whether its constituents are individually at home among the surrounding words. The authors illustrate this with the German expression for casting pearls before swine. Taken individually, the words for pearls and swine are close to words from domains such as jewelry and livestock. The expression as a whole can fit a theater review or a political speech, where the author’s point may have little to do with those domains. The same words can thus be well chosen as a phrase while their familiar individual associations are weak guides to the nearby text.

The authors compare candidate words with words in the five positions to the left and right. A pair receives a cosine similarity, a measure of how closely the directions of the two vectors align. A higher cosine indicates greater similarity by that measure. The context score averages similarities across the pairs formed by taking a word from inside the candidate and a word from outside it.

(∑ᵢ,ⱼ sim(wᵢ, cⱼ)) / (|w| × |c|)

The symbol w is the candidate, and wᵢ is its word at position i. The symbol c is the collected context for this occurrence, with cⱼ its word at position j. The expressions |w| and |c| give their respective sizes. The function sim calculates cosine similarity for the vectors of the indicated words. The sum ∑ includes every candidate–context pair. The denominator multiplies the sizes of the two groups, using ×, and division gives the mean over those pairs.

CO_VEC is the general version of this measurement. CO_VEC_LEX restricts it to lexical words, defined for this feature as nouns, verbs, adverbs and adjectives. The restricted version can reflect the thematic fit among content-bearing words, while the general version can use evidence from the entire window. The paper averages the context scores when a candidate occurs in several places. That produces a feature describing the settings in which the candidate has been observed, with the details of individual occurrences folded into the mean.

The context and predictive collocation measures answer different questions even though both draw on learned word representations. The predictive measures ask whether the words inside the candidate are plausible neighbors for one another under ordinary usage. The context measures ask whether words inside the candidate are semantically close to the words outside it. An expression can pair words that fit ordinary expectations yet appear in a passage with an unusual theme for those words. It can also contain a surprising pairing even when some of its constituents have close relations among the surrounding words.

Describing the evidence and training the classifier

The remaining group, O, describes aspects of the evidence available for a candidate. O_GRAM records its length, O_NSTOPW counts words remaining after stopword removal, and O_DEREKO counts words for which a reference-corpus embedding is available. A phrase can have a strong pairwise value based on a small amount of evidence. Another candidate can provide several eligible pairings and several words with usable embeddings. These counts allow the classifier to take such differences into account when it uses the association and context scores.

Each labeled candidate is represented by its calculated features. The Random Forest learns from the candidates whose labels are available in the training data. A Random Forest combines decisions from a collection of trees. The trees use divisions of the feature values to group examples and make predictions. Combining them lets the classifier use several clues together, including cases where the relevance of a score depends on other properties of the candidate.

The authors vary the cutoff used to turn the classifier’s output into a positive decision. A lower cutoff admits more candidates as potential idioms. It gives more labeled idioms a chance to be recovered and can also increase the number of literal examples returned. The usefulness of a cutoff therefore depends on what the resulting predictions are meant to support. A search for candidates to inspect can tolerate a different balance of errors from a search expected to return a short list of reliable hits.

The authors use cross-validation to test on held-out lyrics candidates and use a separate training and test arrangement for the Wikipedia experiment. They report that the data and source code are publicly available under a Creative Commons license. The named corpus, the two sources of collocation evidence, and the settings for constructing candidates are central to understanding what the predicted labels represent.

Experiments and results

The lyrics evaluation

After the authors excluded partly idiomatic cases and removed normalized duplicates, the lyrics evaluation had 542 idioms and 8697 non-idioms. That imbalance matters to the interpretation of a score. A classifier can make many correct decisions simply by assigning the more common label. The authors therefore report the quality of positive predictions and the rate of success on each class through measures designed to expose different errors.

Precision is the share of candidates predicted to be idioms that carry the idiom label. Recall is the share of labeled idioms that the classifier retrieves. F1 combines precision and recall through their harmonic mean, so an especially low value on either one pulls it down. Balanced accuracy gives equal weight to the rate of correctly identifying idioms and the rate of correctly identifying non-idioms. It keeps the common class from dominating the overall score simply through its size.

The standard evaluation uses 5-fold cross-validation. Candidates are divided into folds so that each held-out portion can be predicted by a classifier trained on the others. Deduplication is performed as a safeguard against fitting on a candidate and then encountering the same normalized wording in the held-out data. The experiment measures generalization to held-out candidates from the lyrics collection. Both training and test items come from that collection, and the lyrics-derived measurements describe that same collection.

The explicit comparisons in the lyrics experiment center on the feature set and the choice of cutoff. The authors use the complete set as a reference, train classifiers on separate feature groups, and compare configurations that omit selected groups. They also briefly say that Support Vector Machines yielded similar accuracy and scores. Their detailed numerical comparisons concern the Random Forest. The earlier studies discussed in the paper used different tasks or data and serve as context for the design rather than as systems rerun on the lyrics sample.

What changes when the cutoff moves

The default cutoff for the Random Forest is 0.5. The authors test other settings because the labeled examples strongly favor the non-idiom class and because the costs of missing an idiom and inspecting a false lead can differ. In the cutoff analysis, 0.3 gives the best reported F1, 61.9%, with precision and recall around 62%. The table of feature sets gives the detailed scores at that cutoff. The configuration that omits the rank group attains 63.0% precision and 60.9% recall, the figures underlying that F1 result.

The same cutoff can be judged differently under another metric. In the lyrics cutoff sweep, the best balanced accuracy is 83%, at a cutoff of about 0.05. The authors point to this setting as potentially suitable for exploratory searching, where retrieving more idioms is particularly valuable. The higher balanced accuracy at that operating point concerns correct decisions across both classes with equal class weight. It measures a different objective from the precision–recall balance captured by F1.

The distinction matters when reading the scores from the feature comparison. The configurations in that comparison share the cutoff of 0.3, so differences between their results reflect changes made to the feature inputs at the same decision setting. The cutoff sweep asks what can be gained by changing the decision setting itself. Comparing both gives a reader a sense of where performance depends on the evidence and where it depends on how readily the classifier returns a positive label.

Random Forest feature configurations on the German lyrics cross-validation, F1 at cutoff 0.3

The highest F1 comes from omitting the rank features while retaining both sources of count-based association evidence.

Random Forest feature configurations on the German lyrics cross-validation, F1 at cutoff 0.3All features: 61.3All features61.3Without DeReKo counts and ranks: 52.1Without DeReKo counts and ranks52.1Without lyrics collocation features: 56.5Without lyrics collocation features56.5Without predictive collocations and ranks: 59.8Without predictive collocations andranks59.8Without context similarity features: 60.1Without context similarity features60.1Without evidence counts: 58.3Without evidence counts58.3Without rank features (this paper): 61.9Without rank features (this paper)61.9
The numbers
System or settingF1 %
All features61.3
Without DeReKo counts and ranks52.1
Without lyrics collocation features56.5
Without predictive collocations and ranks59.8
Without context similarity features60.1
Without evidence counts58.3
Without rank features (this paper)61.9

With all features present at 0.3, the classifier records 62.7% precision, 59.9% recall and 78.9% balanced accuracy. The configuration without ranks gives 79.3% balanced accuracy at the same cutoff. The result supports treating the rank-free configuration as the leading one in this comparison. The closeness of the scores also matters. The authors describe the improvement from removing ranks as slight and suggest that chance may explain it.

The comparison involving DeReKo counts is especially revealing. Removing both those counts and the rank group gives 55.8% precision and 48.9% recall at the same cutoff. Removing the lyrics collocations gives 60.3% precision and 53.3% recall. These omissions affect how many correct idioms the classifier can recover as well as how reliable the returned candidates are. Because some omitted sets include related features, the experiments support conclusions about the sets of evidence represented by those removals.

Reading the errors in the lyrics

The authors examine candidates that the classifier flagged and the manual labeling treated as negative. Their examples include plausible idioms overlooked by the original labeling. A German phrase about stepping into somebody’s footprints can mean following their example or course. A phrase about being behind bars can function as an expression for being in prison. The inspection suggests that some apparent classifier errors can be errors in the reference labels.

Other disagreements are more ambiguous. The paper reports partly idiomatic material and fragments that could belong to a longer expression. A sequence meaning only an empty something, for example, might acquire the intended reading when completed with a word for promise. Because the initial candidates include arbitrary slices of sentences, recognizing something noteworthy about such a stretch and identifying a complete expression are separate accomplishments.

The authors also found a slang expression they interpret as referring to the effects of hallucinogenic drugs. Other flagged phrases include metaphorical or allegorical descriptions. Approximately 8% of the false positives in their inspection showed idiomatic or figurative use. That proportion characterizes the inspected disagreement category. Some candidates have a defensible idiomatic reading, and others illustrate how a feature may respond to figurative meaning more broadly. The reported classification scores still use the original reference labels.

Transfer to the Wikipedia idioms

For the transfer experiment, the authors collect German idioms from a Wikipedia list. They remove 72 overlaps with the lyrics gold standard and discard entries that would have fewer than 2 words after stopword removal. The remaining Wikipedia set contains 760 idioms. According to the paper, the overlapping expressions had all received the idiom label independently in the lyrics annotation. Removing them ensures that the listed positives used in the test are unfamiliar to the classifier as labeled training examples.

The new split uses all the idioms from the lyrics gold standard and a sample of 80% of its non-idioms for training. The test set joins the Wikipedia positives with the remaining 20% of the lyrics non-idioms. This is a transfer test for the source of the positive examples. The negative side of the comparison comes from the original collection. Understanding that arrangement is important because a score on this test reflects the ability to separate the two sets as assembled.

The feature set changes to suit a list of expressions. It contains the DeReKo count-based and predictive collocation measures, the ranks and the remaining evidence counts after excluding O_DEREKO. The authors leave out the lyrics-derived collocation and context groups. In particular, entries on an idiom list provide no corresponding local window of the kind the lyrics experiment uses. The remaining features allow classification from the expression and evidence available through the reference resource.

At a cutoff of 0.05, the transfer test reaches 71.0% F1 and 80.3% recall. The recall means that the classifier recovers most of the held-out Wikipedia idioms under this test arrangement. The paper compares the scale of the F1 with the 70% it cites for Hashempour and Villavicencio, while emphasizing differences in data and classification tasks. The comparison gives a point of reference for the score. The evidence directly established by the experiment concerns the Wikipedia positives and lyrics negatives in this test.

The transfer F1 and the in-lyrics F1 describe different conditions. The transfer test uses curated positive examples, a particular sample of lyrics negatives, and a reduced feature set. The in-lyrics test uses positive and negative labels from the sampled song spans. The experiment therefore establishes that a useful proportion of the listed idioms can be retrieved with general-corpus features, even when the local surroundings needed for the lyrics context features are unavailable.

What the ablations show

Which evidence works by itself

Training on a single feature group tests how much separation that group can produce at the common cutoff. The best individual group is the DeReKo count-based collocations, with 41.2% F1 in the lyrics cross-validation. The lyrics collocations give 31.7%, predictive collocations give 30.3%, and the ranks give 29.5%. The context features reach 9.1%, and the evidence counts yield 0.0%. Those figures put the count-based view of word combinations at the center of the standalone results.

The order changes slightly depending on the metric. The predictive collocations alone reach 39.2% precision, ahead of the 32.9% from the lyrics collocations alone. Their recall is 24.9%, compared with 30.6% for the lyrics group. The lyrics group’s stronger recall at this cutoff accompanies its stronger F1. Given a single operating point, each result describes both the information in a feature group and how readily the classifier makes positive predictions from that information.

High performance from the reference counts is consistent with a basic distinction in the sample. Many randomly drawn spans have little reason to recur as phrases. A measure that recognizes entrenched word pairings can help the classifier distinguish established expressions from those spans. The group also captures associations found beyond the sampled lyrics. Its standalone result is therefore evidence for the value of general corpus statistics in a discovery setting whose candidate pool includes arbitrary runs of words.

What the classifier loses when evidence is removed

The omission experiments ask how much a group adds in the presence of the rest. The greatest reduction occurs when the authors remove the DeReKo counts together with the ranks. Removing lyrics collocations produces the next largest reduction among the main association groups. Removing the predictive collocations together with the ranks has a smaller effect. The related rank features are taken out in those joint removals because they encode some of the same evidence as the original measurements.

The context features illustrate why performance in isolation can be a poor guide to usefulness in a combined system. Their standalone scores are low at the reported cutoff. Leaving them out of the full set gives 60.1% F1, compared with 61.3% for the full set. Nearby words can provide an extra clue once other features have established whether a span has the association patterns of a plausible phrase. The classifier’s full result incorporates whatever extra distinctions the context features supply.

The evidence counts show a similar pattern. They generate 0.0% F1 by themselves at the reported cutoff, while omitting them from the combined set gives 58.3% F1. The authors suggest that the counts help describe how much material supports the other measurements. A word count or an embedding availability count has little claim to reveal conventional figurative meaning directly. It can still matter when interpreting a pairwise association or context average based on the words available.

The rank group gives the reverse pattern. It has substantial standalone performance for this task, while the configuration that leaves it out has the highest reported F1. This makes sense given how the rank features are formed. Ordering the associations retains part of the information already present in the count or prediction scores. A classifier that can use the original values may gain little extra from also seeing their ranks. The authors treat the small improvement from omission as possibly random. They report that the standard deviation of balanced accuracy across repeated cross-validations with different seeds is around 0.5 for the feature combinations.

Why individual features tell a different story

The paper analyzes individual variables through mean decrease in accuracy, information gain and tests of class differences. These methods answer different questions. Mean decrease in accuracy is the Random Forest’s estimate of how much accuracy is lost when a feature’s information is disrupted. Information gain examines how informative the values of a feature are about the label on their own. The tests of class differences ask whether the mean score for idioms differs from the mean for the comparison group.

For mean decrease in accuracy, the paper highlights the two context variables as having high values, alongside important contributions from evidence counts and some lyrics collocation measures. The non-stopword count is itself prominent in the table. This is compatible with the weak standalone performance of context features. In a joint classifier, a variable can influence decisions among examples whose other feature values already narrow the choice. Measuring that influence yields a different result from training the entire classifier using context alone.

The authors caution that correlated features can share estimated importance. Several DeReKo scores describe related aspects of the same pairings. A forest can draw on more than one of those features, so the importance attributed to an individual variable depends in part on the availability of the others. The group omissions are consequently informative about the value of an entire family of signals, while the individual estimates describe their roles within the trained classifier.

By information gain, candidate frequency estimates from the lyrics are among the strongest variables the authors discuss. Count-based association measures from the lyrics and DeReKo also show substantial information gain. Predictive and context measures generally give smaller values on this diagnostic. A classifier may use frequency to distinguish a familiar unit from a chance sequence, then use context and predictive associations in harder decisions among spans with similar evidence of recurrence.

The comparison group changes the apparent properties of idioms

For the first comparison of class means, the authors use all the non-idioms. The results broadly show higher counted associations for idioms and, for many measures, higher predicted associations as well. At first glance the predictive result can seem at odds with the expectation that the words of idioms form unusual combinations. The composition of the comparison group gives a reason for both patterns. It contains arbitrary word sequences as well as established transparent phrases. Arbitrary sequences can have particularly weak associations by either measure.

Context similarity also varies with how the feature is calculated. The mean for idioms is lower when all eligible context words are included. For the version restricted to lexical words, the mean is higher in the comparison with all non-idioms. The paper uses a Welch two-sample t-test to assess mean differences. The direction of a difference and the evidence for it are separate matters. In particular, the unrestricted context score is among the exceptions to the broad pattern of statistically significant results the authors describe.

The authors then restrict the negative comparison group to candidates whose DeReKo logDice value exceeds the mean for all non-idioms. This selects non-idiomatic spans that have relatively strong evidence of word association. The comparison is closer to the case where a candidate already looks like an established phrase and the open question concerns its idiomatic status. It also gives the association measures a harder sample of negative examples to distinguish from the positives.

In the restricted comparison, idioms tend to have weaker DeReKo associations on many of the tested measures, including the predictive scores. One exception the authors identify among the count features is pointwise mutual information. The corresponding rank features change direction compared with the unrestricted analysis. The difference between the predictive rank and the count rank also tends to be larger for idioms. The authors interpret this as evidence that the predictor gives relatively less support to combinations whose counted use includes an idiomatic reading.

The context scores point toward lower similarity for idioms in the restricted comparison, including the lexical-word version. The authors report significance at a confidence level of at least 0.99 for the differences in that comparison apart from unrestricted CO_VEC. Thus the broad context score gives a difference in the expected direction with weaker statistical evidence. The lexical restriction supplies clearer evidence in this comparison that the nearby content words can be atypical for the individual constituents.

Taken together, the comparisons explain how conventionality and unusual use can appear in the same expression. The full negative pool tests whether an idiom looks more like a phrase than the average sampled span. The restricted pool tests how idioms differ from spans already selected for strong associations. High observed association is especially useful for the first question. The predictive rank gap and context measurements help characterize the second. The analyses describe tendencies across examples, so individual expressions can satisfy these clues to different degrees.

Limitations

Limits the authors identify

The collocation features need words that can be paired. An expression can contain only one content word along with stopwords. After those stopwords are removed, the expression supplies little or no evidence for the DeReKo pairwise features. The authors say that in this case the approach depends on contextual evidence. The filter in the Wikipedia experiment narrows the transfer result to entries that retain enough words for pairwise measurement.

Novel phrases pose a different problem for counts. An expression can make sense as an inventive idiom in a lyric before it has enough occurrences to register a strong association in either corpus. Count-based evidence measures observed conventionality. A candidate at the beginning of its use can therefore lack the main signal that helps distinguish established units from arbitrary spans. Lyrics bring that limitation into focus because creativity is part of the reason for studying the register.

The authors also identify the case where figurative usage strongly dominates. They give the German expression involving Pappenheimer, used to express familiarity with the people one has to deal with and their weaknesses. When uses of a component word overwhelmingly come from its idiomatic environment, the predictive associations and embeddings can already reflect that environment. The phrase can then look ordinary relative to the distribution from which the method learns its expectations. This limits both the predictive collocation clue and the context clue in precisely those cases where familiar literal usage supplies little independent comparison.

The measures also capture some forms of fixedness more readily than others. Pairwise associations and repetition can show that words tend to travel together. The authors identify better measurement of formal fixedness as future work. They also propose features for semantically opaque compounds that appear as individual words. Such compounds fall outside the initial candidate rule, which searches for spans containing multiple tokens.

Limits of the candidate set and annotation

The raw-span extraction is broad within the declared length and boundary rules. Those rules also define which expressions are available to be found. Longer spans fall outside the search. A phrase with intervening material can enter only through a contiguous sequence that includes that material, provided it fits the length limit. The classifier assigns a label to each candidate as it stands. The method offers evidence about whether a span looks idiomatic while leaving the reconstruction of a discontinuous expression unresolved.

Overlapping candidates create another issue for text-wide discovery. A complete expression and a neighboring span that contains only part of it can both attract evidence from the same associated words. The study excludes partly idiomatic annotations from its binary evaluation and reports some fragment-like cases in the error analysis. Its scores therefore address the sampled and filtered candidates. They do not quantify how reliably overlapping predictions could be resolved into exact expression boundaries across complete lyrics.

The paper describes labeling by a native speaker. It provides no agreement estimate from independent annotation of the full sample. This matters because the study begins from gradual idiomaticity and recognizes neighboring figurative categories. The examples from error inspection show how a label can miss a plausible idiom or assign a figurative construction to the negative class. The reported scores measure agreement with the labels used for evaluation. The inspection adds evidence about the kinds of disagreement without replacing those labels with a new validation set.

Limits of the comparisons and transfer test

The lyrics cross-validation holds out candidate expressions after normalization and deduplication. The count and context features derived from the lyrics still describe the corpus from which those expressions were drawn. The design is suitable for testing how a classifier uses measurements from a corpus whose candidates it is meant to help sort. An evaluation on completely new songs, with their own repetitions and terminology, could present a different problem. The paper does not report a split by artist or song that would isolate that kind of generalization.

The Wikipedia test supplies independent positive examples and retains negative examples from the lyrics. This establishes a form of transfer across sources for idioms. A test of classification throughout Wikipedia would also need a way to sample and label its ordinary phrases and the spans in which they occur. The curated list contains entries known in advance to be idioms, and its filters favor forms for which the selected features can be calculated. Its recall measures retrieval of those entries under the paper’s test setup.

The transfer experiment also leaves open how the method would handle different uses of the same expression in running text. A list entry is evidence of an idiom as an expression. An occurrence of those words can still require a judgment about its meaning in context. In the lyrics experiment context scores can be averaged over occurrences, and in the Wikipedia test local context is absent. The results are chiefly about recognizing candidates, with more limited evidence about deciding how a particular occurrence should be read.

Finally, the authors suggest the general approach could be applicable beyond German. The training, reference counts, embeddings and test data in the reported experiments all concern German. Applying the same measurements elsewhere would depend on language-specific resources and on which expressions qualify under the token-based extraction rule. The paper supplies a rationale for trying the approach more widely and empirical results for the settings it examines.

What came after

The paper ends with a program for further evaluation. The authors propose applying the measurements to larger annotated resources and name the PARSEME corpora and COLF-VID as candidates. They also plan to look for features that better represent fixedness and can handle opaque compounds written as individual words. These directions follow directly from choices in the study. Its unrestricted extraction covers several kinds of short contiguous expression, while a dedicated annotated resource can support more focused questions about specific expression classes and their uses.

The proposed work also separates two extensions of the original study. Testing on larger resources would show how the existing association and context features behave under new annotation and sampling arrangements. Adding fixedness or compound features would change the evidence the classifier can use and, for single-word compounds, the candidates it can examine. Those are research plans described by the authors. There is no documented later study here establishing how those extensions were carried out or what they found.

Cite

Cite as Miriam Amin, Peter Fankhauser, Marc Kupietz and Roman Schneider. 2021. Data-driven Identification of Idioms in Song Lyrics. Proceedings of the 17th Workshop on Multiword Expressions (MWE 2021).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.mwe-1.3

@inproceedings{amin2021data,
  title = {{Data-driven Identification of Idioms in Song Lyrics}},
  author = {Miriam Amin, Peter Fankhauser, Marc Kupietz and Roman Schneider},
  booktitle = {Proceedings of the 17th Workshop on Multiword Expressions (MWE 2021)},
  year = {2021},
  doi = {10.18653/v1/2021.mwe-1.3},
  url = {https://doi.org/10.18653/v1/2021.mwe-1.3}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/amin-2021-data-driven-identification-idioms-song/