Learning how to Active Learn: A Deep Reinforcement Learning Approach
Paper · 2017 · Meng Fang, Yuan Li and Trevor Cohn
Summary
When annotation is expensive, the order in which researchers ask for labels can affect how much a tagger learns within its budget. A common strategy is to pick sentences on which the current tagger is least certain. That gives researchers a usable rule, but its judgments can be unreliable when the tagger has seen little annotated text. The authors study whether the rule for requesting labels can itself be learned where labeled data are plentiful and then applied where they are scarce. They test the idea on named entity recognition, the task of identifying and categorizing mentions such as names in text.
The proposed method, PAL, treats active learning as a sequence of decisions. Sentences arrive one at a time. For each sentence, a policy observes its content, the tagger’s probability estimates for individual words, and a confidence score for the predicted label sequence. It then decides whether the sentence is worth sending for linguistic annotation. A deep Q-network learns to make that decision by simulating annotation runs on a labeled source corpus. The simulation reveals a sentence’s labels only when the policy requests them. Changes in tagging performance on separate source data supply the reinforcement signal. Shared word embeddings give the policy a compatible representation of text in the source and target languages.
The evaluation uses the English, German, Dutch, and Spanish corpora from the CoNLL2002/2003 shared tasks. In the bilingual condition, the selection policy learns from English. In the multilingual condition, it learns from the languages other than the target. Both let the tagger learn from annotations as they arrive and allow the policy to adapt using held-out feedback. A cold-start condition transfers an English-trained tagger as well as a selection policy. During target selection, both stay fixed and the annotations arrive together after the selection is made. This condition calls for a single request to the annotator and requires no labeled target set to guide the request.
At a budget of 200 sentences, the PAL variants outperform random selection and uncertainty sampling on the reported comparisons for German, Dutch, and Spanish. The multilingual policy performs better than the bilingual policy, with a particularly clear early advantage for Dutch and Spanish. The cold-start variant gives the highest final scores among the reported configurations. It also starts with the benefit of a pretrained recurrent tagger, so its overall lead reflects a different experimental setup. In the budget comparison, PAL can reach the random strategy’s reported performance using as little as 10% of its annotation volume. The results demonstrate transfer of a selection policy within this entity-tagging task. The authors make the implementation available in the mengf1/PAL repository.
Deep dive: Learning how to Active Learn: A Deep Reinforcement Learning Approach
Learning how to Active Learn trains a policy to choose sentences for annotation and tests whether it improves entity tagging across languages. · about 36 minutes to read
The problem and its context
Labels are scarce at the point when they matter most
A supervised tagger learns from sentences whose words have already been assigned task-specific labels. For entity recognition, the annotations tell it where mentions occur and what categories they belong to. A corpus of unlabeled sentences supplies examples of language use, but a researcher still has to decide which of those examples to send to an annotator. If the same amount of work can produce training sets that yield different tagging performance, the choice of sentences becomes part of the design of the learning system.
Active learning addresses that choice. It gives the learning system a role in deciding which examples will acquire labels, with the aim of making the resulting annotations more useful for training. The objective is downstream performance on new text. A sentence can be hard to tag and still make a poor request if its annotation adds little to what the tagger already learns from other sentences. A sentence whose value seems modest in isolation may fill a gap in the current training set. The usefulness of a request depends partly on what has already been selected.
This dependence matters when an annotation project starts. Many of the strategies described by the authors rely on a seed set, an initial collection of labeled examples used to fit the first tagger. Its predictions guide subsequent requests. A project with a substantial seed set can start from judgments that already reflect some target-language evidence. A project with very few labels must ask the tagger to guide selection at the point when its judgments are least informed. In work on low-resource languages, setting aside enough labeled text to start the process can itself be a substantial demand.
There is a second demand if the selection rule is trained or adapted against measured performance. A researcher needs labels both for fitting the tagger and for checking what the fit achieves on separate text. The paper treats that second demand as a practical issue in its own right. Feedback helps a policy respond to a particular language, but obtaining feedback requires a labeled set with a different role from the sentences being selected. In some settings, access to an annotator also comes in a single batch. An approach that expects to learn from an answer before making its next request then asks for a kind of interaction the project cannot provide.
What earlier selection rules used as evidence
The paper organizes earlier approaches around the signals they use to judge a candidate. Uncertainty sampling uses the hesitation of the current classifier. Given a sentence, a sequence tagger can assign probabilities to possible labels at each position. A rule can summarize those probabilities and use the result to prioritize sentences. This is attractive because the selection signal is available from predictions the tagger already knows how to make. Its value depends on whether those predictions express uncertainty in places where additional labels would help.
Query by committee uses disagreement among predictors. An example becomes a stronger candidate when the committee gives substantially different answers for it. Here the relevant evidence is variation across predictions, which can reveal ambiguities that a single predictor’s confidence score may conceal. Expected error reduction comes at selection from the other direction. It estimates how much the learner’s loss would fall if an example were annotated and used for training. Each family gives a concrete interpretation to the vague instruction to find useful examples.
These rules are compatible with a changing tagger. After an uncertainty-based procedure obtains labels, the tagger can improve and produce different uncertainty scores on the remaining data. The rule for turning those scores into a request can still be fixed. That distinction matters for locating the paper’s contribution. PAL changes how the selection rule is obtained. It uses experience from annotation runs to learn how to act on signals that can include uncertainty, alongside signals that describe the current sentence itself.
The authors place their work in a line of active-learning applications to text classification, relation classification, and tasks with structured outputs. Their account includes earlier bilingual work that used uncertainty sampling jointly for English and Chinese, as well as uncertainty-based selection under minimal supervision. They identify a narrower gap than a lack of earlier multilingual work. Their question is whether researchers can learn a strategy for choosing which data to label and carry that strategy from a source language into a different target language.
This proposal is part of multilingual and cross-lingual NLP, with a particular object of transfer. A tagger transfers knowledge about how to predict labels. A selection policy transfers a way of deciding which examples to acquire. The distinction is operational. A target project can use a transferred policy alongside a tagger that learns during the target run. It can also transfer both together, giving the policy usable predictions before any target annotations arrive. The paper evaluates both forms.
Why make selection a sequential decision problem?
In a purely local view, the question is whether a particular sentence appears informative now. In a sequential view, a request has several consequences. It spends some of the annotation allowance, changes the training set, and can change what the tagger predicts on subsequent sentences. Passing over a sentence preserves the allowance and leaves the tagger in its current condition. A policy is a rule for making these choices as the run unfolds. Once active learning is expressed this way, entire runs provide experience from which a policy can learn.
There was precedent in the literature the authors review for using reinforcement learning to acquire information. They discuss work in information extraction that learns when to obtain external evidence. They also describe research that transfers policies by reusing their parameters across environments. Those studies give context to two parts of the proposal. Learning when to seek more evidence can be a decision problem, and a decision rule learned in one environment can be reused in another if the relevant signals can be expressed compatibly.
For PAL, the evidence being acquired is the annotation of a candidate sentence. The consequence of the acquisition is measured through the tagger trained on the growing set. The authors therefore need a way to repeat the decision process while measuring outcomes, plus a way to present different languages to the same policy. Simulation provides the first. A shared space for word embeddings, together with the same tagging task, provides the second.
The method, step by step
Follow an annotation run
Consider a run from the perspective of the selection policy. It receives a sentence and obtains the current tagger’s predictions for it. It can ask for labels or move on. If labels are requested and supplied during the run, the newly annotated sentence joins the tagger’s training data. The updated tagger can then give different predictions about the next sentence. The process continues until the annotation budget is spent or there are no sentences left.
The order of presentation is part of this procedure. The policy sees the current candidate as it arrives. Pool-based active learning instead gives a selector a set of remaining candidates from which to choose. The authors choose the streaming form to simplify the learning problem. The policy has a stable action space even as the supply of sentences changes. At an ordinary step, its available actions are to request labels for this sentence or to skip it.
A budget for accepted sentences leaves some freedom in the number of decisions. A skip moves the stream forward and spends none of the annotation allowance. An acceptance moves the stream forward and consumes some of that allowance. Thus the eventual training set depends on the arrival order as well as the policy’s choices. The authors call a complete run an episode. The same term applies when the run is simulated for policy training and when a policy is applied to a target corpus.
The following sequence brings together the simulation and the transfer. The tagger update after a request belongs to the interactive run. In cold start, the corresponding target update waits until the selection has been completed.
From simulated annotation to target-language selection
The steps in order.
The state, the actions, and the budget
The authors formulate a Markov decision process, a framework that describes sequential decisions in terms of states, actions, transitions, and rewards. The underlying state reflects the candidate sentence and the labeled data accumulated so far. The tagger trained on those data summarizes part of the acquisition history in a form the policy can use. Two visits to the same sentence can therefore look different to the policy if the tagger has had different training beforehand.
⟨S, A, Pr(sᵢ₊₁ ∣ sᵢ, a), R⟩
The angle brackets group the components of the process. S is the state space, the collection of possible states, and A is the action space. Pr is the transition probability. The expression inside it describes the probability of the next state sᵢ₊₁ given the current state sᵢ and action a, where i indexes the step and the vertical bar means “given.” R is the reward function for a state and its action.
A = {0, 1}
A contains the ordinary choices. Action 0 skips annotation for the current sentence. Action 1 requests its labels. Both actions advance the stream. When annotation is obtained interactively, action 1 also adds the labeled sentence to the training set and changes the fitted tagger. Reaching the end of the data or spending the budget ends the run. The termination rule sits alongside the binary choice, which is what the policy scores while the run is active.
The paper denotes the annotation budget by ℬ. It is a cap on labeled instances. In this task, the unit is the sentence. The policy may inspect more sentences than it ultimately sends to the annotator. The authors observe that although the design permits the policy to finish below the allowance, the experiment uses the available budget in practice. This makes the final comparison a comparison of training sets obtained under the same sentence cap.
The policy receives a compact observation of the state. The raw history of labels and decisions would grow as the episode progressed. The authors represent that history indirectly with the predictions of the current tagger on the candidate. The observation joins a vector describing the words in the sentence, a vector describing the per-word probability estimates, and a scalar confidence score for the tagger’s preferred complete labeling. Each part addresses a different question about the same candidate.
(h꜀, hₑ, C)
The parentheses group the inputs, which the policy receives by concatenation. The vector h꜀ encodes the content of the sentence, hₑ summarizes the predictive marginals, and C is the sequence confidence. A marginal gives the probability of a label at a particular position after accounting for the possible labelings of the remaining positions. The confidence score concerns the complete labeling that the tagger favors.
Represent the candidate’s words
The content component lets the policy respond to features of the text even when the tagger is weak. The authors convert each word in the candidate to an embedding, a vector in which position and direction represent learned properties of words. The embeddings come from a multilingual space. In principle, evidence a policy learns to associate with a feature of source-language text can become available in a target-language sentence represented in compatible coordinates. The paper uses the representations described in Massively Multilingual Word Embeddings.
Xᵢ = {xᵢ,₁, xᵢ,₂, …, xᵢ,ₙ}
Xᵢ is the matrix of embeddings for the candidate at step i. The entries written as xᵢ,₁, xᵢ,₂, and so on are the word vectors in sentence order. Their second index identifies the position of the word. The sentence has length n, and the ellipsis indicates the intervening positions. The matrix keeps the local ordering available to the encoder.
The content encoder is a convolutional neural network. A convolutional filter applies the same learned transformation to successive windows of words. A filter can respond to a local pattern wherever that pattern appears, while different window widths let the encoder examine groups of different lengths. Each filter applies a linear transformation followed by a rectified linear unit, or ReLU. That activation keeps a positive response and maps a negative response to zero.
The authors use wide convolution for this component and combine the responses with max pooling. Pooling reduces a collection of responses to a summary. Here each filter contributes its strongest response over positions. The resulting content vector can record that a feature occurred strongly somewhere in the sentence without requiring the next part of the network to receive the entire variable-length sequence. It has a fixed size even when the candidate sentence is short or long.
The reported content encoder uses filter widths of 3, 4, and 5, with 128 filters at each width. The shared embeddings have 40 dimensions and are fixed while the policy and tagger are trained. Keeping the embeddings fixed means that the source and target words are still expressed in the same coordinates when the policy is transferred. The network above the embeddings learns which local features to use for the selection task.
Represent where the tagger hesitates
The second component uses predictive marginals directly. For each word, the tagger gives a distribution over possible labels. A position can have one strongly favored label or several plausible labels. If those distributions are reduced immediately to a single sentence score, the policy loses information about how the uncertain positions relate to one another. The paper gives the boundary of an entity as a reason to retain local patterns. Nearby positions may show a recognizable distribution of probability when the tagger is unsure where a mention ends.
pᵩ(y ∣ xᵢ)
Here pᵩ is the predictive distribution produced by the tagger. The subscript ᵩ denotes φ, its fitted parameters. The bold sentence and label-sequence variables of the paper are written here as xᵢ and y. The first is the current sentence at step i and the second is a possible sequence of labels for that sentence. The vertical bar conditions the predictions on the input. The marginal input is obtained from the distribution as label probabilities for individual positions.
A separate convolutional network reads the resulting array of probabilities. Its window covers all label classes in height and adjacent tokens in width. The filter moves forward a token at a time, and zero padding at the ends allows the convolution to include positions near the sentence boundaries. Different filters can respond to different local configurations across labels and positions. In the authors’ notation, j is the number of filters and hence the number of feature maps they produce.
The predictive-marginal encoder uses 20 filters with width 3. ReLU is again the activation. This time the authors use mean pooling, averaging the feature responses to obtain a fixed-size representation. The averaging preserves a sense of how regularly a learned probability pattern occurs across the sentence. The completed vector hₑ goes to the policy as evidence about what the tagger currently finds easy or difficult in that particular input.
The use of local windows has a concrete consequence. Consider a sentence whose uncertainty is spread across neighboring words around a possible mention. Now consider a sentence whose ambiguous positions are dispersed. A total based on the amount of uncertainty can give similar scores to the two cases. The convolution sees different neighboring patterns and can represent them differently. The architecture makes such an association learnable. The paper’s experiments evaluate the complete policy and leave the precise associations its filters learn open.
Add a confidence score for the whole sequence
The third component describes the tagger’s favorite complete labeling. For a linear-chain conditional random field, or CRF, the authors point to Viterbi decoding as a way to find the highest-probability sequence. A linear-chain CRF predicts labels for a sentence jointly, taking the ordering of labels into account. Its favored sequence represents a complete annotation hypothesis. The probability of that sequence supplies one score for how strongly the tagger favors its own prediction.
C = (maxᵧ pᵩ(y ∣ xᵢ))^(1/n)
C is the confidence supplied to the policy. The maximum ranges over complete label sequences y. The term pᵩ(y ∣ xᵢ) is the probability the tagger with parameters φ assigns to a particular sequence for candidate xᵢ. The exponent takes the nth root of the highest such probability. The symbol n is the length of the sentence in words, written in the paper as the size of xᵢ. The root gives a length-adjusted confidence score so the policy can use a summary that is less directly tied to sentence length.
Sequence confidence and token marginals describe related aspects of the same prediction. The sequence score gives the policy a compact view of the overall strength of the best labeling. The marginals retain information about where doubts arise and which labels are involved. The content vector contributes evidence drawn from the words themselves. In PAL, the decision network learns to combine all of this information when estimating the value of asking for annotation.
Give useful feedback before the run ends
The outcome of a selection run is the tagger trained on the sentences acquired during it. One possible reward would be to measure that tagger only after the last request. A final score evaluates the assembled training set as a whole. It gives limited help with identifying the contribution of a particular request made much earlier. The authors supply feedback along the way using reward shaping. After an action, they measure the change in tagging performance on a separate labeled set.
R(sᵢ₋₁, a) = Acc(φᵢ) − Acc(φᵢ₋₁)
R is the reward for taking action a at the preceding state sᵢ₋₁. The index i distinguishes the fitted tagger after the action, φᵢ, from the preceding tagger, φᵢ₋₁. Acc is the evaluation function. In the experiments it measures F1 on held-out data. The subtraction gives the size and direction of the change. A request can produce a gain or a loss on that set. A skip leaves the training data as they were and provides no change in score when the tagger stays the same.
This reward makes the sequence of training sets observable through their successive scores. If the gains and losses are added without discounting, each interior score enters as both the end of one step and the start of the next. Those terms cancel, leaving the net change over the episode. The Q-learning objective also applies a discount, so it gives nearer changes more weight than later changes. Exact cancellation describes the undiscounted accounting of the rewards. The action values used by the policy instead represent the discounted return.
The held-out labels have a specific role in this mechanism. The policy requests training labels from the candidate stream, while the simulation measures gains using different sentences with known annotations. A request that improves the fit to its own sentence need not improve the score on the separate set. Rewarding the latter puts the learning signal closer to the goal of acquiring examples that help the tagger on unseen text.
Learn how to value a request
The authors use Q-learning to estimate how useful each action is in the context of the rest of the run. A Q-value looks beyond the gain observed immediately after one request. It also represents rewards that may follow as the tagger changes and the stream continues. A candidate may provide an immediate improvement, change how later candidates look to the tagger, or use budget that could have gone to a later candidate. Those consequences give the sequential objective its purpose.
Qᵖⁱ(s, a) = 𝔼[Rᵢ ∣ sᵢ = s, aᵢ = a, π]
The superscript pi on Q denotes the policy π. Qᵖⁱ is the value of taking action a in state s when subsequent behavior follows that policy. The expectation operator 𝔼 averages over possible continuations, under the conditions written after the vertical bar. At step i, the state sᵢ is s and the action aᵢ is a. The quantity Rᵢ is the future return starting from that step. Here R with an index refers to the accumulated return, while R written as a function of state and action gives an immediate reward.
Rᵢ = ∑ₜ₌ᵢᵀ γ^(t−i) rₜ
Rᵢ is the discounted return from step i, and the summation runs over the time index t from i through the final step T. The value rₜ is the immediate reward at step t. The discount factor γ lies in the interval from 0 to 1. Its exponent t−i is the number of steps between the current decision and the later reward. The experiments set γ to 0.99. This gives a reason to consider later improvements while gradually reducing the weight of more distant ones.
A deep Q-network, or DQN, approximates the action values. It receives the content vector, marginal vector, and sequence confidence as a single input. A hidden layer with a ReLU activation feeds scalar outputs for requesting labels and for skipping. According to the report, the final hidden layer has a size of 256. A decision can use the values to favor the action whose estimated return is higher. Because the input reflects the current tagger, the same learned network can favor different actions on similar sentences at different stages of annotation.
The Q-network learns from transitions. A transition records the observation before the action, the action actually taken, the reward obtained, and the following observation. The update uses the immediate reward and an estimate of the best continuation value as a regression target. In current-step notation, that target has the following form.
rᵢ + γ maxₐ Q(sᵢ₊₁, a; θ)
The term rᵢ is the reward at step i, γ is the discount factor, and sᵢ₊₁ is the resulting state. The maximum ranges over the available next actions a. Q is the value estimated by the network, with θ denoting its parameters. The semicolon in the formula separates the state and action inputs from the parameters that define the function. The continuation term estimates how useful the resulting state is if the agent then takes the action with the highest estimated value.
The authors store transitions in an experience replay memory, denoted by ℳ. Updates use small batches sampled from this memory. Each batch contains transitions that have already occurred, so training can reuse observations and rewards from different points in an episode. The paper writes the target with the earlier parameter values shown explicitly.
yᵢ(r, s′) = r + γ maxₐ′ Q(s′, a′; θᵢ₋₁)
Here yᵢ is the regression target at update i for a sampled transition with immediate reward r and next state s′. The prime marks the next state and the possible actions a′ in it. The maximum picks the highest estimated value among those actions. The parameters θᵢ₋₁ are the preceding parameters used to calculate the target. The discount γ weights that continuation value before it is added to the observed reward.
ℒ(θ) = 𝔼ₛ,ₐ,ᵣ,ₛ′ [(yᵢ(r, s′) − Q(s, a; θ))²]
The symbol ℒ is the loss as a function of the parameters θ being fitted. The expectation averages over sampled transitions with starting state s, chosen action a, reward r, and next state s′. For each sampled transition, yᵢ is the target just defined. Q(s, a; θ) is the current prediction for the action that occurred at the starting state. The loss squares the gap between the target and that prediction. The experiment uses ADAM with mini-batches of size 32 for the network updates.
Simulate on the source, then choose how to transfer
Policy training begins with a corpus whose labels are already known. At the start of an episode, the authors shuffle the sentences and conceal their labels from the selector. The policy encounters the sentences in that order. An accepted request reveals the existing annotation and lets the tagger train on it. The held-out set used for measuring rewards stays separate from the stream and is fixed across episodes. The policy thereby gets many opportunities to practice acquiring data against the same definition of performance.
After an episode, the tagger returns to its initial condition, while the policy carries forward what it has learned. This separation is central to the simulation. If the tagger simply continued training across episodes, the next run would start with knowledge of annotations requested in earlier runs. Resetting the tagger restores the conditions of a fresh annotation run. Shuffling changes the order of opportunities, and changes to the policy can produce different decisions. The experiments run 10,000 source episodes under a budget of 200 sentences.
Interactive transfer uses a learned policy to start a single target run. The embeddings place target words in the shared space, and the target tagger’s label probabilities have the same task-specific interpretation as those used in policy training. As the run progresses, the target tagger can learn from new annotations. The policy can also be adapted using changes in held-out target performance. That gives the target run a way to correct selection behavior in its new setting while keeping the expensive repeated simulation on the source side.
Cold-start transfer changes what is available during selection. It assumes a single opportunity to obtain target labels and no held-out target feedback for the policy. To supply informative predictions from the beginning, the authors pretrain a tagger in one language. They use that tagger to initialize the simulations in a different source language where the policy learns. The policy therefore practises selecting sentences with predictions from a cross-lingually initialized tagger. At target application, the pretrained tagger and learned policy work together to choose what to send for annotation. They remain fixed while the request is assembled.
When the selected cold-start labels arrive, they can be used to train the final target tagger for evaluation. This timing distinguishes learning from the acquired data from learning while acquiring them. The experiments ask how valuable the chosen sentences are once used for training. During cold-start acquisition itself, every sentence is judged with the benefit of the same transferred tagger and without the benefit of earlier labels from that target run.
Experiments and results
What each corpus split does
The authors use the entity-tagging corpora from the CoNLL2002/2003 shared tasks. The available languages are English, German, Spanish, and Dutch. Each corpus was annotated in the IOB1 scheme. The authors convert the data to IO, a tagging representation that indicates whether a token is inside an entity category or outside an entity. This conversion defines the form of the task used to train the tagger and the format of the probability outputs supplied to the selection policy.
The evaluation uses the corpus partitions named train, testb, and testa. In source simulation, the training partition supplies the stream with labels that can be revealed on request. The authors use testb as held-out data for computing rewards, and the reported final results are measured on testa. In target application, the selection is made from the target training partition. Thus the examples chosen for target training are distinct from the data used to report final tagging performance.
The reported metric is F1, a score that combines precision and recall. Precision reflects how often predicted entities are correct, and recall reflects how many of the annotated entities are recovered. The authors report F1 as a percentage for the final tagger trained on the selected sentences. They also plot performance at stages of acquisition. The curves address how quickly each method gets useful labels, while the endpoint addresses how well it spends the full budget.
The paper also asks a budget question. It uses random selection’s stated performance as a reference level and compares how much annotation the different strategies need to reach that level. This is a separate measurement from final F1. A method can offer an advantage by raising the final score at the same budget, by reaching the reference score sooner, or by doing both. The budget comparison measures annotated sentences, the resource that the experiment directly controls.
What changes across the transfer conditions
PAL_b is the bilingual configuration. It learns the policy on English and evaluates transfer to German, Dutch, and Spanish. In those target runs, the tagger is a standard linear-chain CRF. Annotation can be incorporated during selection, and held-out performance can guide adaptation of the policy. This condition asks whether a rule learned through repeated English simulations helps the tagger acquire examples in another language.
PAL_m is the multilingual configuration. For each target, the policy is trained with the other languages. The target still has its own acquisition run, and the tagger is again a linear-chain CRF. Here the source training exposes the policy to a broader set of languages before any target selection. Comparing PAL_m with PAL_b keeps the family of the tagger and the interactive format in common while changing the source data used to learn the policy.
PAL_c is the cold-start configuration. Its starting tagger is a recurrent neural network, or RNN, with a 128-dimensional hidden layer. A recurrent network carries information across token positions as it reads a sequence. In these experiments the tagger is pretrained on English and used to initialize policy learning in another source language. The authors then transfer the initialized tagger and the policy to a separate target language. The embeddings are the same type used in the other conditions. During the target selection pass, the tagger and policy are both fixed, with labels acquired in a batch.
The cold-start configuration gives the experiment a different starting point. The authors describe the curves as beginning around 40% with the pretrained tagger, compared with a start around 0% in the other setup. These are approximate initial levels, before the target annotations improve the final tagger. The difference is visible even for the baseline selectors because pretraining is part of the cold-start setup they operate in.
Approximate starting F1 by setup in the CoNLL target runs
English tagger pretraining gives the cold-start runs a higher starting score before target annotation.
The numbers
| System or setting | F1 % |
|---|---|
| Interactive bilingual and multilingual runs | 0 |
| PAL cold-start setup with an English-pretrained tagger (this paper) | 40 |
How the baselines choose sentences
Random sampling draws examples from the unlabeled pool without using the tagger’s predictions to prefer particular candidates. It shows what the learning procedure achieves when the annotation budget is spent on a random selection. Uncertainty sampling uses the tagger and chooses the candidate with the highest total token entropy. Entropy measures how spread out the probabilities are among possible labels. A position with several plausible labels can contribute more entropy than a position with a strongly favored label.
∑ₜ₌₁^|x| H(yₜ ∣ x, φ)
The sum runs over positions t from the first token through |x|, the sentence length. H is entropy, and yₜ is the label variable at position t. The vertical bar gives the information used to form its probability distribution, namely candidate sentence x and the tagger parameters φ. Each token contributes its entropy to the total. The baseline scores the pool and requests the sentence that maximizes this expression. The sum gives longer sentences more positions that can contribute to the score.
The authors use this baseline because earlier work identified total token entropy as a strong strategy on the CoNLL data among the approaches they describe as independent of the choice of learner. Their baseline can select the top-scoring sentence from the available pool at each step. PAL makes a binary choice on a streamed candidate. The comparison therefore puts the learned policy against an established uncertainty criterion with access to the pool. It also combines a difference in decision rule with a difference in how candidates are offered to the selector.
What happens as the budget is spent
In the interactive bilingual runs, PAL_b performs better than random sampling and uncertainty sampling across German, Dutch, and Spanish. The authors call attention to the beginning of annotation, when the uncertainty baseline is especially ineffective. They relate this to the limited quality of its initial tagger. A policy that also sees sentence content can use some evidence from the text while label probabilities are still of limited value. The curve comparison shows an early advantage for the whole learned selection procedure.
PAL_m improves further on PAL_b. The authors identify the early portions of the Spanish and Dutch curves as places where the advantage of multilingual source training is particularly marked. On those targets, training the policy across source languages helps before much target text has been annotated. The proposed explanation is that the policy may learn to use content information more effectively. The learning curves support the improvement in early performance, while the mechanism remains an interpretation.
In cold start, PAL_c also outperforms the random and uncertainty baselines. All of the selectors in this setting benefit from the pretrained initial tagger. The higher starting level therefore captures the contribution of that starting condition to the evaluation, while the comparison among selectors asks which procedure makes better use of the same opportunity to request labels. PAL_c’s advantage within cold start is evidence that the policy can act on the transferred predictions without updating from target feedback during the selection pass.
The full-budget comparison uses the final tagger trained on 200 selected sentences and measures performance on testa. Each PAL variant comes out ahead of the baselines in the reported comparison. The multilingual configuration improves on the bilingual one, and the cold-start configuration yields the strongest final results overall. The authors also report that PAL can reach random selection’s stated performance with as little as 10% of the annotation volume. That figure is the most favorable reported relative cost, measured against the random strategy’s performance. It describes a comparison of the quantity of annotation needed to reach a particular reference score.
Taken together, the endpoint and acquisition curves show an advantage that can matter before and after the full allowance is used. Early improvements matter when a project might stop after reaching adequate performance. The endpoint matters when the allowance is fixed and the goal is the best tagger obtainable with it. The comparisons support both ways of assessing selection while leaving the individual value of each component of the policy to a different kind of experiment.
What the ablations show
The paper reports configuration and baseline comparisons, with no component-removal ablation of the selection network. Its most informative comparisons change how the policy is trained or how it is applied, then examine performance over the target annotation run. The distinction matters because the experiment can establish that a configured procedure helps without measuring how much each input or architectural choice contributes.
More source languages improve the interactive policy
The comparison between PAL_b and PAL_m is the closest to a controlled test of the source training arrangement. Both use the interactive procedure and a linear-chain CRF. They differ in the language evidence used to train the policy. PAL_b receives English source experience, while PAL_m draws its experience from the languages excluding the target. The better reported performance of PAL_m shows a benefit from the multilingual training configuration as a whole.
That result leaves several explanations available. Additional languages broaden the range of sentences and predictions encountered in simulation. The source data also change in composition and may change in the amount of available experience with distinct examples. The comparison establishes the outcome of the training arrangements used in the paper. It leaves open how an equal quantity of data from a single language would compare with an equal quantity drawn across languages.
The early gains on Dutch and Spanish add information about when the source training difference matters. Near the beginning, the target tagger has acquired few of the labels that could later make selection easier. An advantage at that stage is consistent with the policy bringing useful prior experience into the run. The authors suggest better use of sentence content as a possible reason. Evidence about which inputs the agent actually uses would require additional control over those inputs.
Performance over time tests the practical value of the policy
The bilingual learning curves show a weakness of relying on the tagger’s uncertainty at the beginning of an acquisition run. The authors use that pattern to motivate their interpretation of PAL_b’s stronger start. The policy sees a sentence representation alongside its predictions, so its decisions can be informed before the tagger has become reliable on the target task. Later in the run, its prediction inputs can carry information from newly obtained target annotations.
The comparison with total token entropy places a useful boundary on that interpretation. PAL learns its decision rule, reads a separate representation of the words, observes local patterns in the marginals, uses sequence confidence, and acts in a stream. The baseline uses a fixed aggregate of uncertainty and draws from a pool. A lead for PAL is evidence about the combined selection approach. It leaves unanswered whether a learned rule over entropy alone, or a hand-designed rule with access to sentence content, could recover some of that advantage.
Similarly, the reward gives feedback at each step instead of relying only on the endpoint. The paper motivates this choice as a way to make learning easier over long episodes. The experiments do not independently compare the shaped rewards with an end-of-run reward. They show the behavior of the policy learned with the shaping in place. The same evidentiary distinction applies to the predictive-marginal encoder and the sequence confidence input.
Cold start tests a complete alternative setup
The comparison among methods within cold start asks whether a learned policy can improve selection using a pretrained tagger while target feedback is unavailable. PAL_c wins that comparison. It shows that during the target selection pass, useful judgments can be made without learning from previously requested labels. The ability to rank or accept useful examples under those constraints is directly relevant to a project that requests annotation in a batch.
The comparison of PAL_c against the interactive PAL variants changes more than annotation timing. The cold-start setup uses an English-pretrained RNN, while the interactive setups use a CRF. It changes the initial performance as well as the type of tagger and the availability of updates. The higher final F1 of PAL_c shows that the complete setup is effective. The starting curves explain why the authors draw attention to pretraining. The experiment does not isolate an effect of keeping the policy fixed or an effect of withholding intermediate labels.
The budget analysis provides another view of the same experiments. At full budget, the question is how useful the selected training set ultimately is. At the random strategy’s reference performance, the question is how many annotations it takes to get there. An advantage visible on both comparisons supports a broader account of the procedure’s performance than the endpoint alone. Neither measure identifies which part of the policy caused the advantage.
Limitations
Limits identified by the authors
The authors explicitly identify labeled held-out feedback as a requirement of the interactive transfer procedure. Such feedback makes it possible to adapt the policy to a target corpus by measuring changes in performance. It also uses annotations beyond those acquired for the tagger’s training set. Projects with very limited supervision may be unable to supply that separate set. The measured sentence budget for active selection therefore captures one part of the labeling requirements of interactive transfer.
They also note that an annotator in the loop has to return labels in time for later choices to use them. The tagger must be updated during that exchange. In a field setting, access to annotators and the ability to process new labels in real time may be limited. Cold start addresses these constraints by choosing the batch in advance. Its fixed target selection procedure gives up the opportunity to adapt the remaining requests in response to labels from the batch.
The same description makes the resources required by cold start clear. The procedure removes the need for held-out target labels during acquisition, but it starts with a tagger pretrained in another language. It also depends on a policy trained through labeled source simulations and a shared embedding space. It addresses scarcity at the target point of use by relying on resources assembled elsewhere. A project’s ability to use the procedure depends on the availability and relevance of those resources.
The authors choose a stream to simplify the selection problem and mention that an extension could score a batch and request the best candidates. The experiments reported here center on the streaming policy. Batch evaluation of candidates as a selection procedure is distinct from cold-start annotation being returned in a batch. The former would change how the agent compares opportunities. The latter determines when labels become available to train the target tagger.
Limits visible in the experimental design
The transfer demonstrated here is between languages on a single sequence-tagging task, within the CoNLL corpus family. The same task supplies a compatible set of prediction outputs for the policy’s marginal encoder and confidence input. Transfer to a different task could change the output categories or the shape of the predictions. Transfer to a different domain could change the sentence features or confidence patterns on which the policy relies. The experiments establish results under the shared tagging setup, leaving those other forms of transfer unmeasured.
The target languages have annotated benchmark corpora, even when the experimental protocol restricts what the policy can see. This lets the researchers simulate scarcity and measure the resulting taggers against established labels. It leaves open how the procedure would behave in a collection with different annotation conventions, more severe coverage problems in its embeddings, or field conditions that affect the quality of labels. The cold-start experiment controls the availability and timing of target feedback. It does not measure the broader conditions of a field annotation project.
A sentence budget gives each method a common unit of comparison, but it does not directly measure annotator time or monetary cost. Sentences can differ in length and in the work needed to identify the entities they contain. Total token entropy can also give long sentences more opportunity to accumulate a high score. The relative annotation volume reported by the paper should therefore be read in units of selected sentences. Equal sentence counts alone do not establish equal amounts of human effort.
The reported gains are against random sampling and the specified total-token-entropy baseline. The paper reviews query by committee and expected error reduction, but those families are outside the experimental comparisons. The study establishes a benefit over the alternatives it runs, in the settings it examines. A comparison against a broader range of policies, or against a selector using the same inputs with a different learning objective, would address how much of the result depends on deep Q-learning specifically.
The policy’s observation also compresses the state. The labeled history influences the tagger, and the tagger’s predictions on the candidate become inputs to the selector. Distinct annotation histories can still lead to similar observations on a given sentence. The listed inputs do not explicitly expose the remaining budget, the past requests, or the candidates that will arrive next. The agent can use experience about what tends to be valuable at each kind of observation. The setup gives it limited information for planning around the particular future of a target stream.
The paper describes the bilingual, multilingual, and cold-start rankings and reports the lowest relative annotation volume. Its account does not quantify the uncertainty of those rankings across stream orders or random draws. Shuffling during source training means the policy experiences different orders in simulation. That procedure does not by itself measure the variation in target performance due to order. The gains are empirical results for the reported comparisons, and their stability under different target orderings remains a separate question.
Finally, the paper’s two most visible comparisons answer different causal questions. The advantage of PAL_c over its baselines concerns selection with a shared pretrained starting point. Its advantage over PAL_b and PAL_m concerns complete systems that differ in tagger architecture, pretraining, and permitted feedback. Reading these together supports the usefulness of learned selection within cold start and the effectiveness of the overall cold-start setup. The relative contribution of pretraining, architecture, and feedback cannot be recovered from their final ranking.
What came after
The later papers that cite this work span several problems involving the value of examples or the transfer of supervision. Their documented connection is a citation. The scope of each paper identifies where that connection sits, while the citation alone leaves open whether it adopts PAL’s policy, uses it as a comparator, or discusses it as earlier work.
Entity tagging and reinforcement learning for extraction
Massively Multilingual Transfer for NER (2019) addresses transfer for the same tagging task at a massively multilingual scale. The shared subject is how information available in other languages can help entity recognition in a target language. PAL assigns one specific role to that information by using source experience to decide which target sentences to annotate. The later work’s stated scope is multilingual transfer for entity tagging. Its citation connects that wider transfer question to the earlier study of transferring an acquisition policy.
Robust Distant Supervision Relation Extraction via Deep Reinforcement Learning (2018) brings deep reinforcement learning to relation extraction under distant supervision. For PAL, the outcome of the action is a human annotation for an unlabeled sentence. The later paper’s subject places the learning decision in a relation-extraction setting with distant supervision. Both study reinforcement learning in connection with supervision for extraction, while the name of the later method alone leaves its action space, reward, and use of PAL undetermined.
Selecting examples for different uses
Active Example Selection for In-Context Learning (2022) studies example choice for a different stage of prediction. In-context learning uses examples presented in the input to help elicit the desired response. PAL chooses examples to be annotated and incorporated into the tagger’s training set. The connection is the decision to treat the choice of examples as a problem worth optimizing. Where PAL measures the quality of a selection through the tagger learned from labeled sentences, the later title places the chosen examples in the context supplied to the predictor.
Learning Simplifications for Specific Target Audiences (2018) concerns adapting text simplification to the needs of different audiences. That places the later work in a setting where the target determines what a useful outcome looks like. In PAL, a different target language can change which examples it is useful to annotate. In audience-specific simplification, the target specified in the title is a readership for the simplified text. The citation establishes a connection between the works. The stated scope does not identify reuse of the selection policy or its training procedure.
DOSE (2026) addresses data selection for multimodal language systems using off-the-shelf predictors. It returns to the broad question of how a separate selection process can make data more useful for a learner. PAL makes that relationship explicit by passing the current tagger’s predictions to the policy that selects its training data. DOSE’s stated domain is multimodal data selection. Its citation situates PAL in the history of that problem without establishing adoption of the binary stream, the F1 reward, or the cross-lingual transfer protocol.
Across these later settings, the job performed by the chosen data varies. An example can become annotated training material, serve as evidence in an input, or belong to a selection problem in a wider transfer or multimodal pipeline. PAL’s specific contribution is to connect the selection decision to the tagger’s performance through repeated source-language simulation, then test the learned policy in a target language where annotation can be requested only under a budget.
Cite
Cite as Meng Fang, Yuan Li and Trevor Cohn. 2017. Learning how to Active Learn: A Deep Reinforcement Learning Approach. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{fang2017learning,
title = {{Learning how to Active Learn: A Deep Reinforcement Learning Approach}},
author = {Meng Fang, Yuan Li and Trevor Cohn},
booktitle = {Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing},
year = {2017},
doi = {10.18653/v1/d17-1063},
eprint = {1708.02383},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/d17-1063}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/fang-2017-learning-how-active-learn-deep/
References
- Waleed Ammar, George Mulcaire, Yulia Tsvetkov, Guillaume Lample, Chris Dyer, and Noah A Smith. 2016. Massively multilingual word embeddings. arXiv preprint arXiv:1602.01925 . our card
- Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. 2015. Multiple object recognition with visual attention. In Proceedings of the International Conference on Learning Representations (ICLR). our card
- Yoshua Bengio. 2012. Deep learning of representations for unsupervised and transfer learning. In Proceedings of ICML Workshop on Unsupervised and Transfer Learning. pages 17–36. OpenAlex ↗ · Scholar ↗
- Meng Fang and Trevor Cohn. 2017. Model transfer for tagging low-resource languages using a bilingual dictionary. In Proceedings of the 55th Annual Meeting on Association for Computational Linguistics (ACL). OpenAlex ↗ · Scholar ↗
- Dan Garrette and Jason Baldridge. 2013. Learning a part-of-speech tagger from two hours of annotation. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (HLT-NAACL). pages 138–147. our card
- Yoon Kim. 2014. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods on Natural Language Processing (EMNLP). our card
- John D. Lafferty, Andrew McCallum, and Fernando C. N. Pereira. 2001. Conditional random fields: Probabilistic models for segmenting and labeling sequence data. In Proceedings of the Eighteenth International Conference on Machine Learning (ICML). pages 282–289. OpenAlex ↗ · Scholar ↗
- Guillaume Lample and Devendra Singh Chaplot. 2016. Playing FPS games with deep reinforcement learning. arXiv preprint arXiv:1609.05521 . our card
- Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. 2016. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research 17(39):1–40. OpenAlex ↗ · Scholar ↗
- David D Lewis and William A Gale. 1994. A sequential algorithm for training text classifiers. In Proceedings of the 17th International ACM SIGIR Conference on Research and Development in Information Retrieval. pages 3–12. OpenAlex ↗ · Scholar ↗
- Chris J Maddison, Aja Huang, Ilya Sutskever, and David Silver. 2015. Move evaluation in go using deep convolutional neural networks. In Proceedings of the International Conference on Learning Representations (ICLR). OpenAlex ↗ · Scholar ↗
- Andrew Kachites McCallumzy and Kamal Nigamy. 1998. Employing em and pool-based active learning for text classification. In Proceedings of the 15th International Conference on Machine Learning (ICML). pages 359–367. OpenAlex ↗ · Scholar ↗
- Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. 2015. Human-level control through deep reinforcement learning. Nature 518(7540):529–533. OpenAlex ↗ · Scholar ↗
- Arun Nair, Praveen Srinivasan, Sam Blackwell, Cagdas Alcicek, Rory Fearon, Alessandro De Maria, Vedavyas Panneershelvam, Mustafa Suleyman, Charles Beattie, Stig Petersen, Shane Legg, Volodymyr Mnih, Koray Kavukcuoglu, and David Silver. 2015. Massively parallel methods for deep reinforcement learning. In Proceedings of ICML Workshop on Deep Learning. our card
- Karthik Narasimhan, Adam Yala, and Regina Barzilay. 2016. Improving information extraction by acquiring external evidence with reinforcement learning. In Proceedings of the 2016 Conference on Empirical Methods on Natural Language Processing (EMNLP). OpenAlex ↗ · Scholar ↗
- Andrew Y. Ng. 2003. Shaping and Policy Search in Reinforcement Learning. Ph.D. thesis, University of California, Berkeley. OpenAlex ↗ · Scholar ↗
- Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. 2016. Actor-mimic: Deep multitask and transfer reinforcement learning. In Proceedings of the International Conference on Learning Representations (ICLR). OpenAlex ↗ · Scholar ↗
- Longhua Qian, Haotian Hui, Yanan Hu, Guodong Zhou, and Qiaoming Zhu. 2014. Bilingual active learning for relation classification via pseudo parallel corpora. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (ACL). pages 582–592. OpenAlex ↗ · Scholar ↗
- Nicholas Roy and Andrew McCallum. 2001. Toward optimal active learning through monte carlo estimation of error reduction. In Proceedings of the 18th International Conference on Machine Learning (ICML). pages 441–448. OpenAlex ↗ · Scholar ↗
- Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. 2016. Progressive neural networks. arXiv preprint arXiv:1606.04671 . OpenAlex ↗ · Scholar ↗
- Burr Settles. 2010. Active learning literature survey. University of Wisconsin, Madison 52(55-66):11. our card
- Burr Settles and Mark Craven. 2008. An analysis of active learning strategies for sequence labeling tasks. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP). pages 1070–1079. OpenAlex ↗ · Scholar ↗
- H Sebastian Seung, Manfred Opper, and Haim Sompolinsky. 1992. Query by committee. In Proceedings of the 5th annual workshop on Computational Learning Theory. pages 287–294. OpenAlex ↗ · Scholar ↗
- Dan Shen, Jie Zhang, Jian Su, Guodong Zhou, and Chew-Lim Tan. 2004. Multi-criteria-based active learning for named entity recognition. In Proceedings of the 42nd Annual Meeting on Association for Computational Linguistics (ACL). OpenAlex ↗ · Scholar ↗
- David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. 2016. Mastering the game of go with deep neural networks and tree search. Nature 529(7587):484–489. OpenAlex ↗ · Scholar ↗
- Karl Stratos and Michael Collins. 2015. Simple semi-supervised pos tagging. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT). pages 79–87. OpenAlex ↗ · Scholar ↗
- Cynthia A Thompson, Mary Elaine Califf, and Raymond J Mooney. 1999. Active learning for natural language parsing and information extraction. In Proceedings of the 16th International Conference on Machine Learning (ICML). pages 406–414. OpenAlex ↗ · Scholar ↗
- Katrin Tomanek, Joachim Wermter, and Udo Hahn. 2007. An approach to text corpus construction which cuts annotation costs and maintains reusability of annotated data. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL). pages 486–495. OpenAlex ↗ · Scholar ↗
- Simon Tong and Daphne Koller. 2001. Support vector machine active learning with applications to text classification. Journal of Machine Learning Research 2(Nov):45–66. OpenAlex ↗ · Scholar ↗
- Ziyu Wang, Tom Schaul, Matteo Hessel, Hado van Hasselt, Marc Lanctot, and Nando de Freitas. 2016. Dueling network architectures for deep reinforcement learning. In Proceedings of the 33rd International Conference on Machine Learning (ICML). OpenAlex ↗ · Scholar ↗
- Manuel Watter, Jost Springenberg, Joschka Boedecker, and Martin Riedmiller. 2015. Embed to control: A locally linear latent dynamics model for control from raw images. In Advances in Neural Information Processing Systems (NIPS). pages 2746–2754. our card
- Boliang Zhang, Xiaoman Pan, Tianlu Wang, Ashish Vaswani, Heng Ji, Kevin Knight, and Daniel Marcu. 2016. Name tagging for low-resource incident languages based on expectation-driven learning. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Language Technologies (NAACL-HLT). pages 249–259. OpenAlex ↗ · Scholar ↗