Elamur Research

Improved-Edit-Distance Kernel for Chinese Relation Extraction

Paper · 2005 · Wanxiang Che, Jianmin Jiang, Zhong Su et al.

Summary

A sentence can name a person and an organization without saying that the person works for or represents that organization. Someone might visit a company, meet its chair, or appear alongside one of its employees in a news story. For information extraction, the difference matters. A system that records an affiliation whenever the right types of names occur together will attribute relationships that the sentence never asserts. Wanxiang Che and colleagues study how to distinguish real person–organization affiliations from other pairings in Chinese newspaper text. They treat each eligible pair in a sentence as a candidate and use the wording around its mentions to decide whether the affiliation is expressed.

Their method compares candidates by aligning the Chinese words around their entities. It starts from edit distance, which measures how much editing is needed to turn one string into another. The improved edit distance, or IED, changes what counts as an edit and how much it costs. It aligns words, assigns lower costs to substitutions involving similar words as judged by the CiLin thesaurus, and makes insertions inexpensive. The alignment preserves word order, while the thesaurus lets different expressions contribute to a match. Candidates can therefore resemble one another even when they use different words or include extra material. A Voted Perceptron or a support vector machine uses that resemblance to classify the pair.

The authors evaluate the method on a Beijing Youth Daily collection with about 2,500 training examples and about 1,700 test examples. On the person-affiliation test, the support vector machine with IED records an F-score of 91.17%, and the Voted Perceptron with IED records 90.85%. Regularized Winnow, which learns from nearby words and their grammatical tags as explicit features, records 85.14%. Both IED classifiers achieve higher precision than Winnow, meaning that a greater share of their predicted affiliations are correct. Winnow achieves higher recall, recovering a greater share of the affiliations in the test data. In the window comparison with the Voted Perceptron, a window of 2 words around the entities gives the highest F-score of the settings tested.

The paper shows how a word alignment can give a classifier access to local structure and lexical similarity without requiring a separate inventory of handcrafted context features. It illustrates that advantage with a news sentence where the nearby words look plausible for an affiliation, although the person is only reported to have met the company’s chief executive. The authors also identify a practical cost. Computing the similarity between pairs of contexts takes time, and they describe the kernel classifiers as slower than their feature-based counterparts. The reported evaluation covers person-affiliation in the newspaper collection.

Deep dive: Improved-Edit-Distance Kernel for Chinese Relation Extraction

How improved edit distance uses word order and a Chinese thesaurus to identify person–organization affiliations in newspaper sentences. · about 32 minutes to read

The problem and its context

A pair of names is a candidate

The task begins with a distinction between recognizing entities and recognizing relations. Named entity recognition identifies mentions such as a person’s name or an organization’s name and assigns them categories. Relation extraction asks what the text says about a particular pairing of mentions. The paper uses person-affiliation as its experimental relation and gives organization-location as another example of the kind of relation an extraction system might target. The entity categories tell the system which pairs are eligible. The surrounding language supplies the evidence about the relation.

Consider the paper’s example in which Gerstner is identified as the chairman of IBM Corporation. The company and the person are the entities, and the description of his position supplies the affiliation. The paper then puts the same affiliation inside a more complicated sentence. President Bush meets Gerstner, who is identified as IBM’s chairman. The sentence contains a company and more than one person, so the company can be paired with either person. A system operating on eligible pairs has to accept the Gerstner pairing and reject the Bush pairing. The same words can appear on the way to either decision because both candidates originate in the same sentence.

That example motivates the paper’s use of candidate-specific context. A title such as chairman may indicate a connection between a person and a company, but its presence somewhere in a sentence leaves open whose role it describes. A meeting can bring several entities and titles into proximity. To use those words as evidence, a classifier needs some way to tell where they occur relative to the mentions it is judging. The representation Che and colleagues propose retains nearby text in sequence and identifies the entities by type. The positions of words and entity markers can then influence how well one candidate resembles another.

The paper defines a binary text classification task for a chosen relation. Each input represents a candidate pair. Its label indicates whether the context expresses the targeted affiliation. A negative example can be an entirely meaningful sentence describing a meeting or some other event. Its negative label concerns the proposed affiliation alone. Similarly, a person might have a real-world tie to an organization that the sentence does not express. The examples frame the decision around what the sentence says about the mentions it contains.

The sentence boundary is part of the definition. Both entities must occur in the same sentence, and evidence from a neighboring sentence is outside the task. This restriction makes a local context directly available for each candidate. It also determines what counts as an example. The classifier is asked to distinguish pairs already located in the text, with types already assigned for the experiment. Its relation decisions begin at that point in the extraction process.

From hand-built rules to learned decisions

The paper describes earlier relation extraction systems built through manual engineering. Such a system depends on people who know how to state the conditions under which a relation should be extracted. The authors then point to work that learns extraction behavior automatically. Learning changes what experts have to supply. They can provide examples of the decisions rather than specifying each extraction rule in advance. But many learning methods still require someone to decide how a sentence and its entities should be represented.

The feature-based approach discussed in the paper turns each candidate into a vector. A feature can register the presence of a selected word, a grammatical tag, or a combination chosen by the designer. The paper notes that features are frequently binary. When a condition is present, its feature is active. When the condition is absent, it is inactive. The classifier sees candidates through those choices. Any distinction that matters for the task must be available in the features, or recoverable through the way the learner uses them.

This creates a practical problem when the evidence concerns how several parts of the text fit together. Encoding a nearby word is straightforward. Representing a conjunction of words, positions, and grammatical categories requires deciding which combinations deserve features. The paper argues that finding effective combinations can take substantial effort. A small window keeps the representation local and manageable. A larger window exposes more of the sentence, but including features for what happens over that wider span can increase the work at training and prediction time. The authors describe this as a tension between useful coverage and the cost of explicitly representing it.

A kernel approach changes how candidates enter the learning algorithm. In the account given by the paper, certain algorithms need comparisons between examples and can work through dot products, the operations that express overlap between vectors. A kernel supplies these comparisons without requiring the learning procedure to enumerate a vector of manually selected properties for every input. The designer still chooses what an example contains and what makes examples similar. The design work goes into the representation and the comparison function.

The paper places its approach alongside earlier kernels for discrete structures. It identifies string kernels as an option for classifying text and discusses relation extraction work that computes a kernel over shallow parse representations. A shallow parse identifies local grammatical groups and gives the comparison function a structured input. The earlier extraction work used this approach with both a Voted Perceptron and a support vector machine for person-affiliation and organization-location. The Chinese study carries over the broad idea of comparing structured examples through a kernel while changing the representation from shallow parses to local word strings. Kernel Methods for Relation Extraction

The authors give a practical reason for that choice. They regard the accuracy of shallow parsing, especially for Chinese, as a concern when an extraction method depends on the resulting structures. A word string already contains a form of structure that can be used directly. A sequence records which pieces of evidence precede or follow one another and where they occur relative to the marked entities. The proposal takes advantage of that information and looks elsewhere for evidence about word meaning.

What a comparison needs to preserve

The paper considers several ways to compare strings. Exact word matching responds to shared forms, but a synonym may look like an unrelated word to that procedure. A thesaurus supplies links between lexically related terms, although a comparison based on the thesaurus on its own can disregard their arrangement in the text. The authors describe statistical comparison as another option and associate it with the need for large collections of similar texts. Their own design starts from edit distance because alignment already accounts for the order of the strings.

Ordinary edit distance has a different gap. In the character-level comparison illustrated by the paper, edits occur wherever written forms differ. A change inside the spelling of a multi-character word can contribute to the total without reflecting a meaningful change at the scale of the word. At the same time, equally priced replacements give no credit to two words for belonging to the same semantic neighborhood. The authors want the edit calculation to reflect both the units that carry meaning and the degree of relatedness between those units.

These demands lead to a comparison that is sensitive to order without requiring identical wording. The comparison should retain enough local arrangement to differentiate a title attached to an organization from an unrelated title elsewhere in the context. It should also tolerate wording differences across instances of the same relation. A procedure can have one of these properties without the other. A sequence of exact matches is sensitive to order but brittle to lexical differences. A collection of related words can have broad lexical coverage while losing the organization of the sentence. IED puts lexical comparison inside the ordered alignment.

That combination also locates the paper’s methodological question. The authors are asking whether an inexpensive form of representation, a short sequence of words around typed entities, can support useful decisions when compared with an appropriately designed distance. The classifier contributes the decision rule. The representation determines what it has access to. The distance determines which differences among candidates it can treat as small and which will make the examples look unlike each other.

The method, step by step

Turn each eligible pairing into a string

The first input is a sentence containing mentions marked as a person or an organization. The paper uses PEO for a person and ORG for an organization. For the person-affiliation task, a candidate joins a mention of each category in that sentence. The association is tested separately for each eligible pair. In the example with Bush, Gerstner, and IBM, the same organization participates in both candidates, but the person mention that defines the candidate changes.

The representation keeps a word window around each of the entities. A window is the amount of neighboring text selected for the example, measured in words. The retained material appears in its original order, with type markers for the candidate’s entities. Marking the types allows contexts involving different names to look similar when the surrounding wording plays a comparable role. The type markers also preserve a distinction between a title found near an organization and a title found near a person, provided that the retained sequence makes that placement visible.

In the paper’s illustrated case, the window setting is w = 2. The variable w denotes the chosen window size in words, and 2 is the setting used to demonstrate the representation. For the IBM and Gerstner candidate, the displayed string contains the wording for meeting, followed by the organization marker, the title for chairman, the person marker, and the sentence-ending punctuation. The actual names give way to category markers. The order remains organization, title, person. That order makes the chairman expression available as something occurring between the entities, with the person mention following it.

The example shows the sense in which the authors retain the original string representation. They retain the lexical sequence from the selected context. They also transform the input by selecting that context and marking the entities. The string still contains design choices, including how much text to keep and how to abstract away from names. Its advantage for this method is that the neighboring words remain directly available to an alignment, even when there is no explicit feature for the particular combination of words in an example.

From a Chinese news sentence to an affiliation decision

The steps in order.

From a Chinese news sentence to an affiliation decisionStep 1: Identify marked person and organization mentions1. Identify marked person and organization mentionsStep 2: Form eligible pairs within the sentence2. Form eligible pairs within the sentenceStep 3: Keep nearby words and mark entity types3. Keep nearby words and mark entity typesStep 4: Look up word meanings in CiLin4. Look up word meanings in CiLinStep 5: Find the least costly word alignment5. Find the least costly word alignmentStep 6: Convert the edit cost to similarity6. Convert the edit cost to similarityStep 7: Classify the candidate with the learned rule7. Classify the candidate with the learned rule

At this stage, the representation of a candidate remains the same regardless of the example it will be compared with. The alignment is computed later for a particular pair of strings. A word that is a close match in one comparison might be a poor match in another. This makes the thesaurus useful at comparison time. The procedure can compare related entries without adding a separate hand-designed feature for each pair of expressions.

Begin with ordinary edit distance

The basic edit-distance question is how cheaply one sequence can be turned into another. In the ordinary version discussed by the authors, the available operations are inserting material, deleting material, and replacing an item. A candidate sequence of operations has a total cost. The distance corresponds to the least costly sequence of edits that accomplishes the transformation. In the classical example, where the edits are counted as operations, minimizing the cost amounts to minimizing the number of operations.

There can be several ways to edit the same pair of strings. A difference may be handled by substituting one item for another, or by deleting material and inserting something in its place. An extra item near the beginning of a sentence can make later positions appear different if comparison proceeds position by position. An alignment can instead account for the extra item and bring the later material back into correspondence. This flexibility is useful for newspaper phrases, where the same basic expression may appear with optional words.

The comparison in the paper begins with Chinese strings glossed as liking apples and liking bananas. Its classical character-level example gives an edit distance of 4, a count of the operations in the illustrated alignment. From the authors’ perspective, this calculation puts the emphasis in the wrong place. The written material expressing the attitude changes, but the different expressions have closely related meanings. The object changes from one kind of fruit to another. Counting character edits gives neither kind of relationship a direct role in the calculation.

IED first changes the units to Chinese words. In the apple example, the fruit name is compared as a word with another fruit name. A replacement can therefore depend on how the two words are classified in a thesaurus. A separate example explains why the cost of an insertion matters. Inserting the word for sweet into a phrase about liking apples keeps most of the phrase and adds a qualifier. The authors want that kind of elaboration to contribute a relatively small distance.

This is a use of tokenization at the level of the comparison. The calculation needs to know which characters constitute the words presented to the alignment. Once those units are available, the algorithm can compare the meanings attached to whole words. The paper describes the comparison in terms of those units and illustrates the intended treatment with Chinese expressions. It leaves the details of obtaining the word boundaries unspecified.

Compare meanings through CiLin

A thesaurus groups words by meaning. CiLin supplies a hierarchy of categories, which the paper describes as high, middle, and low. The levels move from broad groupings to more specific ones. A code is a word sense’s position in that hierarchy. Words sharing a code are treated as very close for this calculation, and codes that agree at broader levels can still be distinguished at a more specific level.

The examples are concrete. CiLin assigns apple and banana the code Bh07. Tomato has the code Bh06. This gives the procedure a reason to treat the fruit terms as related even though their written forms differ. The code comparison makes a distinction between the apple–banana pair, whose codes agree, and the apple–tomato pair, whose codes differ. This is the paper’s operational use of semantic similarity.

Words may have multiple semantic entries. The paper compares the available meanings for both words and takes the smallest distance among the possible pairings. With the authors’ notation, the word-level calculation is as follows.

Dist(A, B) = min { dist(a, b) | a ∈ A, b ∈ B }

Dist denotes the distance between words. A and B stand for the sets of semantic entries belonging to the words under comparison. The lower-case a and b denote individual entries from those sets. The symbol ∈ means that an entry belongs to the corresponding set, and | introduces the conditions specifying which entry pairs are considered. The braces enclose the candidate distances, dist measures the distance between individual entries, and min selects the smallest. The equals sign gives the selected value as the word distance.

This minimum is a particular way of handling a word with several meanings. If any available sense of the first word is close to any available sense of the second, that pair can determine the substitution distance. The surrounding string still affects the alignment as a whole, since it influences which words end up opposite each other. The calculation of the lexical cost, however, uses the best available sense pairing directly.

For different semantic codes, the paper gives the following distance between individual entries.

dist(a, b) = 2 × (3 − d)

dist(a, b) is the distance between semantic entries a and b. In the paper’s convention, d is the class level at which their codes differ. The 3 is the constant associated with the hierarchy’s levels, and 2 scales the distance. The subtraction − and the grouping parentheses determine the quantity to which that scale is applied. The multiplication sign × denotes the scaling operation. Identical codes receive distance 0 under a separate rule.

Using the distances reported by the paper, apple and banana have word distance 0, and apple and tomato have word distance 2. These values describe the lexical comparison. They do not by themselves state how much a substitution contributes to the total edit distance. An alignment charges the lexical result through an edit-cost rule, and the other items in the string still have to be aligned.

Assign costs to the edits

The paper builds intuition for its costs by considering a short string made of the words A and B. Keeping the sequence intact is ranked first. Inserting words between A and B comes next. Substituting a synonymous term for A or B follows, and combining an insertion with a synonymous substitution ranks below those cases. The variants that retain only a synonym of one of the original words rank last in that illustration. The ordering expresses the authors’ judgment about preserving the original wording, its sequence, and its meaning.

The cost schedule translates that judgment into values used during alignment. An unchanged word costs 0. Insertion costs 0.1. Replacing a word with a synonym uses a fixed charge with an added contribution from the semantic distance. The table assigns cost 1 to its residual category, covering operations outside the specifically priced cases. The low insertion cost means that additional context words can be accommodated while giving the surrounding sequence a chance to match.

The substitution rule for the synonym case is given by the following expression.

Dist(A, A′) / 10 + 0.5

A denotes the original word and A′ a synonym considered as its replacement. The prime ′ marks the alternate word. Here Dist(A, A′) measures word distance using their sets of meanings. The slash / divides that distance by the scaling constant 10, and the plus sign + adds the fixed substitution charge 0.5. The expression gives the cost used for that replacement. Even complete agreement between the semantic codes of distinct words leaves the fixed charge in place. An unchanged word has its own zero-cost case.

Insertion and replacement address different kinds of variation. An insertion allows a context to include extra material together with the words that another context already has. The synonym rule allows a word in a comparable position to change while retaining some lexical affinity. Both operations act at the point where the alignment compares the strings. They do not independently declare that the examples express the same relation. The remaining words, their positions relative to one another, and the entity markers also contribute to the total similarity.

The paper’s worked IED alignment returns to the phrases about liking apples and liking bananas. It reports 0.5 for replacing the first attitude word with the second and 0.7 for replacing apple with banana. It gives 1.2 as the total improved edit distance in the illustration. This total is the reported cost of the word-level alignment. The classical value of 4 counts character-level edits under the earlier setup. The two calculations use different units and costs, so the examples show how the measurement changes when lexical similarity is introduced.

There is an inconsistency in the worked substitution. The paper assigns apple and banana the same CiLin code and gives their word distance as 0. Applying the printed substitution rule to that distance gives the fixed charge 0.5. The worked alignment instead assigns that replacement 0.7. The stated word distances, the stated rule, and the worked alignment can each be reported as printed, but the paper does not reconcile them. The example explains the intended design without supplying a reproducible derivation of its reported fruit substitution cost.

Find the alignment and convert it to similarity

The authors use dynamic programming to find the minimum edit cost. Dynamic programming breaks a larger calculation into smaller calculations that can be reused. Here the smaller comparisons concern prefixes, the portions of the two strings that extend from their beginnings up to particular positions. To extend a prefix alignment, the procedure considers a new edit and adds its cost to the best preceding alignment that would make the edit possible. A replacement extends the comparison to a word from each string. An insertion or deletion moves forward on the side whose word it accounts for.

The procedure minimizes the cost for each prefix pairing as it advances. That is different from taking the first locally attractive word match and committing to all its consequences. A cheap substitution can still lead to an expensive continuation. Conversely, allowing an extra word can free several later words to line up. The final distance depends on the best complete alignment available under the edit costs. The authors specify that they use the same dynamic programming approach as for edit distance, with the revised units and costs.

This mechanism gives the method the kind of structure it uses. Words can line up with later words after gaps, but the alignment proceeds in sequence. It preserves the order of the two strings. The placement of a title, an event word, or a type marker can therefore affect whether a low-cost alignment is available. The signal is still linear. A low-cost alignment indicates compatibility under the string comparison, and the classifier learns how that compatibility relates to the affiliation label.

An edit distance gets smaller when strings align well. The paper wants a similarity that increases when strings align well. It uses the following conversion.

K(S, T) = 10 − IED(S, T)

S and T denote the two candidate context strings. IED(S, T) is their minimum improved edit cost. K(S, T) denotes the similarity supplied to the classifier, and 10 is the empirically chosen maximum similarity in the paper. The minus sign subtracts the distance from that constant, and the equals sign defines the resulting similarity. With no edit cost to subtract, the similarity is 10. As the edit cost rises, the assigned similarity falls.

The paper uses this similarity as a custom kernel. In the learning setup, a kernel provides the comparisons the algorithm uses between examples. The output of the edit calculation is thus an input to classification, where the examples also have relation labels. A low distance from a particular candidate does not fix a new candidate’s label by itself. What matters is how the classifier uses the similarities it has learned to associate with its decisions.

Learn from labeled candidate pairs

The experiments use a Voted Perceptron and a support vector machine, abbreviated SVM. Both are used in forms that can work with comparisons among examples. The perceptron learns from labeled examples by adjusting its rule when its predictions are wrong. A voted version combines decisions associated with the rules encountered during training. In the dual form used by the paper, the computation can use similarities to examples in place of explicitly transforming each context into a feature vector.

The SVM uses a decision boundary learned from labeled examples, with the kernel supplying example comparisons. The authors use the light SVM implementation with its custom kernel option. In that implementation, they substitute the IED comparison for the customizable kernel. The cited Joachims work is the paper’s link to this SVM implementation and its background in applying SVMs to text. Text Categorization with Support Vector Machines

For training, the examples are strings representing person–organization candidates whose relation labels are available. Positive examples express the targeted affiliation. Negative examples include eligible entity pairs for which the affiliation is absent. The classifier learns from the contrasts in this labeled collection. A later candidate is represented with the same window and entity markers, and the learned decision procedure uses similarities involving that representation to predict its label.

The two classifier choices leave the string and lexical distance design in place. They change how the evidence from comparisons contributes to a decision. This gives the paper a way to examine the relevance of the IED representation with more than one learning procedure. It also distinguishes two questions in the evaluation. One concerns how a context is compared. The other concerns how a classifier uses those comparisons to decide which candidate pairs to accept.

Experiments and results

Newspaper data and the comparison system

The experimental corpus comes from Beijing Youth Daily. The authors annotate about 500 news items with person and organization entities. They report selecting 4,200 sentences, described also as examples, that contain eligible person–organization pairs. There are approximately 1,200 positive examples and 3,000 negative examples in the chosen collection. The authors take about 2,500 random examples for training and reserve the remaining about 1,700 examples for testing. The totals for positive and negative examples describe the selected collection as a whole. The paper gives the overall sizes of the training and test portions separately.

The distinction between a sentence and an example matters for understanding this description. The task formulation allows a sentence with several entities to provide multiple eligible pairs. The classifier judges an example tied to a particular pair. The corpus description uses sentences and examples together, so it gives a useful picture of the scale of the collection while leaving the exact accounting of candidates per sentence unclear. The reported split is at the level the authors call examples.

To set up an explicit feature-based comparison, the authors collect words from around the person and organization mentions together with their part-of-speech tags. A part-of-speech tag describes a word’s grammatical category, such as noun or verb. The tagged words and the nearby words themselves supply features for the baseline. The authors then use Regularized Winnow as the learning algorithm. In the paper’s comparison, Winnow learns to classify the resulting feature vectors, while the two IED classifiers learn using string comparisons. Part-of-speech tagging

The authors vary the window used in the feature-based method and report its highest performance at w = 2. They also find their best F-score at that window in the IED experiment with the Voted Perceptron. This is important to the design of the comparison. The baseline has access to evidence near the entities, and the authors choose a window that performed well for it. The comparison therefore concerns different ways of using local evidence, including different learning algorithms, instead of a baseline deprived of nearby words.

How the scores describe the decisions

Precision asks what share of the predicted affiliations are correct. A false positive harms precision. In the meeting example, accepting the visitor and the company as an affiliation would produce this kind of error. Recall asks what share of the affiliations labeled as present are found. A false negative harms recall. Missing a person who is described as holding a position at the organization would belong to this category.

The F-score captures how precision and recall balance each other. It is useful here because a classifier can recover many affiliations by accepting candidates freely, at a cost in incorrect predictions. A more selective classifier can make a higher proportion of correct predictions and still leave more true affiliations unrecovered. The paper gives all three measures, allowing the reader to see how the systems differ even when the F-score provides the headline ordering.

Test F-score by classifier for Beijing Youth Daily person-affiliation

Both IED classifiers surpass Regularized Winnow, with the SVM giving the highest F-score.

Test F-score by classifier for Beijing Youth Daily person-affiliationRegularized Winnow: 85.14Regularized Winnow85.14IED with Voted Perceptron (this paper): 90.85IED with Voted Perceptron (this paper)90.85IED with SVM: 91.17IED with SVM91.17
The numbers
System or settingF-score %
Regularized Winnow85.14
IED with Voted Perceptron (this paper)90.85
IED with SVM91.17

Regularized Winnow produces test precision of 75.90%, recall of 96.92%, and an F-score of 85.14%. The Voted Perceptron using the IED kernel gives precision of 93.55%, recall of 87.80%, and an F-score of 90.85%. The SVM using IED gives precision of 94.15%, recall of 88.38%, and an F-score of 91.17%. All these figures concern the person-affiliation comparison on the newspaper data.

The difference in the balance of the scores is more informative than the F-score ordering alone. The two IED systems both reach higher precision with lower recall than Winnow. Their predicted affiliations are more often correct, while their decisions miss more of the labeled affiliations. In this experiment, the precision gains are enough for both systems to obtain higher F-scores. The comparison thus supports the authors’ claim of better performance under their summary metric and also specifies where the outcome involves a tradeoff.

The SVM has the highest reported precision and F-score. It also has higher recall than the IED Voted Perceptron in the same comparison. The perceptron is close to the SVM on the reported measures. The authors associate the perceptron with savings in computation and programming effort, although the comparison does not attach a timing or implementation-effort measure to that observation. The result gives a basis for comparing their extraction scores directly. The practical comparison remains qualitative.

What the training-size comparison adds

The paper also varies the amount of training data and plots F-score for the competing methods. A learning curve of this kind asks whether the ranking at a reported training size represents the behavior of the systems more generally as training examples become available. The curve also lets the authors consider a separate practical issue. If one approach achieves a comparable F-score with fewer labeled candidates, it may place a lower demand on the collection of training examples for that task.

The authors read the curve as evidence that the IED approaches can reach a given level of person-affiliation performance with fewer examples than the feature-based approach. They describe the Voted Perceptron as approaching the SVM’s performance while falling short of it. The discussion reports that pattern rather than numerical training-size thresholds for a specified F-score. The learning curve supports a qualitative comparison on this corpus, separate from the exact test-set figures reported for the main comparison.

This training-size argument fits the intended effect of the thesaurus. When related expressions have a low substitution cost, an expression in a labeled example can be relevant to candidates that use other words. It also fits the role of alignment. Experience with a certain arrangement around entity markers can influence decisions involving a similar arrangement with intervening material. These are mechanisms through which an example could apply more broadly. The comparison measures the behavior of the complete methods, so it cannot assign the pattern to either mechanism individually.

The fixed-split scores and the training-size curve answer complementary questions. The scores say how the specific systems compare on precision, recall, and F-score under the main reported training and test setup. The curve asks how the methods’ F-scores change as the amount of training material varies. Together they make the paper’s empirical case for the IED approach on this relation more specific than a claim based on the highest score alone.

What the ablations show

How much context helps

The paper does not isolate the individual edit rules in separate ablations. Its most direct controlled comparison varies the context window while keeping the IED Voted Perceptron as the classifier. Because all settings use the same comparison method and learning procedure, the comparison tests the effect of changing the span of the retained context within that setup. It gives evidence about the input the method needs to make its decisions.

Test F-score by IED Voted Perceptron window size on Beijing Youth Daily

The middle window gives the best balance of precision and recall.

Test F-score by IED Voted Perceptron window size on Beijing Youth DailyWindow size 1: 77.55Window size 177.55Window size 2 (this paper): 90.85Window size 2 (this paper)90.85Window size 3: 83.12Window size 383.12
The numbers
System or settingF-score %
Window size 177.55
Window size 2 (this paper)90.85
Window size 383.12

With w = 1, the IED Voted Perceptron records test precision of 66.67%, recall of 92.68%, and an F-score of 77.55%. With w = 2, precision is 93.55%, recall is 87.80%, and F-score is 90.85%. With w = 3, precision is 94.23%, recall is 74.36%, and F-score is 83.12%. These are person-affiliation test scores for the window comparison, with the same classifier and IED calculation used throughout.

The pattern in these settings is that larger windows produce higher precision and smaller windows produce higher recall. In the move from the middle to the largest window, the further increase in precision comes with lower recall and a lower F-score. The middle setting has the best balance under the reported metric. Its advantage depends on both measures. A reader considering only the highest precision would choose a different window, as would a reader focusing only on recall.

The authors interpret the strong middle setting as evidence for the importance of words close to the entities. Their feature-based method also does best at w = 2, which gives that interpretation some support across the two representations in the experiment. The test varies the number of nearby words together, however. It does not measure the contribution of specific positions or identify which parts of the extra context account for the observed errors. A longer string changes the evidence presented to the alignment and gives the edit procedure additional material to account for, making both effects possible within the same comparison.

What the system comparisons isolate

Using the IED kernel with both the Voted Perceptron and the SVM changes the learner while retaining the same general representation and comparison. The systems obtain similar scores, and both exceed the feature-based learner’s F-score in the main comparison. This shows that the useful result for IED appears with both learning procedures tested. The SVM’s edge gives the paper a ranking between these two configurations under the reported setup. The scores alone do not identify what aspect of the SVM’s decisions accounts for that edge.

Comparing either IED system against Winnow changes more than one ingredient. The system switches from explicit features to an ordered string comparison with lexical costs, and it switches learners. This is a comparison among complete systems. It cannot tell how much of the difference is due to retaining word order, using words as alignment units, tolerating insertions, consulting CiLin, or training with a different classifier. For example, a comparison using the same IED classifier with and without the semantic substitution rule would address the specific contribution of the thesaurus. The paper reports no such comparison.

The ordinary edit-distance illustration serves a different purpose from a classifier experiment. It demonstrates how a character-level edit count and a word-level weighted alignment can score the same pair of phrases differently. That is a demonstration of what the distance function measures. The paper does not report person-affiliation performance for a classifier using ordinary edit distance in the place of IED. The illustration therefore explains why the modifications might matter without quantifying their effect on extraction.

A false positive in context

The paper’s qualitative analysis examines a sentence describing Chairman Hu Jintao meeting the chief executive of IBM Corporation. Hu Jintao and the company form an eligible candidate. The regularized Winnow system predicts an affiliation for that candidate, although the sentence describes a meeting. The IED system rejects the affiliation. The authors attribute the correct rejection to the structure retained in the sequence around the entity markers.

The example makes their explanation concrete. A title, a person, and a company can all occur in contexts that express an affiliation. Here, the title near Hu Jintao and the company’s chief executive belong to different parts of the meeting description. An alignment that keeps the order of the words can distinguish that arrangement from local arrangements typical of a person’s affiliation with the company. In the authors’ account, the sequence available to IED provides the grounds for telling the examples apart.

The example demonstrates a kind of false positive that the method can avoid. It gives no count of how often such errors occur or how frequently retaining order corrects them. The authors also suggest that matching synonyms helps the IED systems preserve recall while making more precise decisions. The case explains the structural side of this argument. The aggregate recall figures describe the systems with the thesaurus already in use, so they give no direct estimate of what recall would have been without it.

Limitations

Limits the authors identify

The authors explicitly identify speed as a practical limitation. The string comparison requires computing an edit alignment, and the kernel classifiers call on that comparison between examples. The paper describes these classifiers as relatively slow compared with the feature-based classifier and points to similarity computation as the main cost. A representation that saves manual work during feature design can therefore impose a substantial computational cost during learning or classification. Improving the efficiency of the kernel computation is the practical problem the authors emphasize for future work.

There are two comparisons in their efficiency discussion. The authors associate the Voted Perceptron with savings in computation and programming effort in their discussion of the IED learners. At the level of the broader method comparison, they describe kernel classifiers as slower than feature-based classifiers. The paper reports no timings for these statements. Accordingly, it does not establish the practical duration of training or prediction at any particular data size, or the size of an efficiency advantage for one IED learner over the other.

The authors restrict the extraction task to relations between mentions in the same sentence. Their evaluation concerns affiliation between a person and an organization, and they suggest extending the method to relations such as organization-location. The suggestion is plausible at the level of the procedure, since a different relation can have its own eligible entities and labeled pairs. The experimental results concern person-affiliation. There is no reported test of whether the same context window and edit costs would be suitable for another relation.

What the study design leaves open

The corpus comes from a single newspaper source. That setting supports a comparison among the methods on material gathered from Beijing Youth Daily. It leaves open how the result would change with other sources or kinds of writing, where the wording of affiliations and the rate of plausible distractor pairs could differ. The paper gives a random training split and a held-out remainder. It does not present repeated splits, uncertainty estimates, or a separate corpus on which to examine the stability of the reported rankings.

The unit of splitting also remains unclear where more than one candidate can come from a sentence. The paper refers to sentences and examples together and says that examples are selected randomly for training. It does not say whether candidates from the same sentence were always kept together, or whether all sentences from a news item were assigned to the same part of the data. Those choices would affect what the reader could conclude about generalization to a fresh sentence or news item. The description leaves that question unresolved. It supplies no basis for asserting that related candidates did or did not occur in both portions.

The experiment starts with annotated person and organization entities. Its scores capture the decision made about candidates with those entities available. A system extracting relations directly from unannotated news would also depend on locating the mentions and assigning their types. Missing a mention would prevent a corresponding pair from being considered, and a misidentified mention could create a candidate. The paper does not report how the IED classifier performs when its inputs contain those upstream errors.

The selection of the context window is part of the reported experiments. The paper gives the test scores for the IED window settings and reports the best window for the feature-based method, but it does not describe a separate development set for selecting the setting. The reported maximum is therefore the highest score among the settings compared in this study. Its value as a default for new material, or for other relations, would require evidence beyond the window comparison reported here.

The broader assertion about manual effort also needs to be read through the system design. IED avoids specifying the explicit combinations of local features discussed for a feature-based approach. The method still requires a context representation, word boundaries, type markers, a thesaurus, and choices about costs. The corpus must also supply labeled examples. The paper describes how the manual work changes and argues that feature transformation becomes less demanding. It supplies no measured comparison of the person-hours required to build the systems.

What remains unspecified in the comparison function

Several details matter for reproducing the string comparison. The paper explains the CiLin hierarchy and the minimum over word senses, but it does not describe what to do when a word has no semantic entries in the thesaurus. It illustrates how to take context around the candidate entities, but it does not give a complete procedure for every arrangement of the windows or every sentence boundary case. It also leaves the inconsistency between the printed lexical cost rule and the apple-to-banana example unresolved. The conceptual contribution is clear, while such cases require additional decisions in a new implementation.

The minimum over semantic entries has a particular consequence for interpretation. A low lexical distance can arise because two words have some related senses, even when those senses are not the ones used in the candidate contexts. The alignment can favor or disfavor the overall pairing based on the rest of the string. The cost formula itself contains no separate decision about which sense a word has in a sentence. The paper does not measure how often taking the closest sense pair helps or hurts relation decisions.

Finally, the use of the word kernel raises a mathematical question distinct from the reported accuracy. The paper describes kernels as satisfying certain properties and uses the IED similarity inside a custom SVM. Its printed edit-cost schedule gives insertion its own cost and includes deletion under the remaining operations. Since reversing an edit sequence exchanges insertions and deletions, symmetry of an ordered comparison would require an account of how those costs are used. The paper supplies no proof of symmetry or positive semidefiniteness for the resulting similarity and describes no separate symmetrization step. Its evidence establishes how the reported classifiers performed with the comparison used in the experiments. It leaves the formal kernel properties unestablished.

What came after

The paper points to faster similarity computation and extraction of other relations as directions for further work. Its own experiments stop at person-affiliation in Beijing Youth Daily. No subsequent study is identified that tests the suggested extension, revises the edit costs, or addresses the speed of the alignment. These remain questions posed by the paper’s design and findings.

Cite

Cite as Wanxiang Che, Jianmin Jiang, Zhong Su, Yue Pan and Ting Liu. 2005. Improved-Edit-Distance Kernel for Chinese Relation Extraction. Companion Volume to the Proceedings of Conference including Posters/Demos and tutorial abstracts.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{che2005improved,
  title = {{Improved-Edit-Distance Kernel for Chinese Relation Extraction}},
  author = {Wanxiang Che, Jianmin Jiang, Zhong Su, Yue Pan and Ting Liu},
  booktitle = {Companion Volume to the Proceedings of Conference including Posters/Demos and tutorial abstracts},
  year = {2005},
  url = {https://aclanthology.org/I05-2023/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/che-2005-improved-edit-distance-kernel-chinese/