---
title: "LLMaAA: Making Large Language Models as Active Annotators"
description: "LLMaAA uses active learning to decide which texts a large language model should label, then trains a smaller system for information extraction."
canonical: "https://research.elamur.ai/free/en/papers/zhang-2023-llmaaa-making-large-language-models/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/zhang-2023-llmaaa-making-large-language-models/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / LLMaAA: Making Large Language Models as Active Annotators

# LLMaAA: Making Large Language Models as Active Annotators

Paper · 2023 · Ruoyu Zhang, Yanzeng Li, Yongliang Ma et al.

**Authors:** [Ruoyu Zhang](https://md.research.elamur.ai/free/en/authors/ruoyu-zhang/), Yanzeng Li, Yongliang Ma, [Ming Zhou](https://md.research.elamur.ai/free/en/authors/ming-zhou/) and Lei Zou · **Year:** 2023 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2023 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**57** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4389518684) · [Cited by **60** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/zhang-2023-llmaaa-making-large-language-models/cited-by/) · [Findings of the Association for Computational Linguistics: EMNLP 2023](https://aclanthology.org/volumes/2023.findings-emnlp/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.findings-emnlp.872/)
- [PDF](https://aclanthology.org/2023.findings-emnlp.872.pdf)
- [DOI 10.18653/v1/2023.findings-emnlp.872](https://doi.org/10.18653/v1/2023.findings-emnlp.872)
- [arXiv 2310.19596](https://arxiv.org/abs/2310.19596)
- [OpenAlex](https://openalex.org/W4389518684)

Citations: OpenAlex, 2026-10-14.

## Summary

A collection of text can be large enough to train an extractor and still tell it nothing about which words to mark or which relationships to report. People can supply those judgments, but doing so takes time. A [large language model](https://md.research.elamur.ai/free/en/concepts/large-language-models/) can supply them too, although its answers can be wrong and asking it to process every new input carries recurring costs. LLMaAA asks whether a large model can do a more limited job. It labels selected examples from an existing collection, and a smaller, task-specific model learns from those examples and handles new inputs.

The selection uses active learning. The smaller model trains on an initial batch and then helps choose the next batch by identifying inputs on which its predictions are uncertain. The authors improve the labels in different ways for the two tasks they study. For [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), which marks and types spans such as names of people or organizations, the annotator sees labeled examples similar to the text it must label. For relation extraction, which classifies the relationship between two given mentions, the prompt explains abbreviated labels in ordinary language. The experiments set aside 100 clean examples per dataset, using the same examples as a source of demonstrations and as a validation set. During training, the clean labels help determine how much influence each automatically labeled example should have.

With ChatGPT as the annotator and 500 automatically labeled training examples per dataset, the least-confidence version of LLMaAA achieves test micro F1 scores of 74.00% on Chinese OntoNotes 4.0, 82.84% on English CoNLL03, and 80.79% on the personal-relationship subset of Re-TACRED. It beats direct prompting of the teacher and the reported baselines that train on generated text or on the small clean set alone. Uncertainty-based selection makes better use of the label budget than uniform random selection in these experiments. Reweighting improves the students, although the paper also observes students overtaking their teachers with ordinary training loss. A simplified binary example illustrates how learning a dominant pattern from imperfect answers can produce more reliable decisions than those answers individually.

The result supports using a large service for a limited annotation phase and running the specialized extractor independently thereafter. That can reduce recurring requests and the need to transmit new production inputs, while the annotation phase still sends selected examples to the provider. The tested students depend on the quality of the teacher, the available text and clean labels, and the capacity of their own architecture. The authors make the code and data available under the name LLMaAA.

## Deep dive: LLMaAA: Making Large Language Models as Active Annotators

LLMaAA uses active learning to decide which texts a large language model should label, then trains a smaller system for information extraction. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### The expense of turning text into examples

In supervised learning, a sentence becomes a training example when the system also has an answer it can learn to reproduce. For entity recognition, the answer includes the location and category of each relevant mention. For relation extraction, it can be the relationship between a designated subject and object. A collection with many sentences and few answers may contain plenty of evidence about the task while supplying little usable supervision. Human [annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) fills that gap, and its cost grows with the number of cases that need judgment.

Direct prompting offers another way to obtain an answer. A service receives a task instruction and some text and returns a prediction. This puts the service on the path of every request. The authors point to the resulting token charges and delays, especially where many inputs must be handled or results must arrive quickly. They also point to the exposure involved in sending potentially sensitive material to a third party. The privacy motivation concerns where the system performs its work as well as how much work it delegates.

A specialized extractor and a hosted general-purpose service therefore have different costs. The extractor needs examples before it can do the job. Once trained, it can give predictions without contacting the annotation service each time. Direct prompting can start with very little task-specific preparation, but the service is involved again whenever a new input arrives. LLMaAA places the expensive prediction step upstream, where the answer can be retained as a label and used in training. That arrangement makes it worth asking which answers to buy and what to do with them when they are fallible.

#### Prompting supplies a label interface

The paper traces this use of prompting to research on [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) with [GPT-3](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/). A prompt can describe a job and show what a completed example looks like. An input with the answer omitted then asks the system to extend the pattern. The demonstrations are part of the request. The annotation model can use them without undergoing [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) for the task.

The related work reviewed by the authors had already established that this interface is sensitive to its design. Instructions and examples tell the annotator which aspects of a sentence matter and how to express the answer. Prior studies cited by the paper found large performance differences across prompts. The paper also describes work on automatically constructed prompts and work on [chain-of-thought prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/), where intermediate reasoning is used in an effort to improve performance on complex tasks. LLMaAA builds on the broader observation that a general-purpose annotator benefits from a carefully specified job. Its annotation design focuses on the relevance of the demonstrations and the meaning of the labels.

This matters particularly for [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/). People can understand the sentence and still disagree about what an annotation scheme asks them to report. An entity task might draw its boundaries in a precise way or restrict the kinds of names that count. A relation label can describe an ordered connection, so exchanging the subject and object changes the answer even though both refer to the same participants. A useful prompt transfers some of those conventions alongside the instruction to extract information. When its output will be used to supervise another system, an ambiguity in the prompt can propagate through many training examples.

#### Examples can be generated or annotated

The earlier literature reviewed in the paper uses large language models to obtain supervision in two ways. One way is to generate text and associated labels together. Earlier work used prompts to produce examples directly or to construct pairs of texts for a similarity task. ZeroGen and SunGen extended the generation approach to settings in which a smaller predictor could train on a synthetic dataset produced without labeled demonstrations. The appeal is that the procedure can supply inputs as well as answers when task data are scarce.

A synthetic input must itself be a useful example of what the final system will see. The authors emphasize that generated sentences can be of uneven quality or belong to a different distribution from the target text. A collection of grammatical sentences can still be poor training material if it presents a relation through the same obvious construction over and over. Neutralizing that problem requires more than checking that individual outputs make sense. The collection needs to contain the kinds of contexts in which the extractor will have to recognize the target information.

The other approach assigns labels to text that already exists. The paper cites work using language models as annotators for dialogue data. It describes AnnoLLM as using prompts and self-generated explanations to bring annotation performance to a level comparable to crowdsourced work in its setting. The authors also describe contemporary work by Bansal and Sharma on annotation for domain transfer. That work uses an active-learning criterion called conditional informativeness, which the paper presents as designed for a setting with noisy labels. LLMaAA belongs to the annotation line, where the existing text supplies the inputs and the teacher supplies answers that may need to be discounted during training.

Keeping the input fixed changes what the teacher is responsible for. For a relation example, the source corpus determines how the two mentions are introduced, what intervenes between them, and whether the sentence actually gives evidence of a relationship. The annotator decides how that evidence maps to the scheme. When text is generated for a specified relation, the generator decides both how the evidence looks and whether it supports the intended answer. The authors see the input pool as a way to preserve more of the variation in naturally occurring examples. They treat incorrect inferred labels as a remaining problem.

#### Active learning adds a decision before annotation

In the pool-based setting described in the [Active Learning Literature Survey](https://md.research.elamur.ai/free/en/papers/settles-2009-active-learning-literature-survey/), a collection of candidate inputs is available before anyone decides which ones to label. A training round yields a current predictor. A selection rule uses information about that predictor or the examples to request another batch. The batch receives labels and becomes part of the training collection, after which the procedure can repeat. Traditional versions discussed by the authors send that batch to human annotators.

The selection rule can look for uncertainty, diversity, or both. An uncertainty rule looks for examples that the current predictor has difficulty resolving. If the label clarifies a distinction the predictor has yet to learn, the example may have more training value than one it already handles with confidence. A diversity rule asks whether a batch covers different parts of the input space. It can avoid spending several annotations on near duplicates, even if those duplicates all seem uncertain. Each approach relies on an estimate made from the current predictor or its representation of the pool.

LLMaAA retains that iterative structure and asks a prompted teacher to perform the labeling step. The substitution matters because an example that is hard for the student can also be hard for the teacher. The student’s uncertainty helps decide where supervision might be valuable. The prompt helps the teacher deliver that supervision in the intended form. A training rule guided by clean data then helps determine how strongly the student should follow the answers it receives. These decisions address different sources of error and occur at different points in the loop.

### The method, step by step

#### Start with a pool, a teacher, and a student

LLMaAA starts with a pool of texts for which the learner has no usable training labels. It also has a small set of trusted examples. The paper calls trusted labels *gold* and the labels obtained from the teacher *silver*. A gold example can illustrate the task to the teacher or supply a reference answer for judging the student. A silver example becomes an input and target for student training. The distinction concerns where the label comes from and how the procedure uses it.

The system first needs a student capable of scoring the pool. It draws an initial seed batch at random, asks the teacher to annotate it, and trains the student on the resulting labeled examples. The current student supplies the information used to choose another batch. The teacher annotates that batch, and the training set grows. The process can continue until the planned rounds are complete. Future inputs are ultimately handled by the student chosen through validation.

How LLMaAA acquires labels and trains an extractor The steps in order.

The paper uses `𝒟_pool` for the remaining unlabeled pool and `𝒟_labeled` for the examples acquired so far. The current student is `M`. The acquisition function `f(·, M)` evaluates candidates in light of that student. The dot stands for the input on which the function operates. The selected batch is `ℬ`, and `b` is its size. After annotation, its inputs leave `𝒟_pool` and their labeled counterparts enter `𝒟_labeled`. The procedure has `t` acquisition rounds, where `t` is the chosen round count.

Selection and training matter to one another over time. Training changes the probabilities and representations that the student produces. Those outputs affect which unlabeled inputs the procedure acquires next. The next acquisition then changes the training set. A rule based on the initial student can therefore lead to a different collection from the same rule applied after several batches, even though the rule itself has stayed fixed. This is the sense in which the annotator is part of an active learning system. The teacher labels requests selected in response to the evolving student.

#### Make the teacher’s answer usable

A prompt specifies the task and the form of the answer. In a prompt with demonstrations, each example supplies an input slot and a completed output slot. The target goes at the end, in an input slot whose associated output is open. The paper describes the generation step as a choice among possible response sequences.

```
𝐲_q = argmax_𝐲 P_LM(𝐲 | T(𝒮, 𝐱_q))
```

Here `𝐱_q` is the query input, with `q` identifying the item under annotation. `𝒮` is the collection of demonstrations assembled for that query. It contains `k` labeled examples when the method uses nearest-neighbor demonstrations. An example is represented by `𝐱ⁱ` and `yⁱ`, its input and label, with `i` indexing the pair. `T` is the manually designed prompt template, which arranges the instructions, demonstrations and query. `P_LM` is the language model’s probability for a response sequence `𝐲` conditioned on the finished prompt. The vertical bar means “given,” and `argmax` selects the candidate sequence attaining the highest probability in the formulation. The equality identifies that response as `𝐲_q`, the generated answer for the query.

The output sequence is text. The annotation is the interpretation of that text in the task’s label space `𝒴`, where `𝒴` denotes the outputs accepted by the task. For relation extraction, the result is a relation class. For named entity recognition, the answer must identify spans and their types. This mapping matters because a fluent completion is useful only insofar as it encodes decisions the student can train on. The formulation describes the annotator in terms of a preferred sequence and does not require access to the teacher’s internal probabilities for acquisition. The scores used to choose training inputs come from the student.

#### Retrieve demonstrations for entity recognition

The entity recognition prompts draw their worked examples from `𝒟_demo`, the clean demonstration pool. LLMaAA follows the [study of in-context examples for GPT-3](https://md.research.elamur.ai/free/en/papers/liu-2022-what-makes-good-context-examples/), which retrieves examples by comparing vector representations of text. It uses [Sentence-BERT](https://md.research.elamur.ai/free/en/papers/reimers-2019-sentence-bert-sentence-embeddings-siamese/) to encode the demonstration texts and the query. A vector is a list of numerical features that gives the retrieval procedure a way to compare sentences. The hope is that closeness in this representation reflects [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/) relevant to the prompt.

The system retrieves the `k` closest demonstrations, where `k` is the number of neighbors requested. The experimental setting is `k` equal to 5. The gold labels attached to those neighbors go into the prompt along with their source text. The answer to the target remains unknown. Because different targets can have different nearest neighbors, the examples in the prompt can change with every query. The pool itself stays small and can be reused for many queries.

There are two retrieval decisions in the overall procedure. Active acquisition searches a large collection of unlabeled inputs for the next ones to label. Nearest-neighbor demonstration retrieval searches the small clean collection for examples to show the annotator after a query has been chosen. The first determines which texts receive a paid annotation. The second determines the context for producing each annotation. Their representations serve different purposes too. The teacher’s demonstrations are retrieved using Sentence-BERT, while the diversity rule for acquisition uses representations from the student’s encoder.

#### Explain the relation labels in ordinary language

For the relation task, the system receives the sentence and the two mentions whose relation is in question. The instruction needs to convey which mention occupies which role. An abbreviated category such as `per:parents` leaves room to mistake the direction of the relation. Either mention could be understood as the parent if the reader has only the string and the knowledge that it names a family relation.

The label verbalizer is a mapping from those category names to natural-language descriptions. The authors write templates that explain how to read each category in terms of the subject and object. This lets the annotator compare evidence in the sentence with the intended meaning of a class. The answer can then be interpreted using the original classification scheme. The verbalizer changes the information given to the teacher. The student still learns to choose among the categories defined for the task.

The authors use nearest-neighbor demonstrations for entity recognition and verbalized labels for relation extraction in the main annotation setup. They report little benefit from adding demonstrations to the relation prompt in their trials. The verbs and arguments in a verbalized definition can make the classification boundary clearer directly. The paper’s prompt comparisons thus concern different interventions in the two tasks.

#### Choose which inputs to label

Random selection is the acquisition baseline. It gives each example in the remaining pool an equal chance of inclusion. It requires no assessment of where the student is weak. If the pool represents the kinds of inputs encountered at test time, uniform sampling draws training examples from that same pool distribution. This makes it a direct comparison for the claim that the choice of examples matters under a fixed annotation budget.

Maximum entropy uses the entire predicted distribution over labels. For a classification input, the paper writes the selection rule as follows.

```
argmax_{𝐱 ∈ 𝒟_pool} [−Σ_{y ∈ 𝒴} P_M(y | 𝐱) log P_M(y | 𝐱)]
```

`𝐱` is a candidate input and `𝒟_pool` is the current unlabeled collection. The membership sign `∈` restricts the search to that collection. `y` indexes the possible labels in `𝒴`, and `Σ` adds the indicated terms across those labels. `P_M(y | 𝐱)` is the probability assigned by student `M` to label `y` given input `𝐱`. `log` takes the logarithm of that probability. The negative sign makes the sum an entropy score, and the brackets group the score whose maximum is sought. `argmax` selects the input at the top of the ranking. For a batch, the criterion is used to identify highly ranked inputs.

Entropy is larger when the prediction spreads probability across competing answers. For the relation task, a candidate can score highly because the student sees evidence for several relations or because it cannot confidently distinguish a named relation from absence of any target relation. The calculation sees the distribution, not just the winning class. Inputs whose winning class has the same probability can still have different entropies if the remaining probability is distributed differently.

Least confidence looks only at the probability of the leading prediction.

```
argmax_{𝐱 ∈ 𝒟_pool} [1 − P_M(ŷ | 𝐱)]
```

`𝐱`, `𝒟_pool`, `∈` and `M` have the same meanings as in the entropy rule. `ŷ` is the label the student predicts for the candidate `𝐱`, the one to which it gives the highest probability. `P_M(ŷ | 𝐱)` is that leading probability. The `1` represents the full probability mass, and subtracting the leading probability gives the amount outside the student’s preferred answer. The brackets enclose the score, and `argmax` picks the candidate with the greatest score. A smaller leading probability puts an example higher in the least-confidence ranking.

The diversity option uses `k`-means clustering. The student’s encoder supplies vectors for the candidates. The method normalizes them using the `l₂` norm, where `l₂` denotes Euclidean length, so the clustering uses vectors scaled to the same length. It groups them and selects the examples nearest the cluster centers. In this context `k` is the number of clusters, a different role from the number of demonstrations in a prompt. A center represents a region of the student’s feature space and the acquired example is a real input near it. The approach depends on whether that space captures distinctions relevant to the task at the time of selection.

#### Turn the scored inputs into task predictions

For named entity recognition, the paper studies flat entities. A prediction is a continuous span of tokens with a pre-defined category, and the task excludes overlapping spans. The notation `eᵢ` refers to an individual entity in the text `𝐱`, with `i` identifying the entity. The authors express the task as sequence tagging with BIO labels. A beginning tag starts an entity, an inside tag continues it, and an outside tag marks a token beyond any entity span. Beginning and inside tags carry the entity category. The student uses a [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) encoder to produce a vector for each token and a linear classification head with an activation to predict its tag.

The annotation request concerns the whole input, while the student’s classification head produces a distribution for each token. To apply an uncertainty rule at the input level, the token scores have to be pooled. The paper describes taking an average, a sum, or a maximum. An average summarizes uncertainty over the sequence, whereas a sum accumulates it, so a longer sequence has more opportunities to contribute to the score. A maximum reflects the most uncertain position. The experiments use average and sum pooling because those choices worked better empirically. That choice belongs to acquisition. The annotation still describes entities as spans and types.

For relation extraction, `e_subj` and `e_obj` denote the supplied subject and object mentions. `𝓡` is the set of pre-defined relations, and the label set is the union of `𝓡` with `{NA}`, the singleton set containing the no-relation label. Here `NA` means no target relation applies to the given pair. The student marks the mention spans with special boundary tokens before encoding the sentence with BERT. It joins the two entity representations and passes the concatenated vector to a linear classifier with an activation. The resulting distribution already concerns a single decision for the input pair, so it can be scored by entropy or least confidence directly.

The task definitions determine what a difficult example looks like. In entity recognition, the disagreement may turn on which tokens are in an organization name, on its type, or on whether any target entity is present. In relation extraction, both mentions are supplied and the remaining job is to assign an ordered relation or reject the available relations. The same acquisition principle can operate on both tasks because each student produces probabilities. The way those probabilities are organized follows the task’s prediction unit.

#### Let trusted labels guide the training weights

Once the teacher has produced a label, standard supervised training could give its example the same influence as any other item in the batch. That approach treats a mistaken label as a target to learn. LLMaAA instead uses automatic reweighting, following the technique of Ren and colleagues. The method asks whether the effect of an example on training is helpful as judged by clean validation data. A weight governs how much its loss matters for the student update.

```
|𝒟_val| ≪ |𝒟_pool|
```

`𝒟_val` is the clean validation collection and `𝒟_pool` denotes the unlabeled pool. The vertical bars count the examples in the enclosed collection. The double inequality symbol `≪` expresses the assumption that the clean collection is much smaller than the pool. The symbol `𝐰` in the paper denotes the collection of example weights. Each weight affects the loss contribution of a silver training example.

The objective uses validation loss to guide the weights. If training gives an example more weight, it changes the student’s update. The clean labels give a basis for judging the direction of that change. An example whose training effect is compatible with lower validation loss can receive more influence, while an example that would pull the student away from what the trusted data support can receive less. This criterion can pick up problems caused by incorrect labels. It can also change the influence of correctly labeled examples, since its immediate test concerns the effect on the student.

The paper calls this a meta-learning objective because it uses performance on one set to guide the treatment of examples in another. A fully nested calculation would have to evaluate weights through the student training they induce. The method uses an online approximation within training to avoid that nested optimization loop. The weights act on losses during training. They neither rewrite the teacher’s answer nor turn the training set into a new collection of verified labels. This distinction is visible in the error examples. A false entity annotation stays in the labeled batch, but it can contribute less to learning.

In the experiments, `𝒟_demo` and `𝒟_val` contain the same clean examples. Their roles have different interfaces. A demonstration is shown to the teacher as an example of the requested output. A validation example is shown to the student with a trusted answer against which its prediction can be judged. The authors also use validation performance to select a final checkpoint. Reusing the examples keeps the oracle-label budget small, while allowing the clean data to affect both the quality of annotation and the way the student learns.

### Experiments and results

#### What is in the three benchmarks

The two entity recognition datasets differ in language and in the categories that the student must predict. Chinese OntoNotes 4.0 contributes the Chinese portion of a corpus that includes several genres. The experiment uses person, location, organization and geopolitical entity types. Long inputs are split so each chunk stays within the encoder limit of 512 tokens. After preprocessing, the Chinese OntoNotes splits contain 15,724 training examples, 4,301 validation examples and 4,346 test examples. The training split supplies the pool. Its full size describes the selection opportunity, not the amount of silver supervision that a run obtains.

The English dataset comes from the [CoNLL 2003 shared task](https://md.research.elamur.ai/free/en/papers/sang-2003-introduction-conll-2003-shared-task/). The paper also calls it CoNLL03. It marks people, locations and organizations and includes a miscellaneous category. Its splits contain 14,041 training sentences, 3,250 validation sentences and 3,453 test sentences. The miscellaneous category is relevant to the paper’s concrete error analysis. The teacher sometimes assigns it to expressions that the reference annotation leaves unmarked.

The relation benchmark is a subset of Re-TACRED, a revision of the crowdsourced TACRED dataset. The full Re-TACRED inventory has 40 relation types. The authors select types concerned with personal relationships. A full inventory would make the prompts longer, raising concerns about the service’s input limit and the time taken by requests. The subset keeps instances of the selected relationships in the training, validation and test splits. The authors adjust the `NA` examples so their share matches that in the original data. They also rename `per:origin` to `per:nationality` for clarity. The reported result applies to this subset and the relation definitions used in its prompts.

#### How the comparisons are set up

For each dataset, the authors randomly draw 100 gold examples from the original validation split. The same draw supplies demonstrations and serves as the clean validation data. They start acquisition from the original training split, initially treating it as unlabeled. A randomly selected seed of 50 examples receives teacher labels. The active procedure requests 50 more per batch for 9 rounds. The full run supplies 500 silver training examples. The final comparison therefore involves choosing a small labeled collection from a much larger source, with answers to test cases held aside for evaluation.

ChatGPT supplies the annotations for the main experiments. The authors access OpenAI through Azure. The students use `bert-base-cased` for the English tasks and `chinese-bert-base-wwm` for the Chinese task. The encoder learning rates are 5e-5 for CoNLL03 and Re-TACRED and 2e-5 for OntoNotes. The other parameters, including the classifier, use a learning rate of 1e-4. Training uses [AdamW](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/) with epsilon set to 1e-6 and a linear warmup for the first 6% of optimization steps. The student training batch size is 8, which is separate from the number of examples acquired in an annotation batch. The authors train for 40 epochs and select the checkpoint with the best validation performance.

The measure emphasized in the main results is micro F1. Precision asks what share of the predictions are correct, and recall asks what share of the target items the system recovers. F1 combines the two, so a system that recovers many targets by predicting too freely can lose precision, while a system that predicts very cautiously can lose recall. Micro averaging pools decisions before forming the score. It yields an overall comparison across outputs, with frequent decisions having more influence than they would in an average that gives each category equal weight. The paper reports precision and recall as well.

Training-based methods are run with three random seeds. This allows variation in initialization and sampling to appear in the reported means and standard deviations. The Prompting baseline evaluates the teacher directly on test data with temperature set to 0. It is evaluated once under that setting. The implementation discussion notes that a service update can change results even with the same temperature, so that choice controls generation in the reported evaluation without fixing the service indefinitely.

#### What the baselines tell us

Prompting answers the deployment question. It applies the teacher to the test inputs using the same task-specific prompt improvements available to the LLMaAA annotator. That means the main student–teacher comparison is against a teacher equipped with retrieved demonstrations on entity recognition and verbalized categories on relation extraction. The baseline is meant to represent what direct use of the teacher could deliver with that prompt design.

Supervised training answers a question about the value of the acquired silver data. The student architecture trains on the small clean collection used by LLMaAA for demonstration and validation. A stronger score from LLMaAA shows the value of the full training arrangement relative to spending the same clean examples on a supervised student alone. The silver-trained version has more training examples and also uses the clean set differently. The comparison establishes an advantage for the arrangement as a whole instead of a comparison of clean and silver label quality on equally sized samples.

ZeroGen uses prompted text generation to synthesize labeled training examples. FewGen modifies the generation approach by including examples sampled uniformly from the clean demonstration pool. The demonstration count is 5 in FewGen, as it is in nearest-neighbor retrieval. For the comparison the paper considers synthetic training budgets of 500 and 5,000 examples. Its generation prompts use a default example in the zero-shot setting to indicate the requested output format. The zero-shot designation distinguishes this setup from FewGen’s use of sampled task demonstrations.

The generation baselines also train students, so they test a different route to supervised data under a similar prediction arrangement. LLMaAA starts from inputs in the original training distribution. A generator produces inputs along with the supervision, and what it generates must cover the same sorts of decisions that matter at test time. This sets up a comparison between an available corpus with acquired labels and a corpus assembled by prompting for examples.

#### What LLMaAA achieves

The least-confidence variant has the highest reported test micro F1 among the compared approaches on each dataset. With 500 silver examples, it reaches 74.00% for named entity recognition on Chinese OntoNotes 4.0 and 82.84% on English CoNLL03. On the personal-relationship subset of Re-TACRED, it reaches 80.79%. The paper reports the improvement over direct Prompting as 4% in average score across the benchmarks. It also describes the specialized systems as using fewer parameters and having lower inference latency than the teacher.

Verbalized ChatGPT prompting and LLMaAA on Re-TACRED-subset test micro F1 The specialized extractor scores higher than direct prompting of its teacher.

**The numbers**

| System or setting | micro F1 % |
| --- | --- |
| Direct ChatGPT prompting with verbalized labels | 73.77 |
| LLMaAA with least confidence (this paper) | 80.79 |

The Re-TACRED comparison shows what the student–teacher result means operationally. Both sides use the same relation inventory, and the teacher gets the natural-language descriptions that improve its direct performance. In LLMaAA, its answers on training inputs become supervision for a specialized classifier. That classifier is then evaluated against the benchmark reference labels. A higher test score means better agreement with the reference on this extraction task. It is compatible with individual silver labels remaining wrong and with the teacher being able to perform other tasks outside the student’s label inventory.

LLMaAA also exceeds the Supervised baseline. With the same small supply of trusted examples available, the larger corpus gives the system access to many additional contexts that the clean set alone cannot provide. The teacher makes those contexts usable for training by supplying labels. The result gives evidence that the extra supervision is effective even though its accuracy is imperfect.

The reported synthetic-data runs remain behind LLMaAA. The authors say that zero-shot generation falls short even with 10× more data. FewGen improves on generation with demonstrations, but the reported comparison still favors the annotated pool. The paper’s case study on Re-TACRED gives a concrete account of the difference. ZeroGen often produces simple sentences based on similar templates, whereas the source examples come from news. An easy-to-generate sentence can provide an unambiguous training target while doing little to prepare the learner for the varied contexts in which that relation appears in the benchmark. The case study makes a domain mismatch plausible. It does not separately measure how much of the overall performance gap is caused by the wording, the mix of contexts, or other differences in the generated set.

The paper measures efficiency primarily through the number of training examples needed to reach a score. This is an informative unit when the procedure is designed to request labels for a limited number of inputs. Other units depend on the system around that procedure. A prompt with several demonstrations consumes additional input tokens, and a pool-based round requires student computation before a batch is sent for labeling. The test scores establish the performance of the resulting extractors at the reported annotation budgets.

### What the ablations show

#### The prompt changes the quality of supervision

The authors compare direct annotation with plain instructions against direct annotation with their task-specific improvements. For entity recognition, removing retrieval also removes the in-context examples. The resulting evaluation is zero-shot. The paper describes F1 drops of 21% on OntoNotes and 25% on CoNLL under this change. These are reported drops for the annotator’s predictions. The result shows that letting the teacher see relevant completed examples matters in this setup. It does not isolate the contribution of nearest-neighbor retrieval from the contribution of having demonstrations at all. That would require a comparison with a prompt containing the same number of demonstrations chosen by a different rule.

The relation comparison changes the representation of the available classes. Plain instructions yield 70.94% F1 on the Re-TACRED subset. The prompt with natural-language label descriptions yields 73.77%. In this task the teacher must classify a particular ordered pair, and the added definitions spell out the decisions associated with the classes. The gain supports that prompt design for the relation inventory under study. It does not indicate that a common prompt intervention was responsible for the improvements on both tasks.

The annotation examples illustrate what such changes still leave unresolved. In the correct CoNLL example, the teacher identifies Celtic as an organization and Jackie McNamara as a person. In a trade report, it finds Finland, the National Customs Board and its abbreviation, and it also marks April, March and Thursday as miscellaneous entities. The extra entity judgments are errors under the reference scheme even though the words actually occur in the sentence. This shows how a label can be wrong through over-extraction without an invented span. For the student, each additional span would teach the wrong boundary or category decision unless its influence were limited or offset by other training examples.

#### Uncertainty buys more learning per annotation

The acquisition analysis compares random selection, maximum entropy, least confidence and the clustering rule. It tracks F1 as the labeled collection grows, using direct Prompting as a reference level. The plots summarize three runs for each method. This comparison is about the value of the selected inputs while the annotation workflow is kept in place. A strategy that achieves a given F1 at a smaller labeled-set size has saved annotation requests for that comparison, even if a longer run eventually produces a higher score.

Both uncertainty rules improve more quickly than random sampling and finish with higher F1 in the reported experiments. The paper says they can match the random strategy’s performance using 30%~ 40% of the training data. It also reports that they consistently pass direct Prompting within 500 teacher-labeled examples. These observations explain why the method’s endpoint scores tell only part of the story. The sequence of batches determines how soon the student reaches a level of performance at which the annotation process might stop.

The clustering rule improves over random selection on OntoNotes and gives similar results to random selection on CoNLL03 and Re-TACRED. The authors suggest that a BERT encoder trained on very few task examples may not yet represent the differences that make a diverse batch useful. If nearby vectors fail to correspond to useful similarities for the task, choosing one example from each cluster can cover the representation without covering the distinctions that future supervision needs to teach. The curves establish the mixed performance of the clustering variant. The proposed explanation about representation quality is an interpretation, since the study does not independently assess how the feature space changes.

#### Reweighting helps most where the teacher struggles

To examine automatic reweighting, the authors remove the online example weights and train the students using standard loss objectives. They plot the learning curves and the direct Prompting reference. The weighted versions improve performance across the reported datasets and methods, with clearer gains on OntoNotes and Re-TACRED and a smaller gain on CoNLL03. The clean validation set contains 100 examples in this comparison.

The authors connect that pattern to teacher quality. Where the teacher produces weaker annotations, a clean validation signal can help the student avoid following mistakes too strongly. Where the silver labels already carry more usable supervision, the weights have less to correct. This is an explanation for the pattern of performance gains. The experiment compares the resulting predictors and does not directly classify all acquired labels as correct or incorrect or show that the weight is a calibrated measure of correctness. A low weight is a judgment about how an example affects training under the validation objective.

One observation separates the contribution of the weights from the broader student–teacher result. Students sometimes surpass direct Prompting even when training uses standard loss. Reweighting therefore improves a process that can already learn a stronger extractor under the tested conditions. The paper relates that observation to findings in distillation, where one system learns from another system’s predictions, and in pseudo-label learning, where predictions on previously unlabeled text become training targets.

#### Changing the teacher changes the student’s ceiling at a fixed budget

On Chinese OntoNotes 4.0, the authors use GPT-3, ChatGPT and [GPT-4](https://md.research.elamur.ai/free/en/papers/openai-2023-gpt-4-technical-report/) as alternative annotators. They restrict this comparison to OntoNotes because of budget constraints. LLMaAA uses least confidence and trains with 500 silver examples for each teacher setting. Direct Prompting supplies the comparison for each teacher. Within these conditions, stronger teachers produce stronger students, and the students outperform their corresponding prompted teachers.

The largest reported improvement is with GPT-3, described by the authors as 27% in F1 on OntoNotes. The difference shrinks with stronger teachers. Relative improvement and usable absolute performance answer different questions here. A weaker teacher can leave considerable room for a student to improve without supplying labels good enough to yield a student ready for an application. With a fixed annotation budget and student architecture, the authors expect improvements in the teacher eventually to run into limits on what the student can learn. They leave larger budgets and different students for future study.

#### An idealized explanation for a better student

The authors illustrate the student–teacher result with binary classification. The illustration re-expresses the outcomes for analysis so that `y = 1` denotes the correct label and `y = 0` denotes the incorrect one. `y` is the encoded label, and equality identifies what each of the two values represents. This is an encoding for reasoning about the learning problem. A real student sees the teacher’s hard labels and does not receive an indicator of whether each prediction is correct.

The example supposes that the teacher is correct with probability `p`, where `p` is greater than 0.5. The input distribution is discrete, reflecting the paper’s view of text inputs as discrete. For the illustration, the teacher’s label on a sampled input is a Bernoulli draw with the same success probability `p`. A Bernoulli draw is a binary random outcome with a specified probability of the positive value. The student is assumed expressive enough to represent the function that minimizes expected cross-entropy.

```
min_θ 𝔼_{𝐱_t ∼ 𝒟(𝐱), y_t ∼ ℬ(p)} [
    −y_t log S(𝐱_t; θ) − (1 − y_t) log(1 − S(𝐱_t; θ))
]
```

`min_θ` means to minimize by choosing the student parameters `θ`. `𝔼` denotes expectation, the loss averaged under the distributions specified underneath it. `𝐱_t` is the sampled input, with the subscript `t` identifying the draw in this illustration. `𝐱` is the input variable and `𝒟(𝐱)` is its distribution. The sign `∼` means that a variable is drawn from the distribution to its right. `y_t` is the teacher’s binary label for the sampled input. `ℬ(p)` denotes the Bernoulli distribution with probability `p` of the correct encoded label. Its `ℬ` has a separate meaning from the acquisition batch. The comma inside the expectation lists the random quantities being averaged over.

`S(𝐱_t; θ)` is the probability the student assigns to the encoded positive value for the input, with the semicolon separating the input from the parameters in the function notation. `log` is the logarithm. The first term contributes when the teacher label is positive, and `1 − y_t` activates the second term for the other label. The quantity `1 − S(𝐱_t; θ)` is the probability the student assigns to that other label. The minus signs convert log probabilities into losses. The brackets enclose the loss being averaged, and the parentheses group the arguments and complements.

```
S(𝐱; θ) = p
```

In this expression, `S` is the student’s probability of the positive encoded label, evaluated at input `𝐱` with optimized parameters `θ`. The equality gives the optimum under the stipulated noise process. `p` is the teacher’s probability of supplying the correct label. Cross-entropy fits that probability because, under the assumptions, it is the common rate at which the positive label is observed.

```
ŷ = 1 if S(𝐱; θ) > 0.5
```

`ŷ` is the student’s decoded prediction. `1` denotes the correct class in the illustration, `S(𝐱; θ)` is the fitted positive-class probability, and `>` compares it with the cutoff of `0.5`. Since the assumed `p` is above the cutoff, the decoded decision is the correct encoded class. The probability estimate matches the teacher’s success rate in the toy process, while the thresholded decision always chooses the more frequent outcome. The distinction between the probability estimate and the discrete output is what allows the example to exhibit improvement.

The real benchmarks have structured or multiclass outputs, finite training sets and errors that may recur on particular kinds of sentences. The authors observe that even a teacher whose response is deterministic at temperature 0 produces a mix of correct and incorrect answers across a distribution of inputs. The existence of that mix alone does not establish the toy example’s common per-input probability. A high average accuracy can still conceal a group of inputs with systematic errors. The authors present the binary case as intuition and leave a rigorous explanation of the empirical result open.

### Limitations

#### Limits the authors state

LLMaAA assumes access to a relevant unlabeled pool and a small collection of trusted labels. The authors explicitly distinguish those inputs from the setup of methods such as ZeroGen and SunGen. When a task has no suitable text collection, the selection procedure has nowhere to look for useful examples. When it has no trustworthy task labels, the demonstration and reweighting steps lose their reference. The authors argue that unlabeled text is available in many practical settings. They limit the required clean set to 100 items per dataset and reuse it across stages to reduce the labeling burden.

The paper also states that annotation quality and student capacity constrain what can be achieved. GPT-3 is its example of a teacher whose annotations can be too weak to produce a student suitable for use, even when the student scores higher than that teacher. In the other direction, the student architecture limits the task performance that training can reach. A teacher above that limit could remain ahead of the student. The paper tests simple BERT-based students and leaves alternative architectures and larger acquisition budgets for exploration.

The authors rely on proprietary OpenAI services for their experiments. They identify the possibility that the teacher may have encountered benchmark test data, since it is accessed as a black box. They regard their analysis as supporting the method’s effectiveness in spite of that concern. The studies with several annotators show that the result is not confined to one teacher configuration on OntoNotes. They do not establish the contents of any teacher’s pretraining data. The implementation notes add that updates to ChatGPT and GPT-4 can change their outputs at the same temperature.

The ethics discussion identifies risks beyond the aggregate extraction scores. Automatically produced labels can carry bias or toxic content, and a downstream extractor can miss real information or present an incorrect extraction as fact. The paper mentions debiasing and manual checking as ways to mitigate those risks. Its reported benchmarks measure extraction quality using reference annotations. They do not evaluate whether those mitigation measures change the behavior of LLMaAA.

#### Limits visible in the evaluation

The benchmark tasks are tightly specified. Flat entity recognition excludes overlapping spans. Relation extraction is evaluated with the subject and object supplied, and the inventory covers selected personal relationships. The relation result therefore measures classification of an identified pair within that inventory. It does not measure all the work required for extracting relationships from unrestricted documents, where mention detection and decisions about which pairs to consider could contribute further errors. The fact that the full inventory would lengthen the prompt connects label coverage to the method’s own service costs.

The study uses text drawn from the same benchmark as the test data for its annotation pool. That is an appropriate setup for asking whether a learner can exploit a collection that resembles its deployment inputs. It gives less evidence about a deployment where the available pool comes from another genre or contains few examples of important cases. The generation comparison also gives the systems different sources of information by design. LLMaAA has the original pool. Zero-shot generation is asked to create useful inputs itself. The results support the pool-based method when that resource is available. They cannot settle which approach would work best in a setting with no representative pool.

The reused gold set makes the experiments economical and places several demands on the same small draw. Its labels help convey the task, guide the training weights and select a checkpoint. Each use creates a way for the content of the gold set to affect performance. A clean collection with limited coverage could guide the learner less effectively for unusual categories or constructions. The held-out tests establish the overall results for the benchmark setup, but the paper does not independently vary the coverage of the clean set or compare shared and separate demonstration and validation collections.

There is also a difference between uncertainty that is useful to resolve and uncertainty that merely identifies a difficult case. The study shows a net benefit from selecting inputs with uncertain student predictions. It does not give a separate account of teacher error rates on all queried difficult cases or show that each requested label was more informative than a random one. The learning curves evaluate the strategy at the level at which it is used, over cumulative acquisitions. Performance by rare category or by type of annotation failure would require more specific evidence than overall micro F1.

The privacy and cost implications follow from moving the teacher out of routine inference. The experiments still send selected pool inputs to an external annotator, and prompts that use demonstrations can send trusted examples too. The paper does not provide a formal privacy guarantee for that stage. Its data-efficiency comparison also does not itemize total monetary cost or measure end-to-end latency for the full pipeline. The number of requests saved at inference, the token cost of an annotation, and the computation needed to score a pool are different quantities. The experiments establish the accuracy and label-budget tradeoff under the reported setup.

Finally, the binary explanation relies on above-chance supervision under a simple noise assumption and on a highly expressive student at an expected-loss optimum. LLMaAA’s experiments use deterministic hosted teachers for specific inputs, finite samples, restricted student architectures and structured decisions. A consistent result across the tested datasets supports the empirical claim that the student can surpass its teacher on those tasks. A general account of when active acquisition and hard-label training will remove systematic teacher errors remains outside the demonstration.

### What came after

LLMaAA connects the choice of which inputs to label with the choice of how to obtain training data and judge its reliability. Later papers cite it from several of those directions. Their titles identify the questions they bring to the conversation. A citation on its own establishes that connection without establishing that the later work reused LLMaAA’s acquisition rules, prompts or weighting procedure.

[Generative Information Extraction](https://md.research.elamur.ai/free/en/papers/xu-2023-large-language-models-generative-information/) surveys the area in which LLMaAA carries out its experiments. The connection is the role of generation in an extraction system. In LLMaAA, a general-purpose generator produces training annotations, and a specialized extractor makes the eventual task predictions. That division puts the paper at the intersection of generative extraction and the construction of supervised data for conventional extraction.

[On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation](https://md.research.elamur.ai/free/en/papers/long-2024-llms-driven-synthetic-data-generation/) surveys how synthetic data is produced, selected and judged. LLMaAA’s comparison between generated inputs and acquired labels bears directly on those topics. A corpus can combine existing text with synthetic supervision. Its quality then depends on both how well the text represents the intended use and how well the generated labels agree with the scheme. The generation baselines and the reweighting experiment address different parts of that quality question.

[The Effectiveness of LLMs as Annotators](https://md.research.elamur.ai/free/en/papers/pavlovic-2024-effectiveness-llms-annotators-comparative-overview/) takes up annotation quality through a comparative overview and empirical analysis of direct representation. LLMaAA supplies a reason to keep two kinds of performance in view. A teacher can be evaluated as an annotator through agreement with reference labels, and its labels can be evaluated through the downstream predictor that learns from them. The prompt ablations concern the first kind of performance. The student learning curves and the teacher comparison concern the second.

[Can Unconfident LLM Annotations Be Used for Confident Conclusions?](https://md.research.elamur.ai/free/en/papers/gligoric-2025-can-unconfident-llm-annotations-be/) asks about the usefulness of annotations under uncertainty. In LLMaAA, uncertainty belongs primarily to the student at the moment it chooses an input, while silver-label reliability is addressed through prompting and validation-guided training. Putting the studies’ questions side by side clarifies that confidence in a particular answer, confidence in what the student has learned, and confidence in a downstream conclusion concern different objects. [Detecting Label Errors and Mitigating Their Effect on Model Performance](https://md.research.elamur.ai/free/en/papers/nahum-2025-are-llms-better-than-reported/) addresses a related issue on the measurement side. Its focus is errors in labels that affect reported performance. LLMaAA’s treatment of label noise centers on errors in supervision that affect learning.

[From Selection to Generation](https://md.research.elamur.ai/free/en/papers/xia-2025-selection-generation-survey-llm-based/) surveys active learning with large language models. LLMaAA is a case in which the learner selects an existing input and the teacher generates its annotation. That arrangement separates the decisions about what data to acquire and how to complete it. [Reassessing Active Learning Adoption](https://md.research.elamur.ai/free/en/papers/romberg-2026-reassessing-active-learning-adoption-contemporary/) approaches contemporary NLP through a community survey. Its subject is adoption, which raises a different question from benchmark performance. LLMaAA shows that selective querying can improve the use of an annotation budget in the tested tasks. A study of adoption asks how active learning figures in the work people actually undertake.

[LLM-Based Annotation and Dataset-Agnostic Evaluation of Cognitive Distortions](https://md.research.elamur.ai/free/en/papers/sharma-2026-consistent-detection-cognitive-distortions-llm/) brings annotation and evaluation into another detection setting. Its focus on consistency across datasets relates to a condition underlying LLMaAA’s own comparisons. The teacher and the student are judged against a particular label scheme with particular boundaries. The paper’s entity demonstrations and relation descriptions are ways to transmit those boundaries to a teacher. Evaluating consistency across datasets raises the question of how judgments carry over when the source or its conventions change.

## Cite

Cite as Ruoyu Zhang, Yanzeng Li, Yongliang Ma, Ming Zhou and Lei Zou. 2023. LLMaAA: Making Large Language Models as Active Annotators. Findings of the Association for Computational Linguistics: EMNLP 2023.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2023.findings-emnlp.872](https://doi.org/10.18653/v1/2023.findings-emnlp.872) · [arXiv 2310.19596](https://arxiv.org/abs/2310.19596)

```bibtex
@inproceedings{zhang2023llmaaa,
  title = {{LLMaAA: Making Large Language Models as Active Annotators}},
  author = {Ruoyu Zhang, Yanzeng Li, Yongliang Ma, Ming Zhou and Lei Zou},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2023},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.872},
  eprint = {2310.19596},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2023.findings-emnlp.872}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
