Asking Experts About Merges, Not Images: Query-Steered Dendrogram Learning

Many specialized domains have cheap coarse labels but very expensive fine ones. A non-expert can say "this is a Boeing" or "this is a zooplankton image." Only a specialist can say which variant or species it is. Recent work shows that a model can discover fine subclasses inside each coarse class without fine labels. It alternates between two steps: build a tree that recursively merges similar images (a dendrogram), then retrain the image encoder so that images in the same branch move closer together. The weakness is that one wrong merge early on, joining two genuinely different subspecies, becomes a training target. The encoder then learns to make them look alike, and the error locks in.

We propose to spend a tiny expert budget of tens of questions, not hundreds, on exactly those decisions. At each round we pick the few pending merges in the tree whose outcome would affect the most images and on which the model is least sure. We show the expert a handful of representative images from the two branches and ask one question: "Are these the same kind of thing?" A "no" does more than block the merge. It becomes a constraint that forbids the merge in every later tree rebuild, and it pushes the two branches apart in the encoder's training signal. One answer therefore corrects a whole subtree, and it corrects the feature space that future trees are built from. The core claim is that, per expert question, feeding merge-level feedback back into the representation should beat two alternatives: flat instance-level interactive clustering, and active search over a frozen tree. It should win most clearly where the frozen features cannot express the correct split at all.

What exists and what is missing

The structural loop comes from BuCSFR. Within each coarse label, it builds a bottom-up dendrogram with a minimal-information-loss merge rule and needs no preset number of fine classes. It then trains a contrastive loss that treats dendrogram branches as pseudo fine-grained targets. BuCSFR asks no questions, and the research file notes that its merge rule can join morphologically distinct sub-branches without the model detecting it. We reuse its loop as the backbone and add the missing correction channel. The broader deep-clustering lineage motivates why this matters. That lineage includes joint agglomerative clustering and representation learning, Deep Embedded Clustering and graph-regularized subspace autoencoders. These methods couple grouping and features because decoupled pipelines propagate errors, but the same coupling makes early errors self-reinforcing.

Three interactive methods supply parts of the design, and each lacks one piece. Interactive Deep Clustering via Value Mining (IDC) selects samples by hardness, representativeness and diversity. It asks multiple-choice "which cluster does this image belong to" questions and updates the network with pull and push losses. Its finding that dense, representative queries act as a force multiplier motivates our selection score. However, IDC is flat, needs a fixed number of clusters, assumes a perfect oracle, and uses around 500 queries. COBRAS asks must-link and cannot-link questions to drive split-and-merge clustering, but it runs on static features with k-means, and its splits are irreversible. Flattening a Hierarchical Clustering through Active Learning finds the best cut of a tree with few queries, including under persistent noise, but it never changes the tree or the features. BoostMIS sends ambiguous medical images to radiologists inside a pseudo-labeling loop. It is flat supervised classification over known classes rather than discovery of unknown subclasses.

The new combination is a query unit defined on the tree, a merge between two subtrees, whose answer changes the encoder so that the next tree differs. None of the cited works has both properties.

Core mechanism

Each round has four steps. First, we build constrained dendrograms within each coarse class from current embeddings. Second, we score the pending merges and send the top few to the expert. Third, we store the answers as instance-level must-link and cannot-link constraints between the medoids of the two subtrees. We attach constraints to images rather than to tree nodes so that they survive when the tree is rebuilt. Fourth, we retrain the encoder with BuCSFR's dendrogram-guided contrastive loss plus a constraint term. When the tree is next rebuilt, agglomeration may never merge two clusters that contain a cannot-linked pair. Must-links are merged first.

For a candidate merge $m$ of subtrees $A$ and $B$, the selection score is

$$s(m) = \min(|A|,|B|)\cdot \exp\!\left(-\frac{\Delta(m)}{\tau}\right),$$

where $|A|,|B|$ are subtree sizes and $\Delta(m)$ is the information-loss margin between this merge and the next-best alternative merge for either subtree. The margin is small when the rule is nearly indifferent. The temperature $\tau$ is set on a held-out coarse class. The size term plays IDC's representativeness role: it favors merges that affect many images. The margin plays the hardness role that BoostMIS's instability selector plays. Using the smaller of the two sizes stops a single outlier from being queried against a large cluster. We query four representative images per side, and we count every image shown when accounting for expert cost.

Expert disagreement is common in these domains. Answers therefore enter the loss with a weight that falls when they conflict transitively with other answers. An example of such a conflict is A must-link B, B must-link C, but A cannot-link C. In the spirit of DIPS, we also down-weight constrained images whose training dynamics show persistently low confidence. This robustness piece is secondary; the main test is the merge-query loop itself.

Research program

We will build the loop on BuCSFR's published modules and use a simulated expert: fine labels answer merge questions by majority fine label of the shown images. Budgets will be 25, 50, 100 and 200 questions, spread over 5 rounds. We will then run two analyses.

The first analysis is a cut-ceiling diagnostic. On a frozen tree, we compute the accuracy of the best possible flat cut given full knowledge of the fine labels. This number bounds every method that only searches the frozen tree. We compare it with what our loop reaches after it has updated the representation. The diagnostic tells us, per dataset, whether retraining the features is necessary at all.

The second analysis is query leverage: the number of images whose fine-grained assignment changes per answered question, compared with IDC-style instance queries. This tests directly whether merge queries multiply feedback more than single-image queries do.

Baselines

The naive reference point is BuCSFR with no queries (BuCSFR). It uses the same backbone, coarse labels and training schedule as our method, so any gain is attributable to the questions. The file gives no reported BuCSFR figures. The ICCV paper reports gains in recall@K and kNN@K on FGVC-Aircraft and iNaturalist-2019, but the file lists no numbers (no reported result found on Lacuna for BuCSFR numeric scores), so we will rerun it ourselves.

The strongest existing interactive method is IDC (Interactive Deep Clustering via Value Mining). It reports raising ImageNet-Dogs clustering accuracy from 64.4% to 78.8%, and CIFAR-20 from 53.1% to 69.4% on a TCL base model, with about 500 queries (0.8–3.8% of the data). We run IDC per coarse class and give it the true number of fine classes, which favors IDC. It gets the same encoder initialization and the same tuning budget, a fixed number of configurations searched on a validation coarse class. We match on two cost measures, questions asked and images shown, because an IDC multiple-choice question displays several cluster exemplars.

We also include a two-stage baseline: frozen features from the same pretrained encoder, with interactive clustering on top. The interactive step is COBRAS or the noise-robust tree-cut search of Flattening a Hierarchical Clustering. The latter reports 9.52% test error with 250 queries on a 10,000-image MNIST subset under complete linkage. Finally, we compare against a linear probe or FixMatch-style semi-supervised learner. It is trained on the same number of expert-labeled images, chosen by the same selection score.

Two ablations isolate the key ingredient. In the first, answers constrain the tree but are not fed to the encoder. In the second, merge selection is random. We count the method as beating IDC if it matches IDC's fine-grained accuracy at one-fifth of IDC's question budget and one-half of its images shown. It must also beat IDC outright at equal budget on at least two of the three fine-grained datasets. Every result is averaged over three seeds, with confidence intervals.

Why not just…?

Why not just pretrain a strong domain encoder and fit a linear probe on a few expert labels? This is a serious threat. The file reports that a domain masked autoencoder on plankton reaches about 97% accuracy on some subsets with 1% labels. However, a probe needs labels for every fine class, including rare ones, and it cannot discover classes nobody named in advance. Our setting assumes the fine taxonomy is unknown. We run the probe with labels chosen by the same budget. If the probe wins at matched cost, the claim fails for known-taxonomy settings, and we will report it that way.

Why not just use FixMatch seeded with actively chosen labels? IDC outperformed FixMatch at identical budgets. BoostMIS outperformed FixMatch by 4.73 and 7.15 points on two-grade and six-grade spinal-compression tasks. DIPS shows that FixMatch amplifies noise in its labeled set. All of this is evidence against consistency-based semi-supervised learning at tiny, possibly noisy budgets. We nonetheless include it as a baseline rather than rely on these reports.

Why not just run COBRAS or tree-cut search on frozen foundation-model features? This is the most plausible competitor, and it is far cheaper: COBRAS handles 100 queries in under 10 seconds. The cut-ceiling diagnostic settles the question per dataset. If the best cut of a frozen tree already approaches our accuracy, retraining the features is unnecessary there, and we will say so. We expect the gap to appear on FGVC-Aircraft variants and iNaturalist species, where subclasses differ in local detail that generic features may blend together.

Why not just run IDC inside each coarse class? IDC needs the number of fine classes and uses hundreds of instance queries. The equal-budget comparison, together with the query-leverage analysis, shows directly whether a merge question moves more images than an instance question.

Proposed Experiments

We will use CIFAR-100 with its 20 superclasses as coarse labels (a sanity setting), FGVC-Aircraft with manufacturer as the coarse label and variant as the fine target, and iNaturalist-2019, taking genus as coarse and species as fine. ImageNet-Dogs gives direct comparability to IDC's reported numbers. As a clinical case, we will use MESCC, where two-grade compression labels are the coarse labels and the six-grade Bilsky scale is the fine target, provided the data are accessible. Metrics are Hungarian-matched fine-grained clustering accuracy, NMI, ARI, recall@K and kNN@K, plotted against both questions asked and images shown.

The first decisive check is the accuracy-per-question curve against IDC and the two-stage baseline at 25–200 questions. The second is the frozen-tree cut ceiling, compared with our final accuracy. The third is the no-encoder-feedback ablation: if it matches the full method, the representation loop adds nothing and the idea reduces to smarter tree-cut search. The fourth is a noisy-expert test that flips 10% and 20% of answers. It measures how much of the gain survives, with and without conflict-aware weighting. A result that fails the first or third check would falsify the central claim.