TECHNOLOGY

modAL active learning: query history, pool identity and independent evaluation

In this article
THE QUICK TAKE

Actively queried examples reflect a model-dependent selection policy; their label distribution is not a random estimate of the source pool.

Query strategy chooses where labeling effort goes

modAL’s ActiveLearner combines an estimator with a query strategy. The uncertainty documentation distinguishes uncertainty, margin and entropy criteria. These rank examples according to the current model’s outputs rather than sampling an automatically representative view of the whole source population.

Name the criterion, model revision and candidate pool used for each round. Similar query counts can describe very different labeled datasets when their starting models or eligibility rules differ.

Stable identifiers must outlive pool positions

A query result can be used to select examples from the supplied pool. After pool updates, positional indices can refer to different records. Store stable record identifiers with every selection rather than relying on an index copied from a previous array revision.

Define what happens after an example is labeled: removal, relabeling eligibility or another explicit policy. A caller’s pool-maintenance logic is part of the experiment. Querying a model does not by itself establish that previously labeled records cannot be selected again.

Teach and fit have distinct state behavior

The ActiveLearner documentation describes teach as augmenting known training data and refitting the estimator. It distinguishes fit, which starts from the newly provided data under that interface. Choosing between them changes the training population represented by the learner.

Keep the annotation round and update method in the history. Also inspect the underlying estimator’s own training behavior before assuming that every teach call performs an incremental parameter update. The wrapper’s data-management contract and the estimator’s optimization contract are separate concerns.

Acquired labels are a selected population

An uncertainty-driven dataset can overrepresent ambiguous, unusual or poorly modeled examples. That can be useful for model development, but its class frequencies do not directly estimate the original pool’s prevalence. Confidence errors can also steer selection away from confidently wrong examples.

Maintain an independent evaluation population appropriate to the intended use. Reporting quality only on the actively acquired set changes the evaluation question. Compare acquisition policies under declared labeling budgets and a shared evaluation design instead of treating any uncertainty score as a universal usefulness measure.

Replay the round rather than only its seed

A proposed acquisition manifest stores pool revision, stable selected identifiers, selection scores, model artifact, returned annotations and update operation. If a tie or random choice occurs, retain the relevant randomness settings as well.

This supports investigation of how a dataset came to exist. No labeling-efficiency gain is asserted here. The practical boundary is that a reproducible active-learning result needs its selection history and evaluation design, not just a final table of labels and an algorithm name.

Primary references

modAL ActiveLearner guide.

modAL uncertainty sampling guide.

modAL project documentation.

Related explanations: Evaluation independence; Target-label contracts.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles