01: The missing constraint

The next active learning decision is not only what to label. It is what is worth its cost.

Two examples can carry similar information while requiring very different annotation effort. A useful acquisition strategy must reason about both the value of a batch and the resources needed to obtain it.

The central question

Given a fixed annotation budget and non-uniform example costs, which subset provides the greatest expected information gain?

Uniform-cost active learning

Every label is treated as one identical unit. The method can select a highly informative batch that is too expensive in practice.

Cost-aware active learning

Each candidate has an informativeness score and an instance-level cost. Selection becomes a constrained optimization problem.

Overall cost-sensitive active learning objective
\[\max_{(B^1,\ldots,B^R)} \operatorname{Perf}(f^R) \quad \text{subject to} \quad \sum_{r=1}^{R}\sum_{x\in B^r}g(x)\le C\]

The goal is to maximize final-model performance while respecting one global budget C across all R acquisition rounds.

Remaining budget after round r
\[C^r=C-\sum_{r'=1}^{r}\sum_{x\in B^{r'}}g(x)\]

Every acquired batch reduces the same global budget. The budget does not restart at each round.

KnapsackBALD batch construction
\[B^r=\underset{\bar A\subseteq A^k}{\operatorname{arg\,max}}\sum_{x\in\bar A}a(x) \quad \text{subject to} \quad \sum_{x\in\bar A}g(x)\le C^{r-1}\]

A k is the ranked candidate set, a(x) is informativeness, and the chosen subset becomes the round batch B r .

02: First, understand 0-1 knapsack

Each item is either selected once or not selected.

A 0-1 knapsack problem gives every item a value and a cost. For each item i, the binary variable z i is 1 when the item is selected and 0 when it is not. The goal is to maximize total value without exceeding the budget.

Generic 0-1 knapsack objective
\[\max_{z_1,\ldots,z_n}\sum_{i=1}^{n}v_i z_i \quad \text{subject to} \quad \sum_{i=1}^{n}c_i z_i\le W, \qquad z_i\in\{0,1\}\]

v i is value, c i is cost, W is the budget, and z i is the keep-or-skip decision.

Dynamic-programming decision
\[DP(i,w)=\max\left(DP(i-1,w),\;v_i+DP(i-1,w-c_i)\right)\]

At each item and capacity, compare skipping the item with taking it. Taking is available only when the item fits.

Pack the most value into the budget

Select items manually, change the budget, or ask the solver to find the optimal subset.

10
Used capacity 0 of 10

z = [0, 0, 0, 0, 0, 0]

Selected items None
Total value 0
Total cost 0 / 10
Constraint Feasible

Select any combination. A selection is valid while its total cost is at most W.

How dynamic programming reaches the answer

The table stores the best value possible after considering the first i items at every capacity w.

Start
Start with no items. Every capacity has value zero.

How this maps to the paper

The optimization stays the same. Item value becomes acquisition score, item cost becomes annotation cost, capacity becomes the remaining budget, and selected items become the acquisition batch.

Knapsack value v i Informativeness a(x i )
Knapsack cost c i Annotation cost g(x i )
Capacity W Remaining budget C r-1
Selected items {i : z i = 1} Acquisition batch B r
03: Interactive KnapsackBALD lab

Change the costs, ranking rule, and budget.

This scaled demonstration starts with 12 pool items, preselects 10 instead of the paper's 80, and keeps 7 instead of 60 before solving the knapsack problem. The selection logic is the same, while the displayed per-item scores make each stage visible. The paper uses BatchBALD for the preselection step.

The round spending-limit slider is a teaching control. In the paper, the knapsack is constrained by the remaining global budget. Here, the effective constraint is the smaller of the slider value and the remaining global budget.

Build an affordable acquisition batch

Selected cards form B r . Shortlisted cards passed the ranking stage but were not chosen by the 0-1 knapsack solver.

Interactive
Scaled global budget C across five rounds 12.00 / 12.00 remaining
2.50

Current round 1 / 5
Selected examples 0
Total information 0.00
Batch cost / available budget 0.00 / 2.50

Inspect the three stages, then acquire the selected batch to spend from the global budget.

Try this

Hold the pool constant and switch from HS to LC.

HS protects highly informative candidates during ranking. LC protects cheap candidates. The knapsack step then finds the most informative affordable subset inside that shortlist.

04: The method

KnapsackBALD separates candidate generation, ranking, and constrained selection.

1 Preselect 80

BatchBALD identifies a diverse set of informative candidates from the unlabeled pool.

2 Rank and keep 60

HS keeps the most informative candidates. LC keeps the least costly candidates.

3 Solve 0-1 knapsack

The optimizer selects the highest-value combination that fits the remaining budget.

4 Repeat for 5 rounds

The batch is labeled, the model is updated, and the pool and budget are reduced.

The experiments use a global annotation budget equal to 30 percent of the normalized pool cost. Costs are normalized so their average is one, making results comparable across languages and cost scenarios.

05: Three ways costs become unequal

Non-uniform cost is not a single phenomenon.

Scenario 1 Varying costs

Examples receive heterogeneous costs directly, representing generic variation in annotation effort.

Scenario 2 Annotator reliability

More reliable annotation is modeled as more expensive, capturing a quality and cost tradeoff.

Scenario 3 Sample difficulty

Language-model perplexity represents difficulty. Harder examples receive higher annotation costs.

Each scenario is evaluated at baseline, moderate, and high levels of cost extremity. As the distribution becomes more uneven, ignoring cost becomes increasingly damaging.

06: Interactive results

The advantage grows as costs become more extreme.

Select a scenario and extremity level to inspect the reported relative F1 improvement over the uniform-cost BatchBALD baseline.

HS-BDK +0.00%
LC-BDK +0.00%

Reading the result

At high extremity, both variants improve relative F1 by more than 10 percent in every scenario. The highest reported gain is 12.84 percent for LC-BDK under sample-difficulty costs.

07: What this changes

Counted labels are not the same as spent resources.

The experiments cover 13 MasakhaNEWS language conditions, including 11 African languages plus English and French, and use AfroXLMR-Large. Performance is measured after each acquisition round, with final results averaged across five random seeds.

Uniform-cost BatchBALD remains a strong baseline when costs are close to equal. As heterogeneity increases, cost-aware selection extracts more predictive value from the same annotation budget.

Limitation

The study simulates annotation costs.

The scenarios are controlled abstractions of real annotation markets. A natural next step is to estimate costs from observed annotation time, annotator expertise, disagreement, and language-specific access constraints.

Paper behind this essay

Active Learning with Non-Uniform Costs for African Natural Language Processing

Bonaventure F. P. Dossou, Ines Arous, Audrey Durand, and Jackie Chi Kit Cheung. Findings of EACL, 2026.

Reading behind this essay

Ideas to follow further.

These sources explain the acquisition objective, the annotation-budget constraint, and the evaluation data. The results explorer presents reported findings; the interactive pools and budgets are teaching examples. The study itself uses simulated annotation costs.

  1. Dossou, Arous, Durand, and Cheung (2026). Active Learning with Non-Uniform Costs for African Natural Language Processing. The study behind KnapsackBALD: combine informative batch acquisition with a budget constraint, and evaluate controlled forms of cost heterogeneity.
  2. Kirsch, van Amersfoort, and Gal (2019). BatchBALD: Efficient and Diverse Batch Acquisition for Deep Bayesian Active Learning. Why a batch should account for information shared between examples instead of selecting only the highest individual scores.
  3. Houlsby, Huszár, Ghahramani, and Lengyel (2011). Bayesian Active Learning for Classification and Preference Learning. The Bayesian information-gain foundation from which BALD and its batch extensions develop.
  4. Adelani et al. (2023). MasakhaNEWS: News Topic Classification for African languages. The African-language news benchmark underlying the experiments; its original scope is broader than the language subset used in the cost study.