Elamur Research

IGTree: Using Trees for Compression and Classification in Lazy Learning Algorithms

Paper · 1997 · Walter Daelemans, Antal van den Bosch and Ton Weijters

Summary

Learning from examples can be as simple as keeping them and consulting them when a new case arrives. That approach can preserve evidence about unusual spellings and grammatical contexts, but a classifier that compares every new input with every stored case becomes expensive to use as its collection grows. IGTree reorganizes the examples before prediction. It builds a tree whose branches group cases by shared feature values, with the most informative features tested first. The paper asks whether that organization can save memory and search effort while keeping the accuracy that made memory-based learning attractive for language tasks.

The tree gets its test order from information gain, which measures how much knowing a feature's value reduces uncertainty about the class on average. Examples with a common sequence of values share the corresponding part of the tree. Construction can stop when the cases in a branch agree on their answer. Each internal node also keeps a default based on the most frequent label among the cases that reach it. At prediction time, a query follows the branches that match its values. A leaf supplies an answer directly, and a missing branch triggers the default at the node where the search stopped. The classifier can therefore make a decision by following one route through the tree.

On Dutch spelling-to-phoneme conversion, IGTree averaged 97.07% accuracy on test phoneme targets and used 77,749 bytes on average for its tree. The information-gain-weighted full search, IB1-IG, had a small but statistically significant accuracy lead at 97.17% and required 1,573,885 bytes for its stored cases. IGTree's reported compression relative to that baseline was 95.1%. On a separate part-of-speech tagging experiment, IGTree attained 95.1% test accuracy, ahead of the weighted and unweighted full-search classifiers, with 91.9% compression relative to unweighted IB1.

English hyphenation shows where the accuracy tradeoff changes. IGTree compressed the stored representation by 91.1% relative to the flat searches, yet its 94.53% test accuracy fell significantly below the 95.30% of unweighted IB1. Feature scores were much closer together on this task, and weighting the flat search gave no statistically significant advantage over equal weighting. The authors see IGTree as particularly suitable when there are many labeled examples, the features are symbolic, and a few features stand out as useful early tests. The results show how much storage this design can save, and why the quality of its predictions depends on which distinctions the tree can make before a query stops.

How Mova uses it

Effectiveness in Mova

Measured in the development notes of prag (accuracy / macro-F1, %). Held-out silver test (538 sentences), IGTree vs majority baseline vs averaged perceptron:

5-fold cross-validation (2,986 sentences): form 89,6 / 64,5, act 64,1 / 23,9, indirect 92,2 / 58,2, hedge 98,0 / 75,5, polarity 49,0 / 31,8, voice 97,6 / 97,6. Shuffled-label negative control stays at baseline level. Overall IGTree trails the perceptron except on hedging in the held-out split.

Deep dive: IGTree: Using Trees for Compression and Classification in Lazy Learning Algorithms

IGTree uses information gain to compress training examples into a decision tree, cutting storage and speeding prediction on language tasks. · about 36 minutes to read

The problem and its context

When a prediction depends on the surrounding symbols

A written letter frequently gives an incomplete account of how to pronounce it. Nearby letters help determine its sound, and sometimes several letters jointly correspond to a sound represented by a single phonemic symbol. The authors approach this kind of problem by specifying a focus and collecting a fixed amount of context around it. Each focus position yields a labeled example. In the pronunciation task, the input contains spelling symbols and the label records the phonemic output associated with the focus. In tagging, the context helps settle the syntactic category assigned to a word. The authors' earlier applications also included stress, morphological suffixes, and syllable structure. These are instances of contextual classification in natural language processing.

An example distinguishes the identity of a feature from its value. The position immediately before the focus is a feature. The letter that fills this position in a particular example is its value. A different position can have the same set of available letters and still contribute differently to the classification. The authors emphasize that the values are nominal. An alphabet can be put in an order for lookup, but the order does not make one letter more similar to another. At the level of an individual feature, the relevant comparison in the paper is whether the values coincide.

There can be a large space of possible patterns even when the window is short. Every position can participate in combinations with the others, and an observed training collection covers only some of those combinations. The examples can also contain regularities at different scales. A broad pattern can account for many cases, while a more specific context calls for an answer that is locally common or even unique. Training collections in the authors' linguistic setting can run to 100,000 examples or more. A learning procedure has to make use of that volume without assuming that a small collection of representative cases captures everything that matters.

This is why the authors care about the fate of uncommon cases. They had tried reducing the collection available to the classifier, including experiments with IB2 and removal of cases judged atypical. They describe a considerable drop in generalization accuracy during those experiments. Generalization here is performance on cases reserved for testing. The authors suggest that the numerous exceptions and smaller regularities in the linguistic tasks help explain why a fuller memory was valuable. An unusual example may support a useful distinction that is visible only in its immediate neighborhood.

Keeping the examples and deferring the comparisons

The paper starts from instance-based learning, a form of machine learning in which labeled cases remain available at prediction time. In IB1, the training examples form a memory. When a new case arrives, the classifier compares its features with those of stored cases and takes the label of a nearest match. This distribution of effort is called lazy learning. Recording the examples can be relatively simple, while each new decision calls for a comparison against the memory. With more stored cases, the straightforward search does more work per query.

The version of IB1 used as a baseline treats matches at different positions alike. For the authors' tasks, this can be an awkward assumption. A match on a letter close to the focus may tell the classifier much more than a match on a distant letter. Yet a flat search with equal contributions only sees how many features agree. A case that agrees on weak cues can accumulate as much credit as one that agrees on highly relevant cues. The relevance of a position, as distinct from the identity of the letter occupying it, is information the original comparison leaves unused.

The authors' earlier work addressed this by assigning a weight to each feature according to its information gain on the training data. They call the weighted classifier IB1-IG. A feature with higher gain then contributes more to similarity when its values match. The authors describe occasions on which this approach compared favorably with connectionist methods and systems based on linguistic engineering. Their motivation for IGTree grew out of the usefulness of feature relevance in those earlier comparisons.

Weighting still leaves a flat collection to search. Every candidate has to be scored before the best available match can be returned. The authors mention data-level parallelism and wafer-scale integration as proposed hardware responses to the cost of searching large example bases. Their own design question concerns an algorithm running on a serial machine. If the relevance estimates can tell a classifier where to look first, perhaps they can also support a representation in which much of the search has already been resolved before a query arrives.

What earlier trees were designed to recover

The paper relates that question to top-down induction of decision trees, using C4.5 as its main example. A branch in such a tree carries a restriction on the training cases under consideration. Once the cases have been divided, a learning algorithm can inspect each resulting subset to choose a suitable next test. Different subsets can make different features look promising. The authors describe this kind of induction as aiming at abstraction from the examples. They also note that C4.5 has a local default mechanism comparable in some respects to the one in IGTree.

IGTree uses a more restricted schedule. The whole training set supplies a ranking, and a particular depth is assigned to a particular feature. Every test that occurs at that depth uses the assigned feature. The authors call trees with this property oblivious. They discuss earlier oblivious trees and decision graphs, including approaches that classify with a fixed set of relevant features. In IGTree, the sequence is fixed but its length in use can vary from one query to another. Construction can end a branch as soon as the cases there agree, and prediction can also stop at a missing arc.

The paper's other point of comparison is the k-d tree, an index for finding nearby instances. In the version the authors describe for ordered features, a threshold divides a subset into cases on either side of the split. Continued division yields terminal groups small enough to hold references to the original cases. A nearest-neighbor query can inspect those cases and, when warranted, return to another branch to check whether it holds a better match. The authors also describe work on extending this indexing strategy to symbolic values. Deciding when to revisit a branch can be expensive in that setting because the decision can involve checking the dimensions of the input.

These designs answer different questions about the examples. The nearest-neighbor index is useful when the retrieval result must include particular cases. A conventional induced tree can invest work in finding a test tailored to a subset. IGTree asks how much of the collection is needed to determine a class and how directly the classifier can reach that decision. The information a path needs to carry follows from that aim. Once the class can be supplied, the identities and remaining feature values of the underlying cases can be omitted from that path. That is the paper's approach to compression.

The method, step by step

From a labeled collection to a sequence of questions

IGTree receives a training collection in which each case has values for the same features and a label from the task's class inventory. A feature might record the focus symbol, the symbol next to it, or a more distant piece of context. Before the tree is built, the learner scores every feature on the entire training collection and puts the features in descending order. With information gain as the score, this means trying first the feature whose value most reduces uncertainty about the class on average. All branches inherit the schedule.

The paper's object example makes that order tangible. The data contain 12 cases labeled as kinds of objects such as keys, screws, and pens. The available descriptions concern holes, shape, and size. Across that collection, the information gain of the hole count is 1.10. Shape has a gain of 0.90, and size has a gain of 0.75. The root therefore tests the hole count. A subsequent test, wherever one is needed, asks about shape. A further test can use size. The order follows the measured usefulness of the features for the collection, independently of the order in which the descriptions might have been written down.

To build one part of the tree, take the training cases that reach it and group them by the current feature value. Each group can be identified by a branch bearing that value. Cases that agree under several successive tests share the route through those tests. If the cases in a group all carry an agreed label, the learner has enough information to record that class. It can stop expanding the group there, even though its members may have different values on features later in the schedule.

Each unfinished part of the tree also receives a default label. The learner counts classes among all training cases represented at the node and chooses a most frequent class. That gives the node an answer even if a future query cannot take any of its outgoing branches. The root's default reflects the full training collection. A deeper default reflects cases satisfying the tests on the route to that node. The same kind of frequency calculation therefore has a more specific scope as the route narrows.

How IGTree organizes examples and assigns a class

The steps in order.

How IGTree organizes examples and assigns a classStep 1: Estimate feature scores from labeled cases1. Estimate feature scores from labeled casesStep 2: Set the feature order for every path2. Set the feature order for every pathStep 3: Group cases using the next feature3. Group cases using the next featureStep 4: Record the most frequent local class4. Record the most frequent local classStep 5: Keep branches with a different possible answer5. Keep branches with a different possible answerStep 6: Traverse branches matching the query values6. Traverse branches matching the query valuesStep 7: Output the class at the stopping node7. Output the class at the stopping node

How the feature score is calculated

The scoring procedure begins with the probabilities of the class labels. The authors estimate a label's probability from its relative frequency in the training material. A collection concentrated on a common label offers less uncertainty about the next case's class than one in which multiple labels occur frequently. The paper expresses that uncertainty through entropy, measured in bits. The calculation applies to a whole collection or to the labels in a group formed from it.

H(D) = −∑ᵢ pᵢ log₂(pᵢ)

D is the collection under consideration, and H(D) is its class entropy. The subscript i identifies a class, and pᵢ is the relative frequency of that class in D. The sum ∑ᵢ runs over the classes with positive frequency in the collection. log₂ is the logarithm to base 2, which gives the unit of bits. The probability multiplies its logarithm, and the leading minus sign turns the sum into a non-negative measure of uncertainty.

Now consider what happens when the value of a particular feature becomes known. That value restricts attention to the cases that have it. The labels in the restricted group can have a different distribution from those in the whole collection. A useful feature may form groups strongly associated with particular classes, even when the original collection has a variety of labels. To assess the feature as a whole, the authors combine the entropies of the groups, giving each group weight in proportion to its occurrence in the data.

H(D[f]) = ∑ᵥ∈ᵥ H(D[f = v]) · |D[f = v]| / |D|

In this display the summation ranges over the possible values of feature f. The v in D[f = v] is an individual feature value. The bracketed expression restricts D to cases with that value, and H gives the class entropy of the restricted collection. Vertical bars indicate the number of cases. Division by |D| converts the group size to a fraction of the original collection, and the centered dot multiplies entropy by that fraction. Only observed values contribute weight. H(D[f]) is the resulting average class entropy once the feature's value is available.

G(f) = H(D) − H(D[f])

G(f) denotes the information gain of the feature f. H(D) is class entropy before the cases are divided by that feature. H(D[f]) is the weighted entropy remaining after the division. Subtracting the latter from the former measures the uncertainty removed by the split. A feature can have a strong score when its observed values regularly identify groups with more concentrated label distributions.

The significance of a gain score depends on how the learner uses it. In IGTree's usual configuration, the scores determine priority. The procedure ranks features using the full collection, then carries that order into subsets that can have very different label distributions. It makes no new estimate of which remaining feature would be most informative for a particular branch. In the tagging experiment, the authors use Quinlan's gain ratio criterion because the tagging features differ in how many values they admit. It fills the same role in ordering the tests. The paper gives the information-gain formulas and reports the tagging gain ratios without supplying a separate gain-ratio formula.

Why weighting and branching make different decisions

Information gain had already given the authors a way to alter the behavior of flat instance search. To understand the change IGTree makes, consider how a comparison between cases works in IB1-IG. For each feature position the comparison checks equality. A match contributes the weight determined on the training set for that position. The similarity is the total across the features.

sim(X, Y) = ∑ᵢ₌₁ⁿ G(fᵢ) · overlap(xᵢ, yᵢ)

X and Y are the two cases, and sim(X, Y) is their similarity. n is the number of features. The index i runs from 1 through n in the sum. fᵢ identifies feature i, whose gain is G(fᵢ). xᵢ is the value of that feature in X, and yᵢ is its value in Y. The function overlap checks the match at that feature, and the centered dot multiplies its output by the training-derived weight.

overlap(xᵢ, yᵢ) = 1 if xᵢ = yᵢ, else 0

Here xᵢ and yᵢ are the symbolic values at feature position i in the respective cases. The equality sign inside the condition asks whether they are the same symbol. When they agree, overlap returns 1, allowing the full weight to enter the sum. When they differ, it returns 0, so that position adds nothing. The unweighted IB1 comparison gives equal credit to every matching position.

IB1-IG repeats the weighted calculation across the stored examples and returns a class associated with a highest-scoring example. That gives later features a chance to affect which case wins. A candidate that mismatches the highest-weighted feature may still win if its other matches contribute enough. It is the total similarity that determines the outcome. In IGTree the most informative feature is used to restrict the search immediately. Once the query takes a branch, subsequent tests deal only with the cases represented there. If there is no branch, the tree can answer before it has looked at the query's other values.

This difference matters even if both methods use the same statistical estimates. Knowing the rank of the feature scores would suffice to build the standard IGTree once the scores have been computed. Knowing the rank alone would be insufficient to reproduce the weighted similarities, which depend on the magnitudes. A large separation between a leading feature and its alternatives can make the early routing decision plausible. The global gain calculation describes an average reduction in uncertainty, however, so its score alone gives no guarantee that the value should dominate decisions in every local context.

Which branches are worth keeping

The recursive construction begins with all labeled cases at the root and the full sequence of tests available. When the current subset is unanimous, its result is a leaf with the common class. Otherwise the algorithm creates a node for the next feature in the sequence. It assigns the local default, then partitions the subset by the observed values of that feature. A recursive call, when required, receives a group and the sequence beginning at the next feature. As a result, if two paths reach the same depth and still have a test to perform, they perform the same test.

There is a useful saving even before deciding how far a particular branch should run. Suppose a group that would form a child is unanimous for the class already stored at its parent. With the child in place, a matching query would take that arc and get the child's class. With the child omitted, the same query encounters a missing arc and receives the parent's default. Both possibilities give it the same answer. The authors describe removal of these leaves as a final compression, and their recursive procedure can avoid creating such a child in the first place.

A unanimous group whose label differs from the parent's default has a different role. A query with that group's feature value needs a branch that leads to the alternative class. An ambiguous group ordinarily needs further expansion because the same value connects cases with different labels. As construction works through the ordered features, the tree can devote further tests to a small pocket of disagreement while ending an adjacent branch early. This is how the procedure can retain distinctions associated with rare patterns without assigning a full path to each example.

The cases in a group omitted under the default still matter during construction. They entered the feature statistics, and their labels were counted when the parent default was chosen. The effect would be different if the learner removed the cases first and later estimated what was common from a smaller collection. The paper's earlier concerns about pruning memory refer to the training evidence available to the learner. The redundant leaves can disappear after that evidence has already influenced the choices the tree makes.

Ending a unanimous branch also preserves the prediction that would come from keeping all its suffixes under the same procedure. Any child built solely from cases in that branch would still inherit the same unanimous class. An observed suffix could carry the query farther into the branch, while an unobserved one could make the query stop earlier. At whatever point the query stopped within that group, the output would remain the same. A feature ignored at one leaf can still be useful elsewhere. Early termination is specific to the subgroup the path identifies.

The pseudocode also stops when the supply of features has been exhausted. Exhaustion and unanimity are distinct conditions. In the object example, cases 5 and 10 have the same input values and different labels. Completing the test sequence cannot distinguish them. The pseudocode specifies that an exhausted path gets a class label, but leaves the choice of that label underspecified when there are still conflicting labels. It also gives no explicit tie convention when several classes equally qualify as most frequent. These details matter to reproducing individual classifications in ambiguous cases.

What the query receives

At the root, a query presents its value for the first scheduled test. If the current node has a matching arc, the algorithm crosses it and checks the next scheduled feature when the destination calls for another test. A leaf supplies its stored label. If an arc is missing at an internal node, retrieval finishes with that node's default. In either case, the answer comes from the place where traversal ends. There is no queue of candidates and no later search of sibling branches.

A missing arc can arise in different ways. A value may be possible in the task and yet have never occurred among the examples represented at the node. In that case the tree makes a prediction using the class evidence available for the prefix that the query did match. A value may also have occurred in the training data and have had a unanimous group that agreed with the default. For that value, the fallback supplies the answer the omitted child would have supplied. An implementation following the paper's search procedure handles both without having to reconstruct which reason applied.

This gives defaults a central role in generalization. Consider a spelling query that can follow an arc for its focus letter. If its next value has no arc, the classifier can give the default among the training cases associated with the focus-letter node. Other contextual positions could still agree with an individual example, but the tree will not examine them once it has stopped. If a matching branch does exist, the path can lead to a default based on a more specific group or to a leaf storing an agreed answer. The amount of context considered in making a decision thus varies with the route.

The authors use the term lossless for the intended preservation of training classifications. The compact tree can omit the details that would distinguish examples with a common prefix and answer. For training inputs whose feature patterns determine their labels, the stopping rules retain the known answer. A deterministic prediction for an input that has conflicting training labels can reproduce only one class for that input. The paper describes a fuller variant that can keep expanding the tree after the class is settled to preserve feature-value information. It studies the version that saves space by dropping those suffixes.

The object example also helps distinguish the information in the result from that in an index. The illustrated IGTree uses fewer tests and a smaller combined total of nodes and leaves than the C4.5 tree in the same example. The illustrated k-d tree, adapted there to expand over occurring symbolic values, places references to cases in its terminal groups. Those references are necessary for retrieving the examples themselves. When the IGTree produces a label, its representation has already combined cases that can be served by the same part of the tree, so the leaf cannot identify the original examples behind it.

What the cost analysis counts

The saving on a query comes from replacing a comparison across cases with branch lookups. The paper assumes sorted branch values so that each lookup can use binary search. Sorting in this role is a way to find an exact symbol efficiently. It leaves the nominal meaning of the categories intact. The authors give the search cost in terms of the length of the feature sequence and a branching parameter.

O(F · log(V))

O indicates asymptotic order of growth. F is the number of features and the maximum depth of feature tests. V is the paper's branching parameter, described as the average number of values per feature or average branching factor. log(V) represents the cost of looking among sorted alternatives, and the centered dot combines that cost with the depth limit. The expression has no separate term for the number of training cases. Actual queries can stop before going through the entire feature sequence. Also, the use of an average branching factor describes the paper's accounting. The cost along an individual route depends on the branch counts at the nodes it visits.

O(N · F)

Here N is the number of cases stored by IB1 and F is the number of features in each comparison. The O expression gives the growth of flat search when a query can be compared on those features with every stored case. The centered dot represents the work per case multiplied across the collection. The paper also gives this order for storing the flat feature vectors. Weighting changes the contribution of the comparisons in IB1-IG while retaining the scan through the examples.

The paper gives a worst-case expression for the number of nodes needed by the tree in its storage analysis.

N + (N − 1) · (V − 1)

N is again the number of examples, and the first term represents the authors' maximum number of leaves. They assign the product of N − 1 and V − 1 to the internal nodes, using V for the branching parameter. The addition combines the leaf and internal counts. Internal nodes need space for a default label and for access to their outgoing branches. The authors describe storage as proportional to N with the branching parameter fixed. The practical amount of sharing and the benefit of short paths depend on the examples in the task.

For construction, the paper gives the following cost for organizing the training cases into a tree.

O(N · log(V) · F)

N counts the training cases, V is the branching parameter, and F limits the depth of construction. The logarithm describes the branching lookup term and the centered dots multiply it by the instance and feature terms. The authors compare this worst-case tree-building cost with basic IB1 training.

O(N)

In the latter expression, O again denotes order of growth and N counts the training cases. The comparison treats recording each case in the flat memory as a basic training operation. The tree invests additional computation before being used and then consults the resulting branches instead of reconstructing comparisons at prediction time. The formulas describe how the work is organized. The measured storage results show how much that organization saved for the authors' data.

Experiments and results

Building the Dutch pronunciation benchmark

The most detailed experiment concerns Dutch spelling-to-phoneme conversion. The authors draw 20,000 Dutch word-pronunciation pairs from CELEX. They align spelling and phonemic transcription by inserting a phonemic null where necessary, so the symbol sequences can be paired at the level of positions. A null is a legitimate output for a spelling position. It allows a letter to belong to a group that jointly represents a phoneme without requiring that every letter in that group have a separate audible output.

The authors reuse the sliding-window encoding employed for NETtalk. As the focus moves across a word, each position supplies an instance, and the corresponding aligned phonemic symbol supplies its label. There are 3 context characters to the left and 3 to the right. Positions falling outside the word take a boundary value. The paper illustrates this with boek, pronounced /buk/. As the focus moves across the spelling, the b takes the initial consonant, the o takes the vowel, the e takes the null, and the k takes the final consonant. The context available at each step comes from the spelling, while the alignment determines which answer is expected.

Windowing yields 218,594 instances from the Dutch pairs. The feature alphabet has 41 values for each position, including letters with diacritics and the value marking the space beyond a word. The paper reports 55 possible phonemes and describes phonemic nulls in the encoding of the target. Each algorithm is evaluated by 10-fold cross-validation with 90% of the material for training and 10% for testing in a partition. The results are averages across the partitions. The main accuracy measure credits correct classifications at individual phoneme targets.

The two flat searches test the value of introducing information-gain weights. The decision-tree comparisons use C4.5 with and without pruning. C4.5 is configured to select features by information gain, which brings the criterion into line with the one used by IGTree for this task. The authors say the data lack the value-count anomalies for which they would use gain ratio. They set the minimum number of cases on either side of a test to 1, compared with the usual setting of 2. In the pruned configuration they use the reported default pruning confidence of 10%.

Accuracy on the Dutch phoneme targets

Mean held-out phoneme accuracy for Dutch spelling-to-phoneme conversion

The weighted flat classifier leads, with IGTree close to the unpruned decision tree.

Mean held-out phoneme accuracy for Dutch spelling-to-phoneme conversionIB1-IG: 97.17IB1-IG97.17C4.5 without pruning: 97.03C4.5 without pruning97.03IGTree (this paper): 97.07IGTree (this paper)97.07IB1: 92.11IB192.11C4.5 with pruning: 96.21C4.5 with pruning96.21
The numbers
System or settingaccuracy %
IB1-IG97.17
C4.5 without pruning97.03
IGTree (this paper)97.07
IB192.11
C4.5 with pruning96.21

IB1-IG achieves the highest mean test phoneme accuracy, 97.17%, with a reported standard deviation of 0.13. IGTree's 97.07% has a standard deviation of 0.11, and unpruned C4.5 reaches 97.03% with a standard deviation of 0.14. The paper reports a statistically significant IB1-IG lead over each of those trees. The IGTree and unpruned C4.5 scores are statistically indistinguishable by the paper's comparison. Numerically close scores can therefore correspond to different conclusions about the evidence for an accuracy difference.

IB1 and pruned C4.5 both fall significantly below that leading group. Their mean accuracies are 92.11% for unweighted search and 96.21% for the pruned decision tree. A standard deviation of 0.15 is reported for each. The significance table distinguishes thresholds for Type I error probability of 0.001 and 0.05, with corresponding reported cutoffs of t > 3.61 and t > 1.73. A Type I error here means declaring a difference significant when the test's null hypothesis holds. The weighted flat classifier's advantage over IGTree is reported at the 0.05 level, and the table marks stronger evidence for its lead over the lower-scoring baselines.

The measured outcome is a decision at the focus position. Several correct decisions within a word can count toward accuracy even if some other position has an error. This gives the experiment a direct measure of the classification work each algorithm is designed to perform. It also explains why the phoneme result and a test of complete word pronunciation should be read as different measurements.

What occupies memory in the Dutch experiment

Mean prediction storage for Dutch spelling-to-phoneme conversion

IGTree has the smallest reported prediction structure among the tested classifiers.

Mean prediction storage for Dutch spelling-to-phoneme conversionC4.5 without pruning: 992,047C4.5 without pruning992,047IB1: 1,573,885IB11,573,885IGTree (this paper): 77,749IGTree (this paper)77,749C4.5 with pruning: 278,537C4.5 with pruning278,537IB1-IG: 1,573,885IB1-IG1,573,885
The numbers
System or settingbytes
C4.5 without pruning992,047
IB11,573,885
IGTree (this paper)77,749
C4.5 with pruning278,537
IB1-IG1,573,885

IGTree's tree averages 77,749 bytes across the Dutch experiment. The weighted flat classifier's representation uses 1,573,885 bytes on average, with the same figure reported for IB1. Relative to IB1-IG, the paper calls this 95.1% compression. The estimate for the C4.5 tree after pruning is 278,537 bytes, corresponding to 82.3% compression in the paper's comparison. The estimated unpruned tree uses 992,047 bytes. The byte counts put the small accuracy advantage of weighted flat search in the context of what has to remain in memory to make its predictions.

The authors give a concrete encoding behind the comparison. A stored feature value or class can fit into one byte on this task. The flat-memory calculation uses the space taken by each case's features and class across the stored cases. In their IGTree implementation, a node uses seven bytes. This includes a 4-byte pointer, the feature value associated with the branch, a class, and a byte for the number of children. The test schedule allows a classifier to determine the feature from the depth in the tree.

The C4.5 figures are derived from the node counts reported by the program. The authors discuss eight bytes per node for a comparably compact representation that explicitly identifies the feature being tested. They also describe the behavior of C4.5 version 7, which expands a feature for its possible values and can produce terminal nodes for values with no corresponding examples. In discussing that representation they use seven bytes per node for the estimate. The comparison is thus grounded in encodings of the prediction structures, and the handling of possible branch values is partly a property of the C4.5 implementation being compared.

The paper reports an average branching factor of 2.3 for IGTree on Dutch pronunciation, while the feature alphabet contains 41 values. The difference between available symbols and retained branches helps explain why the tree can have a compact layout. At a particular prefix, many possible letters might be absent from the relevant training cases. Some that do occur can be handled by the default. And in a unanimous group there is no need to test later positions at all. The measured branching factor summarizes the resulting tree. It supplies neither a distribution of query path lengths nor a timing measurement.

Scoring complete Dutch words on a separate test

The authors also report a word-level comparison with Morpa-cum-Morphon, a Dutch system developed through linguistic engineering. In this experiment IGTree is trained using 70,000 Dutch word-pronunciation pairs. Both systems are tested on the same set, supplied by the developers of Morpa-cum-Morphon. The criterion is whether the whole word was converted correctly. IGTree reaches 89.5% correct test words, and Morpa-cum-Morphon reaches 85.3%.

This provides a comparison at the level of the intended pronunciation output. At that level, an error in a single position can make a word an incorrect conversion. The whole-word experiment changes the training collection and uses its own shared test set. Its numbers apply to those conditions. The cross-validation results describe individual phoneme targets and include additional baselines whose whole-word scores are not reported for this test.

Locating syllable starts in English words

The hyphenation experiment takes 20,000 hyphenated English words as its starting material. Here the examples also come from moving a window over spelling, but their labels mark whether a syllable begins at the focus position. The classifier must recognize both starts and positions without a start. The evaluation uses 10-fold cross-validation, with success assessed over the individual classifications.

Test accuracy for syllable-start classification in English hyphenation

Flat search has the strongest reported scores, and IGTree is ahead of both C4.5 settings.

Test accuracy for syllable-start classification in English hyphenationIB1-IG: 95.21IB1-IG95.21C4.5 without pruning: 94.38C4.5 without pruning94.38IGTree (this paper): 94.53IGTree (this paper)94.53C4.5 with pruning: 92.68C4.5 with pruning92.68IB1: 95.30IB195.30
The numbers
System or settingaccuracy %
IB1-IG95.21
C4.5 without pruning94.38
IGTree (this paper)94.53
C4.5 with pruning92.68
IB195.30

IGTree's accuracy of 94.53% is significantly above the 94.38% for C4.5 without pruning and the 92.68% with pruning. The flat searches have significantly higher accuracy than IGTree. IB1 reaches 95.30%, and IB1-IG reaches 95.21%. The significance finding for their comparison is different from the one for the tree. The paper reports no significant difference between the flat methods. The weighted method has a lower observed score, and the experiment offers no measured accuracy benefit from the weighting.

The compact layout is still effective on this task. IGTree achieves 91.1% average compression compared with the IB1 and IB1-IG representations. Pruning C4.5 yields 72.5% compression. The hyphenation findings therefore demonstrate that a large storage reduction can coexist with a significant accuracy cost relative to full search. The ability to share training paths is one property of the data and representation. The reliability of a class decision based on the resulting path is another.

Assigning syntactic categories on a fixed split

The tagging task asks which syntactic category belongs to a word in context. The input cases come from windows over already tagged sentences. The feature table describes inputs around the focus, and the authors use gain ratio for this task because the features do not all allow the same number of values. This experiment uses a single partition with 100,000 training instances and 10,000 test instances.

IGTree reaches 95.1% accuracy on those held-out instances. IB1-IG reaches 94.7%, and IB1 reaches 85.7%. The authors report a significant advantage for IGTree over each flat search. They also report 91.9% compression relative to IB1. That makes tagging the case in which the tree obtains the highest accuracy among the reported classifiers while also reducing the amount of storage needed for prediction.

The comparisons on the tagging split have a narrower scope than the Dutch cross-validation results. The paper gives test accuracies for the tree and the two flat searches, without a C4.5 score for tagging. It supplies a result for the specified partition instead of a distribution over repeated partitions. Within that setup, the change in representation has a different accuracy outcome from Dutch phoneme classification, where the weighted flat search has the lead.

What the ablations show

What is varied in the comparisons

The paper reports no component-by-component ablation of IGTree. It offers controlled comparisons of equal and weighted overlap in the flat searches, pruning settings for C4.5, and a descriptive analysis of the feature scores across the tasks. This distinction matters because a direct comparison between IGTree and another classifier generally changes several decisions at once. The result can show whether the complete method has an advantage under the test conditions. Its source within the method needs a closer argument.

In the flat-memory comparison, the same kind of stored case is available to each algorithm. The key change is the influence of agreement at each position. On Dutch pronunciation, the contrast between 92.11% for IB1 and 97.17% for IB1-IG is evidence that the relative importance of positions matters to test phoneme accuracy. The labels and window format provide the same kind of evidence in both runs. The weighting changes how agreements on those inputs combine into a preference for a stored case.

For hyphenation the corresponding flat comparison yields 95.30% and 95.21%, with no significant difference. Its clearest lesson is the absence of the accuracy gain seen in Dutch pronunciation. The worse score reported for weighted IB1 in the paper's broad comparison is a difference in the observed result. The significant disadvantage against unweighted IB1 in this experiment belongs to IGTree. This qualifier matters when using the experiment to judge the weighting statistic by itself.

The tagging comparison also favors the version of flat search that uses feature relevance, and IGTree scores above both flat methods. Gain ratio is part of the experiment's design. The paper includes no matched tagging runs using raw gain and gain ratio to determine how much the result depended on that choice. The outcome shows that the tree configuration tested was effective on the split, including its feature-scoring criterion.

The authors report feature scores by location in the window. In Dutch spelling-to-phoneme conversion, the focus letter has information gain 3.059. The immediately adjacent positions receive 0.711 on the left and 0.857 on the right. The next positions outward have gains of 0.280 on the left and 0.381 on the right. At the outer positions the gains are 0.185 on the left and 0.218 on the right. The ordering has a clear shape. The focus is strongly favored, followed by its closest context. Further tests can handle distinctions that remain after those observations.

The hyphenation gains have a different distribution. The intermediate position to the left of the focus has the largest score at 0.093. The immediate left and right positions receive 0.083 and 0.081. The focus itself receives 0.047. The outer left position gives 0.040, the intermediate right position gives 0.035, and the outer right position gives 0.013. The early choices in the tree are therefore made among contextual features with closely spaced leading scores. The focus lacks the dominance it has in the pronunciation task.

This distinction helps explain why the authors compare scores when interpreting accuracy. In pronunciation, the leading test carries a large amount of evidence about the class relative to the other available tests. An early commitment based on that value has a clear statistical motivation. In hyphenation, a test still has to take priority under the fixed schedule even if other positions appear nearly as useful on average. Flat search leaves those cues available in the rest of the comparison. This offers an explanation for the accuracy ordering on hyphenation, although the paper does not identify which held-out errors arose when an informative later match was bypassed.

The tagging row gives gain ratios of 0.69 at the focus, 0.23 at the immediate left position, 0.21 at the immediate right position, and 0.06 farther to the left. The focus is prominent within this row. Its gain ratio and the raw information gain of the Dutch focus quantify different scoring criteria. Within-task ordering supplies the relevant evidence for the design of the trees. The raw magnitudes across those tasks do not by themselves establish that one task should be easier for IGTree.

The feature analysis compares datasets that also differ in what is being predicted and how the evaluation is organized. It supports the authors' association between well-separated feature relevance and competitive performance. It cannot isolate score separation from the other differences across tasks. There is no experiment that changes the degree of separation while holding the input task and the rest of the procedure fixed. The score profiles help explain why the experimental pattern is plausible, while the classifier comparisons show how the methods actually performed.

What pruning a baseline reveals about storage and accuracy

The authors' C4.5 comparison changes whether the decision tree is pruned. On Dutch pronunciation, the pruned tree requires less storage and has significantly lower test phoneme accuracy than its unpruned counterpart. On hyphenation, pruning is also associated with the lower of the two C4.5 accuracy scores. For these configurations, the experiments show a cost in predictive accuracy for the storage savings associated with pruning.

The comparison has a different meaning from the redundant-leaf saving in IGTree. When an IGTree child is omitted because it agrees with its parent's default, the search rule gives an immediate reason the prediction stays the same. A query that would have used the child now obtains the same answer one step earlier. The paper does not report separate runs with these redundant children retained to quantify their share of memory savings. It justifies the equality of the predictions through the construction and retrieval rules.

Several features of the full tree can account for the difference in storage from unpruned C4.5. IGTree can represent a value by falling back to the default instead of storing an explicit child. It can stop recording a prefix when the class is settled. Its global schedule also removes the need to identify the tested feature independently at every node. The baseline's local test selection and expansion of possible values affect its own layout. The data establish the sizes of the complete structures under the authors' accounting. They do not measure each design choice's marginal contribution.

The comparison with IB1-IG clarifies the limits of an explanation based simply on better access to evidence. Weighted full search preserves all the feature comparisons and does slightly better on Dutch phonemes. The tree does better in the tagging experiment. These outcomes show that the way a classifier uses the examples can change accuracy in either direction. A fixed sequence and local defaults can yield a useful decision in context, while additional available comparisons are helpful only insofar as the similarity rule turns them into a better class choice.

Limitations

Limits identified by the authors

The authors frame IGTree around large collections of examples represented by symbolic features whose class relevance differs substantially. They present hyphenation as evidence for a limit of the accuracy advantage. With more closely spaced feature scores, the priority given to the early tests is less strongly supported, and the tree can give up accuracy while making substantial storage savings. For continuous attributes the authors mention discretization, which would turn ranges into categories. The reported experiments use symbolic inputs and do not test that extension.

The tree's output is a class. A terminal label does not carry the count and identities of the cases used to derive it, and many lower-ranked feature values are discarded. The paper accordingly limits its use of lossless compression to class recovery. It also explicitly distinguishes IGTree from a data structure for finding nearest neighbors. If the application has to return the underlying examples or reconsider them individually, that information is missing from the compressed version studied here.

The authors characterize their complexity analysis as worst-case and emphasize that achieved compression is task-dependent. A collection where many examples agree after a short sequence of tests gives more opportunity for early stopping. A collection with continued class disagreement after the same tests needs more elaboration. The measured savings support substantial compression in the reported tasks. They supply no general storage fraction to expect on new data. The search expression also relies on how branches are looked up, and the actual depth depends on how long the query can continue.

The paper discusses compact rule sets extracted by C4.5rules as a possible competitor. The authors describe a large C4.5 tree that took about half an hour to generate, while processing it with C4.5rules took several days. They say the tree generation time was similar to IGTree's processing time in that discussion. The example explains the practical difficulty they encountered with rule extraction for large trees. The paper gives no completed comparison of resulting rule-set size and held-out accuracy against IGTree.

Limits visible in the evaluation

The tree structure and search analysis explain why a query avoids a flat scan, and the Dutch experiment gives an observed branching factor. The experiments do not give matched per-query times for the classifiers. Consequently the evidence for retrieval speed comes from the work each algorithm is specified to do and the shape of the tree, instead of a measured latency in a common setup. The reported byte counts concern the representations made available for prediction. They leave out peak memory for construction, and the C4.5 sizes are based on estimated compact storage.

The Dutch cross-validation account mentions partitions of the full material after explaining how word pairs turn into windows. The accuracy table describes unseen word-pronunciation pairs. The procedural description leaves open the details of whether and how all windows from a word were kept within the same partition. That matters for interpreting how the system is tested on unseen word forms. The reported accuracy measure is clear about the credited unit being an individual phoneme target. The separate comparison against Morpa-cum-Morphon evaluates whole-word conversions on its own shared test set.

The additional language tasks are documented more briefly. Tagging uses a single train-test division, so its results do not show how the advantage changes across alternative partitions. Hyphenation's overall accuracy does not show how often syllable starts and other positions are classified correctly as separate categories. The paper also provides no breakdown of test predictions by the way traversal stopped. Without such a breakdown, the experiments cannot show whether errors are concentrated in fallback decisions, unanimous leaves, or paths that use much of the available context.

There is a limit to the paper's lossless terminology that the object illustration makes concrete. Cases 5 and 10 have the same input description and conflicting labels. A deterministic classifier can assign only one label to that description, whether the tree stores a short path or uses every feature. In that situation, reconstructing the training collection's entire set of input-label associations would require information beyond the single output of a path. There is also no explicit resolution in the pseudocode for all ties that can affect the stored default or the label of an exhausted path.

The paper's conclusion considers whether spending more computation to obtain the exact nearest neighbor is worthwhile. It assumes that symbolic k-d tree retrieval would have the same generalization accuracy as IB1-IG when returning the corresponding neighbors. The paper supplies no empirical comparison with such a symbolic index. Its general statement that IB1-IG does not significantly outperform IGTree also needs to be read with the task-level results. The Dutch experiment finds a small significant advantage for IB1-IG, and the hyphenation experiment finds a significant advantage for both flat methods. The favorable tagging result shows what the tree can achieve in a particular setup. Across the tasks, the evidence supports evaluating the cost of exact search in light of both the attainable accuracy and the storage budget.

What came after

Memory-based tagging as a system design

The memory-based tagger-generator paper appeared in 1996, before the IGTree journal article. The IGTree article itself points to an earlier version of its method, so the publications fit within an overlapping line of work. MBT's stated problem is how to generate a part-of-speech tagger using memory-based learning. That places the examples and their contextual labels at the center of a tagging system. IGTree addresses a question that arises inside that approach, namely how to organize the example-derived information before the system is asked for a tag. The relationship is established at the level of memory-based tagging. The title alone leaves the generator's use of particular tree operations unspecified. MBT

Combining decisions for word-class tagging

The 2001 work addresses accuracy by combining learning systems for word-class tagging. That takes up a different part of the decision problem. In the IGTree experiment, different ways of organizing and consulting training examples give different predictions and different accuracies under a common tagging setup. A combination approach makes multiple systems' decisions available to the tagger, so the question becomes how to use their outputs together. The cited work's title establishes that objective. It leaves open which combination procedure was used and how IGTree's decisions contributed to the result. Improving Accuracy in word class tagging

Using tags as context for translation

The 2010 work concerns supertags as source-language context for hierarchical phrase-based machine translation. This changes the role of the tag from the answer being evaluated to contextual information for another language task. IGTree's tagging experiment asks whether a classifier can recover a syntactic category from the information around a word. The translation paper's stated topic concerns using a form of tagging to make linguistic context available within translation. The citing relationship connects these uses of contextual linguistic labels. The title by itself does not specify whether a compressed tree generated the supertags or what effect the choice of tagger had on translation. Supertags as Source Language Context

 Institutions

 Fields, topics and concepts

 Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksInformation Systems · 1,888 works

Cite

Cite as Walter Daelemans, Antal van den Bosch and Ton Weijters. 1997. IGTree: Using Trees for Compression and Classification in Lazy Learning Algorithms. Artificial Intelligence Review 11, 407–423.

The paper itself, not this card. BibTeX from the library's record of the work. DOI 10.1023/a:1006506017891

@article{daelemans1997igtree,
  title = {{IGTree: Using Trees for Compression and Classification in Lazy Learning Algorithms}},
  author = {Walter Daelemans, Antal {van den Bosch} and Ton Weijters},
  journal = {Artificial Intelligence Review 11, 407–423},
  year = {1997},
  doi = {10.1023/a:1006506017891},
  url = {https://doi.org/10.1023/a:1006506017891}
}

References

24 references, 2 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Aha, D. W., Kibler, D., & Albert, M. (1991). Instance-based learning algorithms. Machine Learning , 7, 37{66.
  2. Aha, D. W. (1992). Generalizing from case studies: A case study. In Proceedings of the Ninth International Conference on Machine Learning , 1{10. Aberdeen, Scotland: Morgan Kaufmann. OpenAlex ↗ · Scholar ↗
  3. Cardie, C. (1993). A case-based approach to knowledge acquisition for domain-specic sentence analysis. In AAAI-93 , 798{803. OpenAlex ↗ · Scholar ↗
  4. Daelemans, W. (1995). Memory-based lexical acquisition and processing. In Steffens, P., editor, Machine Translation and the Lexicon , Lecture Notes in Articial Intelligence 898. Berlin: Springer. OpenAlex ↗ · Scholar ↗
  5. Daelemans, W., Van den Bosch, A. (1992). Generalisation performance of backpropagation learning on a syllabication task. In M. Drossaers & A. Nijholt (Eds.), TWLT3: Connectionism and Natural Language Processing . Enschede: Twente University. OpenAlex ↗ · Scholar ↗
  6. Daelemans, W., Van den Bosch, A. (1994). A language-independent, data-oriented architecture for grapheme-to-phoneme conversion. In Proceedings of ESCA-IEEE Speech Synthesis Conference '94 , New York. OpenAlex ↗ · Scholar ↗
  7. Deng, K. & Moore, A. W. (1995). Multiresolution Instance-Based Learning. In Proceedings of the Fourteenth International Joint Conference on Artical Intelligence . Montreal: Morgan Kaufmann. OpenAlex ↗ · Scholar ↗
  8. Dougherty, J., Kohavi, R. & Sahami, M. (1995). Supervised and unsupervised discretization of continuous features. In Proceedings of the International Conference on Machine Learning '95 . OpenAlex ↗ · Scholar ↗
  9. Friedman, J., Bentley, J., and Ari Finkel, R. (1977). An algorithm for nding best matches in logarithmic expected time. ACM Transactions on Mathematical Software , 3(3). OpenAlex ↗ · Scholar ↗
  10. Kitano, H. (1993). Challenges of massive parallelism. In IJCAI , 813{834. OpenAlex ↗ · Scholar ↗
  11. Kohavi, R., & Li, C-H. (1995). Oblivious decision trees, graphs, and top-down pruning. Proceedings of the Fourteenth International Joint Conference on Articial Intelligence , 1071{1077. Montreal: Morgan Kaufmann. OpenAlex ↗ · Scholar ↗
  12. Langley, P., & Sage, S. (1994). Oblivious decision trees and abstract cases. In D. W. Aha (Ed.), Case-Based Reasoning: Papers from the 1994 Workshop (Technical Report WS-94-01). Menlo Park, CA: AAAI Press. OpenAlex ↗ · Scholar ↗
  13. Nunn, A. & van Heuven, V. J. (1993). Morphon, lexicon-based text-to-phoneme conversion and phonological rules. In V. J. van Heuven & L. C. Pols (Eds.), Analysis and Synthesis of Speech: Strategic Research Towards High-Quality Text-to-Speech Generation . Berlin: Mouton de Gruyter. OpenAlex ↗ · Scholar ↗
  14. Omohundro, S. M. (1991). Bumptrees for E cient Function, Constraint, and Classi-cation Learning. In R. P. Lippmann, J. E. Moody, and D. S. Touretzky (eds.) Advances in Neural Information Processing Systems 3 . San Mateo, CA: Morgan Kaufmann. OpenAlex ↗ · Scholar ↗
  15. Quinlan, J. (1993). C4.5: Programs for Machine Learning . San Mateo, CA: Morgan Kaufmann.
  16. Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning internal representations by error propagation. In D. E. Rumelhart & J. L. McClelland (Eds.), Parallel Distributed Processing: Explorations in the Microstructure of Cognition , volume 1: Foundations. Cambridge, MA: The MIT Press. OpenAlex ↗ · Scholar ↗
  17. Sejnowski, T. J., Rosenberg, C. S. (1987). Parallel networks that learn to pronounce English text. Complex Systems , 1, 145{168. OpenAlex ↗ · Scholar ↗
  18. Stanll, C. and Waltz, D. (1986). Toward memory-based reasoning. Communications of the ACM , 29, 1212{1228. OpenAlex ↗ · Scholar ↗
  19. Van den Bosch, A., Daelemans, W. (1993). Data-oriented methods for grapheme-to-phoneme conversion. In Proceedings of the 6th Conference of the EACL , 45{53. Utrecht: OTS. OpenAlex ↗ · Scholar ↗
  20. Weijters, A., & Hoppenbrouwers, G. (1990). NetSpraak: een neuraal netwerk voor grafeem-foneem-omzetting. Tabu , 20:1, 1-25. OpenAlex ↗ · Scholar ↗
  21. Weijters, A. (1991). A simple look-up procedure superior to NETtalk? In Proceedings of the International Conference on Articial Neural Networks , Espoo, Finland. OpenAlex ↗ · Scholar ↗
  22. Wess, S., Altho , K. D., and Derwand, G. (1994). Using k-d trees to improve the retrieval step in case-based reasoning. In S. Wess, K. D. Altho , and M. M. Richter (Eds.), Topics in Case-Based Reasoning . Berlin: Springer Verlag. OpenAlex ↗ · Scholar ↗
  23. Wess, S. (1995). Fallbasiertes Probleml osen in wissensbasierten Systemen zur Entschei-dungsunterst utzung und Diagnostik. Doctoral Dissertation, University of Kaiserslautern. OpenAlex ↗ · Scholar ↗
  24. Wolpert, D. H. (1990). Constructing a generalizer superior to NETtalk via a mathematical theory of generalization. Neural Networks , 3, 445{452. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/daelemans-1997-igtree-trees-compression-classification-lazy/