FastBUS: A Fast Bayesian Framework for Unified Weakly-Supervised Learning
Authors: Ziquan Wang, Haobo Wang, Ke Chen, Lei Feng, Gang Chen
Organizations: the School of Software Technology, Zhejiang University, Hangzhou 310027, China · the State Key Laboratory of Blockchain and Data Security, Zhejiang University, Zhejiang 310027, China, and also with the Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Binjiang 310000, China · the School of Computer Science and Engineering, Southeast University, Nanjing 210096, China · the College of Computer Science and Technology, Zhejiang University, Hangzhou 310027, China
Machine Learning often involves various imprecise labels, leading to diverse weakly supervised settings. While recent methods aim for universal handling, they usually suffer from complex manual pre-work, ignore the relationships between associated labels, or are unable to batch process due to computational design flaws, resulting in long running times. To address these limitations, we propose a novel general framework that efficiently infers latent true label distributions across various weak supervisions. Our key idea is to express the label brute-force search process as a probabilistic transition of label variables, compressing diverse weakly supervised DFS tree structures into a shared Bayesian network. From this, we derived a latent probability calculation algorithm based on generalized belief propagation and proposed two joint acceleration strategies: 1) introducing a low-rank assumption to approximate the transition matrix, reducing time complexity; 2) designing an end-to-end state evolution module to learn batch-scale transition matrices, facilitating multi-category batch processing. In addition, the equivalence of our method with the EM algorithm in most scenarios is further demonstrated. Extensive experiments show that our method achieves SOTA results under most weakly supervised settings, and achieves up to hundreds of times faster acceleration in running time compared to other general methods.
Figures & tables
Strategy
Method
No Pre-Work
Multi-label Correlation
Worst-Case Time Complexity
Inductive Properties of Base Loss
Centroid Loss [ 22 ]
✗
✗
− a
Count Loss [ 24 ]
✓
✗
O(K2)
Calculation of Latent Probobilities
UUM [ 21 ]
✓
✗
O(CK)
IMP [ 23 ]
✗
✗
O(K∣W∣2) b
FastBUS
✓
✓
O(K∣W∣)
TABLE I: Comparison Between Several Works and FastBUS for General Weak Supervision.
Fig. 1: Comparison of run time and accuracy with recent SOTA methods on general weakly supervised learning as the batch size is 4 and the average number of instances in each bag is 20. The runtime advantage becomes more pronounced as the batch size, number of classes, or instances increases.
Fig. 2: DFS tree for Multi-Instance Learning when the number of instances in one bag is 3 for only one class. Note that nodes of the same color belong to the same layer.
Weak Supervision
Meanings of Zk
LProp , PosUnl , UnlUnl
number of positive samples for the first k instances in the bag
PairComp
more positive than the first instance or not
PairSim
similar to the first instance or not
…
…
PartialL
the k-th category is considered as a candidate label or not
TABLE II: Meanings of Node Variables in DFS Tree or Bayesian Network for Different Weak Supervision
Fig. 3: A loopy Bayesian network model for general weak supervision. Different colors denote distinct label types. (a) Left panel: Visualization of a probabilistic graph with 3 instances and 3 labels, where all feasible instance configurations are mined through chain-structured dependencies, while loops explicitly characterize multi-label correlations. Right panel: Factor graph representation corresponding to the chain (b) and loop (c) components of the left network, employing generalized belief propagation (GBP) for efficient probabilistic inference.
μ⋅→W=gw,o(μK(1))⋅Tclass
Algorithm 1 GBP Calculation Process.
Fig. 4: The end-to-end state evolution module to learn transition matrices U(x[K]) . The core innovation points are marked with underlines.
Dataset
CIFAR10
CIFAR100
STL10
Multi-Instance Learning
N
800
1200
1000
2500
500
2000
K
N(8,1)
N(5,1)
N(10,2)
N(8,1)
N(12,2)
N(5,1)
Count Loss
64.95±0.61
70.31±0.83
29.50±1.29
46.87±0.82
49.84±2.62
73.05±1.37
UUM
14.90±0.62
16.23±0.66
1.50±0.62
1.58±0.51
16.95±2.84
14.45±2.26
GLWS
68.97±0.79
74.04±0.67
25.77±1.26
44.86±1.92
53.95±0.95
76.28±1.31
TABLE III: Accuracy on Aggregation Supervision for Three Datasets. All Results Are Averaged over Five runs.
Dataset
CIFAR-10
CIFAR-100
STL-10
Pairwise Comparison
N
7500
10000
5000
7500
2000
6000
Prior
0.65
0.45
0.65
0.45
0.65
0.45
PcABS
70.19±0.23
72.97±0.28
55.87±0.39
60.13±0.53
70.98±0.52
72.16±0.43
PcReLU
71.64±0.46
74.97±0.34
56.88±0.31
63.24±0.61
72.03±0.37
74.66±0.36
PcTeacher
60.29±0.35
60.62±0.56
57.97±0.47
59.06±0.31
70.21±0.23
70.36±0.48
TABLE IV: Accuracy on Hard-Label Pairwise Supervision for Three datasets. All Results Are Averaged over Five Runs.
Dataset
CIFAR-10
CIFAR-100
STL-10
Similarity Confidence
N
4000
10000
3000
10000
3000
10000
Prior
0.45
0.65
0.45
0.65
0.45
0.65
ScABS
61.26±0.32
68.68±0.51
60.52±0.21
60.02±0.47
66.08±0.17
71.32±0.29
SCReLU
60.21±0.51
68.51±0.43
60.45±0.17
60.04±0.38
68.02±0.26
70.98±0.19
ScNNABS
61.11±0.46
68.50±0.72
60.46±0.16
60.02±0.52
69.41±0.32
71.06±0.58
TABLE V: Accuracy on Soft-Label Pairwise Supervision for Three datasets. All Results Are Averaged over Five Runs.
Dataset
CIFAR-10
CIFAR-100
STL-10
Partial Label
N
20000
20000
20000
Ratio
0.30
0.70
0.03
0.10
0.05
0.50
CC
91.57±0.15
83.58±0.36
56.47±0.24
53.74±0.18
85.72±0.45
82.05±0.72
PRODEN
91.86±0.21
85.97±0.35
57.19±0.16
53.73±0.42
85.88±0.39
82.49±0.73
PiCO
92.49±0.48
87.37±0.53
57.28±0.39
55.07±0.44
86.07±0.64
82.85±0.47
TABLE VI: Accuracy on Imperfect Supervision for Three datasets. All Results Are Averaged over Five Runs.
Dataset
CIFAR-10
CIFAR-100
STL-10
Positive Unlabeled
Npos
250
800
1500
3000
250
800
CVIR
87.76±1.15
91.19±0.94
80.63±0.57
84.25±0.34
71.76±1.48
76.90±1.17
DIST PU
81.67±2.87
83.94±1.69
74.68±1.21
77.19±0.85
72.87±1.46
74.64±0.74
NN PU
88.12±0.94
89.86±0.68
76.22±0.89
77.96±0.51
71.23±0.72
79.46±0.37
U PU
73.75±1.82
86.24±0.83
67.64±0.76
72.14±0.69
71.52±0.82
75.35±0.55
TABLE VII: Accuracy on Incomplete Supervision for Three datasets. All Results Are Averaged over Five Runs.
Fig. 5: Runtime under varying instances per bag, batch sizes, and class counts. Results show our method maintains stable runtime on CIFAR-10/100 across these parameters, while others slow down. This efficiency arises from our unified Bayesian network, accelerated inference, and batch-level state evolution module, supporting a simultaneous multi-class batch process. In specific settings, we achieve up to 400x speedup against Count Loss and GLWS.
Settings
MultiIns
LProp
PairComp
PairSim
SimConf
ConfDiff
MLP
72.65
84.71
70.53
69.38
68.33
60.25
Ours w/o att.
72.29
85.16
71.56
69.03
71.56
64.84
Ours w/ ReLU
15.98
84.93
60.18
70.06
60.08
60.27
Ours w/ GELU
73.37
84.81
60.83
70.34
60.75
60.74
Ours
74.58
86.14
73.81
70.57
72.31
70.65
TABLE VIII: Ablation Experiments using Different Modules to Learn Matrix U . Report Accuracy after Running All Results over Five Times.
Deep learning has achieved great success in recent years thanks to the availability of high-quality, well-annotated training data. However, this requirement is often not met in real-world applications. Weakly supervised learning aims to train an accurate model with incomplete, inexact, or inaccurate supervision. In this chapter, we will discuss recent advances in this field, including new supervision paradigms, relaxed assumptions, and practical solutions. First, we introduce a new weakly supervised binary classification problem called confidence-difference classification and propose consistent approaches to solve it. Next, we investigate complementary-label learning, a weakly supervised multi-class classification problem. Our proposed approaches are based on more relaxed assumptions about the data generation process than existing consistent approaches. Lastly, we present an evaluation framework for partial-label learning, another popular multi-class weakly supervised learning problem, in order to promote fair and realistic evaluation of algorithms in this field.
Wei Wang, Gang Niu, Masashi Sugiyama
RIKEN, Tokyo, Japan · The University of Tokyo, Chiba, Japan
Weakly supervised learning has emerged as a practical alternative to fully supervised learning when complete and accurate labels are costly or infeasible to acquire. However, many existing methods are tailored to specific supervision patterns -- such as positive-unlabeled (PU), unlabeled-unlabeled (UU), complementary-label (CLL), partial-label (PLL), or similarity-unlabeled annotations -- and rely on post-hoc corrections to mitigate instability induced by indirect supervision. We propose a principled, unified framework that bypasses such post-hoc adjustments by directly formulating a stable surrogate risk grounded in the structure of weakly supervised data. The formulation naturally subsumes diverse settings -- including PU, UU, CLL, PLL, multi-class unlabeled, and tuple-based learning -- under a single optimization objective. We further establish a non-asymptotic generalization bound via Rademacher complexity that clarifies how supervision structure, model capacity, and sample size jointly govern performance. Beyond this, we analyze the effect of class-prior misspecification on the bound, deriving explicit terms that quantify its impact, and we study identifiability, giving sufficient conditions -- most notably via supervision stratification across groups -- under which the target risk is recoverable. Extensive experiments show consistent gains across class priors, dataset scales, and class counts -- without heuristic stabilization -- while exhibiting robustness to overfitting.
Miao Zhang, Junpeng Li, Changchun Hua +1
Engineering Research Center of the Ministry of Education for Intelligent Control System and Intelligent Equipment, Yanshan University, Qinhuangdao, China
Weakly supervised anomaly detection (WSAD) has developed in three primary directions: incomplete, inexact, and inaccurate supervision. However, these directions remain isolated, lacking a unified framework to assess whether they address unique challenges or share fundamental mechanisms. This paper introduces WSADBench, the first benchmark that unifies evaluation across distinct weakly supervised scenarios, benchmarking diverse approaches from specialized WSAD methods to advanced tabular foundation models. WSADBench establishes standardized protocols to evaluate 36 algorithms across 4 modalities by systematically varying label quantity, granularity, and quality, revealing the performance boundaries of various methods. Based on over 700K experiments, WSADBench reveals four critical insights: (i) Strong intrinsic correlations exist between these weak supervision scenarios, challenging the isolation of current research directions. (ii) Specialized WSAD algorithms excel only in extreme label-scarcity regimes but are quickly dominated by tabular foundation models and general classification methods as supervision increases or in OOD scenarios. (iii) Unlabeled data shows inconsistent utility across settings, with marginal gains compared to label refinement. (iv) Models exhibit asymmetric sensitivity to different types of label noise. We release WSADBench as an open-source benchmark with code and datasets to facilitate future WSAD research: https://github.com/SUFE-AILAB/WSADBench.
Xu Yao, Siyuan Zhou, Zhenbo Wu +6
Shanghai University of Finance and Economics · Ant Group · Key Laboratory of Interdisciplinary Research of Computation and Economics Shanghai University of Finance and Economics