LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning
Paper · 2023 · Amirhossein Abaskohi, Sascha Rothe and Yadollah Yaghoobzadeh
Summary
Learning a classification task from a small collection of labelled examples creates a particular difficulty: a system must discover which differences between sentences matter without mistaking accidental wording for a reliable signal. LM-CPPF investigates whether paraphrases can supply useful variation when additional labelled task data is unavailable. Its central proposal is to rewrite existing training sentences, then use those alternative expressions during few-shot learning. The new sentences are intended to preserve the original classification label while changing how the underlying meaning is expressed.
The approach combines prompt-based fine-tuning with supervised contrastive learning. Prompt-based classification turns a label decision into a missing-word prediction: a sentence is placed inside a template, and a suitable word at the masked position represents its class. Contrastive learning adds another requirement. Representations associated with the same class should become more similar, while representations from different classes should become easier to distinguish. LM-CPPF supplies this process with paraphrased versions of the training sentences, generated through demonstrations and, in some experiments, an explicit rewriting instruction.
The authors evaluate the method on classification benchmarks using RoBERTa-base and a training allowance of K = 16 examples per class. Results are averaged across five runs. Their comparisons separate the contribution of contrastive learning from the contribution of augmentation, and examine several ways of producing alternative training views. Paraphrases generated with GPT-3 give the strongest results in the main comparison; OPT-175B also improves every reported task relative to the multiple-template baseline. For MNLI, for instance, the reported accuracy is 64.8 for that baseline, 68.4 with GPT-3 paraphrasing, and 66.2 with OPT paraphrasing. The authors also compare back translation, simple text edits, smaller paraphrase generators, and different formulations of the paraphrasing prompt.
The main finding is that the choice of training variation matters. Changing a classification template can expose a sentence through another prompt, but rewriting the sentence itself provides a different kind of evidence. In these experiments, carefully prompted paraphrasing is more effective than the alternatives tested. That conclusion has boundaries: the method depends on the quality and accessibility of its paraphrase generator, its results vary more across runs than the principal baselines, and the paper does not directly establish that every generated sentence preserves meaning or its original label. Its contribution is a tested augmentation procedure for a specific few-shot classification setting, rather than a general guarantee about generated supervision.
Interesting ideas
Change the example, not only its wrapper. A training system can encounter several presentations of an unchanged sentence without seeing much additional linguistic variation. LM-CPPF instead changes the sentence while retaining the intended class. This distinction is useful whenever an augmentation method mainly alters formatting, instructions, or surrounding context. Researchers can ask whether their alternative views actually test robustness to different expressions of the same content, or merely robustness to different packaging.
Define the invariant before generating variation. Paraphrasing is useful because something is supposed to remain stable while the expression changes. Here, the desired invariant is meaning, with the classification label consequently preserved. Making that obligation explicit helps distinguish a useful rewrite from a newly invented example. The same principle applies to semantic parsing, question answering, and rule evaluation: decide what must survive the transformation before rewarding surface diversity.
Separate task supervision from representation supervision. The missing-word objective teaches the system to choose a class-associated label word. The contrastive objective shapes the relationships among examples. These objectives answer different questions, so combining them can provide richer guidance than either alone. Outside this setting, the transferable idea is to separate correct decisions from useful internal organization, then evaluate whether supervision of both improves the final task.
Use a stronger generator to prepare training material. The larger system in LM-CPPF produces paraphrases; RoBERTa-base remains the classifier being adapted and evaluated. This division gives the generator a bounded supporting role. Similar arrangements can help when a deployed component must remain smaller, cheaper, or more inspectable than the system used to prepare its training material. The important question becomes whether the prepared material transfers useful variation, rather than whether the generator can solve the task directly.
Treat instructions as experimental variables. The paper changes both the formatting of paraphrase demonstrations and the instruction preceding them. These choices affect downstream classification, even though they belong to an earlier preparation stage. This is a useful reminder that data-generation instructions are part of an experimental method. They deserve controlled comparison, versioning, and evaluation through the task that ultimately consumes their outputs.
Compare components under a shared budget. The experiments include a contrastive baseline without augmentation, alternative augmentation methods, and generators of different capacities. They also adjust baseline training to the authors’ resource setting. Such comparisons help locate the source of an improvement. This principle applies broadly to systems assembled from several stages: preserve a common evaluation setting while changing the component whose contribution is being investigated.
Report variability alongside average success. LM-CPPF improves average results while also showing greater variation across runs. Both properties matter when labelled examples are scarce and a particular sample can influence the outcome. A practical evaluation should therefore ask not only which method has the highest reported mean, but how reliably it performs and whether an added generation stage introduces another source of instability.
Deep dive: LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning
How LM-CPPF uses generated paraphrases to improve learning from few examples, with its training method, experimental results, and limits. · about 36 minutes to read
How Mova uses it
Mova is a small, transparent language system implemented in Rust. Its native understanding proceeds through dependency trees, event frames, and an explicit world state. It does not use LM-CPPF’s masked-word classifier as its native language core. The connections below concern possible transfers of the paper’s experimental ideas into Mova’s rules, statistics, corpus preparation, and assessment. The status marks compare each proposal with the documented mechanisms; they do not report a measured application of LM-CPPF.
Idea: Change sentence wording as well as the surrounding task template. Where: Method, Background; Experiments, Paraphrasing in Prompt Fine-tuning. Area: data augmentation. Mova: нове. A proposed extension would prepare alternative expressions of an existing teaching sentence and compare the native interpretation across those expressions. This would extend beyond changing a worker instruction or assessment wrapper. The digest does not establish an admitted paraphrase-augmentation path, although its absence cannot establish that none exists elsewhere. Why Mova: This could expose rules that recognize a familiar formulation while missing another expression of the same event.
Idea: Declare the meaning that a rewrite must preserve. Where: Method, Few-shot paraphrasing; Appendix C, instruction templates. Area: semantics and data validation. Mova: частково є (tools/enrich/README.md; docs/hybrid-system.md). Mova already distinguishes source-bound proposals from admitted knowledge and requires explicit assumptions and failure behavior at interfaces. A paraphrase proposal could add an explicit preservation obligation covering participants, event roles, negation, quantities, and attribution. These checks would be a Mova hypothesis, not something LM-CPPF implements. Why Mova: A fluent rewrite can still change the proposition that a transparent reader is expected to recover.
Idea: Separate correct task decisions from agreement between related observations. Where: Method, Contrastive prompt-based fine-tuning; Appendix D, loss objectives. Area: learning objectives. Mova: нове. A non-neural adaptation could score an answer separately from the agreement of its frame or world representation with a reviewed equivalent sentence. The paper supplies the distinction between decision supervision and relational supervision; it does not supply a rule-based equivalent of its contrastive loss. Why Mova: Separate scores could reveal whether a correct answer rests on a stable interpretation or an accidental shortcut.
Idea: Keep the stronger generator outside native assessment. Where: Method, Few-shot paraphrasing; Experiments, evaluation protocol. Area: architecture and training data. Mova: вже є (README.md; docs/architecture.md, teacher loop and students). Mova already uses an external teacher to prepare or review supervision while keeping its own assessment answers native. LM-CPPF offers another example of a larger system contributing training material instead of replacing the evaluated learner. Any paraphrases would still need Mova’s admission process; the paper’s successful classifier results would not make them trusted automatically.
Idea: Version and compare data-generation instructions. Where: Experiments, Prompt Template Evaluation; Appendix C. Area: evaluation and provenance. Mova: частково є (annot teacher prompts; tools/enrich/README.md, prepared review packets and source fingerprints). Existing machinery retains prompts and binds teaching proposals to sources. A paraphrase experiment could additionally hold the source examples fixed while comparing instruction variants through native downstream results. Why Mova: It would make an apparently minor wording change reviewable as a change to the data-production procedure.
Idea: Isolate augmentation from other learning changes. Where: Experiments, Table 1; Appendix A, Evaluation Setting. Area: experimental design. Mova: частково є (README.md, measured principles; docs/architecture.md, regression-gated extensions). Mova already uses held-out comparisons and controlled gates. A dedicated paraphrase experiment should compare unchanged teaching material, additional reviewed paraphrases, and any modified learning rule separately. The particular controls would need to fit the native learner. Why Mova: Otherwise a gain could be attributed to paraphrases when it actually comes from another simultaneous change.
Idea: Measure instability introduced by preparation. Where: Experiments, Paraphrasing in Prompt Fine-tuning; Tables 1 and 2. Area: statistics. Mova: частково є (README.md, deterministic repeated runs; tools/dictindex/README.md, repeated-result hashes). Reproducibility with fixed artifacts is already a Mova requirement. A separate experiment could compare several reviewed augmentation sets prepared from the same source material, preserving deterministic evaluation of each set. Why Mova: Identical execution does not establish that independently prepared teaching sets have equivalent effects.
Idea: Distinguish another example from another expression of the same example. Where: Method, Contrastive prompt-based fine-tuning; Figure 1. Area: data representation. Mova: нове. A proposed training record could explicitly distinguish a reviewed paraphrase relationship from ordinary membership in the same answer class. Those relationships should not be collapsed: similar labels can cover different events, while paraphrases claim a more specific correspondence. Why Mova: Mova’s explicit graphs could retain why examples are related rather than treating all positive training pairs as interchangeable.
Idea: Vary demonstration context independently of the target sentence. Where: Figure 1; Appendix D, construction of the input views. Area: evaluation. Mova: нове. An assessment could keep a target proposition fixed while varying irrelevant surrounding examples, then separately vary the target wording. Native answers and reasons could reveal which source of variation causes failure. The paper does not report this separation as a Mova-style diagnostic. Why Mova: A reader should not change an event interpretation merely because unrelated nearby examples change.
Idea: Generate candidates from the permitted training partition. Where: Method, Few-shot paraphrasing. Area: data governance and evaluation. Mova: вже є (tools/dictindex/README.md, assessment exclusions; tools/enrich/README.md, separate admission and assessment). LM-CPPF restricts task examples used for paraphrase demonstrations to its small training collection. Mova likewise keeps assessment material outside training paths. A related use would preserve the same separation when assembling any future paraphrase packet, including the examples that teach the external generator what rewriting means.
Idea: Exclude a target from its own rewriting demonstrations. Where: Method, Few-shot paraphrasing. Area: sampling. Mova: нове. A proposed corpus-preparation rule could prevent the sentence currently being rewritten from also appearing as a completed demonstration in that request. The paper uses the remaining same-class examples to construct its demonstration context. Why Mova: Explicit exclusion would make the provenance of a generated variant easier to inspect and avoid a trivial copying route within the packet.
Idea: Retain provenance for demonstration paraphrases. Where: Method, Few-shot paraphrasing; Limitations. Area: annotation quality. Mova: частково є (tools/dictindex/README.md, source credits and append-only labels; tools/enrich/README.md, source-bound review). Mova already records evidence and separates review from admission. A future paraphrase path could identify who or what produced each demonstration rewrite, which original it belongs to, and which review accepted it. Why Mova: The quality of examples shown to the generator is a dependency of the resulting training material, not an incidental detail.
Idea: Evaluate generated language through its eventual consumer. Where: Experiments, Prompt Template Evaluation. Area: evaluation. Mova: частково є (tools/enrich/README.md, same-question comparisons; docs/architecture.md, student assessment). LM-CPPF judges paraphrasing settings through downstream classification. Mova could likewise evaluate reviewed rewrites through parsing, role recovery, or answering, while keeping those outcomes distinct. Why Mova: A natural-sounding paraphrase can be unhelpful teaching material for the particular native mechanism being improved.
Idea: Require structural diversity rather than synonym changes alone. Where: Introduction; Method, Background; Appendix C. Area: syntax. Mova: нове. A candidate-generation packet could request changes in sentence construction, then use dependency observations to describe what actually changed. Structural difference would remain a description, not proof that meaning survived. Why Mova: This could exercise the transition from syntax to frames instead of repeatedly teaching the same arrangement with different vocabulary.
Idea: Treat lexical substitution as a sense-sensitive operation. Where: Method, Background. Area: lexical semantics. Mova: частково є (docs/architecture.md, concept senses; tools/dictindex/README.md, contextual examples and reviewed selectors). The paper warns that replacing words with apparent synonyms can alter meaning. Mova already distinguishes senses and retains corpus contexts. A proposed augmentation gate could require reviewed evidence that the replacement fits the relevant sense. Why Mova: This connects paraphrase checking directly to the free dictionary’s need to preserve distinctions between uses.
Idea: Test translation-based augmentation by intermediate language. Where: Experiments, Few-shot Paraphrasing vs. Other Data Augmentation Methods. Area: multilingual evaluation. Mova: нове. If Mova later uses translation round trips to propose variants, intermediate-language choice should become an explicit experimental setting. The paper’s results show that the choice affects its classifier; they do not establish which choice would help Mova. Why Mova: A single round-trip result could conceal dependencies on the translation path rather than the native reader.
Idea: Examine sentence complexity as a possible moderator. Where: Experiments, discussion of back translation. Area: analysis. Mova: нове. The authors suggest that differences between shorter, simpler examples and longer sequences may help explain augmentation behavior. Mova could test that suggestion by reporting outcomes across declared sentence properties, without assuming the explanation is established. Why Mova: Such analysis could indicate whether failures arise from missing constructions, ambiguous roles, or fragile lexical handling.
Idea: Compare a prepared specialist with an unchanged general generator. Where: Experiments, Paraphrasing in Prompt Fine-tuning; Appendix A. Area: preparation cost and specialization. Mova: нове. The paper compares unchanged GPT-2 with GPT-2 adapted for paraphrasing. A Mova experiment could use the same principle when choosing an optional external preparation component, keeping that component outside the native core. Why Mova: Task-specific preparation might offer a different quality-and-cost tradeoff from repeatedly using a much larger general service.
Idea: Prefer ordinary language over opaque demonstration markers when evidence supports it. Where: Experiments, Prompt Template Evaluation; Appendix C, demonstration templates. Area: prompt design. Mova: нове. A future teacher packet could compare plain relational wording with labelled input-output fields while preserving identical examples. The paper’s strongest demonstration format motivates the comparison but does not establish a universal preference. Why Mova: More explicit relationships between an original and its rewrite may reduce ambiguity in the preparation request.
Idea: Separate paraphrasing from summarization. Where: Appendix C, instruction alternatives; Experiments, instruction comparison. Area: semantics and annotation policy. Mova: частково є (tools/enrich/README.md, bounded answer spans and source-bound drafts). Several tested instructions invite compression, while others emphasize meaning preservation. Mova could require the requested transformation type to be declared and review omitted content accordingly. Why Mova: A shortened sentence may preserve its topic while dropping a quantity, participant, or condition needed for exact reasoning.
Idea: Preserve task-specific exceptions when selecting instructions. Where: Experiments, Table 4. Area: evaluation. Mova: частково є (README.md, held-out gates; applied-rule ledger, fixed and broken cases). The strongest overall-looking instruction does not lead every task. A Mova comparison should retain losses and abstentions alongside gains, as its rule measurements already do. Why Mova: A corpus-preparation setting that helps common constructions could still damage a smaller but important class of cases.
Idea: Account for generation and learner costs separately. Where: Appendix D, computational-cost discussion; Limitations. Area: resource measurement. Mova: частково є (docs/architecture.md, jobs with estimates and actual measurements; tools/twin). The paper distinguishes extra learner computation from paraphrase production, though it leaves important accounting details open. Mova could measure preparation, review, storage, and native training as separate activities. Why Mova: A cheap lookup during learning can depend on expensive work performed earlier.
Idea: Keep an explicit representation of the competing training signals. Where: Appendix D, MLM and supervised contrastive losses. Area: mathematics and diagnosis. Mova: нове. A rule-and-statistics adaptation could retain distinct diagnostic totals for task errors and disagreement among reviewed equivalents, rather than hiding them inside a single aggregate. This would borrow the separation of objectives without claiming mathematical equivalence to neural contrastive learning. Why Mova: Inspectable component scores would help explain why an experiment improves one behavior while weakening another.
Idea: Review generation errors before admitting knowledge. Where: Related Works, discussion of semantic inconsistency; Limitations. Area: data admission. Mova: вже є (tools/enrich/README.md; docs/hybrid-system.md, evidence boundaries). Mova already treats staged teaching material as a draft and rejects the idea that a worker output automatically becomes trusted knowledge. The paper reinforces why that boundary matters for paraphrases: the generator’s intended role is meaning preservation, but intention does not establish successful preservation in every output.
Idea: Record the full experimental configuration behind a gain. Where: Appendix A; Appendices B and C. Area: reproducibility. Mova: частково є (README.md, deterministic measurements; tools/dictindex/README.md, immutable source versions). The paper exposes learner settings, prediction prompts, and generation prompts as separate configuration layers. A corresponding Mova record could bind all preparation artifacts and native settings to the reported comparison. Why Mova: A result cannot be interpreted reliably if a changed source, instruction, or learner configuration is hidden behind the same experiment name.
The problem and its context
Why scarce labels make adaptation difficult
The paper addresses a familiar situation in text classification: a system has substantial prior language training but only a small labelled sample for the task now being requested. General linguistic competence does not automatically determine how a new dataset’s labels should be assigned. The learner must connect its existing representations to the task using limited evidence, and that connection can become sensitive to the selected examples or to the wording used to present them.
The authors situate this problem within the progress of pretrained language models. Such systems learn from large text collections before adaptation to a downstream task. The paper cites work including XLNet as part of that background. Its motivation is not that prior language learning is ineffective, but that ordinary adaptation becomes less reliable when the task-specific dataset is small.
The introduction also raises parameter efficiency. Fully adapting a large pretrained system for each new task can require maintaining a separate adapted system. The authors cite parameter-efficient transfer learning in that context. LM-CPPF does not itself introduce an adapter architecture or establish a new parameter-saving mechanism. Its proposed intervention concerns training examples and objectives. This distinction matters because a problem mentioned in the motivation is not necessarily a problem solved by the contribution.
Another strand of the context is the ability of very large systems to respond to prompts containing a task description and examples. The paper refers to Language Models are Few-Shot Learners when discussing GPT-3. The authors want useful few-shot behavior without requiring the final classifier to have the scale of the paraphrase generator. Their arrangement therefore assigns different jobs to the large generator and the smaller classifier.
Why prompts became part of the solution
Prompt-based classification presents a task in a form resembling missing-word prediction. Rather than introducing only an abstract class identifier, a template supplies a linguistic context in which a word can stand for the class. A sentiment decision, for instance, can be expressed through an evaluative word placed after the input sentence.
The paper places this approach alongside cloze-based few-shot classification and work on smaller few-shot learners. The important connection is between the task and a prediction form already available to the pretrained system. A label such as positive sentiment becomes associated with a word the system can predict in context.
LM-BFF is the immediate foundation. In the authors’ account, Making Pre-trained Language Models Better Few-shot Learners improves adaptation through prompt construction and the use of demonstrations. These demonstrations show examples together with the words representing their labels. They help the classifier interpret the relationship between a task’s classes and its verbalizers.
Prompting introduces its own sensitivity, however. Different templates can produce different behavior, and a small training set provides limited evidence for choosing among them. The paper discusses subsequent efforts to improve prompt-based adaptation, including continuous prompts guided by context and the addition of supervised contrastive learning. LM-CPPF develops the latter direction.
Why contrastive learning needs useful variation
Supervised contrastive learning uses labels to organize representations. Examples belonging to a shared class supply positive relationships; examples assigned different classes provide contrasting relationships. The aim is not merely to obtain the right final label for each training sentence, but to make the representation space reflect class distinctions.
The earlier contrastive prompt method discussed by the authors creates views using different templates. LM-CPPF challenges the adequacy of that variation. If the input sentence stays unchanged, a new template changes its presentation without necessarily supplying another linguistic realization of its content. The authors argue that this can restrict the value of augmentation.
This is a specific criticism, not a claim that template variation is useless. Their own results show benefits from the multiple-template baseline relative to simpler alternatives. The proposed improvement asks whether contrastive learning becomes more effective when the sentence itself changes in a meaning-preserving way.
Text creates a difficult version of the augmentation problem. An image transformation may be intended to preserve an object category, but a small text edit can alter the proposition. Deleting a word, substituting a near-synonym, or moving material can change sentiment, grammaticality, or a relation between sentences. Useful diversity must therefore be balanced against preservation of the relevant label.
Earlier ways to generate alternative text
The paper discusses easy data augmentation as a family of relatively simple edits. These include replacing words, inserting material, swapping positions, and deleting words. Such operations can produce variation cheaply, but they do not automatically respect the meaning of a sentence. The authors particularly question synonym replacement because a word’s possible substitutes depend on its sense and context.
Back translation supplies another route. A sentence is translated into an intermediate language and then returned to its original language. The paper connects this approach with work using monolingual material for translation. A round trip can change expression while retaining substantial content, but its behavior depends on the intermediate language and the translation systems.
The authors also discuss dedicated paraphrase generation and resources such as ParaNMT-50M. Their related-work account mentions paraphrases as useful for classification, inference, and summarization, citing work including diverse paraphrasing for augmentation and consistency-based augmentation.
LM-CPPF’s proposal is to use demonstrations to elicit paraphrases from a large generator, then insert those outputs into contrastive prompt-based training. The novelty claimed by the authors concerns this use of prompted large-system paraphrasing as augmentation. Their broader premise—that alternative expressions can improve training—belongs to the earlier work they discuss.
The method, step by step
The complete training arrangement
LM-CPPF has a preparation stage and a learner-adaptation stage. Preparation constructs paraphrases of the limited training examples. Adaptation presents original and alternative sentences in classification prompts, then applies the task loss and supervised contrastive learning.
The classifier is RoBERTa-base in the reported experiments. RoBERTa supplies the pretrained masked-word prediction machinery. GPT-3 or OPT supplies paraphrases in the principal experiments. These are separate roles. The large generator is not the classifier whose benchmark accuracy is being reported.
From scarce labels to contrastive prompt training
The steps in order.
The training allowance is K = 16 examples for every class in the training set. The method is designed around that restriction. It does not add further labelled task examples when constructing the paraphrasing prompts.
That restriction concerns task data, not the prior knowledge of the components. The pretrained classifier, the generator, and the service used to prepare demonstration paraphrases all bring information acquired elsewhere. Few-shot evaluation in this paper therefore means limited access to labelled examples from the target task.
Preparing the paraphrasing demonstrations
For a sentence that needs a paraphrase, the authors use examples from the same class to demonstrate the rewriting task. They leave out the target sentence and use the remaining 15 training examples from that class. QuillBot supplies paraphrased versions of those demonstration sentences.
Each demonstration pairs an original sentence with an alternative expression. The generator then sees what relationship it is expected to reproduce for the target. The demonstrations are about paraphrasing, even though they are drawn from the task’s labelled collection.
The authors test different ways of expressing that relationship. Some formats identify the input and output with labels or bracketed markers. Others use ordinary prose to connect the source sentence with its reformulation. This comparison concerns the prompt shown to the paraphrase generator, not the classification template used later.
A further set of experiments adds an instruction before the examples. The instructions assign different importance to restating an idea, altering its expression, retaining its meaning, or reformulating it concisely. The distinction is consequential because summarization and paraphrasing need not preserve the same amount of information.
The main experiments outside the dedicated prompt comparison use randomly selected demonstration formats from the authors’ collection. The paper does not therefore establish a single optimized paraphrasing instruction as a prerequisite for every headline result. The later prompt analysis explores how much the preparation stage can be improved.
Turning a class into a missing-word decision
The learner receives the target sentence inside a task-specific template. The template contains a mask, and a verbalizer maps each class to a word that can fill that position. For sentiment, favourable and unfavourable classes are associated with evaluative words. For inference tasks, the verbalizers express agreement, uncertainty, or rejection, depending on the label inventory.
For an input sequence, the classifier produces hidden representations at its token positions. The representation at the mask is used to score the words selected as class verbalizers. The prediction rule is:
p(y | x_in) = p([MASK] = V(y) | x_in) = exp(w_V(y) · h_[MASK]) / Σ_{y′ ∈ Y} exp(w_V(y′) · h_[MASK])
Here, x_in is the input presented to the classifier. Y is the set of possible classes, and y is a particular class. V maps a class to its verbalizer word. The expression h_[MASK] denotes the hidden representation at the masked position, while w_V(y) is the prediction-head weight vector associated with that verbalizer.
The dot indicates an inner product between the weight vector and the hidden representation. The exponential converts the resulting score into a positive quantity. The denominator sums the corresponding quantities across the available classes, with y′ serving as the summation variable. The result is a probability distribution over the task’s verbalizer choices.
This formulation makes the label-word mapping part of the classifier. It is not enough for a representation to contain useful information in an abstract sense; the training process must connect that information to the selected word at the mask.
Adding labelled demonstrations to the classifier input
LM-BFF-style inputs append task demonstrations after the masked target. A demonstration uses the same classification template but places the example’s actual verbalizer where the target retains a mask. The paper describes the combined input as:
T(x_in) ⊕ T(x_in¹, y¹) ⊕ … ⊕ T(x_inᵏ, yᵏ)
T is the formatting operation that inserts a sentence into the classification template. For the target, T leaves the prediction position masked. For a demonstration, T receives both the example x_inⁱ and its class yⁱ, allowing the corresponding verbalizer to fill that position.
The symbol ⊕ means concatenation: the formatted pieces are placed together in the input sequence. The superscript i identifies a demonstration, and k denotes how many demonstrations are included. The authors sample demonstrations randomly from the available training data.
These task demonstrations have a different purpose from the earlier paraphrasing demonstrations. The earlier pairs teach the generator how to rewrite. The later examples show the classifier how task labels correspond to words. Confusing these stages would obscure where each kind of supervision enters.
The masked prediction objective is:
L_MLM = −Σ_{(x_in, y) ∈ D_train} log p(y | x_in)
L_MLM names the masked-language-prediction loss. D_train is the labelled training collection, and each pair contains an input x_in together with its correct class y. The logarithm is applied to the probability assigned to that class. The negative sum penalizes predictions that give the correct verbalizer little probability.
Though the task is presented through a language-prediction interface, its supervision remains the classification label. The method is not asking the classifier to invent an unrestricted continuation. It is learning to prefer the verbalizer associated with the known class.
Building the related input views
Contrastive learning needs related observations. Figure 1 illustrates an anchor prompt, another example from the anchor’s class, an example from a different class, and a paraphrased version of the anchor. The same-class example and the paraphrase provide different kinds of positive relationship.
Another sentence from the same class need not mean the same thing as the anchor. Its role is to reinforce a class-level relationship. A paraphrase makes the stronger claim that an alternative expression preserves the original content relevant to the task.
For the paraphrase-based construction, the paper gives an original view:
x_in1 = T(sent) ⊕ T(demo1) ⊕ T(demo2)
x_in1 is the classifier input for the original sentence. The variable sent denotes that target sentence. T again applies the classification template, and demo1 and demo2 are sampled task demonstrations. Their formatted versions are concatenated with the target.
The related view replaces the target with a paraphrase and changes the demonstrations:
x_in2 = T(Par(sent)) ⊕ T(demo3) ⊕ T(demo4)
x_in2 denotes the alternative input. Par is the paraphrasing operation, so Par(sent) is a generated reformulation of the target. The demonstrations demo3 and demo4 differ from those used in the original input. The classification template remains the same.
This construction changes both the target expression and its demonstration context. As a result, the final comparison is not a pure test of sentence rewriting with all surrounding material held constant. It asks the classifier to maintain useful class relationships across the complete views constructed by the method.
The contrastive objective and its level of detail
The paper presents the supervised contrastive objective schematically:
L_SupCon = (x′₁, x′₂, y)
L_SupCon names the supervised contrastive loss. The variables x′₁ and x′₂ stand for augmented versions of an input batch, and y supplies the corresponding class labels. The expression indicates the arguments involved, but does not expand the contrastive calculation into a complete mathematical definition.
Its intended behavior is described in words: organize examples according to class in the representation space. Related class instances should support one another, while different classes should be distinguishable. The notation should not be read as a complete prescription for normalization, similarity computation, or every implementation detail.
The combined objective is written as:
L_Total = L_SupCon + L_MLM
L_Total is the overall training objective. It adds the supervised contrastive term L_SupCon to the masked prediction term L_MLM. No additional weighting coefficient appears in this displayed expression.
The algorithm describes training through separate updates. It constructs inputs, calculates the masked prediction loss, performs back-propagation and an optimizer update, and then processes the contrastive part with another backward-and-update stage. Thus the stated sum describes the contributing objectives, while the pseudocode provides a more procedural account of how learning proceeds.
Training settings and computational work
The authors adapt RoBERTa-base on an NVIDIA RTX-3090 with 24 GB of memory. They use a maximum of 1000 training steps. The masked prediction learning rate is 1e −5.
Resource limits affect the contrastive phase. The authors use half the batch size recommended by the earlier contrastive prompt method and scale the corresponding learning rates using sqrt(0.5) ≈ 0.7. They rerun comparison systems under their chosen resource setting rather than treating published results from another setting as automatically comparable.
The contrastive batch size is 8 for SST-2 and 20 for SST-5. MNLI uses 12, while CoLA and QNLI each use 8. CR uses 16. The contrastive learning rate for SST-2 is 7e −7; the remaining tasks use 7e −6.
The paper also tests GPT-2 as the paraphrase generator. Its adapted version is trained using ParaNMT-50M, with a batch size of 32 and a learning rate of 1e −3 over 5 epochs. These settings belong to preparing the generator, not adapting RoBERTa-base for the classification benchmarks.
The authors release an implementation named LM-CPPF. Their computational discussion says the contrastive component requires extra forward and backward work, giving a factor of 1.5 relative to the learner computation they discuss. Paraphrase production introduces a separate dependency whose full practical cost is not characterized by that factor alone.
Experiments and results
What is evaluated
The benchmark collection covers several kinds of classification. SST-2, SST-5, and CR concern sentiment. MNLI and QNLI use inference-related labels, while CoLA concerns grammatical acceptability. These task differences matter because preserving a broad topic or an approximate message is not necessarily sufficient to preserve every label.
The paper reports average accuracy across five runs. This article follows that metric description when discussing its tables, including CoLA. It does not replace the authors’ metric label with another convention. The paper does not provide detailed split inventories or full dataset descriptions in its experimental account, so the results should be understood through its stated few-shot protocol.
All principal classifier comparisons use RoBERTa-base with K = 16 labelled training examples per class. The generation component changes across some experiments, but the evaluated classifier remains the same type of learner.
The main baseline sequence is deliberately informative. LM-BFF supplies the prompt-based foundation. A version with supervised contrastive learning adds the relational objective without augmentation. The multiple-template method adds prompt variation. LM-CPPF then replaces that source of variation with generated paraphrases.
The principal comparison
On SST-2, the main comparison shows improvement from the base prompt method through contrastive training and then paraphrasing. The chart includes both large paraphrase generators and the smaller GPT-2 alternatives.
Classification methods on SST-2, average accuracy
GPT-3 paraphrasing gives the strongest result in this comparison.
The numbers
| System or setting | accuracy % |
|---|---|
| LM-BFF | 89.5 |
| LM-BFF with supervised contrastive loss | 90.3 |
| LM-BFF with multiple templates | 91.0 |
| LM-CPPF with pretrained GPT-2 | 91.1 |
| LM-CPPF with fine-tuned GPT-2 | 91.4 |
| LM-CPPF with OPT | 91.8 |
| LM-CPPF with GPT-3 (this paper) | 92.3 |
SST-5 follows the same ordering between the main prompt baseline, the multiple-template method, and the large-generator variants. LM-BFF obtains 48.5, the multiple-template baseline reaches 50.3, and LM-CPPF records 52.8 with GPT-3 and 52.2 with OPT.
MNLI makes the contrast between augmentation sources particularly visible. The baseline prompt method obtains 62.3, adding supervised contrastive learning gives 63.2, and multiple templates give 64.8. The paraphrase variants reach 68.4 with GPT-3 and 66.2 with OPT.
For CoLA, the corresponding main entries are 6.9 for LM-BFF and 11.6 for the multiple-template method. GPT-3 paraphrasing produces 14.1, while OPT gives 13.3. These are the paper’s reported accuracy figures; the experimental account does not provide further metric derivation.
QNLI also favours paraphrasing. LM-BFF records 61.2, the contrastive-only variant gives 65.4, and the multiple-template method reaches 67.2. LM-CPPF obtains 69.2 with GPT-3 and 68.5 with OPT.
On CR, LM-BFF gives 89.7 and multiple templates give 90.2. The GPT-3 and OPT paraphrase variants obtain 91.4 and 91.1 respectively. Across the task collection, the authors’ large-generator variants therefore improve on the multiple-template comparator in the main table.
What the generator comparison establishes
GPT-3 produces stronger downstream results than OPT-175B in every task of the main comparison. The authors note that both have 175B parameters, so their results do not support parameter count as a sufficient explanation of the difference between those generators.
The paper chooses OPT-175B for subsequent analysis. It motivates that choice through availability and an environmental comparison attributed to the OPT work, including a reported 1/7 carbon footprint relative to GPT-3. That statement concerns the comparison cited by the authors; it is not a measurement of the total environmental cost of running every LM-CPPF experiment.
GPT-2 provides an additional capacity and specialization comparison. On SST-5, pretrained GPT-2 yields 51.4 and the adapted version yields 51.6. On MNLI, the figures are 65.6 and 65.8. For CoLA, the adapted generator gives 11.8 compared with 10.7 from its unchanged counterpart.
The adapted GPT-2 variant also improves on the unchanged version for QNLI, with 67.8 against 67.5, and for CR, with 90.7 against 90.2. The authors interpret these comparisons as evidence that additional paraphrase-specific preparation helps the smaller generator.
That interpretation is narrower than a general law about size. The experiments compare particular generators and a particular adaptation resource. They do not isolate every difference in pretraining, generation behavior, or output quality. The reliable observation is that the chosen GPT-2 adaptation improves the downstream results reported here.
Paraphrasing against back translation and simple edits
The next comparison holds the paraphrase-based training framework against alternative text-augmentation methods. Back translation is tested with Arabic, French, German, Chinese, and Hindi as intermediate languages. Easy data augmentation is examined both as a combined procedure and through individual edit types.
MNLI illustrates the outcome across representative alternatives:
Augmentation choices on MNLI, average accuracy
Few-shot paraphrasing leads the tested translation and editing alternatives.
The numbers
| System or setting | accuracy % |
|---|---|
| Combined easy data augmentation | 60.3 |
| Back translation through Hindi | 62.2 |
| Back translation through French | 63.1 |
| Back translation through German | 63.8 |
| Back translation through Arabic | 64.3 |
| Back translation through Chinese | 65.4 |
| Few-shot paraphrasing with OPT (this paper) | 66.2 |
The same comparison favours few-shot paraphrasing across the complete task collection. For SST-5, the paraphrase method obtains 52.2, compared with 49.6 for Chinese back translation and 48.2 for combined easy data augmentation. On QNLI, the corresponding entries are 68.5, 66.6, and 63.3.
CR is informative because simple edits are relatively competitive with back translation. Few-shot paraphrasing reaches 91.1. Combined easy data augmentation gives 89.7, whereas Chinese back translation gives 88.7. The authors therefore do not describe translation as uniformly superior to simple edits on every dataset.
SST-2 provides a similar caution. The combined edit method records 90.4, while the translation alternatives range across their reported settings. An individual random-deletion setting reaches 91.3, and few-shot paraphrasing reaches 91.8. The stronger result for a particular edit than for the combined edit procedure also shows that combining augmentation operations does not automatically improve them.
The authors suggest that translation-based augmentation may benefit more from longer, context-rich sequences than from simple sentences. This is offered as an explanation of the observed pattern, rather than established through a separate length-controlled experiment.
Average results and their variability
The paper reports average standard deviations across tasks. LM-BFF has 0.77, the multiple-template method has 1.02, and LM-CPPF has 1.65 when averaged over its paraphrase-generator variants in the principal comparison.
The augmentation comparison reports 1.31 for back translation and 1.4 for easy data augmentation, again as averages. The LM-CPPF figure remains 1.65 in that discussion.
These statistics qualify the average gains. A method can have a stronger mean while being less stable across runs. The authors connect the additional variability to the intermediary paraphrase generator and contrast that with templates chosen to have comparatively similar behavior.
The paper does not provide task-by-task uncertainty intervals in these tables. Its aggregate variability figures therefore support a general observation about stability, but do not establish the statistical significance of every individual comparison. Neither a higher mean nor a reported average standard deviation substitutes for a paired analysis of each task.
Results after changing the generation instruction
The prompt-analysis experiments examine how much the paraphrase-generation request influences the downstream classifier. Demonstration formatting and an added instruction both matter, but their effects differ by task.
SST-5 gives a clear illustration of the instruction comparison:
Paraphrasing instructions on SST-5, average accuracy
The instruction emphasizing wording, structure, and preserved meaning performs best here.
The numbers
| System or setting | accuracy % |
|---|---|
| No added instruction | 54.1 |
| Instruction 1 | 54.7 |
| Instruction 2 | 54.5 |
| Instruction 3 | 54.2 |
| Instruction 4 (this paper) | 54.9 |
| Instruction 5 | 54.3 |
The instruction numbered 4 explicitly emphasizes changes in vocabulary and construction while retaining the intended content. It also gives the strongest reported instruction-setting result on SST-2, with 93.2, and on MNLI, with 68.2.
QNLI reaches 70.2 under that instruction, and CR reaches 93.3. CoLA is the important exception: its no-instruction result of 13.6 exceeds the 13.3 reported for instruction 4. The authors’ preferred wording is therefore effective across much of the comparison, but does not establish an improvement for every task.
What the ablations show
Contrastive learning helps before paraphrasing is introduced
The baseline containing supervised contrastive learning but no augmentation isolates an important part of the method. Its improvement over LM-BFF shows that some benefit comes from the additional training objective itself.
For SST-5, the contrastive-only setting gives 49.6 compared with 48.5 for LM-BFF. CoLA moves from 6.9 to 9.6 in the same comparison. These entries make it inappropriate to attribute the complete distance between LM-BFF and LM-CPPF solely to paraphrases.
The multiple-template baseline then adds another layer. It obtains 50.3 on SST-5 and 11.6 on CoLA. The experiment therefore provides a progression from task supervision, to relational supervision, to augmentation, instead of comparing an entirely unmodified learner against the final system alone.
This is still not a complete factorial experiment covering every possible combination of objectives and data. In particular, the reported comparison does not separately establish the effect of using the generated paraphrases in an otherwise identical classifier without contrastive learning.
Generator adaptation has an observable downstream effect
The GPT-2 comparison tests whether paraphrase-specific adaptation helps an otherwise smaller generator. Its adapted variant improves the reported classification result on every task relative to the unchanged GPT-2 variant.
That is evidence about usefulness for the downstream training pipeline. It is not a direct evaluation of paraphrase fidelity, diversity, or grammatical quality. A generator might produce outputs that are useful for classification without being uniformly superior under every linguistic criterion.
The authors explain the smaller generator’s weaker performance through limited capacity and insufficient paraphrasing ability after pretraining. Their adaptation experiment supports the relevance of task-specific preparation, but does not independently measure each proposed cause.
The comparison also shows that the method is not tied exclusively to the strongest generator tested. Smaller-generator variants can produce competitive results against some baselines. Their success and their remaining gap are both part of the evidence.
Demonstration format changes the resulting training material
The demonstration-template experiment compares ways of introducing an original sentence and its reformulation. The final format connects them through a natural-language relation, rather than relying completely on field labels.
For SST-2, that setting gives 92.4, whereas the initial format gives 91.8. SST-5 records 54.1 under the final format and 52.2 under the initial one. CR similarly records 92.2 and 91.1.
The result is not universal. MNLI reaches 66.9 with a different demonstration format, rather than the 66.4 reported for the final format. CoLA also has a stronger entry elsewhere in the template comparison.
The authors interpret the broad pattern as support for clearer, more concrete demonstration wording. A careful reading keeps the empirical observation separate from that explanation. The experiment changes format and observes classifier accuracy; it does not directly measure how the generator interprets the markers.
Explicit instructions often help, with a meaningful exception
The instruction experiment adds a verbal task description to the demonstrations. Its no-instruction baseline uses the best demonstration setting for the relevant task, rather than always using the initial demonstration format.
That selection explains why the no-instruction row is not simply a repetition of every value in the final demonstration-template column. MNLI, for example, uses its stronger demonstration result of 66.9 before instruction variation is examined.
The instruction emphasizing preservation alongside lexical and structural change performs best across most tasks. It communicates both the freedom granted to the generator and the constraint that should limit that freedom.
CoLA complicates the generalization. Every reported instruction variant is below its no-instruction entry of 13.6. The authors do not provide a targeted analysis of why. A plausible concern is that paraphrasing interacts differently with an acceptability label, but the paper does not establish that explanation.
The broader lesson is therefore conditional: an explicit instruction can improve the usefulness of generated views, but the correct instruction must be evaluated against the label semantics of the downstream task.
Augmentation operators should be inspected individually
The easy-data-augmentation comparison includes synonym replacement, insertion, swapping, and deletion separately. This matters because an aggregate method can conceal different behaviors among its components.
On MNLI, random insertion gives 63.2 while combined easy data augmentation gives 60.3. On CR, synonym replacement gives 89.8 compared with 89.7 for the combined procedure. These figures do not prove that the combined procedure is generally undesirable, but they do show that adding operations can introduce unhelpful variation.
Back translation also depends on its configuration. Chinese is the strongest translation route in the reported comparisons, while other intermediate languages produce different outcomes. Translation is therefore not a single fixed baseline whose implementation details can be ignored.
Together, these analyses support the paper’s central emphasis on the quality of views. Contrastive learning is not indifferent to how alternative examples are created. The labels may remain attached automatically, but the transformation can make those labels more or less defensible.
Limitations
Limitations identified by the authors
The authors identify access to the large paraphrase generators as a practical constraint. GPT-3 and OPT-175B are not treated as universally convenient resources. The freely accessible OPT option is described as slow.
This dependency is relevant even though the final classifier is smaller. Moving the large component into preparation can reduce the need to use it during classification, but does not remove the need to obtain its outputs.
The second stated limitation concerns demonstrations for paraphrasing. The generator is shown original–rewrite pairs, and the quality of those pairs can constrain its behavior. QuillBot provides a practical way to construct them, but the authors regard its output quality as weaker than that of the large generators.
Human-written demonstration paraphrases are another possibility mentioned in the limitations. The authors regard them as potentially helpful but expensive. Thus the method’s small task-label budget does not imply that all preparation effort is negligible.
These limitations share a common structure. LM-CPPF depends on generated material whose quality is influenced by another stage. Its effectiveness cannot be evaluated solely by inspecting the final learner architecture.
Meaning preservation is assumed more often than measured
A careful reader should distinguish the desired property of a paraphrase from a verified property of every generated sentence. The instructions ask for preserved meaning, and the training method treats the resulting view as compatible with the original label. The paper does not report a direct human fidelity assessment or a systematic label-preservation audit.
This matters differently across tasks. A rewrite can preserve broad sentiment while changing the strength of an opinion. It can preserve a sentence’s general message while altering a detail relevant to inference. For grammatical acceptability, a fluent reformulation can remove precisely the feature that made the original example unacceptable.
These are methodological risks visible in the setup, rather than measured failure rates supplied by the authors. The benchmark improvements show that the complete procedure is useful on average in the reported experiments. They do not show that every individual transformation is valid.
The absence of a direct paraphrase audit also limits causal explanation. Better classification could reflect several properties of the generated material: more suitable expressions, helpful regularization, or changes that make training easier. The paper does not isolate those mechanisms.
The comparisons have a defined scope
The evaluated learner is RoBERTa-base, and the task collection is classification-focused. The paper discusses broader uses of paraphrasing in earlier work, but it does not evaluate LM-CPPF on generation, structured parsing, or document-level reasoning.
The reported regime fixes the labelled allowance at K = 16 per class. There is no learning curve showing how the method changes across a range of task-data budgets. As a result, the evidence does not establish the point at which paraphrase generation becomes unnecessary or ceases to be cost-effective.
The paper also does not isolate low-resource languages or multilingual transfer. Its translation comparison tests augmentation routes, instead of showing that the final method transfers equally well across language settings.
Its principal claims concern the alternatives tested. They should not be expanded into a ranking of all possible augmentation methods, all paraphrase systems, or every way of training a contrastive classifier.
Some causal questions remain unresolved
The original and paraphrased views use different task demonstrations. This is a deliberate part of the procedure, but it means that sentence variation and context variation are present together.
A stricter diagnostic could hold the demonstrations fixed while replacing only the target, or hold the target fixed while varying the demonstrations. Those experiments are not reported. The existing comparison establishes the performance of the complete view-construction method.
Similarly, the paper does not report a separate paraphrase-only training condition that removes the contrastive objective while preserving the generated data. Its baseline progression is useful, but cannot fully disentangle every interaction between extra examples, prompt demonstrations, and representation learning.
The generator comparison is also not a controlled study of scale alone. GPT-3, OPT-175B, and GPT-2 differ in more than the capacity labels discussed by the authors. Downstream results identify useful choices within the experiment, rather than proving a single explanatory variable.
Mathematical and implementation detail is uneven
The masked prediction equations describe the probability calculation and task loss clearly. The contrastive equation is much less complete: its displayed form names inputs without expanding the actual loss.
That omission leaves some details to the cited method or implementation. A reader cannot reconstruct every aspect of the contrastive calculation from the equation alone. This is a limitation of methodological specification, not evidence that the implementation failed to use a valid contrastive objective.
The summed total loss and the staged optimizer updates should also be kept distinct. The paper communicates that both objectives contribute, while its pseudocode describes sequential learning operations. It does not explore whether alternative update schedules would behave differently.
There is also an ambiguity in referring broadly to model “outputs” in the algorithm while discussing class organization in a feature space. The conceptual intent is clear, but a fully specified account would make the exact representation passed into the contrastive calculation explicit.
Average improvements do not settle reliability or total cost
The reported standard deviations show that LM-CPPF is more variable on average than the principal baselines. The paper does not provide confidence intervals or significance tests for each reported difference.
Its prompt comparisons are informative, but the account does not fully specify an independent selection procedure for every preferred instruction and demonstration format. Results described as the best setting for a task should therefore be distinguished from a single setting selected without access to evaluation outcomes.
Computational accounting also remains incomplete. The learner-side factor of 1.5 does not quantify the latency or expense of generating paraphrases, preparing demonstrations, or adapting GPT-2. Treating the paraphrase function as O(1) does not establish negligible practical cost.
Finally, the paper’s ethics statement and its environmental motivation do not amount to a detailed audit of generated content or end-to-end resource use. The authors state their intentions and component choice; the experiments primarily measure classification performance.
What came after
The later citing work identified here is Adam’s Law: Textual Frequency Law on Large Language Models, dated 2026. The available record establishes the citation relationship and the work’s title, but does not describe how it uses LM-CPPF.
It would therefore be unwarranted to say that Adam’s Law extends paraphrase augmentation, adopts the contrastive objective, reproduces the classification gains, or challenges them. A citation can indicate background, motivation, comparison, or direct methodological inheritance. The relationship supplied here does not distinguish among those possibilities.
LM-CPPF’s documented contribution remains more precise than an unspecified later influence: it connects prompted paraphrase generation with contrastive adaptation of a smaller classifier, tests that arrangement against several alternative ways of creating training views, and shows that the wording used to request paraphrases affects downstream results. The available later-work record does not establish which part of that contribution was carried forward.
Cite
Cite as Amirhossein Abaskohi, Sascha Rothe and Yadollah Yaghoobzadeh. 2023. LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).
@inproceedings{abaskohi2023lm,
title = {{LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning}},
author = {Amirhossein Abaskohi, Sascha Rothe and Yadollah Yaghoobzadeh},
booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
year = {2023},
doi = {10.18653/v1/2023.acl-short.59},
url = {https://doi.org/10.18653/v1/2023.acl-short.59}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/abaskohi-2023-lm-cppf-paraphrasing-guided-data/