Cardinality-Aware Set Prediction and Top-$k$ Classification

We present a detailed study of cardinality-aware top-$k$ classification, a novel approach that aims to learn an accurate top-$k$ set predictor while maintaining a low cardinality. We introduce a new target loss function tailored to this setting that accounts for both the classification error and the cardinality of the set predicted. To optimize this loss function, we propose two families of surrogate losses: cost-sensitive comp-sum losses and cost-sensitive constrained losses. Minimizing these loss functions leads to new cardinality-aware algorithms that we describe in detail in the case of both top-$k$ and threshold-based classifiers. We establish $H$-consistency bounds for our cardinality-aware surrogate loss functions, thereby providing a strong theoretical foundation for our algorithms. We report the results of extensive experiments on CIFAR-10, CIFAR-100, ImageNet, and SVHN datasets demonstrating the effectiveness and benefits of our cardinality-aware algorithms.

Paper

References (61)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer a6WU8/10 · confidence 2/52024-07-09

Summary

This paper proposes a method to handle cardinality-aware top-k classification. It designs an optimization problem where the cardinality of set selectors is also considered. The authors then generalize it to two types of surrogate losses. Given certain assumptions on the hypothesis set H, the authors theoretically justify their method. **I must say I am no expert on this domain, so the AC must take my comments wisely.**

Strengths

This paper tackles a very important problem. And achieves, according to my view, a very nice result. The authors manage to transfer the cardinality-aware term into surrogate terms, and theoretically demonstrate their sub-optimal properties. This paper is also very well written.

Weaknesses

No error bar, very limited evaluation, very strong assumption on the hypothesis set, which is usually not easy to achieve in practice.

Questions

In some cases, like those generative modeling questions, the cardinality of predictors may be evaluated by measure, meaning the true answer assembles a region of infinite points. Can your method apply to those scenarios where the cardinality is evaluated by measures?

Rating

8

Confidence

2

Soundness

3

Presentation

4

Contribution

4

Limitations

As said in weakness.

Reviewer 5ki44/10 · confidence 2/52024-07-15

Summary

This paper introduces a new loss function for top-k set prediction where k may vary as a function of the input, which the authors call cardinality-aware top-k classification. However, this loss is intractable to optimize in all but trivial cases, so the authors introduce surrogate loss functions for learning these cardinality-aware set predictors, and provide a theoretical analysis of these surrogate losses. The paper also explores the proposed algorithms empirically, on benchmark computer vision datasets.

Strengths

- The contribution seems novel -- the authors identify a new type of prediction problem in which top-k sets of input-varying size can be predicted. - The introduction of two new surrogate loss functions for optimizing the proposed (but intractable) cardinality-aware top-k loss seems to be a good contribution. - Empirically, the authors show on benchmark datasets that by giving up control over specific cardinalities, their top-k predictors can outperform existing top-k predictors that prescribe specific cardinalities a priori.

Weaknesses

- It isn't immediately clear why the cost-constrained surrogate loss is tractable to optimize, while the original (non-surrogate) loss is intractable. Please clarify this in the text. - (clarity of the abstract) The abstract should elaborate on H-consistency and the types of losses being introduced, or discuss these at a higher level. Without knowing what these are prior to reading the abstract, the significance of these is unclear. - The usage of the term "accuracy" in Figure 1 is strange, as the actual "accuracy" definitions vary slightly between the two methods being compared. Additionally, the expected cardinality is used, which makes the comparison strange. Furthermore, this comparison on four benchmark computer vision datasets makes up the bulk of the experimental results. The experimental results section could be additionally strengthened by analyzing other aspects of the predictors generated by the authors' framework, such as the distribution of cardinalities, whether or not harder examples indeed correspond to higher cardinality, the top-k accuracy scores of worst-case cardinalities and best-case cardinalities, and so on. - The value of Figure 2 is unclear. What is the significance of making the cost function linear?

Questions

- Out of curiosity, have the authors considered simpler techniques for cardinality-varying top-k prediction, such as setting a total probability threshold on prediction probabilities, and returns the top-k that maximizes the probability, subject to the threshold? At least empirically, it seems like simpler techniques such as this one should be included as a baseline. - Is it in fact the case that for "harder" examples, the top-k cardinality of the predictions are larger in this framework? Have the authors explored this empirically? Examples of this would strengthen the argument for this new type of prediction.

Rating

4

Confidence

2

Soundness

3

Presentation

2

Contribution

2

Limitations

The authors discuss limitations.

Reviewer TDsY7/10 · confidence 3/52024-07-21

Summary

The paper introduced a new cardinality-aware set prediction algorithm with cost-sensitive comp-sum and constrained surrogate losses. Additionally, the paper established theoretical guarantees for top-k classification with fixed cardinality k using the H-consistency bounds. Finally, experiments on linear classifiers show the superiority of their algorithms.

Strengths

1. The paper is presented clearly and is easy to follow. 2. The paper considers the set prediction, which is a novel setting in recent years. 3. The paper proposes new algorithms with rigorous guarantees and good performance on various datasets.

Weaknesses

1. Since the theoretical results include the neural network class as a special case, the experiments should additionally consider training whole neural networks on the mentioned datasets (at least CIFAR), which is more important in practice.

Questions

1. Can we estimate the $M$ in H-consistency bounds? 2. Authors claim the framework includes the standard conformal prediction, so do some relationships exist between the H-consistency bounds and coverage bounds?

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have adequately discussed the limitations.

Reviewer TDsY2024-08-08

Thank you for providing the rebuttal. The authors adequately addressed my concerns and promised to revise the paper according to the response (e.g., adding new experimental results). So, my rating has been increased from 6 to 7.

Authorsrebuttal2024-08-08

We are glad that we have addressed the reviewer's concerns. We thank the reviewer once again for their valuable suggestions and insightful comments. Please let us know if there is any other question we can address.

Reviewer a6WU2024-08-09

re

Good work. Please give me a short summary of your new analysis regarding the question before the due date. I have raised the score to 8.

Authorsrebuttal2024-08-11

We thank the reviewer for their support of our work. Here's a short summary. In our additional experimental analysis attached in the global response, we found further evidence that our cardinality-aware algorithms effectively adjust the size of the prediction sets. Figure 1 illustrates how higher costs result in smaller prediction sets, while Figure 2 demonstrates that visually challenging images are associated with larger prediction sets. In the final version, we will expand upon these findings with significantly more empirical evidence, demonstrating a clear correlation between image difficulty and prediction set cardinality. This aligns with the core objective of our algorithm and theoretical framework. We will also include error bars to highlight the statistical significance of our results. Please feel free to reach out if the reviewer has any further questions.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC