Active Few-Shot Learning for Text Classification
Paper · 2025 · Saeed Ahmadnia, Arash Yousefi Jordehi, Mahsa Hosseini Khasheh Heyran et al.
Summary
When only a small amount of text can be labeled, choosing the examples becomes part of the learning problem. A collection that covers the task well may teach a classifier more than an equally large collection of repetitive or uninformative examples. “Active Few-Shot Learning for Text Classification” investigates this choice. Instead of accepting a randomly assembled support set—the labeled examples available for learning—the authors select examples from an unlabeled pool, reveal their labels, and repeat the process after training a classifier. Their question is practical: how much can careful selection improve classification under a restricted annotation budget?
The paper brings together few-shot learning, which learns from limited supervision, and active learning, which chooses what should receive supervision next. Its selection strategies use complementary signals. Clustering seeks examples that represent different regions of the available data. Uncertainty seeks examples about which the current classifier has difficulty deciding. The recommended strategy starts with examples near cluster centers, then repeatedly divides the remaining pool into clusters and chooses an uncertain example within each cluster. This gives the learning process both breadth and opportunities to resolve its current doubts.
The experiments cover news categories, review ratings, and several aspects of expressed attitudes. BART and FLAN-T5 are adapted through fine-tuning, while instruction-following alternatives receive labeled examples in their prompts. The main experiments examine support sets with sizes drawn from {10, 20, 50, 100}. Importantly, these are total annotation budgets, rather than budgets allocated separately to every class. The classification labels are unavailable during selection. Existing dataset annotations are revealed only after an example has been chosen, simulating an annotation process without recruiting human annotators.
Iterative selection generally produces stronger results as the support set expands, although the best strategy depends on the task and budget. The authors recommend FLAN-T5 with an initial representative selection followed by uncertainty selection within encoder-based clusters. Across the tasks, they report advantages over the strongest non-iterative alternatives of 1.2 percentage points at a support size of 50 and 1.6 percentage points at 100. In a separate comparison using 256 labeled examples, their selected approaches achieve macro-F1 of 90.7% on AG News and 61.0% on Amazon Reviews. Smaller acquisition batches also help in much of the analysis: updating the selector more often can make the same eventual annotation budget more effective.
These gains require repeated computation. Each round extracts information from the remaining pool and fine-tunes a fresh instance of the pretrained classifier using the accumulated support set. The paper therefore demonstrates an annotation-efficiency strategy with a substantial computational cost. It does not establish that uncertainty always identifies useful examples, that selected examples transfer reliably between classifiers, or that the procedure works unchanged beyond English classification. The authors release an implementation under the repository name active-fewshot-learning, making the proposed selection procedures available for further investigation.
Interesting ideas
Choose supervision deliberately. A small labeled collection is an experimental design decision, not merely a smaller version of a large dataset. Selecting examples that cover the available population can improve what a learner acquires from a fixed annotation budget. This principle applies to document classification, linguistic annotation, error analysis, and the construction of compact evaluation collections, provided that selection and evaluation remain separate.
Establish coverage before trusting uncertainty. A classifier that has not encountered task-specific supervision has little basis for useful uncertainty judgments. The paper addresses this cold start by choosing representative examples first. The broader lesson is to match a selection signal to the stage of learning: coverage can provide an initial foundation, while uncertainty becomes more meaningful after the learner has received relevant evidence.
Combine uncertainty with diversity. A global ranking of difficult examples can concentrate attention on a narrow region of the data. Dividing the pool into clusters before choosing uncertain members distributes the annotation effort across different regions. This pattern can support review queues, dictionary evidence collection, and analysis of parsing errors, where repeatedly inspecting similar failures may leave other important problems untouched.
Let new evidence change the next question. Iterative selection uses the learner produced by the previous round to decide what should be labeled next. The support collection therefore responds to what has already been learned. This is useful whenever teaching, annotation, or testing can proceed in stages and where later choices should reflect earlier outcomes rather than an initial fixed ranking.
Evaluate annotation schedules at a fixed final budget. The same support size can be reached through acquisition batches of different sizes. Comparing those schedules exposes the value of feedback frequency, instead of confusing it with the value of additional labels. This is a reusable experimental design for active annotation, curriculum construction, and any process that alternates evidence gathering with system revision.
Check whether selected evidence transfers. An example useful to one classifier may be less useful to another. The paper tests this by placing examples selected for fine-tuning into the prompts of different systems, with mixed outcomes. Shared annotation infrastructure should therefore distinguish a generally reusable source collection from a selection policy whose benefits may depend on a particular learner.
Measure the expensive stages separately. Embedding extraction, sampling, and fine-tuning have different costs and different opportunities for reduction. Reporting only a final score or total duration conceals those differences. A phase-level account helps determine whether to reduce pool size, change the acquisition schedule, or reconsider repeated training, while keeping the effects of those choices open to measurement.
Deep dive: Active Few-Shot Learning for Text Classification
How active few-shot learning selects useful text examples through uncertainty and clustering, and when iterative selection improves classification. · about 37 minutes to read
How Mova uses it
Mova is a small, transparent language system implemented in Rust. Its native language processing follows explicit structures, rules, learned parameters, and retained knowledge. The connections below concern how the paper’s selection and evaluation ideas could support that architecture. They do not imply adopting its neural classification pipeline. The status marks describe correspondence with documented Mova mechanisms; they are proposals about that correspondence, rather than receipts showing that this paper has already improved Mova.
Idea: Select supervision deliberately. Where: Introduction and Active Few-Shot Learning. Area: annotation design. Mova: частково є (the teacher loop, treeagree, and tools/enrich). Mova already prepares bounded annotation and teaching proposals rather than admitting arbitrary output directly. The additional proposal is to compare an explicit informative-example selector with random selection under the same review budget. Why Mova: teacher attention could be directed towards examples that contribute more to native learning, while preserving the existing admission boundary.
Idea: Begin with representative coverage. Where: Sampling Methods and Related Work. Area: annotation initialization. Mova: нове. A proposed initial review batch could cover different native frame patterns, dependency constructions, or dictionary contexts before relying on confidence rankings. The digest does not establish an equivalent cold-start selection policy, so this novelty mark remains provisional. Why Mova: an initial batch with structural breadth may provide a better foundation than repeatedly selecting examples that an unadapted scorer happens to find unusual.
Idea: Choose uncertain examples within distinct groups. Where: Sampling Methods, Cluster Uncertainty. Area: annotation selection. Mova: нове. Mova could group eligible examples by explicit structural features and select a doubtful case within each group. This transfers the selection arrangement without assuming that encoder embeddings are necessary. Why Mova: review effort could address different failure families while still concentrating on cases that challenge the current native system.
Idea: Filter by uncertainty before seeking representatives. Where: Sampling Methods, Uncertainty Representative. Area: review queues. Mova: нове. An alternative queue could first retain uncertain candidates and then choose a structurally varied subset. This should be tested independently from selecting uncertain members inside groups because the procedures impose different priorities. Why Mova: it offers a concrete way to prevent a large uncertainty queue from being dominated by near-duplicate constructions.
Idea: Refresh selection after learning. Where: Active Few-Shot Learning and Figure 1. Area: training workflow. Mova: частково є (tools/cycle, world selfplay, and tools/enrich improve). Mova already has bounded cycles that inspect results and prepare subsequent work. The proposed extension is to recompute candidate priorities from the revised native system after admitted learning. Why Mova: once a construction has become reliable, its remaining examples may deserve less attention than unresolved gaps.
Idea: Compare acquisition schedules at equal support size. Where: Impact of Smaller Selection Size. Area: evaluation design. Mova: нове. A teacher-review experiment could compare smaller, more frequent admitted batches with larger batches while holding the eventual reviewed collection size constant. No matching Mova experiment is established by the digest. Why Mova: this would reveal whether more frequent feedback improves selection enough to justify additional coordination and verification.
Idea: Test evidence transfer between consumers. Where: In-Context Learning Experiments and In-Context Learning. Area: evaluation. Mova: нове. Examples selected for parser repair should not automatically be assumed optimal for pragmatics, coreference, or dictionary work. Each receiving component could be evaluated using the same selected evidence and an appropriate baseline. Why Mova: a shared source collection can remain reusable without treating one component’s selection preferences as universally informative.
Idea: Account for runtime by phase. Where: Performance-Efficiency Trade-off and Table 5. Area: operational measurement. Mova: частково є (tools/jobs, mova-twin, and tools/enrich profile). Mova already records execution information and has cost-prediction machinery. Selection experiments could separately measure source reading, feature extraction, candidate choice, review, and learning. Why Mova: these measurements would identify the actual bottleneck instead of attributing all expense to annotation selection.
Idea: Keep labels hidden until selection finishes. Where: Sampling Methods. Area: evaluation integrity. Mova: вже є (teacher-separated assessment and the frozen-assessment exclusions in tools/dictindex). The paper’s simulated annotation procedure reinforces a boundary Mova already documents: selection must use eligible inputs and permitted observations, rather than held-out answers. Why Mova: a selector that indirectly reads evaluation labels can appear effective without improving the native learner.
Idea: State budgets as total reviewed examples. Where: Sampling Methods and Fine-Tuning Experiments. Area: experimental reporting. Mova: нове. Review experiments could explicitly distinguish a total batch budget from a quota assigned to each known category. The latter assumes label information that may be unavailable before review. Why Mova: clear accounting would make teacher costs and coverage claims easier to compare across annotation policies.
Idea: Preserve the remaining pool across rounds. Where: Figure 1 and Active Few-Shot Learning. Area: data processing. Mova: частково є (tools/dictindex cursors and versioned source handling). Mova already has explicit mechanisms for incremental source consumption. A learning selector could similarly retain which examples remain eligible and which have already entered a reviewed support collection. Why Mova: reproducible pool state would prevent accidental reselection and make interrupted annotation experiments easier to resume.
Idea: Separate selection, annotation, and admission. Where: Active Few-Shot Learning. Area: knowledge provenance. Mova: вже є (treeagree, the teacher loop, and tools/enrich staging). The paper separates choosing an input from obtaining its label; Mova additionally distinguishes reviewed drafts from admitted knowledge. An active queue should preserve those distinctions. Why Mova: being selected as informative must never make an example’s proposed annotation trustworthy by itself.
Idea: Use distinct representations for content and confidence. Where: Embedding Methods. Area: representation design. Mova: частково є (native trees and frames, alongside pragmatic confidence evaluation). The paper separates input representations from label-score representations. Mova could likewise keep structural descriptions separate from uncertainty summaries when choosing review cases. Why Mova: the system could explain whether a candidate was selected for coverage, doubt, or both, using native evidence.
Idea: Verify confidence before assigning it operational importance. Where: Embedding Methods and Uncertainty sampling. Area: statistics. Mova: вже є (prag/src/eval.rs confidence groups, intervals, and permuted-confidence controls). The paper uses uncertainty as a selection signal, while Mova already documents checks relating confidence to correctness. Those checks should precede any new uncertainty-driven review policy. Why Mova: a confidently wrong or poorly ordered scorer can misdirect the annotation budget.
Idea: Compare uncertainty alone with combined selection. Where: Sampling Methods and Discussion of Results. Area: controlled evaluation. Mova: нове. A proposed experiment could compare uncertainty-only review with representative selection and with grouped uncertainty selection, keeping the downstream learning path fixed. Why Mova: the comparison would show whether structural diversity adds useful supervision rather than merely changing which examples are inspected.
Idea: Recompute structural coverage when the learner changes. Where: Embedding Methods and the iterative pipeline. Area: adaptive analysis. Mova: частково є (recursive self-use and bounded improvement workflows). In the paper, representations come from the latest trained classifier. A native analogue could update classifications of error families or unresolved frame gaps after a revision. Why Mova: a static organization of examples may stop reflecting the distinctions that matter to the current system.
Idea: Distinguish continuing selection from continuing training. Where: Active Few-Shot Learning. Area: experimental control. Mova: нове. The authors use the previous round’s classifier for selection but fine-tune a fresh pretrained instance on accumulated support. Mova could compare revised candidate selection while keeping the learning initialization explicit. Why Mova: this helps separate gains caused by better evidence from gains caused by a longer or different optimization history.
Idea: Retain a random-selection baseline. Where: Sampling Methods and Fine-Tuning Experiments. Area: evaluation. Mova: частково є (negative controls and held-out comparisons in the training principles). A new review policy should be compared with random choice from the same eligible source pool. Why Mova: an elaborate selection explanation is not evidence that the selected examples teach more effectively.
Idea: Retain a simple representative baseline. Where: Related Work and Representative sampling. Area: evaluation. Mova: нове. Before deploying a complex adaptive queue, Mova could compare it with a fixed, broad sample based on explicit linguistic categories. Why Mova: a simple coverage policy may capture much of the benefit while being easier to inspect and cheaper to run.
Idea: Compare several label structures. Where: Datasets and Discussion of Results. Area: evaluation coverage. Mova: частково є (separate parsing, pragmatics, coreference, and school assessments). The paper includes binary, multiclass, and multilabel decisions. A transferred selector should likewise be checked on distinct Mova outputs rather than assuming success on one label structure generalizes. Why Mova: uncertainty behaves differently when a decision permits several simultaneous labels.
Idea: Report imbalance alongside aggregate performance. Where: Datasets and Table 1. Area: statistics. Mova: частково є (treeagree label-prevalence reporting and existing evaluation tools). A review-selection report could describe the prevalence of relevant constructions or labels as well as overall accuracy. Why Mova: frequent categories can make an apparently successful annotation policy neglect rare but important linguistic cases.
Idea: Preserve task difficulty in the interpretation. Where: Discussion of Results, MPQA Intensity. Area: error analysis. Mova: частково є (fast-reader miss categories and source-bound diagnostics). The paper treats closely related intensity categories as a difficult classification setting. Mova could distinguish failures between nearby semantic alternatives from failures caused by missing representation or broken parsing. Why Mova: different failure causes call for different teaching material and different native revisions.
Idea: Use task-specific and aggregate results together. Where: Discussion of Results and Tables 2–4. Area: evaluation reporting. Mova: частково є (course-level reports and component benchmarks). A selector could improve the average while weakening a particular task. Mova should retain the individual task outcomes alongside any overall comparison. Why Mova: aggregate progress should not conceal regressions in a reader or linguistic mechanism.
Idea: Preserve intermediate learning checkpoints. Where: Fine-Grained Experiments and Figures 2–3. Area: learning analysis. Mova: частково є (experiment journals and retained improvement artifacts). Saving performance after successive admitted batches would show whether gains appear early, fluctuate, or plateau. Why Mova: the next useful review action depends on the learning trajectory, not only the final score.
Idea: Repeat selection with controlled randomness. Where: Tables 2–4 and Implementation Details. Area: reproducibility. Mova: вже є (fixed seeds, deterministic execution, and repeated-result requirements). If a proposed selector uses clustering or randomized sampling, its source state and seed should be retained. Why Mova: reproducibility makes candidate choices and downstream changes diagnosable.
Idea: Report variation across selections. Where: Figure 2 and the result-table standard deviations. Area: statistics. Mova: частково є (bootstrap intervals and paired comparisons in existing evaluation work). Repeated selectors can produce different support collections even under one annotation budget. Mova could report this variation separately from deterministic reruns of a particular collection. Why Mova: a policy that occasionally works well may be less useful than one whose improvements are consistent.
Idea: Audit output-label mappings. Where: Embedding Methods, Equations 1–2. Area: interface design. Mova: частково є (typed concept codes, compiled vocabularies, and explicit worker interfaces). The paper manually maps class names to suitable output tokens. A Mova adapter should retain any mapping from external labels to native typed values and reject ambiguous mappings. Why Mova: interface substitutions can otherwise silently change the task being learned or evaluated.
Idea: Treat score aggregation as a substantive choice. Where: Embedding Methods, Equation 2. Area: mathematical analysis. Mova: нове. The paper takes the maximum class probability across generated positions. If an external annotation adapter uses a similar reduction, Mova could record and test that reduction rather than presenting it as neutral preprocessing. Why Mova: an aggregate score can discard information that matters for confidence or multilabel interpretation.
Idea: Keep validation use distinct from final assessment. Where: Fine-Tuning Experiments and Implementation Details. Area: evaluation integrity. Mova: вже є (held-out training gates and teacher-separated assessments). Active selection and repeated model choice should continue to use permitted development evidence, leaving final assessment answers outside the learning process. Why Mova: repeated adaptation creates more opportunities for evaluation information to leak into decisions.
Idea: Test selection-policy parameters explicitly. Where: Impact of Parameter α and Table 8. Area: experimental design. Mova: частково є (world selfplay parameter experiments and journals). Any cap on an uncertainty queue or coverage stage should be treated as a parameter with a recorded comparison. Why Mova: an intuitively reasonable candidate budget may behave differently at different learning stages.
Idea: Reduce the eligible pool only with measured consequences. Where: Performance-Efficiency Trade-off. Area: scalable data processing. Mova: частково є (tools/enrich bounded packets and tools/dictindex incremental document budgets). The paper proposes pool downsampling as a runtime control. Mova could compare bounded candidate pools while recording the source coverage they actually contain. Why Mova: lower processing cost is useful only when the lost linguistic coverage is understood.
Idea: Recognize diminishing returns. Where: Other Related Work and Figure 3. Area: resource allocation. Mova: частково є (bounded self-study and mice stopping conditions). The paper’s learning curves motivate asking whether another acquisition round remains worthwhile. A Mova policy would need its own measured criterion for stopping or redirecting review effort. Why Mova: teacher work could move towards unresolved tasks once a particular learning path has mostly plateaued.
Idea: Keep selected evidence source-bound. Where: Active Few-Shot Learning’s pool-and-support procedure. Area: provenance. Mova: вже є (tools/dictindex posting identities, source versions, and attribution). Active selection should carry the exact source identity and annotation history into the reviewed collection. Why Mova: a useful training example must remain traceable, especially when its interpretation later changes.
Idea: Distinguish simulated annotation from observed annotation cost. Where: Implementation Details. Area: measurement. Mova: частково є (explicit worker receipts and bounded teacher-review artifacts). The paper reveals existing labels rather than measuring a live annotation service. Mova experiments should distinguish replaying known annotations from obtaining new reviewed labels. Why Mova: these procedures answer different questions about cost, reliability, and practical throughput.
Idea: Preserve human review for consequential interpretation. Where: Ethics Statement. Area: operational use. Mova: частково є (consultant review boundaries and separate admission gates). The authors caution against relying on classification outputs without expert interpretation where robustness and fairness remain unresolved. Mova could carry uncertainty and provenance into review decisions instead of using active selection as a reason to bypass them. Why Mova: efficient acquisition does not establish that the resulting judgments are ready for every application.
The problem and its context
The paper studies a particular bottleneck in text classification: a large collection of inputs may be available, while the resources needed to label those inputs are limited. A learner must therefore acquire useful task knowledge from a small support collection. This situation differs from ordinary supervised learning, where a large labeled training set is assumed to exist before training begins.
The authors describe annotation as costly and slow. That cost makes it difficult to establish classifiers for new domains. Few-shot learning responds by trying to make limited supervision sufficient. However, the paper argues that attention to the learning algorithm alone leaves a major decision underexamined. When the support collection is small, its composition can strongly influence the result.
A randomly chosen collection might contain useful examples, but it can also overrepresent easy or repetitive material. Adding examples does not necessarily solve that problem. The authors point to earlier findings in which additional support items failed to deliver stable gains and could even weaken performance. Their motivation is therefore more specific than the general claim that labels are valuable: some labels are more useful to a particular learner at a particular stage.
The paper distinguishes two ways to use a support collection. In-context learning places labeled examples in the input prompt and asks a system to make predictions without task-specific parameter updates. Fine-tuning uses those labels to change the learner’s parameters. The discussion of in-context learning refers to work such as Language Models are Few-Shot Learners. The fine-tuning approach is motivated partly by the classification comparison attributed to Edwards and Camacho-Collados, which the authors describe as favorable to fine-tuning.
This distinction matters because example quality can affect either route, but the mechanisms differ. A support item used for fine-tuning participates in an optimization process. A support item used in a prompt becomes part of the context for a prediction. There is no reason to assume that an item selected for one role must be equally helpful in the other. The paper later tests that transfer directly.
Within few-shot NLP, the authors describe random support selection as common. They cite several approaches, including Making Pre-trained Language Models Better Few-shot Learners, as part of this experimental tradition. Their objection is not that random sampling is invalid. It provides a straightforward baseline. The concern is that it leaves potentially useful information in the unlabeled pool unused.
Active learning supplies an alternative viewpoint. As introduced through the Active Learning Literature Survey, the learner can influence which examples receive labels. The unlabeled collection is no longer simply a reservoir from which examples are drawn without regard to their content. It becomes a population that can be inspected through representations and current predictions.
The authors identify relevant precedents in both visual learning and NLP. Their discussion of visual work establishes that active selection had already been investigated in few-shot settings outside text. Within NLP, Chang and colleagues used clustering to select examples for text generation with BART. Their procedure favored inputs near cluster centers, aiming to obtain a collection with broad and representative coverage.
Ahmadnia and colleagues retain that coverage idea but change the surrounding problem. Their targets are classification tasks. Their support collection grows over successive rounds. They also incorporate uncertainty, allowing the current classifier to influence later acquisitions. The contribution is thus an arrangement of established selection principles within a particular few-shot classification process, accompanied by comparisons across tasks and learning strategies.
The nearest active few-shot comparison discussed in detail is Müller and colleagues’ approach. The paper characterizes it as using an XLM-RoBERTa-based Siamese architecture with label tuning intended to make training faster. Ahmadnia and colleagues instead update the full classifier in each round. They explicitly prioritize the quality of selected examples and final predictive performance over minimizing computation.
The cold start is another point of difference. Uncertainty sampling requires predictions that say something meaningful about the task. Before any task-specific examples have been labeled, that requirement is difficult to satisfy. The proposed pipeline therefore begins with representative selection. Only after that initial support collection has been used for learning do uncertainty-based strategies become eligible.
This context defines the paper’s central tradeoff. It seeks to obtain more value from a small annotation budget by spending computation on inspecting the pool and repeatedly adapting a classifier. Its experiments are designed to establish whether that exchange improves classification, and how the benefit changes with support size, acquisition schedule, and selection rule.
The method, step by step
The pool, the support collection, and the learner
The process begins with training inputs whose labels are concealed from the selection algorithm. These inputs form the unlabeled pool. The support collection initially contains no examples. A pretrained classifier supplies the first representations, and the acquisition procedure chooses which inputs should have their labels revealed.
The paper uses K for the total number of labeled support examples available at a checkpoint. It uses M for the number of additional examples selected in an acquisition round. These quantities have different roles. K describes the accumulated annotation budget, while M controls how quickly that budget grows and how frequently selection receives feedback from a newly trained classifier.
Neither quantity denotes a per-class allocation. The algorithm does not know the labels of the remaining pool, so it cannot directly request an equal number from every class. This makes the task closer to choosing examples before annotation than to constructing a balanced few-shot benchmark from already visible class labels.
Once a batch has been selected, those inputs leave the unlabeled pool. Their labels are revealed, and the labeled examples join the support collection. In a live application, an annotator would supply those labels. In the experiments, existing dataset annotations play that role. The simulation concerns label availability, not the difficulty or reliability of actual human annotation.
An active few-shot acquisition round
The steps in order.
The support collection persists across rounds. The classifier used to inspect the next pool is the one learned in the preceding round. However, the next fine-tuning run starts from a new instance of the pretrained classifier and uses the full accumulated support collection. The approach therefore carries forward acquired data and selection knowledge without simply continuing the previous fine-tuning trajectory.
A separate validation split supports the training procedure, including early stopping. The test split measures predictive performance after acquisition checkpoints. The authors explicitly state that test examples are not needed for the selection process itself.
Representing the unlabeled inputs
The paper offers two kinds of representation. The encoder representation, abbreviated En, comes from the encoder’s final hidden states. Those states describe positions in the input sequence. Mean pooling combines them into a single vector for the whole example, which can then be compared with other example vectors.
This representation supplies a geometric view of the pool. Inputs with nearby vectors are treated as similar for clustering purposes. The procedure does not require their class labels. Its usefulness depends on whether the representation organizes the data along distinctions relevant to the task.
The score representation, abbreviated Sc, instead describes predictions over task labels. It begins with output logits, the unnormalized numerical scores produced before conversion to probabilities. Because BART and FLAN-T5 generate text, the authors must connect output vocabulary items to classification labels.
They require every class to have a single-token output label. When an original class name would occupy several tokens, they manually substitute a semantically related label that fits the requirement. A mapping called ClassId connects each class to the relevant position in the output vocabulary. Tokens unrelated to the task’s classes are excluded from the probability calculation.
Pₘ⁽ᵗ⁾[n] = exp(Logitsₘ⁽ᵗ⁾[ClassId(n)]) / ∑ᵢ₌₁ᴺ exp(Logitsₘ⁽ᵗ⁾[ClassId(i)])
Here, m identifies an input example, and t identifies a generated output position. The symbol n denotes the class whose probability is being calculated. N is the number of possible classes, while i runs over those classes in the denominator. Logits gives the output score at a vocabulary position, ClassId maps a class to that position, and exp denotes the exponential function. The resulting P is a probability normalized over the designated class tokens.
That restriction is consequential. The distribution compares task labels with one another, instead of retaining the probability mass of every possible vocabulary item. It makes class-focused acquisition possible, but it also means the resulting score is tied to the manual label mapping.
An example may generate several output tokens, particularly in the multilabel attitude-type task. The authors therefore reduce the position-specific probabilities to a class score.
Scoreₘ[n] = max₁≤ᵢ≤T Pₘ⁽ⁱ⁾[n]
Scoreₘ[n] is the final score assigned to class n for example m. T is the length of the generated output, and i indexes its positions. The maximum operation keeps the strongest probability assigned to that class at any output position.
The result is a vector with an entry for each class. This allows classification-oriented selection even though the underlying learner produces sequences. A careful interpretation is that the vector is an operational summary of class evidence. Taking separate maxima across positions does not by itself establish that the combined vector remains one normalized probability distribution.
During the initial acquisition round, representations come from the pretrained classifier. Later representations come from the classifier fine-tuned in the preceding round. Thus both the input geometry and the score-based view can change as supervision accumulates.
The selection strategies
Random selection provides the simplest reference. It chooses M examples without replacement. It does not use En or Sc, and it does not attempt to estimate which examples would be most useful.
Representative selection uses K-Means to divide the represented pool into M clusters. It then chooses an example near the center of each cluster, with closeness measured by Euclidean distance. The intention is to cover the population through examples that are typical of its different regions.
This is a coverage-oriented choice, but cluster membership should not be confused with class membership. An unlabeled cluster can contain several classes, and one class can occupy several clusters. The method seeks a useful geometric sample without knowing how that geometry relates to the hidden labels.
Uncertainty selection uses the Sc representation. It ranks examples through entropy and acquires those with the greatest uncertainty. Entropy is used here as a measure of how spread out the class scores are: a strongly concentrated prediction offers less uncertainty than competing plausible labels. The paper names entropy as its criterion but does not present a separate entropy equation.
Uncertainty Representative, abbreviated UnRep, combines doubt with coverage in a particular order. It first restricts the pool to the α × M most uncertain examples. It then clusters that restricted collection using En and chooses M representative members. The parameter α determines the breadth of the uncertain candidate collection before representative selection.
Cluster Uncertainty, abbreviated ClUn, reverses the priorities. It first constructs M clusters from the pool. Within every cluster, it selects the example with the greatest uncertainty according to Sc. Clustering can use either encoder representations or score representations, which is why the experiment names distinguish ClUn(En) and ClUn(Sc).
The difference between these combined procedures is substantive. UnRep makes uncertainty the entry condition and obtains diversity within the eligible remainder. ClUn gives every cluster an acquisition opportunity before deciding which member is most doubtful. Neither procedure guarantees a balanced class distribution because the class labels remain hidden.
Only random and representative selection are used to begin the process. Strategies involving uncertainty become available after task-specific fine-tuning. The recommended configuration begins with Rep(En) and continues with ClUn(En): representative encoder-based initialization, followed by uncertain examples drawn from encoder-based clusters.
Training and acquisition settings
The principal fine-tuning experiments use BART-base with 139M parameters and FLAN-T5-base with 248M parameters. The authors also train on the entire labeled training collection to establish a practical reference for performance with much more supervision.
For the main active experiments, each acquisition adds M = 10 examples. Results are reported at K ∈ {10, 20, 50, 100}. The UnRep experiments use α = 10 in the main configuration, with a separate parameter analysis examining alternatives.
The smaller-batch experiments use M = 5 on the MPQA tasks and report checkpoints from K ∈ {5, 10, 25, 50}. A further comparison with earlier active few-shot work uses M = 16, repeated over 16 rounds, and reaches K = 256 on the news and review tasks.
Training settings are kept explicit. Both BART and FLAN-T5 use batch size 10, dropout 0.1, and AdamW. BART uses learning rate 5e-5, whereas FLAN-T5 uses 1e-4. The early-stopping setting is 20 epochs. These details matter because acquisition quality is evaluated through the learner produced by this training procedure.
The in-context comparison
For in-context learning, the task description and allowed labels are placed in an instruction prompt. Labeled support examples are appended when available, and the test input is then presented for classification. Predicted output strings are matched to the task’s labels.
The paper compares random support selection with a custom collection produced by the fine-tuning pipeline. The decoder-only classifier receiving those examples does not participate in selecting them. This design tests transfer: whether examples judged useful for the fine-tuned encoder-decoder learner also help another system when used as demonstrations.
The instruction-following systems are Gemma 2 with 9B parameters, Llama 3.1 with 8B, and Mistral v0.3 with 7B. The tested support sizes include K ∈ {0, 10, 20, 50, 100}. If a system lacks a separate system-prompt interface, the instruction and user content are combined into a single prompt.
Experiments and results
What the tasks measure
The evaluation spans different classification structures rather than repeating one task across several collections. AG News concerns article categories. Amazon Reviews concerns ratings. MPQA supplies separate decisions about the kind of attitude expressed, its polarity, and its intensity.
AG News has 118,800 training examples, a validation collection of 1,200, and a test collection of 7,600. Its label set has 4 classes. Inputs contain an article title and description. The task is to assign the article to its news category.
The English review task comes from The Multilingual Amazon Reviews Corpus. It uses 200,000 training examples, 1,200 validation examples, and 5,000 test examples. The 5 classes correspond to star ratings. Unlike broad topic categories, neighboring ratings can express closely related judgments, making their boundaries harder to separate.
MPQA Type uses 4,248 training items, 1,060 validation items, and 1,327 test items. It is a multilabel task with 4 attitude types. The input includes an expression and its surrounding sentence. An expression can receive several attitude labels, so predicting a single winner is insufficient.
The polarity and intensity tasks both use 4,505 training items, 1,123 validation items, and 1,404 test items. Polarity has 2 labels, while intensity has 5. These inputs additionally supply the attitude type. Their evaluation therefore concerns classification given that information, instead of a complete system that must first discover every relevant expression and attitude.
The authors remove the MPQA categories other and speculation because those categories do not carry polarity in their setup. The retained type labels are agreement, arguing, intention, and sentiment. Their distribution is uneven, making representative coverage and minority-label learning relevant concerns.
The paper describes the datasets through a label-distribution measure called U.
U = ∑ₗ∈L |f(l) − 1/|L||
L is the set of labels, and |L| is its size. The function f(l) gives the relative frequency of label l. The vertical bars around the difference denote absolute value, while the sum combines deviations across labels. U = 0 corresponds to a uniform distribution.
The reported U values are 85.1% for MPQA Type, 8.9% for MPQA Polarity, and 34.6% for MPQA Intensity. AG News and Amazon Reviews both have U = 0.0%. These statistics describe the benchmark collections; they do not mean that an acquired support set will inherit the same balance.
Splits, baselines, and metrics
The MPQA splits are taken from earlier work by Ahmadnia and colleagues. AG News does not supply the validation split required by the experiments, so the authors draw one from its training data without replacement. They also reduce the original Amazon validation collection, retaining its label distribution. The paper associates that choice with earlier guidance from Supervised Contrastive Learning for Pre-trained Language Model Fine-tuning.
The main metric is micro-F1, reported as a percentage. Micro-F1 combines prediction decisions across the evaluated collection before calculating the score. This matters especially for the multilabel task, where an example can involve several label decisions.
The separate comparison with previous active few-shot work reports macro-F1. Macro averaging gives class-level scores equal weight before combining them. Those results should be read within their own comparison rather than treated as interchangeable with the main micro-F1 tables.
Majority prediction supplies a basic task reference. Randomly selected fine-tuning collections show what can be achieved without a learned or geometric selector. Representative selection tests whether coverage alone helps. Training with the complete training collection provides a high-supervision reference rather than a competing few-shot configuration.
The main M = 10 experiments report averages across five sampling seeds, with standard deviations. The smaller-batch MPQA experiments use ten seeds. The K = 256 comparison returns to five seeds. These repetitions expose variation arising from the acquisition process.
The overall pattern
FLAN-T5 generally performs better than BART in the reported few-shot comparisons, which motivates concentrating the iterative experiments on FLAN-T5. The appendix nonetheless includes BART-based iterative results for MPQA Polarity, allowing the reader to see that the acquisition framework is not evaluated only through one learner.
Increasing the support collection typically helps fine-tuning. However, no acquisition method wins at every checkpoint on every task. The strongest overall recommendation comes from the pattern across tasks, particularly toward the larger few-shot budgets, rather than universal dominance in every table cell.
At K = 100, the main table reports mean micro-F1 of 67.7% for FLAN-T5 with random selection and 68.2% for its non-iterative representative counterpart. The recommended Rep(En)-ClUn(En) configuration has a mean of 69.8%. The authors describe its advantage over the best non-iterative approach as 1.6 percentage points at that budget.
At K = 50, they report a corresponding advantage of 1.2 percentage points for the recommended approach. These are aggregate findings. Their practical meaning depends on the tasks included, and they do not establish an expected improvement for an unseen application.
A difficult case: attitude intensity
MPQA Intensity is particularly informative because weak few-shot results can sit near or below the majority baseline. The labels express neighboring levels of strength rather than unrelated categories. More informative selection helps, but does not turn the task into an easy classification problem.
MPQA Intensity at K = 100, micro-F1
Cluster-based uncertainty selection exceeds the simple support-selection baselines.
The numbers
| System or setting | micro-F1 % |
|---|---|
| Majority prediction | 37.2 |
| BART random | 35.2 |
| FLAN-T5 random | 35.5 |
| FLAN-T5 representative | 35.6 |
| FLAN-T5 Rep(En)-ClUn(En) (this paper) | 39.7 |
The chart concerns the M = 10 acquisition setting for iterative methods. It shows why a majority reference remains necessary even when comparing sophisticated pretrained learners. A system can improve relative to another learned configuration while still failing to outperform a simple prevalence-based decision.
The full-training references are also sobering. FLAN-T5 reaches 50.0% micro-F1 on MPQA Intensity with the complete training collection. Its full-training scores on MPQA Type and MPQA Polarity are 80.7% and 94.2%, respectively. The differences reinforce the authors’ interpretation that the tasks vary substantially in difficulty.
Comparison with earlier active few-shot work
The K = 256 experiments compare selected configurations against LT margin and LT k-means. The selection batch is M = 16, and the metric is macro-F1. Different proposed configurations are used for the two datasets.
AG News at K = 256, macro-F1
The selected iterative fine-tuning configuration exceeds both earlier active few-shot baselines.
The numbers
| System or setting | macro-F1 % |
|---|---|
| LT k-means | 82.8 |
| LT margin | 86.2 |
| FLAN-T5 Rep(En)-Rep(Sc) (this paper) | 90.7 |
For AG News, the chosen proposed configuration uses representative initialization with encoder representations, then representative selection using score representations. Its reported standard deviation is 0.2. The authors state an advantage of 4.5 percentage points relative to LT margin.
Amazon Reviews at K = 256, macro-F1
Encoder-cluster uncertainty selection gives the strongest reported result in this comparison.
The numbers
| System or setting | macro-F1 % |
|---|---|
| LT margin | 46.6 |
| LT k-means | 48.6 |
| FLAN-T5 Rep(En)-ClUn(En) (this paper) | 61.0 |
The Amazon configuration uses the paper’s recommended combination, with standard deviation 1.0. The authors report an advantage of 12.4 percentage points over LT k-means.
These comparisons support the effectiveness of the complete proposed systems under the stated conditions. They do not isolate acquisition strategy from every architectural difference, because the compared approaches also differ in their learners and adaptation procedures.
In-context learning behaves differently
The instruction-following systems frequently perform reasonably with a small support collection. Amazon Reviews is an important qualification to any broad claim that iterative fine-tuning always wins: the authors note that in-context approaches can outperform it when K is small.
Adding more prompt demonstrations does not reliably produce continuing gains. The paper reports stagnation or deterioration as support grows in several in-context settings. It also describes greater variability than in the fine-tuning experiments.
Gemma 2 is generally the strongest in-context option in these comparisons. The relative ordering between Llama 3.1 and Mistral v0.3 depends on support size. Mistral tends to perform better at smaller budgets, while Llama becomes more competitive as the support collection grows.
The custom-selection experiment is especially relevant to claims about informative examples. Examples chosen through FLAN-T5 do not consistently improve Llama or Mistral compared with their random support collections. Gemma benefits more often. Selection quality is therefore partly conditional on the recipient and how the evidence is used.
Computational requirements
The runtime analysis uses MPQA Polarity and a single sampling seed. For iterative approaches, durations accumulate across ten rounds. Annotation, evaluation, and support augmentation are excluded from the reported timing.
FLAN-T5 random selection takes 0:10:30 overall in that comparison. Non-iterative representative selection takes 0:09:18. The recommended Rep(En)-ClUn(En) process takes 1:51:37, of which 1:49:36 is fine-tuning. Its embedding extraction takes 0:01:56 and sampling takes 0:00:04.
These measurements show where the cost lies in this setup. Repeated fine-tuning dominates, while candidate selection itself is comparatively short. They also explain why a representative non-iterative run can finish sooner than a random run despite having additional selection work: training duration varies with early stopping.
The authors report a maximum GPU-memory requirement of 18 GB and maximum RAM use of 16 GB for their approaches. The runtime study and several other experiments use an NVIDIA RTX A5000 with 24 GB, while much of the MPQA fine-tuning work uses an NVIDIA A100 with 40 GB. The reported timings should therefore remain attached to their particular task, hardware, and training configuration.
What the ablations show
The paper offers controlled comparisons of acquisition strategies, representation choices, batch schedules, and a selection parameter. These analyses are useful for understanding the mechanism, although they do not isolate every design decision independently.
Coverage and uncertainty have different roles
Random selection, representative selection, and the iterative alternatives form a progression of increasingly informed acquisition policies. The representative baseline asks whether a geometric view of the pool is useful before any adaptive uncertainty signal is introduced.
The combined methods then ask a more specific question: does uncertainty help when constrained by coverage, or does coverage help after restricting attention to uncertain examples? These alternatives can behave differently because their ordering changes which inputs remain eligible.
The strongest overall recommendation favors uncertainty within encoder-based clusters. However, the AG News comparison at K = 256 uses a score-based representative continuation instead. This is evidence for the value of the combined framework, with task-dependent choices inside it, rather than evidence that one acquisition formula is always optimal.
The paper does not provide a direct experimental comparison between its representative cold start and an otherwise identical uncertainty-based cold start. The initialization choice is motivated by the lack of task-specific learning before the first acquisition. That rationale should be distinguished from an isolated measurement of its contribution.
Smaller batches make feedback more frequent
The smaller-selection analysis compares M = 5 with M = 10 on the MPQA tasks. At the same eventual K = 50, the smaller acquisition size generally improves iterative results.
This comparison is valuable because the final number of available labels is held fixed. The changed quantity is how often the system can learn from an acquired batch before deciding what to acquire next. More frequent feedback can redirect selection toward newly visible weaknesses.
For MPQA Polarity at K = 50, FLAN-T5-Rep(En)-Un reaches 88.6% micro-F1 with M = 5. The corresponding M = 10 result is 88.2%. For MPQA Type, the recommended cluster-uncertainty configuration reaches 65.1% with M = 5 at that support size, compared with 64.6% for M = 10.
These examples support the authors’ broader observation without establishing that smaller is always better. The comparison also changes the number of training rounds, and the reported experiments use different seed counts for the acquisition schedules. Its interpretation is therefore a tradeoff between feedback frequency and computational effort, rather than a cost-free improvement.
The uncertainty preselection parameter changes with the budget
The UnRep analysis varies α over {1, 2, 5, 10, 20, 50} on MPQA Polarity with M = 10. This parameter determines how many uncertain candidates remain available before representative sampling.
At K = 10, all α settings report 76.4% micro-F1 because they share the initial representative acquisition. The parameter affects subsequent rounds, not that common starting point.
At K = 50, α = 5 gives 87.4%, while α = 20 gives 84.5%. At K = 100, α = 50 gives 91.3%, and α = 1 gives 90.6%. The strongest observed setting can therefore depend on the stage of acquisition.
The analysis does not identify a universally best α. It shows that the uncertain candidate pool is a consequential design choice and that conclusions drawn from one support budget may not carry unchanged to another. The main experiments use a common α instead of presenting a task-specific optimum as a general rule.
Learning curves show diminishing returns
The K = 256 comparison includes intermediate checkpoints. The authors report that increasing K from 16 to 96 improves AG News macro-F1 by 3.3 percentage points and Amazon Reviews by 8.2 percentage points.
For the later interval, from 96 to 256, the reported improvements are 1.1 and 1.6 percentage points, respectively. The acquisition process continues to help, but the marginal benefit becomes smaller.
This pattern supports the focus on restricted-label settings. It also motivates practical stopping decisions, although the paper does not introduce an automatic rule that determines when further acquisition is no longer worthwhile.
Selected demonstrations are not universally transferable
The custom in-context comparison uses the same selected examples in a different learning arrangement. This tests something that the fine-tuning comparisons alone cannot establish: whether informative examples remain informative when consumed by another classifier without parameter updates.
The mixed outcomes show that transfer must be measured. A support collection’s usefulness depends not only on its content but also on the recipient’s representations, prior capabilities, and mode of using examples.
The experiment does not reveal exactly which of those factors causes transfer to succeed or fail. It establishes the narrower point that a successful acquisition policy for one learner should not automatically be treated as a general-purpose demonstration selector.
Limitations
Limits stated by the authors
The authors explicitly restrict their empirical claims to English. The experiments include several task structures, but they do not test whether the same acquisition behavior holds across languages. Extending the work to other languages and datasets remains part of their future agenda.
They also state that the procedure cannot be transferred directly to non-classification tasks or to applications outside NLP. Its score representation assumes a task label set, and its acquisition decisions are built around classification uncertainty. Applying the broader idea elsewhere would require changing those interfaces.
Computation is another stated limitation. The active procedure repeatedly trains as the support collection grows. That design is central to obtaining task-dependent selection signals, but it demands substantially more resources than assembling a support set once and training once.
The ethics discussion cautions against treating the resulting systems as autonomous decision authorities. The authors identify unresolved robustness and fairness concerns and argue for expert interpretation. Their experiments measure classification performance, not the suitability of every possible deployment.
Limits visible in the annotation simulation
The selection process hides and then reveals existing labels. This is a useful way to compare acquisition policies under controlled conditions, but it does not measure how difficult those selected inputs would be for human annotators.
Uncertain examples may be hard because they contain genuinely ambiguous content, inconsistent conventions, or subtle distinctions. Those properties can increase annotation time or disagreement. The experiments do not quantify that possibility, because no live annotation process is conducted.
As a result, equal support sizes represent equal counts of revealed labels, rather than proven equality of labor or financial cost. The paper supports conclusions about predictive performance under label-count budgets. Stronger claims about real annotation efficiency would need measurements of the annotation activity itself.
The runtime analysis also excludes annotation and evaluation. That boundary is reasonable for isolating the computational pipeline, but the resulting duration is not a complete operational cost for a deployed active-learning service.
Limits of the representations
Representative selection depends on the geometry supplied by the current representation. A cluster is useful only to the extent that its organization captures distinctions relevant to learning. The experiments show practical value for the tested configurations, but they do not prove that cluster centers reliably cover every important semantic category.
Rare labels are particularly relevant. A representative example from a dense cluster may teach common patterns while overlooking sparse but consequential cases. Since labels are concealed during acquisition, the procedure has no direct guarantee of class coverage.
The scoring interface introduces further assumptions. Class names must be mapped to single output tokens, and some original names are manually replaced. Those choices may affect predictions and acquisition scores, yet the paper does not isolate their contribution in a verbalizer comparison.
Taking the maximum class probability across output positions is another design choice. It accommodates multilabel generation, but separate maxima can come from different positions. The paper does not provide a dedicated comparison showing how alternative aggregation procedures would change uncertainty rankings.
Similarly, uncertainty is not the same as expected learning benefit. An uncertain input might resolve an important decision boundary, but it might instead be unrepresentative or persistently ambiguous. The combined selectors reduce some concentration problems through coverage, without supplying a general guarantee of optimal acquisition.
Limits of the experimental comparisons
The principal iterative experiments emphasize FLAN-T5 because it generally performs better than BART in the preliminary comparisons. Additional BART results broaden the evidence, but they do not establish architecture-independent behavior across all learners.
The comparison with earlier active few-shot work combines changes in selection with changes in the learning system. It demonstrates that the proposed configurations produce stronger reported results at the stated budget. It cannot assign the entire improvement to one isolated sampling component.
The in-context comparison has a related qualification. Its custom demonstrations come from a selector developed around the fine-tuning pipeline. They are not produced by a selection policy optimized separately for every receiving system. Their mixed transfer therefore limits broad conclusions about what an ideal in-context selector could achieve.
Some experiments encounter memory limits and are missing from the result tables. Those missing outcomes are operationally meaningful, but they cannot be read as measured predictive failures. They constrain which settings can be compared directly.
Repeated sampling seeds and reported standard deviations provide useful evidence about variability. The paper does not, however, attach a dedicated significance analysis to every pairwise advantage. Small differences should therefore be interpreted alongside the reported variation and the broader pattern across tasks.
Finally, the evidence does not justify calling the recommended configuration a universal best policy. Different tasks favor different strategies, and the parameter analysis shows that preferences can change with support size. The contribution is a measured case for adaptive selection, together with a strong practical default, instead of a proof that uncertainty and clustering always dominate simpler alternatives.
What came after
Supervised Contrastive Fine-Tuning for Active Few-Shot Learning is identified as a later citing work from 2026. Its title places supervised contrastive fine-tuning in the setting of active few-shot learning, connecting the representation-learning component with the acquisition problem examined by Ahmadnia and colleagues.
The available citation information does not describe its acquisition rule, experimental setup, or findings. It therefore supports identifying this continuation, but not attributing a particular improvement or a verified modification of the earlier method to it. In particular, it does not establish whether that work retains representative initialization, uses uncertainty within clusters, or changes the way label scores are constructed.
Ahmadnia and colleagues themselves identify several directions for further investigation: alternative representations, additional acquisition policies, adaptation to text generation, and a pipeline that also learns from the unlabeled remainder through semisupervised methods. These are stated research directions. Establishing their value would require the same separation maintained throughout the paper: what is available without labels, what becomes known after acquisition, and what improves on an independently evaluated task.
Cite
Cite as Saeed Ahmadnia, Arash Yousefi Jordehi, Mahsa Hosseini Khasheh Heyran, Seyed Abolghasem Mirroshandel, Owen Rambow and Cornelia Caragea. 2025. Active Few-Shot Learning for Text Classification. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers).
@inproceedings{ahmadnia2025active,
title = {{Active Few-Shot Learning for Text Classification}},
author = {Saeed Ahmadnia, Arash Yousefi Jordehi, Mahsa Hosseini Khasheh Heyran, Seyed Abolghasem Mirroshandel, Owen Rambow and Cornelia Caragea},
booktitle = {Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)},
year = {2025},
doi = {10.18653/v1/2025.naacl-long.340},
url = {https://doi.org/10.18653/v1/2025.naacl-long.340}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ahmadnia-2025-active-few-shot-learning-text/