Elamur Research

Hierarchical Classification of Web Content

Paper · 2000 · Susan Dumais and Hao Chen

Summary

A search result usually gives readers just enough text to decide whether to open it. The same text can also help put the result in a useful category, so that readers can browse by subject alongside the ordinary ranked list. Susan Dumais and Hao Chen ask whether an existing web directory can make that sorting both more accurate and faster. They use pages labeled by LookSmart editors to train linear support vector machines, which learn to separate examples of a category from other examples. The input is a short description of each page, constructed to resemble the information available in a search result. The task is an example of text classification.

The authors use the directory tree in two places. During training, they change what counts as a negative example for a specific category. A flat classifier learns to separate the category from the whole directory sample. A hierarchical classifier learns to separate it from other categories under the same broad heading, so the words it learns to use can reflect finer distinctions. During classification, the authors compare two ways to combine evidence from the broad and specific categories. One multiplies their scores. The other checks the broad category first and looks at its children only if the broad score clears a threshold. A page can qualify for several categories under either rule.

On the LookSmart test set, the flat approach gives a second-level micro-averaged F1 of .476. F1 combines precision, the share of assignments that agree with the directory labels, and recall, the share of directory labels recovered. The hierarchical classifiers reach .495 with multiplication and .497 with the sequential rule. The authors report a statistically significant improvement over the flat baseline for each hierarchical rule and find no difference between the two rules. The sequential rule needs only 14.8% of the category comparisons used by multiplication and 16.1% of those used by the flat baseline, including the cost of checking every broad category.

The test covers the upper part of a deeper directory, and decisions at the broad level still leave substantial room for improvement. When the authors supply correct broad assignments in an upper-bound analysis, the hierarchical approach reaches .711 F1. The main result comes from the ordinary test, where broad assignments have to be predicted. In that setting, a directory can define more focused training problems and also provide a way to skip most of the fine-category checks, with a modest improvement in F1 over a flat treatment of the same fine categories.

Deep dive: Hierarchical Classification of Web Content

Dumais and Chen show how a web directory can improve text classification and cut the work needed to sort short search results into topics. · about 32 minutes to read

The problem and its context

From a ranked list to browsable groups

A ranked search list presents each result in a single sequence, even when the pages concern different aspects of a query. An existing subject directory offers another way to look at the same pages. Users can begin at a broad heading, see which branches are represented in the results, and look more closely at a relevant group. The authors situate this idea in a tradition that includes library classifications and web directories such as Yahoo! and LookSmart. Their immediate application concerns how directory browsing can work alongside information retrieval and search.

A directory compiled by editors already contains examples of the decisions an automatic system needs to make. Its headings supply the possible labels, and the pages assigned to those headings show how the editors used them. The problem is to extend that work to pages that have yet to be classified. The authors describe this as a way to supplement human effort. Editors provide an initial collection, the system learns from it offline, and new items can then be assigned with little or no further work by an editor on each item. This is the supervised use of machine learning.

Earlier research had also grouped search results by clustering. The paper describes work by Zamir and Etzioni using suffix trees and work by Hearst and Pedersen using Scatter/Gather. These approaches look for groups in the results themselves. Dumais and Chen point to the expense of clustering large numbers of documents and the difficulty of assigning understandable names to the groups it finds. A pre-existing directory supplies those names in advance and lets the system do its learning before the user searches. It also gives each prediction a specific target: agreement with a category that an editor could already use.

The application shapes the evidence available to the classifier. A search service returns short descriptions, while fetching the complete pages over the network would delay organization of the results. Those descriptions can be sparse or noisy compared with abstracts written to summarize a document. The authors also concentrate on broad subjects and their immediate subdivisions because they expect much of the useful disambiguation to happen near the top of the directory. These choices turn a large editorial structure into a more specific research problem: assigning useful subject labels quickly from a short amount of text.

What changes when categories have parents

The paper describes a field with many established ways of learning text classifiers, including nearest-neighbor methods, decision trees, Bayesian methods and support vector machines. A common setup was to give each category its own binary decision. A classifier for a single category saw examples with that label on one side and examples without it on the other. The collection of binary decisions could be used independently, allowing several assignments, or used to select the best category. In either case, the category tree could be set aside while the classifiers were trained.

The authors illustrate the opportunity offered by the tree with computing and sports. A word about computers can help decide between those broad subjects while doing little to distinguish hardware from software. A word about chat can help identify a chat subdivision within either branch. Its usefulness depends on what the other plausible labels are. The same intuition applies to mistakes. A system that confuses soccer with football may already have abundant evidence about sports. A new distinction becomes possible when training emphasizes words that separate those related subjects.

The tree also creates a decision about when to use a classifier. Training a category against nearby alternatives defines what its score is meant to express. At prediction time, a broad-topic judgment can govern whether that local score needs to be computed at all. The choice carries a cost. If the route to a correct category is rejected at an earlier stage, good evidence for the specific label may never be used. The paper treats the definition of the training problem and the combination of scores as separate choices because each can change how a directory system behaves.

Earlier experiments with hierarchies

Several studies the authors discuss made hierarchies from Reuters news categories, which originally had no tree structure. Koller and Sahami grouped labels by subsumption, with grain as a broader category for topics such as corn and wheat. Their test-time procedure selected the best broad class and continued within it. This concentrated the lower-level decision on a small set of alternatives, with the risk that a wrong broad choice ruled out the right result. They compared flat and hierarchical versions of Bayesian classifiers. The paper describes an advantage for the hierarchical versions with a very small feature allowance and says it disappeared when more features were available.

Weigend and colleagues used clustering to suggest groups of Reuters categories and then had people verify them. Their neural network approach combined evidence across levels by multiplication, postponing the hard decision until the final label. Dumais and Chen report an improvement in average precision with word features, while the improvement did not carry over to an alternative representation based on latent semantic indexing.

D’Alessio and colleagues drew on broader Reuters codes and evaluated articles with a single category tag. Their approach made a hard assignment at each branch. The authors describe improvements over the flat comparison and further gains after changes to the hierarchy. Ng and colleagues used an arrangement with countries above topical categories. Their experiments give another example of a hierarchical Reuters task, and the paper notes that they did not include a flat comparison. The Reuters studies thus varied in how researchers obtained the tree, what a route through it meant, and whether a classification could carry multiple labels.

Other studies used taxonomies whose organization predated the experiments. Ruiz and Srinivasan used broad decisions to gate specialized classifiers for abstracts in the Heart part of MeSH. Larkey examined patent classification within Speech Signal Processing. The paper describes these as tests within particular subdomains of large controlled vocabularies. That distinction matters for LookSmart, where the authors want to know whether a hierarchy can be useful across many kinds of webpages in the same experiment.

The closest web example in the related work is McCallum and colleagues’ study of Yahoo!’s Science branch. Their approach used the hierarchy to improve estimates of how likely words were within categories. An estimate for a narrow category borrowed information from its ancestors, a procedure called shrinkage that can help when a category has few examples. That use of the tree differs from changing the negative examples for a discriminative classifier. Dumais and Chen also discuss experiments by Chakrabarti and colleagues, who used the hierarchy in feature selection and classification. The flat and hierarchical approaches in that study used different document representations. As the authors point out, such a comparison makes it difficult to identify which part of the system accounts for a difference.

Dumais and Chen bring these questions to a broad web directory with a common learning algorithm for the flat and hierarchical approaches. The paper motivates that choice with earlier work on the effectiveness and efficiency of support vector machines for text. One of the studies it cites is Text Categorization with Support Vector Machines: Learning with Many Relevant Features.

The method, step by step

Turn each page into the text a searcher would see

The experiment begins with webpages that LookSmart editors have already assigned to the directory. The authors keep the directory labels and construct a short textual description for each page. The task for a new page is to recover labels from its description. This setup separates the evidence the classifier sees from the editorial decisions used to judge its output.

The preprocessing software extracts plain text from the page. It can also extract information from the fields for a title, description, keywords and alternative image text, and it gathers text from frames where present. The description used for classification follows a narrower recipe. It includes the title and keywords, together with the description field if available. If there is no description field, the authors substitute the first 40 words of the body. The paper presents this as a way to approximate the short descriptions returned by search engines under the constraints of the intended application.

The software converts letters to lower-case and uses spaces and punctuation to identify words. A short stop list removes common words. The resulting features record word presence, so a word contributes the same input value whether it appears once or repeatedly in a description. This binary representation gives the classifier a compact account of which selected terms occur. It also specifies the kind of evidence the experiment uses. A word can influence a prediction through its presence without the program analyzing its grammatical role, its position in a sentence or changes in its form. Identifying the individual words in this pipeline is a simple form of tokenization.

Decide which examples a category must be separated from

For each category, the authors train a binary classifier. Positive examples carry that category label. The defining choice is where to look for negatives. Consider a label within Shopping & Services. In the flat treatment, pages from all parts of the training sample can supply evidence about what falls outside that label. In the hierarchical treatment, the reference population for the same specific label comes from inside Shopping & Services. A page outside the broad branch is outside that child classifier’s training problem.

This changes the question the classifier learns to answer. In the flat case, even a word shared across multiple children of the same parent may be helpful if it separates the target category from a large part of the directory. In the hierarchical case, the classifier has to distinguish the target from alternatives that can share this broad vocabulary. A highly specific term can therefore be more valuable in the local comparison. At the top level, each broad category is itself learned against the rest of the broad directory.

The training setup preserves the multi-label nature of the collection. Membership in a category is the positive condition for that category’s binary classifier. A page with several directory labels can furnish positive evidence for several decisions. At test time, the rules also apply separately to possible labels. The system can produce multiple assignments or leave a page unassigned if its evidence falls short everywhere. Even the gated approach can continue down several branches when several broad categories pass.

Give each classifier its own vocabulary

After eliminating words that occur in a single document, the authors rank candidate words by mutual information with the category being learned. Mutual information measures how much knowing one thing tells you about another. Here the two things are whether a word occurs in the description and whether the description belongs to the category. The calculation considers both presence and absence for the word and both membership and nonmembership for the label.

MI(F, C) = ∑_{u ∈ {f, ¬f}} ∑_{v ∈ {c, ¬c}} P(u, v) log[P(u, v) / (P(u) P(v))]

MI is mutual information. F is the binary feature variable and C is the binary category variable in this formula. The first sum runs over the values u of F. The value f means that the word occurs, and ¬f means that it is absent. The second sum runs over the values v of C. The value c means the category applies, and ¬c means it does not. The notation ∑ denotes summation and ∈ means membership in the set of values inside the braces. P(u, v) is the joint probability of the two values. P(u) and P(v) are their separate probabilities, and log is the logarithm of the ratio between the joint probability and the product of those separate probabilities.

The expression compares what is observed together with what would be expected if word occurrence and category membership were independent. A word whose occurrence gives essentially the same information across the positive and negative examples has little value under this criterion. A word can be informative through an association with membership or through an association with nonmembership. The ranking selects which words reach the classifier. The classifier will learn separately whether a selected word contributes evidence for or against the category and by how much.

The allowance is 1000 features per category. For the flat setup, the authors make one selection for each of the 150 second-level categories using the directory-wide comparison. For the hierarchical setup, they make a selection for each of the 13 broad categories and a separate selection for each of the 150 child categories. For a child, the word and label associations are measured inside its own branch. Holding the feature allowance fixed leaves room for the vocabularies themselves to change. The authors settled on this allowance based on satisfactory validation results and describe the search for an optimal feature count as limited.

Selecting separate vocabularies also has an operational implication. The same document can be represented against each category’s selected words. For the work of scoring that category, all other words can be disregarded. This matches the contrast the classifier learned during training. For example, a term selected for a sports-related branch can be useful in a decision about collecting in Hobbies & Interests if its distribution inside that branch makes it informative.

Learn a linear decision and calibrate its score

A linear support vector machine learns a weighted boundary between positive and negative training examples. In the authors’ geometric illustration, documents are points in a plane and a line separates the two groups. Each real description has a coordinate for every feature the classifier uses, so the corresponding boundary is a hyperplane. The margin is the distance from that boundary to the nearest examples. A maximum-margin solution puts the boundary as far from those closest examples as the training constraints allow.

For separable examples, the paper expresses this as a constrained optimization. The weight vector is made small while all training examples must satisfy the required signed margin. In equivalent minimum-norm form, the problem is:

minimize ‖w‖ subject to yᵢ(w · xᵢ − b) ≥ 1 for every i

The vector w contains the learned word weights, and ‖w‖ denotes its Euclidean length. The index i identifies a training example. Its feature vector is xᵢ, and yᵢ is the signed category label, positive for a member and negative for a nonmember. The dot denotes the dot product, and b is the offset of the separating boundary. Multiplying the decision value by yᵢ expresses the distance in the required direction for that example’s class. The inequality demands a signed decision value of at least 1 for each example.

Real descriptions need not admit such a clean partition. Two pages can share vocabulary and still carry different editorial labels. The paper explains that slack variables permit violations of the margin constraints while imposing a penalty. The penalty setting, also denoted by C in SVM training, is distinct from C in the mutual information formula. It is set to the default value of 0.01. The authors discuss the possibility of using kernels to learn nonlinear boundaries and choose a linear classifier for its training and scoring efficiency.

Training uses John Platt’s sequential minimal optimization algorithm, or SMO. It solves the large quadratic optimization by breaking it into small problems that can be solved analytically. The paper also points out that the binary text representation is sparse. Most words in a category’s vocabulary are absent from any given short description. The training algorithm can take advantage of that structure, and a category can be scored by adding the weights for the selected words that are present.

w · x

Here w is the learned weight vector for the category and x is the binary feature vector for a new description. The dot product multiplies each feature value by its corresponding weight and adds the contributions. An absent term contributes nothing. The calculation provides the weighted text evidence used in the classifier’s output.

After training the SVM, the authors fit a sigmoid to its output by regularized maximum likelihood. A sigmoid maps the output to a probability scale. The fit relates the scores to the observed labels, with regularization constraining the fit. This matters because the decision rules compare scores against probability thresholds and, in one case, multiply estimates from different classifiers. Category scores on a probability scale give those operations a common interpretation. The paper’s thresholds are chosen on held-out training data to optimize F1, before the rules are applied to the test set.

Use the scores to decide where a page belongs

The flat rule checks each fine category directly. It accepts a label if the category’s probability score exceeds p=0.5. Here p is the acceptance threshold. Because each label is tested independently, several categories can pass and a page can have no accepted label. The flat rule works without first deciding which broad topic the page falls under.

The hierarchical multiplicative rule combines the broad probability with the local fine-category probability. Intuitively, the first is evidence that the branch applies and the second is evidence that the child applies within that branch. The product is then checked against the threshold p=0.2.

P(L1) × P(L2)

P denotes a probability estimate for the description being classified. L1 denotes the broad category on the path to the candidate label, and L2 denotes the child category. P(L1) is the estimate from the top-level classifier. P(L2) is the estimate from the second-level classifier, which in the hierarchical case was trained within the relevant broad category. The multiplication sign combines the estimates into the score for the child assignment. The author’s short notation for P(L2) leaves its local training context implicit.

The multiplication rule evaluates a path by a single combined score. A child estimate below the cutoff used in the Boolean rule can still produce an accepted product if the estimate for its parent is strong enough. A parent estimate at or below the product cutoff cannot produce a product above it, since the child probability can be at most one. That property is distinct from the evaluation procedure reported in the paper, which computes every broad and child score for the multiplicative comparison.

The sequential rule instead checks a condition at each level. It uses p₁=0.2 for the broad category and p₂=0.5 for the child. Passing the parent condition makes the child eligible for evaluation. Once evaluated, the child must clear its own threshold to be assigned.

(P(L1) > p₁) ∧ (P(L2) > p₂)

P(L1) and P(L2) are the broad and child estimates for the candidate assignment. The threshold p₁ applies to the parent, and p₂ applies to the child. The greater-than sign expresses the requirement to exceed the relevant cutoff. The symbol ∧ means that both conditions must hold. The order of evaluation is part of the efficiency argument. When the first condition fails, the second comparison is unnecessary and the child score need not be computed.

These rules use identical hierarchical child classifiers as sources of local evidence. They differ in what has to be true before that evidence produces an assignment. A path can clear both Boolean thresholds and still give too low a product. Conversely, another path may pass the product threshold with its child estimate below the Boolean cutoff. The authors test whether these differences in assigned labels matter at the aggregate level and whether the stepwise rule saves enough work to be useful.

Learning and applying the sequential directory classifier

The steps in order.

Learning and applying the sequential directory classifierStep 1: Start with pages labeled by directory editors1. Start with pages labeled by directory editorsStep 2: Construct a short description for each page2. Construct a short description for each pageStep 3: Define broad and within-branch training contrasts3. Define broad and within-branch training contrastsStep 4: Select informative words for each category4. Select informative words for each categoryStep 5: Train linear classifiers and calibrate their scores5. Train linear classifiers and calibrate their scoresStep 6: Set decision thresholds using held-out training data6. Set decision thresholds using held-out training dataStep 7: Score the broad categories for each new description7. Score the broad categories for each new descriptionStep 8: Test child categories within passing branches8. Test child categories within passing branches

Experiments and results

The LookSmart sample

At the time of the experiment, the LookSmart directory contained 370,597 unique pages and 17,173 categories in a hierarchy extending to 7 levels. Trained web editors had manually classified the pages. Dumais and Chen restrict the classification experiment to the 13 top-level categories and 150 second-level categories. The breadth of the top level is central to the test. Its categories cover very different activities and subject areas, and each broad heading can contain quite varied specific labels.

The authors draw a random sample comprising 16% of the directory pages. They choose that sampling proportion to give even the smallest child categories some representation in the training data. The training set contains 50,078 pages and the test set 10,024 pages. The category frequencies remain uneven. Broad categories have between 578 and 11,163 training examples, while second-level categories range from 3 to 3141 training examples. The same allowance of selected features consequently applies to categories backed by very different amounts of positive evidence.

The authors report an average of 1.07 broad labels and 1.20 second-level labels per page. Those figures reflect assignments in the directory, where a page can qualify for several labels. They help explain why the procedure tests category membership independently. A system that had to return a single child category could never reproduce every assignment for a page with several labels. Testing a separate decision for each category also allows the classifier to abstain when no score exceeds its threshold.

Although the pages themselves provide the material from which descriptions are constructed, the experimental inputs are those descriptions. This makes the comparison relevant to the intended search application. It also defines what the scores mean. They measure agreement with editorial assignments using evidence from the short description and the tested portion of the taxonomy.

The baseline and the evaluation measure

The main baseline uses flat training for the 150 second-level categories and scores every one of them for each test page. This is a linear SVM system with category-specific feature selection and a validation-set threshold. It has access to the same descriptions and learns the same set of target labels as the hierarchical systems. The comparison asks whether training child classifiers within branches and using broad-category scores at prediction time improve on a conventional treatment of the classification problem.

The metrics count label decisions. Precision measures how many predicted assignments agree with the editorial labels out of all the assignments made. Recall measures how many editorial assignments are recovered out of all those recorded. An additional predicted label can help recall if it is correct and hurt precision if it is incorrect. A page can therefore contribute both a correct decision and an error. The reported aggregate is micro-averaged, so decisions for common categories account for a larger part of the overall score than decisions for rarely assigned categories.

F₁ = 2 × P × R / (P + R)

F₁ is the equal-weight F measure. In this expression, P is precision and R is recall, using the micro-averaged quantities. The numeral 2 is the coefficient that gives the harmonic mean of precision and recall. The multiplication signs combine the coefficient with both measures, and the division is by their sum. The paper chooses acceptance thresholds to optimize F₁ on validation data. Higher cutoffs normally trade recall for precision, since fewer proposed assignments qualify, and lower cutoffs normally move the balance in the other direction.

This denominator matters when interpreting the authors’ discussion of accuracy. The aggregate F1 is a measure of how the system recovers individual category assignments. Perfect agreement on the entire collection of labels for each page would be a different criterion. Likewise, an average that gave every category the same weight would answer a different question about how uniformly useful the approach is across the directory. The paper also inspects individual categories to show variation obscured by the aggregate.

Accuracy at the broad and specific levels

At the top level, the 13 broad classifiers yield .572 F1 on the test set. The authors report .649 F1 when these classifiers are evaluated on the original training set. They use the training result to contextualize the test score. The separation is already imperfect on descriptions used for learning, which is consistent with the authors’ assessment that broad classification from short descriptions is difficult. The training score supplies a point of comparison for generalization, while the test score measures performance on held-out pages.

At the second level, the flat method reaches .476 F1 on the LookSmart test set. This comparison involves a different target from the top-level task. The categories are more specific and much more numerous. The direct baseline for the hierarchical child classifiers is therefore the flat second-level result. When the authors bring up results from other web classification research, they point to differences in categories, document length and evaluation metrics that make a direct comparison difficult.

Second-level micro-averaged F1 on the LookSmart test set

Both hierarchical decision rules improve on the flat baseline and give very similar aggregate scores.

Second-level micro-averaged F1 on the LookSmart test setFlat second-level classifiers: .476Flat second-level classifiers.476Hierarchical classifiers with multiplicative scoring: .495Hierarchical classifiers withmultiplicative scoring.495Hierarchical classifiers with sequential Boolean scoring (this paper): .497Hierarchical classifiers with sequentialBoolean scoring (this paper).497
The numbers
System or settingF1
Flat second-level classifiers.476
Hierarchical classifiers with multiplicative scoring.495
Hierarchical classifiers with sequential Boolean scoring (this paper).497

The multiplicative rule reaches .495 at the product threshold of p=0.20 selected on validation data. The authors describe this as a 4% improvement over the flat second-level baseline and report significance by a sign test at p<.01. In the decision rule, p refers to a score threshold. In the significance statement, p refers to the statistical test. These uses of the same letter concern different things.

The sequential Boolean rule produces .497 at the validation thresholds p₁=0.20 for the parent and p₂=0.50 for the child. The authors report that this improvement over the flat baseline is also significant by a sign test, at p<0.01. They find no difference between the hierarchical rules. The results thus support a modest improvement from the tested hierarchical system, with a much closer match between the alternative ways of using its scores. Similar aggregate F1 values are compatible with differences in which particular assignments each rule makes.

Variation among categories

The authors list unusually easy and difficult categories from the flat second-level comparison, limiting this inspection to categories with at least 30 test instances. Health & Fitness/Drugs & Medicines has F1 of 0.841 and Home & Family/Real Estate has 0.797. Sports & Recreation/Fishing reaches 0.750. Towards the other end, Society & Politics/World Cultures has 0.034, Home & Family/For Kids has 0.088, and Computers & Internet/News & Magazines has 0.122. These are category-level flat test results. They show how widely the accuracy of one classification procedure can vary across the labels to which it is applied.

The paper suggests that some difficult labels depend in part on qualities other than subject matter. For Kids concerns a type of audience that can cut across many topics. News & Magazines describes a kind of publication as well as a directory destination. A short description can identify what a page discusses while giving little evidence about how the page presents it or for whom it is intended. The authors suggest learning about genre in addition to content. Their list does not test that suggestion. It identifies cases where a vocabulary learned to separate subject categories may have a harder job.

The category examples also clarify the scope of the aggregate improvement. Micro-averaged F1 can improve when an approach gets more of the often occurring assignments right, even if some individual categories remain difficult. The table of extremes shows the starting range under the flat approach. It does not show the corresponding hierarchical scores for those categories, so it cannot identify the labels that contribute most to the overall improvement.

Training cost and work per test page

For offline training, the paper reports about 30 minutes for all the classifiers it describes. The flat second-level classifiers take 729 CPU seconds, with 50,078 training examples in the comparison for each of the 150 categories. The hierarchical child classifiers take 128 CPU seconds. The authors attribute the lower child-training cost to the smaller negative sets inside the branches. Training the 13 broad classifiers takes 1258 CPU seconds. These timings come from a 266MHz Pentium II PC running Windows NT.

CPU training time for the second-level classifiers on the LookSmart training set

Training child classifiers within their own branches uses less CPU time than flat training of the same child categories.

CPU training time for the second-level classifiers on the LookSmart training setFlat second-level training: 729Flat second-level training729Hierarchical second-level training (this paper): 128Hierarchical second-level training (thispaper)128
The numbers
System or settingCPU seconds
Flat second-level training729
Hierarchical second-level training (this paper)128

The chart isolates the second-level work. The hierarchical system also needs broad classifiers. The separately reported cost for those classifiers is important to interpreting the training result. The advantage demonstrated by the chart is that the local child problems are cheaper to train. The paper’s main efficiency argument concerns classification after training, when new descriptions have to be processed as search results arrive.

The run-time comparison counts the category scores each method must compute. The flat system evaluates all 150 second-level categories. In the paper’s implementation of multiplication, the system evaluates the 13 broad categories and all 150 children. The sequential rule also scores the 13 broad categories. It then uses those results to decide which child classifiers to run, so a failed parent check avoids the scoring work for all of that parent’s children.

At the tested broad threshold of p=0.20, only 7. The sequential rule calls for examining 4% of the categories at the second level. This is the share of fine comparisons that remain after gating. Including the broad comparisons, the sequential rule requires 14.8% of the comparisons used by the multiplicative rule and 16.1% of those used by the flat rule. The denominators differ because the flat system does not compute broad scores. The figures quantify the reduction in classifier evaluations on the LookSmart test set. They are counts of comparisons, rather than measurements of the elapsed time to assemble and show an entire search result.

What the ablations show

Changing the training contrast changes the available evidence

The flat and hierarchical conditions use the same text preparation, feature allowance and kind of classifier. They change both the negative training set and the scoring procedure. Because mutual information is recomputed against the chosen negatives, the learned vocabulary also changes. The headline comparison measures the combined effect of this design. It does not isolate a contribution from feature selection with the classifier training population held fixed, or from the training population with the vocabulary held fixed.

The authors inspect learned features to see what the training change does in practice. The word “sports” helps identify Sports & Recreation at the top level. Several finer distinctions elsewhere in the hierarchy also give it substantial weight, including Society & Politics’ News & Magazines, Shopping & Services’ SportingGoods, and Hobbies & Interests’ Collecting. The authors report that the flat feature-selection procedure did not choose that word for any category. The example illustrates how the same term can support a broad topical decision and several local decisions that have different alternatives.

The comparison makes sense in terms of the distribution each child classifier sees. Within a branch containing many kinds of goods or hobbies, a word connected to sports can pick out a particular subset. Across the whole directory, the word is spread across several plausible targets and may fail to make the selected vocabulary for any one of them. The paper gives this as an illustration of how the approach changes feature selection and weight learning. The evidence supports the existence of such differences. It does not say how frequently the change helps particular labels or how much the named word contributes to test F1.

Changing the decision rule with child classifiers held fixed

The cleanest controlled comparison uses the same hierarchical classifiers with the multiplicative and sequential decision rules. Multiplication can balance a stronger score on one level against a weaker score on the other, subject to the product cutoff. The sequential rule insists on a separate pass at each level. The rules have their own thresholds chosen on the validation set, so the experiment compares the usable tuned procedures.

The nearly equal aggregate F1 scores show that, at these operating points, flexible combination did not bring a measurable aggregate advantage over checking the levels in sequence. That result matters because the sequential rule can decide which branches to omit before it computes their child scores. The aggregate comparison leaves open which examples each rule handles better. In particular, it does not show that they recover the same labels, strike exactly the same precision and recall balance, or respond equally to a change in thresholds.

The sequential procedure depends on the broad test retaining branches that actually contain a correct label. The value of gating is therefore empirical. Even a modest reduction in the number of broad assignments can omit a large set of child comparisons, but it can also remove correct children along with the incorrect candidates. The paper’s comparison shows that the chosen gate avoids most of the fine comparisons while retaining the aggregate performance attained by multiplication on these descriptions.

Supplying correct broad assignments

The authors estimate an upper bound for the tested hierarchy by assuming that top-level classification is correct and setting P(L1)=1 on the correct route. Here P(L1) is the broad membership probability, and 1 represents certainty supplied by the diagnostic. With the broad category given, the second-level classifiers reach .711 F1. The result tests how well the child decisions can work after access to the relevant branch is guaranteed.

This diagnostic locates room for improvement in the broad decisions. During ordinary testing, the broad classifier controls access to the child under the sequential rule and affects its combined score under multiplication. When the broad decision is supplied, otherwise useful evidence from a child can count even on pages that would have been poorly routed. The gap also leaves considerable work for the local classifiers. Even with correct routing, the observed child predictions fall short of perfect agreement with the directory.

The upper bound should be read within the tested setup. It gives the child classifiers privileged information while leaving the short descriptions and the directory labels as they are. It does not estimate what the system would achieve with a specific improved classifier, and it does not provide a bound on different ways of learning child classifiers.

Inspecting weights for possible further reductions

The authors also count selected features that received zero weight. For hierarchical child classifiers they report 137 per 1000, compared with 85 per 1000 under flat training. They observe additional weights close to zero. A feature that receives zero weight contributes nothing to the linear score even when its word occurs. The count reveals that the fixed feature selection allowance includes terms the subsequent learning stage can discard from the scoring calculation.

The authors use this observation to motivate a smaller feature allowance for local problems. There is a distinction between dropping a term from the scoring calculation when it already has a zero weight and retraining using a smaller feature set. In retraining, surviving terms may acquire different weights, and some removed terms might have mattered in combination with others. The paper reports the weight inspection as preliminary evidence. It leaves the accuracy and efficiency of retraining at reduced feature counts for further experiments.

Limitations

Limits identified by the authors

The paper works with a short description deliberately constructed for search-result classification. The authors regard these descriptions as more difficult inputs than longer, more coherent document surrogates. Some relevant words will be missing from the title, keywords and description, and the beginning of a page’s body can be an uneven substitute. A label may be appropriate for the page as a whole even when the text used in the experiment only hints at it. The authors report that full text and optimization of the SVM penalty parameter can improve absolute performance by 15%-20%. They do not give a parallel comparison of the flat and hierarchical systems under those changes.

The authors also restrict the evaluation to the upper portion of a deeper directory. They point out that a sequential decision can accumulate errors as the number of levels grows. Any early failure to retain a relevant branch can prevent a correct final assignment. Another level offers another opportunity to prune irrelevant candidates and another opportunity to lose a relevant one. The experiments establish the observed accuracy and comparison savings at the tested depth. The authors propose improved classifiers, better threshold setting across levels and interfaces that allow users to take part in key decisions as directions for investigating deeper hierarchies.

The choice of 1000 words per category was based on validation performance. The paper says this choice was not the product of a rigorous exploration of feature counts. The authors raise the possibility that within-branch distinctions could retain their accuracy with fewer terms. Their comparison of zero weights suggests where to look, but a full comparison would have to train and evaluate systems with different allowances. Efficient scoring from a small vocabulary remains an opportunity suggested by the experiment.

The authors are also cautious when comparing against earlier benchmarks. The Reuters collections they describe have different labeling structures and more orderly content. Earlier web studies may use a single part of a directory, full pages, or average precision as the outcome. These differences prevent the LookSmart F1 scores from serving as a direct ranking against those studies. The comparisons within LookSmart, where the candidate labels and test examples are held in common, are the appropriate evidence for the result reported here.

What follows from the design of the experiment

The flat and hierarchical systems answer the same final question about child labels, but they reach a prediction with different training contrasts and different use of broad scores. A gain in the complete hierarchical system can reflect several linked changes. Local negatives alter the examples from which the SVM learns. They also alter the word ranking before learning begins. At prediction time, the broad judgment contributes information omitted by the flat baseline. The study supports the value of the tested combination. It gives limited evidence about how much each change would contribute if introduced alone.

The broad evaluation threshold is also central to the run-time result. The observed fraction of children tested depends on which branches pass and how many children each passing branch contains. A different threshold could admit more branches and recover more labels while also increasing work. A different mixture of documents could pass different branches under the same thresholds. Because the paper reports its comparison at the validation-selected operating points, the measured fraction of retained child comparisons should be understood as a property of that setting on the LookSmart test sample.

There is an additional implementation detail in the comparison with multiplication. For the probabilities used here, a parent score at or below the product cutoff already precludes a passing child product. A system could therefore incorporate some early skipping while preserving the product rule. The authors’ measured comparison is against the exhaustive version that scores every child. Their result demonstrates the reduction achieved by the sequential implementation they tested. The paper leaves open how much of that reduction would remain when compared with an implementation that also pruned impossible product matches.

Micro-averaging gives frequent label decisions more influence. This fits an interest in overall performance across a sample drawn from the actual directory, where some categories occur far more often than others. It leaves uncertainty about rare categories, especially those with very few positive training examples. The case-by-case inspection highlights large variation in flat performance and excludes categories with fewer than 30 test instances. It does not establish how the hierarchical system performs across the sparsest branches or whether its benefit is evenly distributed.

The held-out pages come from the same directory sample as the training pages. That design tests generalization to other pages drawn from the same organization of topics. Transfer to a directory with different headings, editorial practices or page populations would raise new questions about which contrast sets are useful. The experiment also uses a fixed hierarchy. It does not test the effect of moving a category to a different parent or changing the tree in response to classification errors.

Finally, agreement with editorial labels and fewer comparisons are outcomes at the classifier level. The authors connect the work to an interface that organizes search results and refer to a separate study of preference and performance in that interface. The LookSmart experiment itself does not measure whether users can find a particular result faster after every change in F1. A relevant label may still be unhelpful in a specific interaction, and a missed label may matter greatly when it hides the result a user wants. Those outcomes require observing what people do with the categorized results. The classifier experiment establishes how the tested procedure predicts the directory labels and how much scoring work it performs.

What came after

The subsequent citing work places the LookSmart experiment in several broader questions about automated categorization. Its enduring distinction is between the organization of the labels and the way a classifier uses that organization. A directory can define the labels that appear to readers, the examples used to learn each category, and the branches examined for a new item. Dumais and Chen show how the last two roles can be put to work with the same editorial tree.

Sebastiani’s treatment of automated text categorization puts learning from labeled documents in a broader frame. The LookSmart study is a specific instance of that subject. It uses an established classifier and asks how the definition of the category decision changes when the labels are related. For a reader comparing approaches to automated categorization, it illustrates why the choice of learning algorithm leaves open another design choice: which examples a category must be distinguished from. The broader treatment is Machine Learning in Automated Text Categorization.

Babbar and colleagues focus directly on flat and hierarchical classification in large-scale taxonomies. That framing carries forward the comparison at the center of the LookSmart study. Dumais and Chen have a large directory and select its broad categories and their immediate children for testing. A study framed around large-scale taxonomies treats the flat-versus-hierarchical choice itself as the object of investigation. In interpreting the relationship, the relevant precedent is the explicit flat baseline for the same child labels and the separate accounting for the cost of reaching those labels. The later study is On Flat versus Hierarchical Classification in Large-Scale Taxonomies.

Another work by Babbar and colleagues takes up learning how to adapt a taxonomy for large-scale classification. That question concerns a part of the setup fixed in the LookSmart experiment. The editors’ directory determines the parents, and those parents determine both the local negative sets and the routes available during gated prediction. Adapting a taxonomy makes the structure itself part of the learning question. The connection is particularly close because changing a parent can change the alternatives a child is trained to distinguish and the broad decision on which the child depends. That later direction is Learning Taxonomy Adaptation in Large-scale Classification.

These lines of work operate at different levels of the problem. A broad account of automated categorization situates the use of labeled examples and learned decisions. A comparison of flat and hierarchical classification asks how to use a supplied taxonomy while predicting the same categories. Taxonomy adaptation asks whether the structure used for classification should itself change. The LookSmart results give that progression a concrete starting point. With a fixed editorial tree and short page descriptions, using the tree changed both what the fine classifiers learned to recognize and how many of them had to be consulted.

Cite

Cite as Susan Dumais and Hao Chen. 2000. Hierarchical Classification of Web Content. SIGIR 2000.

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

@inproceedings{dumais2000hierarchical,
  title = {{Hierarchical Classification of Web Content}},
  author = {Susan Dumais and Hao Chen},
  booktitle = {SIGIR 2000},
  year = {2000},
  doi = {10.1145/345508.345593},
  url = {https://doi.org/10.1145/345508.345593}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dumais-2000-hierarchical-classification-web-content/