Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learning
Paper · 2022 · Wenbin An, Feng Tian, Ping Chen et al.
Summary
A collection of texts can be well labeled for a broad task and still leave its most interesting distinctions undocumented. A service might know the general domain of each request while having no record of the particular intent it expresses. An and colleagues study whether those narrower categories can be recovered from the texts using broad labels alone. They call the task FCDC. The system receives the broad labels and the number of fine categories to look for. It must discover which texts belong together without examples labeled at that finer level or names for the categories it is trying to find.
The central difficulty is that the same training signal can help at one level and hinder at another. A classifier can learn to distinguish broad categories while giving very similar representations to texts that belong to different subcategories. The authors use different layers of a BERT encoder to make room for both kinds of distinction. An intermediate layer learns to recognize broad categories. The final layer learns to distinguish individual texts while staying close to the intermediate representation of each text. During this contrastive training, examples from different broad categories receive greater weight than examples from the same one. The final representations are then grouped with K-Means.
Across the CLINC, Web of Science and HWU64 test sets, the proposed method leads the comparisons on all the reported fine-category metrics. Its fine-category accuracy after matching cluster IDs to reference labels is 74.67% on CLINC, 63.64% on Web of Science and 58.45% on HWU64. The corresponding best comparison scores are 52.53%, 41.53% and 42.41%. Where the paper reports broad-category accuracy, it stays close to that of an encoder trained directly on broad labels. In the CLINC ablations, removing the use of a text’s intermediate representation as its positive comparison produces the largest drop. The same design also lets the system obtain its matched representations from a single pass through the main encoder. The authors report about double the training efficiency of the augmentation-based methods they timed on CLINC.
The result concerns the recovery of groups. The evaluation uses fine labels to check those groups after discovery, and the procedure takes the number of groups as an input. Someone who wants named categories for practical use must still interpret the discovered groups. The experiments show how much structure broad supervision can help recover under those conditions.
Deep dive: Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learning
Hierarchical weighted self-contrastive learning uses broad text labels to discover narrower categories while preserving broad classification accuracy. · about 34 minutes to read
The problem and its context
The labels are correct at a different level
A broad label can be accurate and still answer a different question from the one an analyst wants to ask. A sports label can organize documents by subject. If the analyst wants to find the documents about tennis, that label provides a useful starting point without identifying the desired group. In intent detection, the same distinction arises between knowing the domain of a request and knowing what the user wants done. The authors motivate their task with that kind of change in the level of analysis. Detailed labels take time to produce, and deciding between closely related intents can require expertise that assigning a broad domain does not.
This is a form of text classification in which the desired labels are unavailable during training. The collection already has an annotation for each text, but the annotations describe parent categories. The aim is to find groups at the child level. The paper assumes that each text belongs to a fine category and that the desired number of categories is known. Within that setup, discovery produces a cluster assignment for every text. A cluster is a collection of texts that the procedure groups together. Its identifier is just an identifier until someone connects the group with a meaning.
The distinction between the category count and the category definitions is important. Knowing how many clusters to return constrains the partition. It gives the procedure no direct information about the boundaries between particular categories, which examples should be grouped, or how a resulting group should be described. Conversely, learning that certain texts consistently form a group can be informative even before a person has decided what to call it. The paper studies the partitioning question under a supplied count.
Why broad classification leaves work for discovery
A system trained to assign parent labels is rewarded when its output distinguishes parents. Suppose two texts have the same broad label but belong to different subtopics. For the broad classifier, both texts should produce the same decision. Whether their internal representations retain enough detail to identify the subtopics is not directly part of that decision. A successful parent classifier can therefore leave two fine categories difficult to separate.
The authors describe the problem through distances. They call separation between examples with different parent labels inter-class distance. They call separation inside a parent category intra-class distance, with the fine categories supplying the distinctions of interest. A representation suited to the task needs room for texts within a parent to spread out. It also needs enough separation between parents that this spread does not make examples from different parents difficult to tell apart.
Those requirements pull on the same representations. If training only rewards broad classification, there is little direct incentive to preserve large differences between children of the same parent. If training only pushes individual texts apart, distinctions among the children can become stronger while the parent categories become less coherent. The authors therefore set a more specific goal for representation learning. They want to open up space inside each broad category while preserving the separation already supported by its label.
There is also a question about the level at which to apply each training signal. A single final representation could be asked both to classify broad categories and to express fine distinctions. The authors instead use an intermediate representation to make broad information explicit. Their motivation comes from earlier layer analyses of BERT, which they describe as finding more surface information in lower layers and more high-level semantic information in higher ones. This motivates the division of work between layers. It does not supply the fine distinctions in advance. Those have to emerge through the learning objective applied to the final representations.
How earlier work defined the task
The paper situates FCDC within novel category discovery in language and vision. In the earlier discovery scenarios it discusses, the known and unknown categories typically sit at the same level of a hierarchy. Some labels are available and the goal is to extend the inventory with others of comparable scope. FCDC changes that relationship. The known labels describe broader classes than the categories to be found. Transfer involves moving from one level of description to another within the same collection.
The authors describe a line of prior work that combines clustering and transfer learning. A clustering procedure assigns provisional labels to data without the desired annotations. Training then uses those provisional assignments as targets. These are called pseudo-labels because they come from the procedure rather than from a human annotation. The paper gives DeepCluster and an alignment-based adaptation for discovering new intents as examples of this approach. It also describes mutual mean teaching for person re-identification as an example of trying to improve noisy pseudo-labels. The quality of the initial groups matters for these methods because later training learns from the assignments it receives.
The paper identifies closer precedents in fine-grained image and text classification. The image method of Bukchin and colleagues learns from coarse labels but also receives fine-labeled examples through a few-shot learning setup. Those examples supply direct evidence about what distinguishes the desired categories. The text method of Mekala and colleagues uses coarse annotations together with the fine label hierarchy and names. Those names and relationships give the procedure information about the target inventory even when many individual texts lack fine labels. FCDC withholds both forms of guidance. It asks whether a usable partition can be recovered from broad labels and the texts themselves, given the count.
What contrastive learning contributes
The other line of work behind the paper is contrastive learning. In this setting, a text has a numerical representation and training compares it with other representations. A positive comparison is one the objective tries to make more similar to the text. Negative comparisons are ones it tries to make less similar. These terms describe the training roles of the examples. A negative comparison can still be topically related to the text, and in this paper it can even share the text’s broad label.
The paper describes earlier methods that use other items in the same training batch as negatives. It also discusses storing representations from earlier batches in a queue, with a separate encoder updated gradually to keep the stored representations reasonably consistent. Both ideas widen the set of comparisons available to the objective. In the methods the authors discuss, negatives commonly enter with the same explicit weight. Similarity can still affect their contribution to the loss. The distinction here is that the authors also want a known parent label to affect how strongly a comparison is weighted.
Positive examples are often different versions of the same input. In the image work discussed by the authors, these can be transformations of an image. In the text work, the paper describes such methods as deleting a word or running the same input with different dropout. It also mentions that earlier work treated representations drawn from different network levels as positives. In FCDC, the lower-layer representation has a particular job because it is trained to recognize the parent label. Its role as a positive is therefore part of the attempt to preserve coarse organization while the final layer learns to distinguish texts.
The method, step by step
From a labeled text to a group assignment
During training, the main BERT encoder sees a text and produces a sequence of token representations at each layer. The procedure reads those representations at an intermediate Transformer layer and at the output layer. At each of these points, it averages across tokens to produce a single vector for the text. The intermediate vector is used for broad classification. The output vector is also used for broad classification, but it has an additional job. It acts as the query in comparisons that shape the space used for fine discovery.
For a given query, the positive is the intermediate vector of the same text. The negatives include both vectors of other texts in the same batch. A separate source of negatives supplies stored representations of earlier texts with the same broad label as the query. The main encoder learns from these comparisons alongside its broad classification objectives. After training, the authors run K-Means on the output vectors. This is the step that makes the fine-category assignments.
From broad labels to fine text clusters
The steps in order.
The roles of the vectors change with the text under consideration. A text’s intermediate vector is the positive when that text supplies the query. The same intermediate vector is a negative when another text in the batch supplies the query. The labels determine how to weight that comparison. This arrangement lets a batch supply evidence at both levels without requiring the system to invent a fine label before it starts learning.
What the training data specify
Y_coarse = {C₁, C₂, …, C_M}
Here Y_coarse is the available set of broad categories. Each C is a category in that set. The subscripts identify entries, the ellipsis stands for the intervening entries, and M is the total number of broad categories.
D_train = {D₁, D₂, …, D_N}
Here D_train is the training collection. Each D is a text, indexed by its position in the collection, and N is the number of training texts. The ellipsis represents the other texts between the displayed entries. The corresponding broad label for Dᵢ is cᵢ, drawn from Y_coarse.
Y_fine = {F₁, F₂, …, F_K}
Here Y_fine denotes the desired fine inventory, with each F standing for a fine category. The subscripts index its entries, the ellipsis stands for the remaining entries, and K is the given number of clusters. The procedure has K at its disposal but has no access during training to the identities of the F entries or to example-level assignments to them. An assignment made by clustering can be recorded as fᵢ for text Dᵢ.
That setup makes broad labels usable in more than one way. They provide classification targets, and they let the procedure compare the parent label of a query with the parent label of a negative. The fine inventory plays no role in choosing the positive or weighting these negative comparisons. In particular, the negatives that share a parent can include texts that really do belong to the same fine category as the query. The learning rule has no fine labels with which to identify those cases.
Teach an intermediate layer to recognize broad categories
hᵢᴸ = mean-pooling(BERTᴸ(Dᵢ))
Here Dᵢ is the text at index i, and L is the selected intermediate layer. BERTᴸ returns the token vectors at that layer. mean-pooling averages those vectors over the tokens of the text. The result, hᵢᴸ, is the intermediate text vector, with h dimensions. The superscript marks the source layer.
Mean pooling turns a collection of token vectors into a common representation that can be compared across texts. For broad classification, that representation goes to a prediction head. Later, it also gives the contrastive objective a target for the final vector of the same text. The intermediate vector is consequently supervised in a way that an arbitrary intermediate feature would not be.
zᵢᴸ = σ(Wₐ hᵢᴸ + bₐ)
Here zᵢᴸ is the vector of broad-category scores for text i at layer L. Wₐ is the learned weight array that maps the h input features to M scores, and bₐ is the learned bias with an entry for each of the M categories. The subscript a identifies the weights and bias of this prediction head. σ is the hyperbolic tangent activation, applied to the scores after the bias is added. hᵢᴸ is the pooled intermediate vector.
ℒ_supᴸ = −(1/N) ∑ᵢ₌₁ᴺ log[exp((zᵢᴸ)_{cᵢ}) / ∑ⱼ₌₁ᴹ exp((zᵢᴸ)ⱼ)]
In this expression, ℒ_supᴸ is the intermediate-layer supervised loss. The outer sum runs over the N texts in the expression, indexed by i. cᵢ identifies the correct broad category, so (zᵢᴸ)_{cᵢ} is its score for that text. The denominator sums exponentiated scores for all M broad categories, indexed by j. exp is the exponential and log is the logarithm. The leading minus sign makes the loss smaller when the correct category receives a larger share of the exponentiated scores. The factor 1/N averages the contributions of the texts. This is cross-entropy against the broad labels.
The layer’s classification objective encourages it to represent distinctions that help identify the broad category. The paper’s explanation goes a step further and treats the intermediate vector as a point likely to be near other members of that category. The training rule itself computes category scores and cross-entropy. It does not fit a centroid for each broad category and explicitly pull vectors towards that centroid. The class center is a way to explain the expected effect of using the intermediate vector as a positive.
Build the final representation and define the distances
hᵢᵒ = mean-pooling(BERTᵒ(Dᵢ))
Here o denotes the output layer and BERTᵒ(Dᵢ) returns its token vectors for text Dᵢ. mean-pooling takes their average. hᵢᵒ is the resulting final text vector with h dimensions, and i identifies the text. The authors use hᵢᵒ as the contrastive query and later use these output-layer vectors for clustering.
The final vector can retain information useful to the parent classifier while placing individual texts at more distinguishable points. It has to do both without a target vector for a particular fine category. The authors express the intended organization as a qualitative inequality.
0 ≪ d_fine < d_boundary ≪ d_coarse
Here d_fine denotes separation within a broad category, where distinctions among fine subcategories matter. d_coarse denotes separation across broad categories. d_boundary is a conceptual threshold for how far the within-category separation can grow while preserving the intended broad boundaries. The symbol ≪ means much smaller than, and < means smaller than. The 0 on the left indicates that useful fine separation should be meaningfully above zero.
This expression describes a design goal. There is no step that measures d_boundary and caps each update at that distance. Instead, the method uses the positive to exert a pull toward broad-category information and the different groups of negatives to exert separation of different strengths. The broad classifier at the output layer provides a further training signal for retaining broad distinctions.
Collect negative comparisons from the current batch
k₋ⁱⁿ(i) = {hⱼᴸ, hⱼᵒ : j is in the batch and j ≠ i}
Here k₋ⁱⁿ(i) is the pool of in-batch negative keys for query text i. A key is a vector used as the other side of a comparison. j indexes a current batch text. hⱼᴸ and hⱼᵒ are its intermediate and final vectors. The condition j ≠ i excludes the query text itself. The minus marker identifies negative keys, and in indicates their origin in the current batch.
Using both vectors brings different types of comparisons into play. The final vector of another text is a point in the space in which discovery will take place. The intermediate vector of that text comes from the layer trained to recognize its parent. The paper separates these keys by their texts’ broad labels before it combines their contributions.
k₋ᵈⁱᶠᶠ(i) = {k ∈ k₋ⁱⁿ(i) : cₖ ≠ cᵢ}
Here k₋ᵈⁱᶠᶠ(i) is the subset of in-batch keys from a different broad category. k is a candidate vector in k₋ⁱⁿ(i), and ∈ means that it belongs to that pool. cₖ is the known broad label of the text that supplied the key, and cᵢ is the query text’s broad label. The condition ≠ requires the labels to differ.
k₋ˢᵃᵐᵉ(i) = {k ∈ k₋ⁱⁿ(i) : cₖ = cᵢ}
Here k₋ˢᵃᵐᵉ(i) is the subset from the query’s own broad category. k again ranges over k₋ⁱⁿ(i), as indicated by ∈. The equality between cₖ and cᵢ selects keys whose source text has the same label as query text i.
Pairs from the same parent provide opportunities to distinguish texts whose broad labels alone offer no reason to separate them. Pairs from different parents provide opportunities to reinforce distinctions already known from the annotations. The method uses both. Its weighting scheme gives different-parent negatives more influence than same-parent negatives at the same similarity, all else equal. The paper’s concern is that ordinary contrastive training can put considerable pressure on the most similar negatives, many of which may come from the same parent.
Extend the comparisons with a queue
A batch supplies only the texts that happen to appear in it. The authors maintain a queue for each broad category to make more comparisons from that category available. A queue holds representations contributed in earlier iterations. At the end of an iteration, new entries are added and the oldest entries are removed. This lets the set of candidates change as training progresses while keeping its size bounded.
k₋ᵐ(i) = {k ∈ Q_{cᵢ}}
Here k₋ᵐ(i) is the set of momentum negative keys for query text i. Q_{cᵢ} is the queue indexed by that text’s broad label cᵢ. The expression includes each stored key k belonging to the queue, as indicated by ∈. The superscript m marks the keys obtained with the momentum encoder.
A second BERT encoder generates the stored representations. Its parameters are updated by momentum, meaning that they follow the main encoder gradually. The reason for this arrangement is that the queue holds vectors produced at different times. If the encoder used to generate them changed sharply between iterations, older and newer entries could represent texts in less consistent ways. The queue also concentrates its additional comparisons on the parent class where discovering finer distinctions is difficult. It supplies extra same-parent negatives, while the current batch supplies both same-parent and different-parent ones.
k₋(i) = {k₋ᵈⁱᶠᶠ(i), k₋ˢᵃᵐᵉ(i), k₋ᵐ(i)}
Here k₋(i) is the collection of negative groups for query i. k₋ᵈⁱᶠᶠ(i) is the group of different-parent batch keys, k₋ˢᵃᵐᵉ(i) is the group of same-parent batch keys, and k₋ᵐ(i) is the same-parent group from the queue. Keeping the groups distinct lets the loss apply a different multiplier to each source of comparisons.
Use the same text’s intermediate vector as the positive
k₊(i) = hᵢᴸ
Here k₊(i) is the positive key for query text i, and hᵢᴸ is that same text’s intermediate vector from layer L. The plus marker indicates that the contrastive objective rewards similarity to this key. The query is still hᵢᵒ, the final vector of the text.
The positive asks the final vector to preserve a relationship with an earlier representation that already has a broad classification objective. Meanwhile, the negatives ask the query to distinguish itself from other texts, including texts of the same parent category. This is the balance the authors are after. If it works as intended, the positive supplies a reason to remain in the vicinity of the parent even as the negatives make the space inside that parent more differentiated.
There is a computational effect as well. Both vectors come from the same input’s path through the encoder. The intermediate vector can be read during the pass that produces the final one. A procedure that builds its positive from a modified version of the input must obtain a representation for that version too. The authors attribute the efficiency of their method to reusing two points in the same computation. The queue introduces additional encoder work when used, which is why the timing comparison includes the method with and without that component.
Combine attraction and separation in the loss
sim(u, v) = (uᵀv) / (‖u‖ ‖v‖)
Here sim is cosine similarity between vectors u and v. uᵀv is their dot product, with ᵀ denoting transpose. ‖u‖ and ‖v‖ are their respective lengths. Dividing by their lengths makes the comparison depend on their directions. In the contrastive loss the two arguments come from a query and either its positive key or one of its negative keys.
ℒ_cont = −∑ᵢ₌₁ᴺ log[exp(sim(hᵢᵒ, hᵢᴸ)/τ) / ∑_{l∈k₋(i)} ∑_{k∈l} α_l exp(sim(hᵢᵒ, hₖ)/τ)]
Here ℒ_cont is the weighted self-contrastive loss. The outer sum runs over N query terms, indexed by i. hᵢᵒ is the final vector of the query, hᵢᴸ is its positive key, and hₖ represents negative key k. In the denominator, l ranges over the negative groups in k₋(i) and k ranges over the keys belonging to group l. The multiplier α_l is α_same for same-parent batch keys, α_diff for different-parent batch keys, or α_m for queue keys. sim is cosine similarity and τ is the positive temperature that scales it before exponentiation. exp and log are the exponential and logarithm. The stated denominator sums the weighted negative terms. The minus sign makes a higher positive similarity lower the loss and a larger denominator raise it.
The temperature and the group weight have different roles. Temperature changes how strongly the exponential responds to differences in similarity. The group multiplier scales a negative’s contribution according to the available label information and its origin. Even a heavily weighted negative can contribute relatively little when its similarity is low. Conversely, a highly similar same-parent negative can still exert substantial pressure. The weight is a way to alter the balance of comparisons, instead of a direct measurement of the required separation between any particular pair.
What the gradient argument explains
To explain the positive term, the authors write the direction of its similarity update as an increase. The expression is at the level of the similarity itself.
sim(hᵢᵒ, hᵢᴸ) ← sim(hᵢᵒ, hᵢᴸ) + 1/τ
Here hᵢᵒ is query i at the output layer and hᵢᴸ is its intermediate representation. sim is cosine similarity, τ is the positive temperature and ← denotes the update shown in the analysis. The increment 1/τ represents the pull in the direction of greater positive similarity. Actual training updates shared encoder parameters through the combined loss, so the expression describes the direction of this term’s pressure on the similarity.
For a displayed comparison between two final vectors, the paper writes the negative update in the opposite direction.
sim(hᵢᵒ, hⱼᵒ) ← sim(hᵢᵒ, hⱼᵒ) − α_l Pᵢⱼ
Here hᵢᵒ is the query vector, hⱼᵒ is the final vector of a negative text j, and sim is their cosine similarity. l is the negative group to which that key belongs, α_l is its weight and Pᵢⱼ is the temperature-scaled factor for this comparison. The arrow indicates the conceptual update, and the subtraction expresses pressure towards reduced similarity.
Pᵢⱼ = (1/τ) · exp(sim(hᵢᵒ, hⱼᵒ)/τ) / ∑_{l∈k₋(i)} ∑_{k∈l} α_l exp(sim(hᵢᵒ, hₖ)/τ)
Here Pᵢⱼ describes the contribution of query i and negative text j before the group multiplier in the preceding update. τ is the temperature, sim is cosine similarity and exp is the exponential. The numerator uses the output vectors hᵢᵒ and hⱼᵒ. The denominator uses the entire negative pool for query i. In it, l ranges over the groups in k₋(i), k ranges over the keys in a group, hₖ is the key’s representation and α_l is that group’s weight. The factor 1/τ comes from the scaling of the similarity inside the exponential.
The denominator matters for interpreting the update. Changing a group weight changes its numerator contribution and the normalization shared across negatives. For otherwise similar keys in the same comparison, the different-parent multiplier increases their pressure relative to same-parent keys. Across arbitrary pairs, differences in similarity also affect the update. The argument explains why the objective encourages the desired ordering of separations. The learned geometry still depends on all the comparisons and classification terms acting on the encoder together.
Train jointly, then cluster
ℒ = ℒ_supᵒ + γ₁ℒ_supᴸ + γ₂ℒ_cont
Here ℒ is the overall training loss. ℒ_supᵒ is cross-entropy against the broad labels at the output layer, and ℒ_supᴸ is cross-entropy against the same labels at the selected intermediate layer L. ℒ_cont is the weighted self-contrastive term. γ₁ controls the contribution from the intermediate classifier, while γ₂ controls the contrastive term’s contribution.
The paper’s use of hierarchy refers to where the objectives act. The final layer receives the result of the encoder’s earlier computation, and both levels have jobs in the joint objective. The intermediate classifier supplies a broad signal at the same point from which the positive is drawn. The final classifier continues to reward broad discrimination in the space that will be clustered. The procedure does not first assign a fine pseudo-label and then optimize a fine classifier against it. Fine assignments are produced after representation learning, with the supplied K determining how many clusters K-Means returns.
The experiments use the pretrained bert-base-uncased backbone with hidden dimension 768. The selected layer L is 8. The contrastive temperature is 0.1, and the weights for different-parent batch keys, same-parent batch keys and momentum keys are 1.4, 1.0 and 1.0, respectively. The joint-loss coefficients are 0.001 for the intermediate classifier and 0.008 for the contrastive term. These are coefficients on different loss expressions. Their numerical sizes alone do not tell how much each objective changes the encoder during training.
The authors train for 20 epochs using batches of 128, with a testing batch size of 64. Each broad category’s queue has size 128, and the momentum factor is 0.9. They use AdamW with weight decay of 0.01, gradient clipping at norm 1.0, a learning rate of 5e −5, and dropout of 0.1. The authors use cuML for GPU-based K-Means and make their code and data available.
Experiments and results
What the test sets ask the system to recover
CLINC tests intent discovery. Its training split contains 18,000 texts and its test split contains 1,000. The dataset has 10 broad classes and 150 fine classes. The broad labels are available for representation learning. The fine categories give the evaluation a way to ask whether the system recovered distinctions among intents within those broad areas.
Web of Science, abbreviated WOS, tests classification of papers. It has 8,362 training texts and 2,420 test texts, with 7 broad categories and 33 fine categories. This gives the study a setting where the groups are about documents in a paper collection and the category inventory differs from that of the intent dataset.
HWU64 consists of personal assistant queries. It has 8,954 training texts and 1,031 test texts, with 18 broad categories and 64 fine categories. The distinction between a broad class and a particular query category makes it another setting for the problem that motivated the paper. Its different inventory also helps check whether favorable results on CLINC extend to another collection of requests.
The fine labels serve as ground truth on the test sets. A true fine label is therefore available for evaluating a text even though training did not use it. This design separates the evidence used to produce a partition from the annotations used to judge it. The supplied fine-category count is the piece of ground-truth structure the procedure does receive in advance.
How the comparisons and measurements work
The basic reference points are an unsupervised BERT baseline and a BERT baseline using coarse supervision. The former indicates the grouping obtained without broad-label training. The latter shows how much fine-category structure is already recoverable when broad classification is the training task. That reference is particularly important here because a successful broad classifier can still leave useful distinctions in its features, even though its loss has no direct reason to preserve them.
DeepCluster and DeepAligned are the self-training comparisons. Their procedure uses provisional grouping assignments to guide training. The contrastive comparisons include SimCSE and Delete One Word, which obtain positives through different forms of augmentation, and the approach from Bukchin and colleagues developed for fine-grained image classification with coarse labels. The experiments use the same BERT backbone for feature extraction across the comparisons and use the respective methods’ original hyper-parameters. Sharing a backbone helps locate differences in the learning procedures and objectives.
For several methods, the authors also run a version with cross-entropy on the broad labels. These rows are marked + CE. They allow a comparison against systems given broad supervision without adopting the proposed combination of intermediate supervision, cross-layer positives and weighted negatives. If adding broad classification were enough on its own, those rows would be expected to close much more of the gap to the proposed method.
The paper uses three measures on the fine categories. Adjusted Rand Index, or ARI, concerns agreement between two partitions. It takes account of whether pairs of texts are treated as belonging together or apart in each partition, with a chance adjustment. Normalized Mutual Information, or NMI, measures how much knowing one assignment tells us about the other, on a normalized scale. Both use the fine reference labels to evaluate clusters whose identifiers are arbitrary.
Accuracy, abbreviated ACC, is computed after a matching step. For instance, a cluster can agree closely with a reference category even if their identifiers have nothing in common. The Hungarian algorithm aligns cluster identifiers and fine labels so the evaluation can count matches. This is accuracy with an assignment made using the evaluation labels. It measures how closely the discovered groups correspond to the reference categories. The algorithm used for scoring does not supply category names during discovery.
The main fine-category table reports percentages averaged over 5 runs. The authors also report significance tests with p-values below 10 −6. Their table establishes the ordering under the tested settings, while the different metrics help show whether that ordering is confined to a particular definition of agreement.
CLINC
On the CLINC fine-category test set, the proposed method reaches 74.67% accuracy, 64.77% ARI and 89.14% NMI. SimCSE with broad-label cross-entropy is the strongest comparison on each of those measures, with 52.53% accuracy, 37.03% ARI and 77.39% NMI. The lead therefore appears both in the fraction of individually matched labels and in the measures that compare the overall partitions.
Fine-category accuracy on the CLINC test set
The hierarchical method leads the strongest comparison even when that comparison receives broad supervision.
The numbers
| System or setting | Accuracy % |
|---|---|
| Unsupervised BERT | 33.38 |
| Coarse-supervised BERT | 45.91 |
| Delete One Word | 47.11 |
| SimCSE + CE | 52.53 |
| Hierarchical weighted self-contrastive learning (this paper) | 74.67 |
The coarse-supervised baseline’s CLINC fine-category accuracy of 45.91% shows that the broad task already provides useful information for discovery. It also illustrates why the paper evaluates beyond that baseline. The improvement over the tests with broad-label cross-entropy suggests that the way the labels enter the representation objective matters. In the proposed procedure, they participate in both the classification signal and the construction and weighting of the comparison sets.
Web of Science
On the WOS fine-category test set, the proposed approach records 63.64% accuracy, 51.55% ARI and 72.46% NMI. The strongest comparison depends on the measure. Delete One Word with broad-label cross-entropy gives the best comparison accuracy at 41.53%. The angular contrastive comparison from Bukchin and colleagues gives 37.00% ARI and 65.42% NMI without added cross-entropy, the strongest comparison results for those measures.
Fine-category Adjusted Rand Index on the WOS test set
The hierarchical method gives the closest pairwise agreement with the reference partition among the displayed systems.
The numbers
| System or setting | ARI % |
|---|---|
| Unsupervised BERT | 18.21 |
| Coarse-supervised BERT | 33.67 |
| DeepCluster + CE | 35.21 |
| Fine-grained angular contrastive baseline | 37.00 |
| Hierarchical weighted self-contrastive learning (this paper) | 51.55 |
WOS helps show how different metrics can favor different comparison methods. The coarse-supervised baseline reaches 39.42% fine-category accuracy and 61.60% NMI. The angular contrastive baseline improves on those scores without added broad cross-entropy, but its cross-entropy variant scores 39.34% accuracy and 54.35% NMI. A broad classification objective can contribute useful features, yet its presence alone does not determine how well a particular contrastive procedure will use them.
HWU64
For the HWU64 fine-category test set, the proposed method reports 58.45% accuracy, 48.20% ARI and 78.66% NMI. The coarse-supervised BERT baseline provides the best comparison accuracy at 42.41%. The angular contrastive baseline provides the strongest comparison ARI at 34.75% and NMI at 74.99%. Here too, the three measures agree on the proposed method’s lead even though they identify different strongest alternatives.
The HWU64 comparisons also show why the authors report more than accuracy. Coarse-supervised BERT reaches 33.74% ARI and 71.57% NMI, while the angular contrastive baseline reaches 37.34% accuracy alongside its stronger ARI and NMI. The matching score and the partition scores emphasize different properties of the result. Agreement across them makes the overall pattern easier to interpret than a lead on any one of them would.
Broad-label accuracy and what the baselines reveal
The paper separately reports broad-category test accuracy on CLINC and WOS. On CLINC, coarse-supervised BERT scores 98.58% and the proposed system scores 98.71%. On WOS, the respective scores are 91.86% and 91.45%. The direction of the difference changes across the datasets. The consistent observation is that the broad prediction task remains at similar accuracy while fine clustering improves over the coarse-supervised baseline. These broad scores evaluate classification against known parent labels. They are different from the Hungarian-aligned fine accuracy.
The authors interpret the weaker self-training results in terms of the quality of the pseudo-labels that can be generated for this task. The desired labels are at a level for which the procedure has no annotated examples, so early groups may provide a poor basis for subsequent training. Contrastive comparisons work without first generating provisional targets for the fine labels. Their performance still varies by dataset, and the reported comparisons do not establish the quality of each method’s intermediate pseudo-labels. The explanation is the authors’ interpretation of the pattern, alongside the measured scores.
Adding cross-entropy often helps, but the results show where that statement needs qualification. On CLINC, SimCSE rises from 40.22% to 52.53% fine-category accuracy with broad supervision. On the same dataset, the angular contrastive comparison goes from 45.60% to 44.44%. On WOS, the cross-entropy version of DeepCluster raises ARI from 18.05% to 35.21%. The effects vary with the procedure and the measure. The consistent result across the reported fine-category tests is the performance of the complete hierarchical method, whose use of broad information extends beyond adding a classifier to the output.
What the ablations show
Removing components on CLINC
The authors remove individual components from the full procedure and evaluate the resulting variants on CLINC. The ablation is useful because the ingredients have different roles. The queue changes the supply of negatives. The intermediate cross-entropy changes the supervision on the representation that serves as the positive. The weighting changes the relative influence of negative groups. The self-contrastive strategy changes the use of the intermediate representation as the positive itself.
Effects of component removal on fine-category accuracy on CLINC
Removing the cross-layer positive strategy causes the largest decline among the tested changes.
The numbers
| System or setting | Accuracy % |
|---|---|
| Without momentum encoder | 73.38 |
| Without intermediate cross entropy | 72.93 |
| Without negative weighting | 71.75 |
| Without self-contrastive strategy | 53.21 |
| Full hierarchical method (this paper) | 74.67 |
Removing the momentum encoder gives 73.38% fine-category accuracy, 64.47% ARI and 88.91% NMI. The complete system gives 74.67%, 64.77% and 89.14%, respectively. This is the smallest decline among the reported removals on each measure. The authors take it as evidence that the method is relatively insensitive to the number of negatives. More narrowly, the result says that the extra source of stored same-parent keys contributes modestly in this setting. The remainder of the system still compares texts with both intermediate and final vectors from the current batch.
Removing intermediate cross-entropy yields 72.93% fine-category accuracy, 63.72% ARI and 88.06% NMI. The ablation separates having an intermediate representation from giving that representation its own training target. The result is consistent with the authors’ account that explicit parent supervision helps prepare the intermediate vector for its role as a positive. The output-level classifier and other parts of the loss are still present, so this comparison measures the loss of that additional supervision in the full design.
Removing the negative weighting yields 71.75% accuracy, 62.99% ARI and 88.47% NMI. On CLINC this removal has a larger effect than removing intermediate cross-entropy on accuracy and ARI. On NMI, intermediate cross-entropy has the larger effect of the two. The weighting result supports the claim that the broad labels are useful in distinguishing negative groups, while the difference between metrics cautions against giving those components a single fixed ranking below the self-contrastive strategy.
Removing the self-contrastive strategy yields 53.21% fine-category accuracy, 40.05% ARI and 75.36% NMI. Each measure drops more than it does under the other reported removals. This is the strongest component-level evidence for the proposed way of using an intermediate representation. It shows that the complete system depends substantially on that strategy in the CLINC comparison. The ablation cannot on its own establish precisely where broad category boundaries lie or give a direct measurement of the distances in the authors’ geometric explanation.
Varying the layer and the weight ratio
The layer choice determines where broad classification is imposed and which representation serves as the positive. The authors report that the best tested choice is layer 8. They explain the result as a division of capacity. The earlier computation has room to learn broad distinctions, and later layers still have room to transform the features in ways useful for fine discovery. This experiment supports the importance of the location of the intermediate objective within the tested encoder. It does not identify a layer that would necessarily work best for a different encoder or hierarchy.
The authors also vary the relative weight of the two in-batch negative groups.
β = α_diff / α_same
Here β is the ratio of the weight for different-parent in-batch negatives, α_diff, to the weight for same-parent in-batch negatives, α_same. The division expresses the priority given to comparisons across broad categories relative to comparisons inside a broad category. The authors fix the queue weight α_m at 1 for this analysis.
When β is greater than 1, different-parent negatives receive more weight. The authors report that this choice supports better separation between broad categories. When β is less than 1, they report worse performance and interpret it as the result of exerting more relative pressure on same-parent negatives. This comparison complements removal of the weighting scheme. Removal asks whether the distinction contributes at the selected setting. Varying the ratio asks whether assigning the emphasis in the other direction has the consequence the method’s explanation predicts.
Looking at the representations
The authors compare CLINC embeddings with those from SimCSE trained with broad cross-entropy. They use t-SNE to display the learned representations in a low-dimensional plot. The broad-category view shows more separation between the proposed system’s displayed groups. The fine-category view focuses on a single broad category and shows more separation between its subgroups as well.
The two views correspond to different questions. The broad plot concerns whether examples with different parent labels remain apart. The fine plot concerns whether the space inside one parent has useful divisions. Their appearance is consistent with the broad test accuracy and the fine clustering results. As visual evidence, the plots are illustrative. They show the projected arrangement, and the fine-level view covers one chosen parent. The numerical metrics provide a separate test over the labeled evaluation examples.
Measuring training efficiency
The timing comparison on CLINC includes SimCSE and Delete One Word alongside the proposed system. The authors use BERT base, a training batch size of 128, and the same AMD EPYC CPU 7702 and RTX 3090 GPU for the methods. The figure summarizes averages over 100 epochs. That averaging condition belongs to the timing experiment. The paper lists 20 epochs for its main training setup.
The authors report double the training efficiency of the augmentation-based comparisons with the momentum encoder present and also with it removed. This is consistent with their explanation of the computational advantage. SimCSE and Delete One Word generate a positive view through another treatment of the input. The proposed method uses the intermediate and output vectors from the same pass through the main encoder. Keeping the efficiency advantage without the momentum component also shows that the advantage does not depend on enlarging the pool of negatives through the queue.
The timing and removal results address distinct questions about the same strategy. The timing tests whether getting both vectors from the same input saves work under the tested conditions. The accuracy ablation tests whether using the intermediate vector is effective for the partitioning task. The paper reports favorable observations on both questions in CLINC. It does not end up relying on a speed measurement as evidence of better discovery, or on a clustering score as evidence of faster training.
Limitations
Limits identified by the authors
The first limit is the known fine-category count. The procedure supplies this count to K-Means, and the authors say that it can be difficult to obtain in practice. A collection may be well annotated at a broad level precisely because the detailed inventory has never been agreed upon. Passing a count to the clustering algorithm settles part of the discovery problem before learning starts. The authors note that cluster counts can be estimated by other methods. The reported evaluation fixes the count, so it does not measure how accurately it can be estimated or what happens when the supplied count is wrong.
The second limit is the absence of semantic names for discovered groups. A cluster can be coherent enough to align well with a benchmark category while carrying only an arbitrary ID. The scoring procedure can recover the best correspondence because it has reference labels. At deployment, the group’s meaning would still need to be inferred, and the paper illustrates that experts may need to name the categories. This remaining work differs from labeling every example from the beginning, but the experiments do not time either workflow or measure how much annotation effort is saved.
These limits also affect the way the task’s supervision should be described. The method can operate without named fine classes or fine-labeled examples for training. Its fine-level output is a partition with a predetermined number of groups. The paper’s results apply directly to that form of discovery.
Limits of the experimental evidence
The clustering metrics assess recovery of a benchmark’s reference partition. A good match shows that the learned groups recover many of the distinctions encoded by that annotation. It does not address whether the same collection admits other useful fine partitions or whether an analyst with a different purpose would choose the same distinctions. The experiments have reference categories and a supplied inventory size, which make agreement measurable. Those conditions are part of the interpretation of all three fine-category metrics.
The method produces clusters from output representations. The paper does not report imposing the known parent boundaries as hard constraints on the final K-Means assignments. Its way of preserving those boundaries is to train for broad classification and use the cross-layer positive and weighted comparisons. Broad classification accuracy on CLINC and WOS is evidence that this supervision remains effective at the output. Similar broad accuracy alone cannot establish that every fine cluster falls entirely inside a single parent.
The gradient argument likewise describes pressures within a loss. The weights affect relative contributions, and the positive gives the query a direction of attraction. Those calculations do not identify a numerical boundary for every parent or show that every trained point stays on the intended side of one. The same encoder parameters affect many texts, similarities and classification decisions at once. As a result, the inequality describing the desired geometry is best read alongside the test scores, ablations and visualizations, rather than as a bound independently established for the finished representation.
The design also depends on broad labels for several things at once. They train the classifiers, determine which queue is used, and set the negative group for an in-batch key. If a broad label is wrong, its influence can therefore reach multiple parts of training. The paper does not run a controlled experiment with erroneous or incomplete broad labels. It shows what happens when the supplied benchmark labels are available under the stated protocol.
At the fine level, some negatives drawn from the same parent can really be members of the same child category. Their broad labels do not reveal this. The procedure gives same-parent negatives a lower weight than different-parent ones in its reported setup, but it does not select same-parent negatives on the basis of known fine distinctions. The benchmark results indicate that useful groupings can survive this instance-level separation. They leave open how much the outcome depends on the relationship between instances and fine classes in the collection.
Finally, the scope of the controlled studies is narrower than the scope of the main comparison. The paper reports fine-category performance on all three datasets, but the component removal, representation visualization and timing comparisons focus on CLINC. The layer selection and weight analysis establish behavior under the tested setup with the chosen backbone. The hardware-controlled timing gives a comparison for the stated batch size and methods. The paper does not measure a universal speed advantage across hardware, encoders or batch configurations, and the results do not identify how the reported settings would transfer to a new hierarchy.
What came after
The listed later work, Generalized Category Discovery with Large Language Models in the Loop, cites this study and brings large language systems into a generalized category discovery procedure. The connection is at the level of the discovery problem. Both works concern extracting category structure when the labels directly available to a procedure leave part of that structure to be inferred.
An and colleagues specify a particular source of guidance and a particular kind of missing information. The guidance is a broad label attached to each training text. The missing information is the identity of its fine category. Their procedure uses the guidance in training the encoder and in organizing its comparisons. The later work’s title places language-system involvement inside the discovery process. It leaves open which decisions that involvement guides, whether the broad-to-fine hierarchy is retained, and whether the intermediate-layer objective or negative weighting is reused.
The citation therefore connects this paper to a later approach to category discovery without establishing a direct extension of its architecture. The concrete result here remains the comparison under coarse supervision and a known category count. Broad labels can help recover finer groups when they guide both the organization of the representation and the comparisons made during training.
Cite
Cite as Wenbin An, Feng Tian, Ping Chen, Siliang Tang, Qinghua Zheng and QianYing Wang. 2022. Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learning. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{an2022fine,
title = {{Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learning}},
author = {Wenbin An, Feng Tian, Ping Chen, Siliang Tang, Qinghua Zheng and QianYing Wang},
booktitle = {Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
year = {2022},
doi = {10.18653/v1/2022.emnlp-main.85},
url = {https://doi.org/10.18653/v1/2022.emnlp-main.85}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/an-2022-fine-grained-category-discovery-under/