---
title: "Dependency vs. Constituent Based Syntactic N-Grams in Text"
description: "A comparison of dependency and phrase structure for recognizing paraphrases, with results for word overlap, synonym matching, and…"
canonical: "https://research.elamur.ai/free/en/papers/calvo-2014-dependency-vs-constituent-based-syntactic/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/calvo-2014-dependency-vs-constituent-based-syntactic/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2014](https://md.research.elamur.ai/free/en/papers/2014/) / Dependency vs. Constituent Based Syntactic N-Grams in Text Similarity Measures for Paraphrase Recognition

# Dependency vs. Constituent Based Syntactic N-Grams in Text Similarity Measures for Paraphrase Recognition

Paper · 2014 · Hiram Calvo, Andrea Segura-Olivares and Alejandro García

**Authors:** [Hiram Calvo](https://md.research.elamur.ai/free/en/authors/hiram-calvo/), Andrea Segura-Olivares and Alejandro García · **Year:** 2014 · **Venue:** Computación y Sistemas · **Licence:** other-oa per OpenAlex (not a CC licence; rights reserved) — text kept private

Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read · Computación y Sistemas

- [PDF](https://www.redalyc.org/pdf/615/61532067009.pdf)
- [DOI 10.13053/cys-18-3-2044](https://doi.org/10.13053/cys-18-3-2044)

## Summary

Two sentences can report the same event in different words, while sentences that look almost identical can disagree about who took part, where it happened, or how much changed. Paraphrase recognition asks whether a pair of expressions conveys the same information. The authors investigate whether comparing grammatical structure helps with that decision. Their starting point is the [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/), a unit that ordinarily groups adjacent words. They compare that familiar representation with units formed from two kinds of grammatical analysis. Dependency analysis connects words through relations such as the link between a verb and its subject. Constituent analysis groups words into phrases and assigns grammatical categories.

Both analyses come from the Stanford parser. The authors extract short units from each sentence, compare the units across the pair, and use a threshold on the resulting score to decide whether to accept the pair as a paraphrase. They test ways to make the comparison less sensitive to changes in wording, including stemming, which reduces words to shorter forms for matching, and synonym expansion, which supplies alternatives for the words already present. Their experiments also examine which unit lengths work best and whether combining lengths improves the decision.

On the Microsoft Research Paraphrase Corpus test set, constituent bigrams with stemming and synonyms achieve the highest reported F-measure among the proposed configurations, at 82.41%. F-measure combines precision, the share of accepted pairs that are correct, with recall, the share of true paraphrases that are accepted. The strongest dependency-bigram result is 80.60%, and the always-positive baseline scores 79.87% in the detailed test tables. Constituents have an advantage across the tested sizes when the authors compare the leading configurations, although the size of that advantage and the balance between precision and recall vary. A separate comparison also finds that plain word unigrams outperform the best syntactic bigram settings on three of the four evaluation measures. The study thus gives evidence for using constituent structure when grouping words, alongside evidence that a simpler representation can be highly effective on this corpus.

The benchmark helps explain those results. Most pairs are labeled as paraphrases, and many sentences already share substantial wording. The authors also find shared errors involving changed quantities, different locations or participants, and differences in how much information each sentence gives. Some similar kinds of information mismatch receive different labels in the corpus. The results establish how particular extraction and matching choices behave under these conditions, with the strongest evidence favoring short constituent units among the syntactic approaches tested.

## Deep dive: Dependency vs. Constituent Based Syntactic N-Grams in Text Similarity Measures for Paraphrase Recognition

A comparison of dependency and phrase structure for recognizing paraphrases, with results for word overlap, synonym matching, and decision thresholds. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Shared wording and shared information

A paraphrase judgment concerns the information conveyed by an expression. Two descriptions can tell the reader the same thing even if a writer substitutes a word, moves a clause, or changes the grammatical form used to express an idea. A recognition procedure has to decide how much visible difference it can accommodate. The opposite problem is equally important. Two expressions can keep the same subject matter and share most of their words while making distinct claims. The comparison needs to give enough weight to the parts that change the claim.

Consider the difference between a sentence that says an organization collected records of disappearances and a sentence that reports the same collection but adds that the actual total may be much higher. Much of the wording can align, and both sentences describe the same activity. The extra qualification contributes information of its own. A procedure that measures the overall amount of shared material can treat the qualification as a small difference even when a human judgment turns on it. The paper's error analysis returns to this kind of case because it reveals a problem with both the recognition procedure and the labels used to evaluate it.

Ordinary n-grams offer a practical way to go beyond counting shared individual words. A bigram can show that a pair of words occurs together, and a longer sequence can preserve a larger stretch of wording. This provides some evidence about how a sentence was put together. The evidence depends on where the writer placed the words, however. A useful grammatical relation may span several intervening words. Likewise, two adjacent words can end up next to each other because both belong near a third word. This is where the authors see a role for [syntax and grammar](https://md.research.elamur.ai/free/en/topics/syntax-grammar/).

The paper illustrates the issue with a barking dog and a noun phrase containing a determiner and successive modifiers. A surface scan pairs the determiner with the first modifier and pairs one modifier with the next. A grammatical analysis can instead represent each modifier's relation to the noun. It can also connect the noun to the verb across any intervening material. The authors want to know whether units built from such connections offer better evidence when comparing sentences. Their question is about the usefulness of the extracted units for recognition, alongside the linguistic motivation for extracting them.

#### Two kinds of structure

The two analyses preserve different information. In a dependency tree, a connection links a head word to a word that depends on it. A verb can govern its subject, and a noun can govern a modifier. Matching units from such a tree can reveal a shared relation whose words occupy different positions in the two sentences. The important comparison is between the words and their connections. The parser's choice of a main head also matters, because it affects how the rest of the tree is organized. [Dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/)

A constituent tree represents groups, including phrases that contain smaller phrases. It also supplies categories for items in the sentence. This gives the comparison access to information about which words belong together and how the analysis classifies them. For instance, two occurrences of a spelling may be treated differently if the parser assigns distinct grammatical roles. The study asks which of these ways of constructing short features serves the task better when the sentences and their paraphrase labels come from the same benchmark. [Parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) · [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/)

This distinction matters because the evidence provided by a unit depends on what has to stay the same for it to match. A word may have a close counterpart in the other sentence, and its grammatical label may still differ. A pair of words may recur, and the dependency analysis may still attach one of them differently. Both representations give the scoring procedure a way to be selective, but they make it selective about different things. A comparison can therefore reward a preserved dependency, a preserved category, or a shared word, depending on which units enter it.

The authors also have a practical reason for putting syntax to a test. A sequence of neighboring words can be collected directly from the sentence. Producing grammatical units requires a parser, and the paper notes both its potential cost and uneven availability across languages. The expense is easier to justify when structural units improve decisions that a direct word comparison handles poorly. A fair study needs to examine surface units as well as different parse-based choices, including simple settings in which extra lexical techniques play no role.

#### Earlier approaches

The paper places the study alongside approaches using lexical, syntactic, and semantic evidence. Previous work had also examined how to construct units by following syntactic connections and how to use these units for classification. The paper cites related applications, including grammatical correction, as motivation for testing them on paraphrases. One comparison is particularly close to the research question because it uses dependency-based features to recognize paraphrases. Another looks at the changes required to transform a tree, treating those changes as evidence for paraphrases and related tasks. [Using Dependency-Based Features to Take the Para-farce out of Paraphrase](https://md.research.elamur.ai/free/en/papers/wan-2006-dependency-based-features-take-para/) · [Tree Edits for Textual Entailment and Paraphrases](https://md.research.elamur.ai/free/en/papers/heilman-2010-tree-edit-models-recognizing-textual/)

Other approaches in the paper's comparison emphasize the overall relation between the sentences. One studies paraphrase recognition through probabilistic quasi-synchronous analysis, an approach that considers correspondences across the paired expressions. Another uses the significance of dissimilarity for classification. The latter emphasis is especially relevant to pairs that agree on nearly everything visible. A difference in a small stretch of wording can matter more to the label than a much larger stretch of shared text. [Probabilistic Quasi-Synchronous Paraphrase Identification](https://md.research.elamur.ai/free/en/papers/das-2009-paraphrase-identification-as-probabilistic-quasi/) · [Dissimilarity Significance Classification](https://md.research.elamur.ai/free/en/papers/qiu-2006-paraphrase-recognition-dissimilarity-significance-classification/)

The paper also compares against work that combines similarity measures through a learned procedure, and against an approach that draws on metrics developed to evaluate translation. The study at hand keeps the recognition rule centered on a score and a cutoff, then varies how the score gets its evidence. This design lets the authors compare plain word sequences, dependency units, and constituent units within the same investigation, while placing the resulting configurations alongside other approaches to the benchmark. [Combining Similarity Measures for Paraphrase Recognition](https://md.research.elamur.ai/free/en/papers/malakasiotis-2009-paraphrase-recognition-machine-learning-combine/) · [Re-examining Translation Metrics for Paraphrase Identification](https://md.research.elamur.ai/free/en/papers/madnani-2012-re-examining-machine-translation-metrics/)

The benchmark itself comes from work on collecting possible paraphrases from news sources. The underlying task has an unusually close connection to how those pairs were collected. Sentences describing related news can share names, events, and wording even when they make claims of different scope. A collection of such pairs gives the experiment both promising paraphrases and difficult alternatives. The recognition questions are whether the two sentences should receive the same label and which features give a scoring rule enough evidence for that decision. [Unsupervised Construction of Large Paraphrase Corpora](https://md.research.elamur.ai/free/en/papers/dolan-2004-unsupervised-construction-large-paraphrase-corpora/)

### The method, step by step

#### From a pair of sentences to a decision

The architecture separates the analysis of each expression from the decision about the pair. First, the authors produce syntactic descriptions of the sentences and extract units from them. The recognition stage then compares the units belonging to the two sentences. The experiment judges the resulting pair label against the corpus annotation. This division makes it possible to change the unit construction, the lexical matching, or the decision setting while retaining the same general task.

From sentence pairs to paraphrase decisions The steps in order.

The Stanford parser supplies both the dependency and the constituent analyses. The authors give this as a reason for selecting it, along with a previous evaluation they cite in discussing recall and F-measure. Using the same parser for the two families provides a shared starting point. Each family still uses a different output from the parser. In the surface comparison, the authors can form units from the original sequence of words. For word unigrams, the choice of path through a syntactic analysis ceases to matter because the unit contains only a single word.

The paper shows a dependency example with sentences about Amrozi accusing his brother of distorting evidence. One sentence introduces a description of the brother inside the main statement. The other moves a reference to that description to the beginning. The parser's dependency output retains several relations in both. The accusation has the same subject and object, and the action of distorting is still linked to the evidence. The clauses about how the brother was referred to have different internal connections. The example shows what can persist through a change in position and what still changes when the writer restructures a clause.

In its dependency output, the parser identifies words by their positions in the sentence. That is how the representation can distinguish two occurrences of the same spelled word during analysis. In the stored example, the authors retain units with forms such as the pair linking the verb for the accusation to the name of its subject. They also show a unit connecting the designated root to the main verb. The stored units omit the positions displayed in the parser output. An occurrence appearing earlier or later in the sentence can therefore contribute the same unit to the comparison.

The authors store the sentence identifier, the sentence itself, and its extracted units. Their description shows the storage format for dependency bigrams and says they generate the longer units for both kinds of parse. The extraction procedures produce bigrams, trigrams, and tetragrams, which are units of increasing length. The paper directs readers to earlier feature-analysis work for the full extraction procedure. Its examples establish the nature of the features used in the recognition experiments, with greater detail left to that account.

The constituent side uses the other view of sentence structure. Its examples show how lexical material can be paired with grammatical categories. A comparison can therefore distinguish a word seen in one grammatical role from the same spelling assigned a different role. In a dependency unit, a match can fail when the attachments change even though the words remain available. In a constituent unit, a match can fail when a tag changes. These are different ways for the grammar to affect the resulting inventory, an important distinction when interpreting the recurrent errors the authors report.

#### Expanding the evidence for a match

The authors apply several optional techniques around the syntactic comparison. Each changes either the units offered to the comparison or the criterion for accepting a match. Stemming reduces word forms to a common basis for comparison. This can make two surface forms comparable when they differ in endings. Stopword removal omits selected common words. Its intended role is to keep frequent material from dominating the comparison, though removing words can also affect which units are available as evidence. The authors try these techniques alone and in combinations. [Stemming](https://md.research.elamur.ai/free/en/concepts/stemming/)

The negation procedure operates on the sentence before parsing. Once it encounters a negation expression such as a negative contraction or the word *not*, it adds a negative marker to following words up to specified punctuation. The paper names a period, colon, or semicolon as a stopping point. Its example has a statement about whether liquid water can exist on Mars. Words after the negation receive repeated marking, allowing the representation to distinguish those occurrences from the corresponding unmarked words in an affirmative statement. The scope is decided by the position of the trigger and punctuation.

That timing matters. The parser receives the marked sentence, so negation can affect both the forms compared later and the syntactic analysis used to build the units. The procedure makes a broad distinction between material inside and outside an estimated negative span. Within that span it treats following words alike. The paper tests whether this simple treatment helps in practice through settings that include negation with different unit lengths and other auxiliary techniques.

Synonym expansion addresses a different cause of mismatch. For a word that has a selected synonym, the authors add a version of the unit with that word replaced. They also keep the original version. Substitution can take place at multiple positions, so a pair of units has more ways to match. In one illustration, a unit containing *car* has a version containing *auto*. If the other position holds a grammatical category such as `NN`, it stays fixed while the word changes. A unit with replaceable words in both positions can generate versions with either substitution by itself or with both together.

The paper gives the size of the expansion when every position permits the original and a substitute.

```
2ⁿ
```

The base `2` refers to the original or substitute choice at a position. The exponent `n` is the number of positions in the syntactic unit. This expression counts the original among the possible variants. A position occupied by a grammatical tag need not provide a second choice, as the paper's `NN` example illustrates. This is why the expansion in that example has fewer variants than a bigram with two replaceable words.

Expansion makes near-equivalence usable by an otherwise exact comparison. There is still a distinction between replacing a word with its nearest available synonym and finding that two words are sufficiently related by a separate measure. The former creates alternatives to search for among the units. The latter can make a pair of existing units comparable even if their members never become identical under expansion. The paper tests both routes to less rigid lexical matching. [Lexical semantics](https://md.research.elamur.ai/free/en/concepts/lexical-semantics/)

#### Making a graded word comparison

For related words that the synonym expansion leaves unmatched, the authors try Lin's similarity measure. They describe this use of the measure with reference to the WordNet hierarchy. It assigns a graded value to the comparison, which the authors can then convert into a yes-or-no match. Their example compares the bigram containing *education* and *disaster* with one containing *school* and *accident*. Expanding the two bigrams through the illustrated synonyms still leaves them without an exact match. Lin's measure gives the comparison another way to treat them as equivalent.

In the example, *education* and *school* have a Lin similarity of 0.84, and *disaster* and *accident* have a Lin similarity of 0.88. Both clear the empirically chosen word-similarity threshold of 0.8. The corresponding bigrams can therefore count as equivalent for the recognition procedure. The choice trades strict word identity for a criterion under which semantically related terms can support the same local comparison. [Semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/)

The cutoff of 0.8 in that example works at the level of the lexical evidence. The recognition experiment also uses a decision threshold for the sentence pair as a whole. Its role is to decide how much overall similarity or difference is sufficient for a paraphrase judgment. A unit pair can pass the lexical comparison while the sentence pair still receives a negative decision. Likewise, two sentences can pass the final threshold on the strength of their other matched units even when one particular unit differs. The two thresholds govern decisions at different levels.

The paper describes the pair-level score and cutoff through the experimental variants. It gives examples of what the units contain and how local equivalence can be established. Its account does not supply a single algebraic definition that reconstructs every overlap score and normalization used by the recognizer. The distinction between a cutoff on similarity and one on difference is therefore relevant. The direction of a numerical cutoff has to be read in relation to the specific score, especially when comparing the dependency and constituent settings.

#### Choosing the decision cutoff

For each configuration, the authors try cutoffs from 0.05 to 0.95, advancing in steps of 0.05. They use F-measure on the training pairs to select a threshold and apply the selected value to the test pairs. The threshold is a way to tune how readily the system accepts a pair. It gives the training labels a direct role in the decision rule even though the recognition stage does not train a separate classifier of the usual kind.

For dependency units, the authors first try the original training split. They find that optimizing F-measure often favors a threshold under which the output approaches an always-positive decision. They therefore carry out dependency threshold selection on a balanced sample of the training data. The sample includes all 1,323 negative training pairs and an equally large random selection of positive training pairs. Both labels thus have equal representation when the threshold is chosen. The test split remains in its original form.

Constituent threshold selection uses the original, unbalanced training split. In addition to choosing a cutoff for each technique combination, the authors hold the cutoff constant across lengths within each syntactic family for separate comparisons. Those experiments use 0.85 for dependency units and 0.55 for constituent units. This lets the reader ask what happens when only the feature length and the selected techniques change within a family under a common cutoff. The individually tuned comparisons answer a different question about each configuration under its own training-selected setting.

A common numerical cutoff can still have different practical effects at different lengths. In particular, a representation made from longer units can give pairs a different distribution of scores. Holding a cutoff fixed avoids retuning it for individual sizes. The metric values that result describe how each size behaves at that shared setting, including whether it accepts more or fewer positive examples. The individually tuned results are useful alongside them because a size can behave differently once its own cutoff is fitted.

#### Combining lengths and estimating relatedness from context

The dependency experiments add a weighted combination of bigram, trigram, and tetragram evidence. A cutoff is applied to the combined score. Each length has a weight, and the weights are constrained as follows.

```
λ₄ + λ₃ + λ₂ = 1
```

The symbols `λ₄`, `λ₃`, and `λ₂` are the weights on dependency tetragrams, trigrams, and bigrams, respectively. The subscripts identify the unit lengths. The `+` signs indicate addition, and `=` fixes the total at `1`, the full weight available for the combination.

```
λ₄, λ₃, λ₂ ≥ 0
```

The three symbols name the same weights. The commas list the weights to which the condition applies, `≥` means greater than or equal to, and `0` is the smallest allowed value. A weight can remove a length from the combined score by taking that value. A positive weight lets the corresponding score contribute, with larger weights giving it more influence.

The authors step through possible weights in increments of 0.1. They report 66 candidate combinations and test 63, omitting the settings that place all weight on a single length. They examine the combination without auxiliary techniques and also compare versions with and without stemming. This design can reveal whether mixed lengths bring complementary evidence, and whether the preferred mix changes when the experiment emphasizes a different evaluation measure.

A further dependency variant constructs a similarity matrix using dependency bigrams. Its inspiration is earlier work that represents a word through words that occur with it in a context window. It then compares the resulting vectors by the cosine of the angle between them. Here the authors explore syntactic bigrams as the basis for the matrix. This gives the experiment an alternative to requiring literal identity between units or applying the fixed lexical criterion in the Lin variant. The description identifies the basis of the matrix and the precedent for it, with the full construction left less explicit than the weight search. [Distributional semantics](https://md.research.elamur.ai/free/en/concepts/distributional-semantics/)

### Experiments and results

#### The corpus and the cost of an easy positive decision

The Microsoft Research Paraphrase Corpus supplies labeled sentence pairs for training and testing. The authors report that 67.5% of pairs in the training split and 66.5% in the test split are positive. In discussing how this distribution arose, they point to the selection of 5,801 pairs from 20,574 possible paraphrases. They describe the selection as random, without a criterion requiring equal representation of positive and negative pairs. Balancing the training sample for one part of the study changes how the dependency threshold is selected. The published evaluations still test on the corpus with its original positive majority.

The authors report accuracy, precision, recall, and F-measure. Accuracy is the share of all pair judgments that agree with the reference labels. Precision conditions on the pairs the recognizer calls paraphrases. It asks how often a positive decision is correct. Recall conditions on the pairs labeled as paraphrases. It asks how many of those the recognizer finds. F-measure combines precision and recall through their harmonic mean, which makes both relevant to the score.

The always-positive baseline illustrates how these measures behave together. In the detailed test tables it has 66.49% accuracy and 66.49% precision, because every pair is accepted and the positive share determines both results. Its recall reaches 100.00%. The resulting test F-measure is 79.87%. The paper's baseline discussion reports 79.9% for that score. An apparently strong F-measure is thus attainable by retrieving every positive example along with every negative example. To assess what a configuration learns about the distinction, the authors also inspect the mistakes behind its results. [Evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

#### The leading configurations

The paper aggregates the best reported test F-measures from the dependency and constituent families, along with the dependency variants that combine evidence. The entries compare individually configured systems, including the lexical techniques and decision settings selected for each. The chart is a comparison of the tested configurations at their leading reported F-measures.

Best reported configurations on the Microsoft Research Paraphrase Corpus test set by F-measure Constituent bigrams lead the reported configurations, followed by constituent trigrams.

**The numbers**

| System or setting | F-measure % |
| --- | --- |
| Always-positive baseline | 79.87 |
| Dependency bigrams | 80.60 |
| Dependency trigrams | 80.05 |
| Dependency tetragrams | 79.54 |
| Weighted dependency combination with stemming | 80.58 |
| Dependency bigram similarity matrix | 80.33 |
| Constituent bigrams (this paper) | 82.41 |
| Constituent trigrams | 81.91 |
| Constituent tetragrams | 80.32 |

The leading constituent-bigram setting uses stemming and synonyms at a threshold of 0.50. Along with its test F-measure of 82.41%, it has 72.34% accuracy, 71.39% precision, and 97.47% recall. This maintains high coverage of actual paraphrases while improving the reliability of positive decisions compared with accepting every pair. The plain constituent-bigram setting, without the auxiliary techniques, already has a test F-measure of 81.66% at 0.55. The result with stemming and synonyms measures the full configuration, including a separately selected cutoff.

Dependency bigrams have two settings at 80.60% test F-measure, both at 0.85. The synonym-only setting has 68.69% accuracy, 68.54% precision, and 97.82% recall. The setting with stemming and synonyms has 68.63% accuracy, 68.45% precision, and 97.99% recall. The authors favor the latter in their discussion because it performs better than the synonym-only setting on the training split by F-measure. The two test rows make clear how an F-measure tie can contain a small shift in the balance between precision and recall.

Among the trigram settings, the strongest constituent configuration uses Lin similarity and negation at 0.50. Its test F-measure is 81.91%, with accuracy of 71.71%, precision of 71.24%, and recall of 96.33%. For dependency trigrams, the leading setting identified in the detailed test table and the paper's consolidated results uses stemming, Lin similarity, negation, and stopword removal at 0.90. It records 80.05% test F-measure. The shorter constituent units remain competitive without the same combination of techniques.

Tetragrams obtain lower test F-measures than the shorter syntactic units in both families. The constituent setting highlighted by the authors uses synonyms and negation at 0.90, reaching 80.32%. That row has 67.59% accuracy, 67.35% precision, and 99.47% recall. The leading dependency tetragram setting for test F-measure, with Lin similarity and stopword removal at 0.95, reaches 79.54%. Its recall is 98.51%, but precision is 66.70%. These tuned tetragram results show how close a configuration can stay to the positive baseline even at a length that provides comparatively selective evidence in some of the fixed-cutoff runs.

#### Weighted evidence and the similarity matrix

The largest test F-measure the authors show for a weighted dependency combination without auxiliary techniques is 80.50%. It uses a bigram weight of 0.9, a trigram weight of 0.0, and a tetragram weight of 0.1. At threshold 0.10, test accuracy and precision are each 68.69%, and recall is 97.21%. This best reported mixture without auxiliary techniques depends chiefly on bigram evidence. Its tetragram component contributes alongside that principal score.

The paper's consolidated figure for the combination with stemming is 80.58% test F-measure. The discussion finds that stemming improves recall and F-measure in the comparison using the best training weights for the two variants. In a separate comparison against individual dependency lengths, the weighted method has the highest recall among the methods compared there. The best individual dependency bigram configuration retains the higher F-measure. The combination's recall advantage is therefore a result about the kinds of decisions it makes, with the overall ranking depending on the evaluation measure.

The similarity matrix attains 80.50% F-measure on the training split and 80.33% on the test split at threshold 0.20. On the test split it gives 68.46% accuracy, 68.62% precision, and 96.86% recall. The authors describe it as second on F-measure among the matrix and the individual dependency lengths they compare. They find better precision than with simple dependency bigrams in that comparison. The smaller recall helps explain why the shift in precision does not give the matrix the leading F-measure.

#### Surface sequences and the unigram comparison

The experiment that compares plain n-grams to both syntactic families uses each configuration's own cutoff and leaves out the auxiliary lexical techniques. This narrows the comparison to the way units are constructed and the associated decision settings. The authors report that constituent bigrams outperform surface bigrams on all four measures. Dependency bigrams also show advantages over surface bigrams, though the latter retain higher recall. That recall result is consistent with surface bigrams accepting many pairs in a corpus with substantial shared wording.

The rankings vary with length. At the trigram length, surface sequences get higher F-measure than dependency trigrams, which have lower recall. Constituent trigrams outperform surface trigrams on three of the four measures, with recall favoring the surface sequences. At the tetragram length, surface units also outperform dependency units in the general comparison, while constituent tetragrams lead surface tetragrams on three measures and tie their recall. The authors find the clearest benefit of syntactic grouping in the constituent configurations.

The counts make the baseline tendencies easier to read. The traditional bigram row reports 1120 true positives and 44 true negatives, alongside 534 false positives and 27 false negatives on the test set. For traditional tetragrams the corresponding counts are 1140 true positives, 8 true negatives, 570 false positives, and 7 false negatives. A true negative is a correctly rejected non-paraphrase. The counts show how few negative pairs the traditional tetragrams recognize, alongside their success at recovering positive pairs. A score driven by frequent acceptance can look strong in recall even as many of its positive calls are wrong.

Word unigrams form a separate comparison. Because a unit contains just one word, the same word inventory underlies the surface, dependency, and constituent cases. With no auxiliary techniques, the unigram setting outperforms the best syntactic bigram settings on three of the four measures in the authors' comparison. That finding and the constituent gains at the bigram length answer different questions. The surface bigram comparison measures the benefit of choosing neighbors through a syntactic analysis. The unigram comparison asks how far the corpus can be handled without grouping words at all.

#### Position against published approaches

The paper places its F-measures alongside previously published results for the corpus. When included among supervised approaches, constituent bigrams rank sixth by F-measure in the paper's comparison. They rank second alongside the approaches listed as unsupervised. The second comparison has a leading result of 82.88% F-measure, from work combining similarity measures. The leading supervised entry reports 84.1% test F-measure, from work examining translation evaluation metrics. These are positions in two sets of published results, ordered by the paper's chosen measure.

Accuracy gives additional context to those rankings. The leading supervised F-measure entry has 77.4% test accuracy, and the strongest entry among the approaches listed as unsupervised has 76.17% test accuracy. The proposed constituent setting has 72.34% test accuracy. The authors also qualify the learning terminology. Their recognition rule uses a tuned cutoff without a separate learned classifier, and the parser relies on manually tagged data. The comparison places the system among published methods without assigning its full pipeline to the unsupervised category.

### What the ablations show

#### Threshold selection can dominate the experiment

The initial dependency runs show what happens when the experiment optimizes F-measure on the original training split. The paper illustrates the result without optional lexical techniques. At a threshold of 0.95, the dependency recognition procedure reaches its maximum in that illustration, approaching the always-positive strategy without surpassing the baseline. When a threshold makes the recognizer accept essentially every candidate, changes in the units have little opportunity to affect the final labels. The cutoff can overwhelm the distinction the experiment was designed to measure.

The balanced training procedure changes that comparison. With the balanced sample, the paper illustrates an optimum of 0.85 for basic dependency bigrams. For the corresponding basic constituent-bigram illustration on the original training corpus, it reports an optimum of 0.55. These numerical optima apply to their respective scoring and training setups. They identify cutoffs at which the paper makes decisions for those experiments. Their values alone give no common scale for how strictly the two representations judge paraphrases.

Within each syntactic family the fixed-cutoff runs offer a way to examine length with fewer adjustable settings. Dependency bigrams have the strongest recall and lead on F-measure in that comparison. Tetragrams generally have better precision, and trigrams fall between bigrams and tetragrams in recall. The stronger F-measure of bigrams depends substantially on their ability to retain true paraphrases. This is the relevant comparison for explaining how short and long dependency units behave under a common cutoff. It also explains why an individually tuned tetragram score with very high recall can coexist with the fixed-cutoff tendency towards better precision.

For constituents, bigrams and trigrams generally lead tetragrams in accuracy, recall, and F-measure at the common cutoff of 0.55. Tetragrams have the stronger precision in the fixed-cutoff study, echoing the dependency pattern. Though the single strongest constituent F-measure comes from bigrams, the authors favor constituent trigrams as a general choice when considering the measures together. The distinction is between selecting a particular setting for its peak result and judging the behavior of a unit length across different settings and metrics.

#### The value of an auxiliary technique depends on the unit

The constituent-bigram comparison includes settings at the same threshold of 0.50 for stemming alone, synonyms alone, and their combination. Because the cutoff and unit length are held constant for these entries, their F-measures give a direct view of how the three lexical choices compare at that operating point.

Lexical techniques for constituent bigrams on Microsoft Research Paraphrase Corpus test F-measure at threshold 0.50 Combining stemming and synonyms leads these settings, with synonyms alone close behind.

**The numbers**

| System or setting | F-measure % |
| --- | --- |
| Stemming | 82.28 |
| Synonyms | 82.39 |
| Stemming and synonyms (this paper) | 82.41 |

The constituent-bigram training results put stemming with Lin similarity at the top of the training comparison, with 81.93% F-measure at 0.45. On the test split the configuration with stemming and synonyms has the highest F-measure. The fact that stemming appears in both leading settings lends some support to its usefulness for these features. The same-cutoff comparison shows the scale of the case for adding it when synonyms are already present. The leading test result identifies a combination that works well, while the nearby settings show how much of the gain is available with a simpler lexical choice.

The dependency-bigram results give a different view of the same combination. At 0.85, adding stemming to synonyms moves precision and recall in opposite directions, with test F-measure tied. Across the full dependency-bigram comparison, the authors report that 10 of 21 technique combinations exceed the baseline by F-measure. The setting with stemming, Lin similarity, and stopword removal is at the low end, with 78.18% test F-measure. This is evidence against treating auxiliary techniques as interchangeable improvements. The kinds of matches they add or remove depend on the structural units and the other techniques in use.

For dependency trigrams, the authors report fewer technique combinations beating the baseline by F-measure. The strongest test setting includes stemming, Lin similarity, negation, and stopword removal. The same combination fares poorly for dependency bigrams. Another trigram setting combines synonyms with negation and records 77.07% test F-measure in the detailed table. The pairing that is successful in one length or representation can perform differently when the grammatical context contained in a unit changes.

Constituent trigrams show a more consistent advantage over the baseline across the tested configurations. On the training split, Lin similarity alone leads them at 81.48% F-measure. On the test split, Lin similarity and negation give the leading setting. Three of the low-scoring trigram combinations use stopword removal with stemming, synonyms, or both, each registering 80.28% test F-measure. The plain use of Lin similarity is strong enough to make related-word matching a plausible contributor to the leading trigram results. The changes across other techniques show that its effect must be read within a particular combination.

The constituent tetragram experiments give the clearest cluster at the lower end. The authors report nine combinations at 79.83% test F-measure, all using stopword removal. These rows have 66.47% precision and 99.91% recall. Those metrics are close to the always-positive behavior, illustrating how little the recognizer discriminates at these fitted settings. For dependency tetragrams, Lin similarity with stopword removal produces the best F-measure in their family, even though that score falls below the positive baseline. The two cases locate the stopword-removal effect in particular representations and settings.

#### What happens when lengths compete for weight

The weighted dependency experiments reveal a preference for different lengths depending on the evaluation objective. Bigram weight is greatest in 13 out of 14 of the leading test combinations reported for F-measure. That is consistent with the high recall of the individual bigram experiments. In the paper's leading precision settings, the trigram and tetragram weights account for the full combination. The bigram weight is 0.0 in those rows.

The highest listed test precision among those weighted settings is 74.20%. It uses a tetragram weight of 0.9 and a trigram weight of 0.1, with the bigram weight held at 0.0. This is a different operating choice from the mixture selected for its F-measure. It shows that longer dependency units can help produce more reliable positive decisions even when they perform poorly on the combined precision-and-recall measure at their other reported settings. The weights are evidence about what works for the chosen objective within the examined grid.

The matrix variant changes how relatedness is represented, whereas the weighted combination changes how evidence from lengths is pooled. Neither move raises dependency F-measure above the best bigram setting. The matrix can improve precision relative to a simple bigram comparison, and the weighted method can lead the individual lengths in recall. The separate outcomes show that the alternatives change the recognizer's behavior, even when they leave the leader on the paper's primary measure in place.

#### Which mistakes change with the representation

The bare comparisons between surface units and syntactic units include counts of correct and incorrect positive and negative decisions. For bigrams, the authors attribute the advantage of constituents partly to reducing both kinds of error. They suggest that grammatical relationships and category information sharpen matches. For trigrams, they emphasize the ability of syntactic units to recover more true negatives and reduce false alarms, even when surface trigrams retain their recall advantage. For tetragrams, the dependency version is particularly effective on negative pairs in their comparison, even though the constituent version leads on the aggregate measures discussed there.

The forecast from that comparison is specific. Adding structure can improve the ability to reject pairs with misleading overlap. Whether it improves F-measure depends also on how many true paraphrases it loses. This is especially important with a positive majority, where a procedure can obtain high recall by making many positive calls. The unigram experiment provides independent evidence that lexical overlap has unusual value in this corpus. The authors connect that success to earlier observations about substantial lexical overlap and relatively limited syntactic diversity in the benchmark.

#### Errors shared across the proposed methods

The authors randomly select 10 pairs on which all their proposed methods made the wrong decision. This choice directs the analysis toward difficulties that persist across the tested representations and lexical settings. An Amnesty International example shows the danger of overwhelming a local difference with evidence from the rest of the sentence. Both sentences discuss records collected about disappearances. One adds a qualification that the actual number may be higher. The strong overlap supports acceptance, while the qualification changes the information conveyed.

The authors also discuss anaphora and missing reference information. In one example, passages share the content of reported speech, while the fuller sentence supplies a pronoun attribution and describes the response to the remark. The lexical and syntactic overlap is high enough to encourage acceptance in spite of the additional information. The paper compares this with another pair that receives a positive label even though a sentence attributes the statement to a particular speaker. The examples bring the interpretation of references and the consistency of the reference labels into the same analysis. [Coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/)

Spatial and temporal descriptions pose a related problem. The illustrative location error pairs a sentence about Russ Britt in Los Angeles with a sentence about Emily Church in London. Both describe a bureau chief for the same organization. They fill the same grammatical roles with different people and cities, and the recognition methods accept the pair. The shared structure identifies the kind of claim each sentence makes. The names and places identify which claim each sentence actually makes.

Numerical differences can present the same pattern in a small number of positions. The paper gives two descriptions of a benchmark note that share the security and the general shape of the market report, while giving different price movements and resulting yields. The comparison records that the quantities differ. The authors argue that their contribution to the score should be stronger because those quantities determine the reported change. This distinguishes recognizing a local mismatch from assigning it the significance it has for the complete proposition.

#### Errors specific to each kind of parse

In the dependency analysis, a changed root can alter several units at once. The authors illustrate this with a pair about deadly attacks against Americans. In one analysis the root is associated with *were*, and in the other it is associated with *attacks*. The shared material is consequently attached through different words. A counterpart can still be visible at the lexical level while many of the dependency units that would support the match have changed. The resulting disagreement affects more features than the presence of two different roots might initially suggest.

The constituent analysis can lose evidence when a similar concept appears in a different grammatical category. The paper discusses the adjective *presidential* and the noun *president*. They participate in descriptions with related content, but a category-sensitive comparison has difficulty aligning them. A second case concerns the same word receiving different category assignments across sentences in which the authors judge it to be playing the same role. The former difficulty comes from a real change in grammatical expression. The latter concerns the stability of the parser's analysis. Both can prevent evidence from reaching the scoring stage.

The label analysis adds another source of error. A pair about Google's backers is accepted in the corpus even though one sentence names an additional backer. A pair about children and homeless people in public squares is rejected, and one of its sentences includes an additional claim about flattened houses. The authors use these examples to show that extra information can be treated differently by annotators. A cutoff can tolerate some unmatched content. Its tolerance applies generally, whereas human judgments can depend on which specific information is absent and how each annotator interprets equivalence. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

### Limitations

#### Limits the authors identify

The authors restrict their conclusion about constituency to the extraction procedures and technique combinations they evaluated. Other ways to build dependency n-grams could preserve useful relations that these runs miss. The paper mentions non-continuous syntactic units as an unexplored alternative. It also suggests trying different parsers. The comparative result therefore supports constituency under the study's conditions, with the wider question of the relative usefulness of the two grammatical traditions still open.

The paper identifies the benchmark's class distribution and inconsistencies in its annotation as main obstacles. An always-positive strategy sets a high F-measure baseline. Conversely, a test disagreement can reflect a difficult annotation decision as well as a faulty similarity judgment. The examples involving additional information make it hard to infer a uniform rule from the labels about what a paraphrase can omit. The authors propose using or developing a corpus with a clearer judgment criterion and a better class balance.

The authors also regard their negation procedure as preliminary. It marks a span largely through the location of a negation trigger and subsequent punctuation. That span can encompass words whose interpretation does not depend on the negation in the same way. The resulting units show mixed performance, including weak settings that use negation and stronger combinations that include it. The proposal for deeper negation analysis follows from the behavior of this particular marking procedure. The experiments give no direct comparison against a fuller treatment of negation scope.

Another direction the authors name is improving the similarity matrix, including by considering soft cosine, which can account for related features in a vector comparison. They also propose exploring further ways to compare individual syntactic bigrams. The measured matrix results concern the version tested in the paper. Its changes to precision and recall give a reason for examining feature similarity further, while the suggested alternatives remain prospective.

The parser adds a further practical dependency. The authors say parsing can be slow and may be unavailable for some languages. The recognition experiments report decision metrics, leaving time and resource costs unquantified. The authors also observe that the parser uses hand-tagged data. Together with training-set threshold selection, this qualifies any claim that the entire pipeline works without supervision. [Machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/)

#### Limits visible in the design and reporting

The dependency and constituent experiments do not select their cutoffs using the same class balance. The dependency procedure switches to a balanced training sample, while constituent thresholds come from the original split. Furthermore, the leading configurations can use different auxiliary techniques across lengths and representations. The headline comparisons therefore measure the performance of complete setups. They leave some uncertainty about how much of the separation would persist if the training sample, auxiliary techniques, and rule for choosing a cutoff were matched across families.

The shared-cutoff analyses help isolate length within a family. A shared cutoff still leaves different lengths with different score distributions, so it can favor the operating characteristics of one length. An individually optimized cutoff helps each length under its own score distribution, while adding another source of variation to the comparison. Taken together these experiments give several views of the behavior. Exact attribution of the overall gap to grammatical representation alone would require a comparison organized around that specific question.

The paper reports a random selection of positive examples for its balanced dependency training set. It presents the outcomes for that procedure without giving a distribution over repeated balanced draws. The detailed tables also give point estimates without uncertainty intervals. Accordingly, closely spaced entries, such as 82.41% and 82.39% test F-measure for two constituent-bigram settings, establish their ordering in the reported experiment. The tables supply no estimate of how reliably that ordering would recur under another sample or split.

The distinction between cutoff selection and the reporting of best results also matters. The authors describe choosing cutoffs with training data and applying them to the test split. They then discuss the highest scores across the many test configurations. These scores establish which entries led the observed comparisons. An evaluation of a single final configuration chosen through that comparison would need another held-out set to estimate its performance after selection. The same point applies to the reported lists of leading weights for particular metrics.

The benchmark covers sentence pairs with particular properties, including the shared news subject matter that shaped candidate selection. The authors themselves cite earlier observations about lexical overlap and limited syntactic diversity. The success of word unigrams therefore complicates any claim that the measured improvements require syntactic structure in general. The strongest evidence concerns the choice among tested multiword representations and the conditions under which their precision and recall differ. Evidence from corpora with different degrees of lexical overlap or from other languages would be needed to extend that conclusion.

The error sample has a similarly specific scope. Selecting pairs that every tested method gets wrong is a way to look for persistent failure modes. It excludes pairs corrected by some settings and affected only by others. The examples document ways that the comparison can fail, including inaccurate attachment, category mismatches, and overlooked changes in people, places, or quantities. They do not estimate the frequency of those problems across the entire test set. Nor do they measure the effect of adding a dedicated treatment for any one of them.

Some of the paper's narrative values differ from its detailed tables. The discussion gives 82.42% for the best constituent-bigram test F-measure in one place, while the results table and final comparison give 82.41%. The prose gives 80.06% for the leading dependency trigram in one passage, while the detailed test row and final comparison give 80.05%. The values used for the configurations here are those in the detailed test tables and the consolidated comparison. The common dependency cutoff is described as 0.85 in the dependency experiments, although the preceding threshold discussion also prints `.085` in one sentence.

Some details needed to reproduce the comparisons are given by example or attributed to earlier work, especially the complete traversal for longer units and the construction of the similarity matrix. The error discussion and its constituent-tag listing also disagree about which sentence receives which tag for *Democratic*. The example still illustrates how a tag mismatch can interrupt matching. It provides a weaker basis for determining the exact tag assigned to each individual sentence. These reporting limits matter most when the purpose is to reconstruct each feature or trace an individual error back through the procedure.

Finally, the published-method comparison establishes the relative position of the recorded scores. It groups work under supervised and unsupervised descriptions while recognizing that the proposed system has a supervised component in its parser. The comparison brings together entries reported by separate studies. It supports the stated ranks by F-measure, with the detailed within-paper experiments providing the more direct evidence about what changes when a particular representation or lexical technique is varied.

### What came after

The paper's proposals for testing other parsers, improving negation analysis, and building a more consistently labeled corpus are directions for future work. Subsequent studies testing or extending these proposals are undocumented here.

## Cite

Cite as Hiram Calvo, Andrea Segura-Olivares and Alejandro García. 2014. Dependency vs. Constituent Based Syntactic N-Grams in Text Similarity Measures for Paraphrase Recognition. Computación y Sistemas.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.13053/cys-18-3-2044](https://doi.org/10.13053/cys-18-3-2044)

```bibtex
@inproceedings{calvo2014dependency,
  title = {{Dependency vs. Constituent Based Syntactic N-Grams in Text Similarity Measures for Paraphrase Recognition}},
  author = {Hiram Calvo, Andrea Segura-Olivares and Alejandro García},
  booktitle = {Computación y Sistemas},
  year = {2014},
  doi = {10.13053/cys-18-3-2044},
  url = {https://doi.org/10.13053/cys-18-3-2044}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
