TL;DR
peerannot is an open-source Python library built to streamline how machine learning practitioners handle noisy, crowdsourced image classification datasets. It unifies classical label aggregation (like Dawid–Skene and GLAD), end-to-end deep learning architectures (such as CrowdLayer and CoNAL), and diagnostic tools to pinpoint spammer annotators and intrinsically ambiguous tasks.
What Problem Does This Paper Address?
Crowdsourcing is the standard way to collect large-scale labeled datasets affordably, but human annotators frequently disagree. Disagreements stem from two very different root causes:
- Worker limitations: differences in expertise, carelessness, or bad-faith annotators ("spammers").
- Task difficulty: ambiguous images, overlapping visual concepts, or low image quality.
Existing open-source tooling often forces practitioners to cobble together disjointed scripts: one tool to aggregate noisy votes, another to train PyTorch models, and custom ad-hoc heuristics to prune bad workers. Furthermore, many aggregation benchmarks lack standardization and reproducibility. peerannot addresses these challenges by offering a modular, reproducible CLI and Python library that bridges the gap between raw crowd annotations, worker/task quality diagnostics, and deep neural network training.
Methods
The peerannot framework standardizes crowdsourced workflows into three core pipelines:
- Label Aggregation (
aggregate): - Converts multiple categorical votes per task into either hard consensus labels or soft probability distributions over classes.
- Implements baseline models: Majority Vote (MV) and Naive Soft empirical distributions (NS).
- Implements latent-variable noise models optimized via Expectation-Maximization (EM):
- Dawid & Skene (DS): Models each worker's expertise via a per-worker $K \times K$ confusion matrix.
- DSWC (DS with Worker Clustering): Reduces parameter scale by grouping workers into $L$ clusters that share confusion profiles.
- GLAD: Jointly infers worker ability ($\alpha_j$) and task difficulty ($\beta_i$).
- End-to-End Deep Learning (
aggregate-deep): - Rather than aggregating labels upfront in a two-stage process, this pipeline directly trains a PyTorch/torchvision backbone (e.g., VGG, ResNet) on raw crowd labels:
- CrowdLayer: Appends a trainable per-worker confusion tensor layer directly on top of the classifier's logits to model individual worker corruption.
- CoNAL: Extends CrowdLayer by modeling both per-worker local confusions and a shared global confusion matrix, balancing them dynamically via task/worker auxiliary networks.
- Task & Worker Identification (
identify): - Task Difficulty: Evaluated via distribution entropy, GLAD's difficulty parameter $\beta_i$, or WAUM (Weighted Area Under the Margins), which inspects the deep network's optimization trajectories over training epochs.
- Worker Reliability: Evaluated via confusion matrix traces, GLAD ability coefficients $\alpha_j$, and the spammer score (the Frobenius distance between an annotator’s estimated confusion matrix and its nearest rank-1 projection).
Datasets
The authors evaluated peerannot across simulated environments and several real-world crowdsourced benchmarks:
- Synthetic Simulations: Controlled setups modeling independent mistakes, vote imbalance across tasks, correlated student–teacher worker structures, and discrete task difficulty levels.
- CIFAR-10H: 10,000 images from the CIFAR-10 test set re-annotated by a crowd with an average of ~50 votes per image.
- LabelMe: 8 overlapping scene categories re-annotated by crowd workers, characterized by very sparse feedback (only 1 to 3 votes per task).
- Bluebirds: A bird-species binary classification benchmark (108 tasks, 39 workers, $K=2$).
- Audio Birds Dataset (Lehikoinen et al., 2023): 79,592 binary bird sound comparison candidates labeled by 205 workers, containing an expert-annotated subset of 13,041 tasks used for evaluation.
Key Insights and Ideas
- No single aggregation strategy wins everywhere: Simulation tests showed that when mistakes are correlated (e.g., novice workers following common misconceptions), clustered models like DSWC outperform vanilla DS (AccTrain 0.815 for DSWC[$L=10$] vs. 0.755 for DS).
- Vote density dictates the diagnostic tool: While voting entropy effectively flags ambiguous images when annotations per task are plentiful (e.g., CIFAR-10H), it collapses into uninformative discrete values when labels are sparse (e.g., LabelMe's $\le 3$ votes). In sparse regimes, deep trajectory metrics like WAUM or latent-variable parameters from GLAD provide substantially better signals of task ambiguity.
- Worker metrics separate spammers from benign disagreement: The Frobenius spammer score cleanly isolates bad-faith annotators from common and expert workers, allowing dataset owners to filter out malicious noise before model training.
Key Results
- Model Accuracy across Noise Scenarios:
- Simulated independent noise: Vanilla DS dominated (AccTrain = 0.890 vs. MV = 0.760).
- Simulated correlated noise: Clustered DS (DSWC[$L=10$]) achieved the top score of 0.815.
- Simulated discrete difficulty: GLAD achieved the highest accuracy (0.845 vs. MV = 0.780 and DS = 0.810).
- Generalization & Calibration on LabelMe: Training a modified VGG-16 with CoNAL achieved 87.205% test accuracy with an Expected Calibration Error (ECE) of 0.117, while baseline MV reached 88.889% (ECE 0.112) and standard DS reached 85.606% (ECE 0.143).
- Optimization Speed: In Benchopt comparisons on the Bluebirds dataset,
peerannot's implementation of Dawid–Skene reached the optimum faster than both Fast-DS and Crowd-Kit's DS implementation.
Limitations and Future Work
- Task Scope:
peerannotis currently designed specifically for categorical classification; it does not yet support crowdsourced bounding boxes, segmentation masks, or open-ended text. - Missing Elicitation Features: It does not natively handle self-reported worker confidence scores or trapping sets (honeypot gold-standard questions embedded in annotator feeds).
- Computational Overhead of WAUM: WAUM requires training a deep neural network classifier across multiple epochs, making it significantly more compute-intensive than feature-blind aggregation metrics.
Summary updated