Structured Exploration and Exploitation of Label Functions for Automated Data Annotation
Organizations: Faculty of Information Technology, VNU University of Engineering and Technology, Hanoi, Vietnam
Abstract
High-quality labeled data is critical for training reliable machine learning and deep learning models, yet manual annotation remains costly and error-prone. Programmatic labeling addresses this challenge by using label functions (LFs), i.e., heuristic rules that automatically generate weak labels for training datasets. However, existing automated LF generation methods either rely on large language models (LLMs) to synthesize surface-level heuristics or employ model-based synthesis over hand-crafted primitives. These approaches often result in limited coverage and unreliable label quality. In this paper, we introduce EXPONA, an automated framework for programmatic labeling that formulates LF generation as a principled process balancing diversity and reliability. EXPONA systematically explores multi-level LFs, spanning surface, structural, and semantic perspectives. EXPONA further applies reliability-aware mechanisms to suppress noisy or redundant heuristics while preserving complementary signals. To evaluate EXPONA, we conducted extensive experiments on eleven classification datasets across diverse domains. Experimental results show that EXPONA consistently outperformed state-of-the-art automated LF generation methods. Specifically, EXPONA achieved nearly complete label coverage (up to 98.9%), improved weak label quality by up to 87%, and yielded downstream performance gains of up to 46% in weighted F1. These results indicate that EXPONA's combination of multi-level LF exploration and reliability-aware filtering enabled more consistent label quality and downstream performance across diverse tasks by balancing coverage and precision in the generated LF set.
Figures & tables
| Dataset | #classes | |||
| YouTube | 2 | 1,586 | 18 | 250 |
| SMS | 2 | 4,135 | 77 | 517 |
| IMDb | 2 | 20,000 | 375 | 2,500 |
| Yelp | 2 | 30,400 | 570 | 3,800 |
| Clickbait | 2 | 25,600 | 480 | 3,200 |
| AGNews | 4 | 96,000 | 1800 | 12,000 |
| YouTube | SMS | IMDb | Yelp | Clickbait | Agnews | Finance | Chemprot | Massive | ||
| #LFs | Snuba | 25 | 3 | 25 | 25 | 25 | – | – | – | – |
| Alchemist | 15 | 15 | 15 | 15 | 15 | 15 | 15 | 15 | 15 | |
| DataSculpt | 84 | 167 | 90 | 78 | 171 | 216 | 185 | 181 | 131 | |
| Expona | 60 | 60 | 60 | 60 | 60 | 60 | 58 | 46 | 60 | |
| Coverage | Snuba | 1.000 | 1.000 | 0.605 | 0.650 | 0.185 | – | – | – | – |
| Alchemist | 1.000 | 0.999 | 0.982 | 0.928 | 0.635 | 0.996 | 1.000 | 1.000 | 0.935 |
| Pubmed | PaperAbs | ||
| #LFs | Alchemist | 210 | 90 |
| DataSculpt | 6241 | 2679 | |
| Expona | 772 | 332 | |
| Coverage | Alchemist | 1.000 | 0.986 |
| DataSculpt | 0.963 | 0.972 | |
| Expona | 1.000 | 1.000 |
| LF Config. | Coverage | Label. Quality | E2E Perf. | |
| IMDb | Surface | 0.953 | 0.761 | 0.739 |
| Structural | 0.998 | 0.801 | 0.740 | |
| Semantic | 0.413 | 0.345 | 0.698 | |
| Full config. ( Expona ) | 1.000 | 0.827 | 0.748 | |
| Finance | Surface | 1.000 | 0.615 | 0.576 |
| Structural | 0.956 | 0.511 | 0.514 |
| LLM | Coverage | Label. Quality | E2E Perf. |
| GPT-5 | 1.000 | 0.828 | 0.756 |
| GPT-4.1 | 1.000 | 0.827 | 0.748 |
| Gemini-2.5-Flash | 1.000 | 0.814 | 0.734 |
| Qwen-2.5-7B | 0.999 | 0.788 | 0.732 |
| Gemma3-4B | 1.000 | 0.796 | 0.717 |
| Classifier | Coverage | Label. Quality | E2E Perf. |
| LR | 0.990 | 0.859 | 0.850 |
| DT | 0.978 | 0.820 | 0.847 |
| SVM | 1.000 | 0.865 | 0.853 |
| KNN | 0.983 | 0.820 | 0.845 |
| MLP | 1.000 | 0.857 | 0.852 |
| Pretrained Model | Coverage | Label. Quality | E2E Perf. |
| bert-base | 0.976 | 0.746 | 0.598 |
| bge-base-en-v1.5 | 1.000 | 0.833 | 0.636 |
| bart-base | 0.992 | 0.731 | 0.605 |
| multilingual-e5-large | 0.995 | 0.817 | 0.621 |
| Regime | Coverage | Label. Quality | E2E Perf. | |
| YouTube | Non abst. | 1.000 | 0.803 | 0.782 |
| Abstain | 1.000 | 0.848 | 0.870 | |
| Agnews | Non abst. | 1.000 | 0.817 | 0.796 |
| Abstain | 1.000 | 0.855 | 0.827 | |
| Finance | Non abst. | 1.000 | 0.599 | 0.596 |
| Abstain | 1.000 | 0.623 | 0.617 |
| Dataset | Label Model | Label. Quality | E2E Perf. |
| IMDb | MultiVote | 0.832 | 0.756 |
| W. MultiVote | 0.832 | 0.757 | |
| DawidSkene | 0.826 | 0.748 | |
| FlyingSquid | 0.830 | 0.755 | |
| Snorkel | 0.829 | 0.752 | |
| Finance | MultiVote | 0.595 | 0.561 |
Weakly Supervised Learning
Weakly supervised learning trains models from incomplete, noisy, coarse, or indirect labels instead of dense ground truth.
See all 156 papers