Class-Unbiased Model (Cls-unbias)
- Class-Unbiased Models are frameworks that ensure each class contributes equally to risk estimation, maintaining statistical parity in weak supervision, diagnosis, and incremental learning.
- They employ techniques such as risk rewriting, loss equalization, and shared attention steering to mitigate class imbalance and prevent reliance on spurious features.
- Empirical studies show that these methods improve generalization and stability across tasks, from unbiased risk estimation in aggregate data to robust few-shot learning.
A Class-Unbiased Model (Cls-unbias) denotes a model or training principle designed to avoid systematic class-wise distortion, but the term is used in more than one technical sense in recent literature. In classification from aggregate observations, class-unbiasedness refers to a strict statistical property: the learning objective defined on aggregate labels is exactly equal to the ordinary instance-level classification risk, so no class is systematically over- or under-weighted by the weak-supervision mechanism (Wei et al., 2023). In medical diagnosis, Cls-unbias refers to a supervised objective that equalizes class-wise losses and combines this with class-wise group distributionally robust optimization to mitigate both class imbalance and class-feature bias (Zuo et al., 9 Aug 2025). In few-shot class-incremental learning, closely related usage appears in CASP, where class-shared trainable bias parameters are injected into the query, key, and value projections of the CLS token so that the same attention steering is applied to base and novel classes (Huang et al., 23 Jan 2026). A broader surrounding literature on unbiased visual representations and supervised contrastive debiasing studies bias-robust classifiers whose predictions depend less on spurious attributes and remain stable under bias shifts (Barbano et al., 2022, Barbano et al., 2022).
1. Terminological scope and core ideas
The phrase class-unbiased does not designate a single universal construction. Instead, recent work uses it to denote distinct but related goals: preserving class-wise contribution to risk under weak supervision, preventing class-specific reliance on spurious features, or enforcing class-agnostic representation updates in continual learning.
In the CFAO formulation, unbiasedness is defined through risk rewriting. A method is called unbiased if the risk it defines and estimates from aggregate data is exactly equal to the ordinary classification risk
Because the rewriting is symmetric across classes and compatible with arbitrary losses, the resulting estimator is also described as class-unbiased: every class contributes to the expected risk exactly as it would under direct supervision (Wei et al., 2023).
In medical diagnosis, the central concern is class-feature bias, defined as reliance on features that are correlated with only a subset of classes, leading to biased performance and poor generalization on other classes. The proposed Cls-unbias model is characterized through class-wise loss equalization and a class-wise group DRO objective, with the explicit aim of mitigating both class imbalance and class-feature bias simultaneously (Zuo et al., 9 Aug 2025).
In FSCIL, CASP does not formulate class-unbiasedness as risk equality or class-wise loss equality. Instead, it introduces class-shared trainable bias parameters into the CLS token attention mechanism. Because these parameters are shared across all classes, optimized only once in the base session, and then frozen, the attention steering is described as class-unbiased in the sense that it is identical and agnostic with respect to which class is being processed (Huang et al., 23 Jan 2026).
A plausible implication is that Cls-unbias should be understood as a family of design principles centered on one invariant requirement: the learning mechanism should not systematically privilege some classes through the supervision protocol, the feature selection process, or the adaptation rule.
2. Risk-unbiased and class-unbiased learning from aggregate observations
The CFAO setting replaces instance labels with group-level aggregate labels. One observes groups of instances and an aggregate label , while the individual labels remain latent. This unified framework includes multiple-instance learning, learning from label proportions, classification from pairwise similarity, triplet comparison, ordinal ranks, and ordinal triplets (Wei et al., 2023).
The key result is an unbiased aggregate-risk form:
with aggregate loss
Equivalently,
Thus each possible label for each instance is weighted by its posterior probability given the group and the aggregate label. The method “weighs the importance of each label for each instance in the group,” providing purified supervision while preserving the original class-wise contribution to risk (Wei et al., 2023).
This formulation is universal in three explicit senses. First, it is compatible with arbitrary classification losses, including cross-entropy, logistic, and hinge loss. Second, it applies to arbitrary group sizes. Third, it applies to arbitrary aggregate functions , provided the assumptions hold. The resulting empirical estimator
is an unbiased estimator of , and the paper further states risk consistency under standard conditions.
The derivation relies on two assumptions:
0
and
1
Under these assumptions, the joint factorization
2
enables the exact rewriting from instance-level risk to group-level expectation.
This strict statistical notion of class-unbiasedness should not be conflated with demographic fairness. The paper explicitly frames it as an unbiased estimator of the true classification risk rather than a fairness criterion. Its significance lies in eliminating the mismatch between optimizing a group-level objective and the actual instance-level classification objective (Wei et al., 2023).
3. Cls-unbias as class-wise loss equalization in medical diagnosis
The medical diagnosis formulation begins from class-feature bias. Let 3 with labels 4. For subsets of classes 5, the corresponding subsets 6 partition the dataset. The paper defines class-feature bias through conditions such as
7
for some subset of classes, and
8
for at least one other subset. In that case, 9 is informative for some classes but not others, so it can cause class-feature bias (Zuo et al., 9 Aug 2025).
The proposed Cls-unbias model seeks features that are equally informative for positive and negative classes. This is expressed through the condition
0
Using the relation
1
the paper argues that when the model posterior approximates the true posterior well, this reduces approximately to
2
Accordingly, a Cls-unbias model is informally defined as one whose class-wise classification losses are equalized, or nearly equalized, so that the features it uses are equally informative for all classes (Zuo et al., 9 Aug 2025).
The first component is the class-wise inequality loss
3
The paper emphasizes a two-sided effect: minimizing this loss decreases the larger class-wise loss and increases the smaller one. The latter is deliberate. It penalizes over-specialization to one class and pushes the model away from features that are only predictive for that class.
The second component is the class-wise group DRO objective
4
Here, higher-loss classes receive larger weights, with 5 controlling how sharply the worst-loss class is emphasized and 6 denoting stop-gradient. When the class-wise losses become equal, the objective simplifies to a per-class average. The combined training objective is
7
The paper further specifies a dynamic schedule: 8 is linearly increased from 9 to 0, while 1 is linearly decreased from 2 to 3. This lets the model first obtain better class-wise estimates through DRO and then progressively enforce stronger loss equalization (Zuo et al., 9 Aug 2025).
4. Class-shared CLS attention steering in few-shot class-incremental learning
CASP situates class-unbiasedness in the context of FSCIL, where a base session 4 is followed by incremental sessions 5, each an 6-way 7-shot task, with no access to past data during later sessions. The problem is to classify over all classes seen so far without catastrophic forgetting and without overfitting to the few samples of novel classes (Huang et al., 23 Jan 2026).
The method is motivated by the role of the CLS token in Vision Transformers. In prototypical FSCIL systems, class prototypes are computed as
8
typically using the CLS embedding. CASP therefore modifies the attention mechanism associated with the CLS token rather than introducing class-specific prompt pools.
For the CLS token in each MSA layer,
9
CASP introduces learnable additive vectors 0:
1
These are class-shared: the same vectors are used for all images and all classes, applied only to the CLS token, and embedded into all layers of the backbone. A separate CLS Domain Adaptation Prompt adds a single vector to the initial CLS token,
2
During training, Perturbed CAGP applies dropout to the prompt vectors:
3
The paper characterizes the class-unbiased behavior of CASP through parameter sharing and freezing. The prompts are not conditioned on class labels, not retrieved from a class-indexed pool, and not changed across sessions. They are optimized only once in the base session and then frozen. Consequently, the same attention bias is applied to base and novel classes, and no class index or task index influences which prompts are applied (Huang et al., 23 Jan 2026).
CASP further includes Manifold Token Mixup in shallow feature space:
4
with total loss
5
The stated purpose is to synthesize potential new class features, improve generalization, and reserve representation capacity for upcoming tasks. Training is restricted to the base session; the backbone including CASP prompts and CDAP is frozen afterward, and incremental learning is prototype-based.
This usage of class-unbiasedness differs from the medical and CFAO formulations. It is neither a risk identity nor a class-wise loss-equality criterion. Instead, it is a class-agnostic representational intervention: the same CLS steering rule is reused for all classes and all future sessions (Huang et al., 23 Jan 2026).
5. Relation to unbiased representation learning and supervised contrastive debiasing
A broader literature studies bias-robust classifiers whose predictions are less dependent on spurious attributes, even when the term Cls-unbias is not always used explicitly. In “Unsupervised Learning of Unbiased Visual Representations,” the objective is to learn a representation 6 that is informative about the target while being as uninformative as possible about the bias. The proposed U-EnD pipeline first trains a standard bias-capturing model, then extracts pseudo-bias labels by PCA and KMeans clustering, and finally trains an unbiased classifier with EnD regularization using the pseudo-bias labels (Barbano et al., 2022).
The EnD regularizer combines a disentangling term and an entangling term. For normalized representations 7, with bias-same set 8 and target-same but bias-different set 9, the per-sample regularizer is
0
Minimizing this loss decorrelates representations that share the same bias while aligning representations with the same target across different biases. The paper positions the resulting classifier as robust to bias shifts and more stable across bias conditions (Barbano et al., 2022).
A complementary line appears in “Unbiased Supervised Contrastive Learning,” which analyzes why InfoNCE and SupCon can fail under biased data and proposes 1-SupInfoNCE together with FairKL (Barbano et al., 2022). For an anchor with positives 2 and negatives 3, the loss
4
enforces a margin condition between positives and negatives. FairKL then regularizes the distance geometry so that bias-aligned and bias-conflicting samples have matched distance distributions. The stated goal is an unbiased representation in which predictions do not systematically depend on bias attributes (Barbano et al., 2022).
These representation-centric approaches operate at a different level from the CFAO and medical formulations. They do not define class-unbiasedness through exact risk preservation or explicit class-wise loss equality. Instead, they aim to suppress bias structure in latent space so that downstream class predictions remain stable when spurious correlations change. This suggests a broader organizing distinction between objective-level class-unbiasedness and representation-level class-unbiasedness.
6. Empirical evidence, assumptions, and limitations
The empirical profile of class-unbiased methods varies with the formulation. In CFAO, the universal unbiased method is evaluated on pairwise similarity, triplet comparison, LLP, and MIL. The paper reports that the unbiased method consistently outperforms baselines on almost all datasets in pairwise similarity, is best or tied best on almost all datasets for triplet comparison, matches or surpasses strong methods in LLP, and clearly dominates baselines in MIL, while also remaining better under reduced sample size on CIFAR-10 (Wei et al., 2023).
In medical diagnosis, Cls-unbias is evaluated on DAIC-WOZ, MODMA, ADReSS, BreastMNIST, and RetinaMNIST. The paper reports MF1 improvements over ERM and class-weighted ERM on all five datasets, including a gain from 5 to 6 on DAIC-WOZ and from 7 to 8 on RetinaMNIST. On synthetic data, Cls-unbias reduces reliance on the spurious feature 9 and yields a decision boundary closer to the ideal class-unbiased vertical boundary (Zuo et al., 9 Aug 2025).
In FSCIL, CASP reports strong average and last-session accuracies on CUB200, CIFAR100, and ImageNet-R, while using only 0 MB trainable parameters and no fine-tuning during incremental phases. The ablation on CUB200 attributes the main gain to CLS attention steering, with average accuracy improving from 1 for a fully fine-tuned ViT baseline to 2 after adding CAGP, then to 3 after adding PCAP, CDAP, and MTM (Huang et al., 23 Jan 2026).
The assumptions and limitations are equally formulation-specific. CFAO requires aggregate-label independence from features given labels and conditional independence of labels within a group given features; if these assumptions fail, unbiasedness is no longer guaranteed (Wei et al., 2023). The medical Cls-unbias method is explicitly designed for binary classification, and the paper notes that extension to many classes is non-trivial because few or no features may be informative across all classes (Zuo et al., 9 Aug 2025). CASP may still be challenged by extremely low-shot settings or severe domain shift, and its MTM hyperparameters are dataset-dependent (Huang et al., 23 Jan 2026). Unsupervised debiasing methods depend on the ability of a first-stage model to capture bias structure, while FairKL either requires bias labels or a bias-capturing model to produce bias indicators (Barbano et al., 2022, Barbano et al., 2022).
Taken together, these results show that Class-Unbiased Model (Cls-unbias) is best understood as a technical umbrella for methods that remove class-wise distortion at different points in the learning pipeline: in the statistical risk itself, in the class-wise training dynamics, or in the attention and representation geometry used for classification.