Papers
Topics
Authors
Recent
Search
2000 character limit reached

Adversarial Topic-aware Prompt-tuning (ATOP)

Updated 8 July 2026
  • The paper introduces ATOP, a framework that combines prompt-tuning, adversarial training, and pseudo-labeling to capture both topic-shared and topic-specific essay quality features.
  • ATOP employs a unified regression-classification design to predict both numerical scores and discrete essay quality categories, addressing holistic and multi-trait scoring.
  • Empirical results on the ASAP++ dataset show that ATOP outperforms state-of-the-art baselines, particularly in capturing topic-sensitive traits like adherence and content relevance.

Searching arXiv for the specified paper and closely related cross-topic AES work to ground the article. Adversarial Topic-aware Prompt-tuning (ATOP) is a cross-topic automated essay scoring (AES) method that is designed to score essays from an unlabeled target topic by learning from essays drawn from several labeled source topics. It is formulated to address a central difficulty in cross-topic AES: the discrepancy between topics. ATOP combines prompt-tuning, adversarial learning, pseudo-labeling, and a unified regression-classification framework in order to learn both topic-shared and topic-specific representations from a pre-trained LLM (PLM). The method is introduced for both holistic and multi-trait essay scoring, and is evaluated on the ASAP++ dataset, where it is reported to outperform prior state-of-the-art baselines (Zhang et al., 8 Aug 2025).

1. Problem formulation and motivation

Cross-topic AES studies the setting in which a model is trained on several source topics and must score essays from a target topic for which no labels are available during training. In the formulation used by ATOP, the source data are

S={(Xi,Yi,Ci)}i=1N\mathbf{S}=\{(\mathbf{X}_i,\mathbf{Y}_i,\mathbf{C}_i)\}_{i=1}^N

where Xi={xsi}\mathbf{X}_i=\{x_s^i\} denotes essays, Yi\mathbf{Y}_i their scores, and Ci\mathbf{C}_i classification labels derived from scores. The target topic is

T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}

with no score labels. Each essay may have a holistic score and, in the multi-trait setting, multiple trait scores. The task is to learn a transferable scoring function

y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).

The method is motivated by three limitations attributed to prior cross-topic AES systems. First, earlier methods mainly learn topic-shared features by aligning source and target distributions or by extracting topic-invariant properties such as grammar, coherence, and structure. Second, they tend to neglect topic-specific features, even though traits such as topic adherence, word choice, and content relevance are topic-sensitive. Third, full fine-tuning of PLMs such as BERT can be computationally costly, may overwrite useful pre-trained knowledge, and may be ill-suited to comparatively small AES datasets (Zhang et al., 8 Aug 2025).

ATOP is proposed to address these issues by jointly modeling topic-shared and topic-specific information. The core intuition is to use prompt-tuning to make a PLM encode both kinds of knowledge, while coordinating them through adversarial training and pseudo-label supervision. This suggests a shift away from viewing cross-topic AES as a purely invariant-feature learning problem and toward a hybrid formulation in which transfer requires both alignment and controlled topic adaptation.

2. Topic-aware prompt design

ATOP introduces a learnable topic-aware prompt composed of a shared prompt and a topic-specific prompt. The shared prompt is intended to capture common essay-quality features across topics, whereas the topic-specific prompt is intended to encode topic-sensitive cues.

The topic-shared prompt is defined as

pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},

where nn is the number of shared prompt vectors. For each topic ii, the topic-specific prompt is

pspecifici={ei,1,ei,2,…,ei,m},\mathbf{p}_{\text{specific}}^i=\{\mathbf{e}_{i,1},\mathbf{e}_{i,2},\ldots,\mathbf{e}_{i,m}\},

where Xi={xsi}\mathbf{X}_i=\{x_s^i\}0 is the number of topic-specific prompt vectors.

For an essay Xi={xsi}\mathbf{X}_i=\{x_s^i\}1, the PLM input is constructed by prepending the prompts: Xi={xsi}\mathbf{X}_i=\{x_s^i\}2 The PLM Xi={xsi}\mathbf{X}_i=\{x_s^i\}3 then outputs the representation

Xi={xsi}\mathbf{X}_i=\{x_s^i\}4

which is used as the essay representation.

Within this design, the shared prompt is meant to extract cross-topic, topic-agnostic writing-quality signals, while the specific prompt injects topic-sensitive information needed for topic adherence and content relevance. Because the PLM is kept frozen and only the prompt parameters are learned, ATOP is parameter-efficient relative to full fine-tuning. The paper characterizes this as the first prompt-tuning approach for cross-topic AES (Zhang et al., 8 Aug 2025).

A common misconception in cross-topic scoring is that topic invariance is sufficient. ATOP is constructed against that assumption. Its prompt decomposition encodes the view that transfer quality depends not only on preserving general indicators of writing proficiency but also on representing the aspects of quality that vary with prompt content and topic expectations.

3. Unified regression and classification framework

ATOP formulates AES as both regression and classification. The regression branch predicts numerical scores, including holistic and trait scores, while the classification branch predicts a coarse-grained holistic score category.

In the regression branch, the essay representation is concatenated with handcrafted features: Xi={xsi}\mathbf{X}_i=\{x_s^i\}5 where Xi={xsi}\mathbf{X}_i=\{x_s^i\}6 includes features such as length, text complexity, sentiment, and text variation. For each trait Xi={xsi}\mathbf{X}_i=\{x_s^i\}7, a nonlinear projection is computed: Xi={xsi}\mathbf{X}_i=\{x_s^i\}8 To model inter-trait dependencies, ATOP applies attention over trait representations: Xi={xsi}\mathbf{X}_i=\{x_s^i\}9

Yi\mathbf{Y}_i0

Yi\mathbf{Y}_i1

Yi\mathbf{Y}_i2

The predicted score is

Yi\mathbf{Y}_i3

The regression objective is mean squared error: Yi\mathbf{Y}_i4

Yi\mathbf{Y}_i5

A mask operation is used for traits missing from some topics.

In the classification branch, holistic scores are discretized into four classes: excellent, good, moderate, and poor. A classifier Yi\mathbf{Y}_i6, implemented as an MLP with softmax, maps Yi\mathbf{Y}_i7 to class probabilities: Yi\mathbf{Y}_i8 For source topic Yi\mathbf{Y}_i9, the cross-entropy loss is

Ci\mathbf{C}_i0

and the total source classification loss is

Ci\mathbf{C}_i1

The joint use of regression and classification is not merely multi-task augmentation. In the ATOP formulation, it also provides a mechanism for controlling the effect of alignment on score prediction. The paper states that classification is more stable with respect to feature scale changes than regression, and this claim directly informs the adversarial training design (Zhang et al., 8 Aug 2025).

4. Adversarial learning and pseudo-labeling

A key component of ATOP is adversarial training for the topic-shared prompt. The stated motivation is that aggressive source-target feature alignment can shift feature scale, and regression is sensitive to such changes. For that reason, ATOP applies adversarial alignment only in the classification branch.

For each source topic Ci\mathbf{C}_i2, a discriminator

Ci\mathbf{C}_i3

predicts whether an essay comes from source topic Ci\mathbf{C}_i4 or the target topic. The probability of being target is defined as

Ci\mathbf{C}_i5

The adversarial loss is

Ci\mathbf{C}_i6

A gradient reversal layer (GRL) is used so that the discriminator learns to distinguish source from target while the shared prompt learns to confuse the discriminator. The intended outcome is a topic-invariant, robust, and transferable shared representation.

Topic-specific prompts require target-topic supervision, but the target essays are unlabeled. ATOP addresses this with neighbor-based pseudo-labeling. It stores target essay features and soft labels in a memory bank Ci\mathbf{C}_i7. For a target essay Ci\mathbf{C}_i8,

Ci\mathbf{C}_i9

To reduce noise, the soft predictions are sharpened: T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}0 where T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}1 is a temperature coefficient. The memory bank is updated by exponential moving average: T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}2

T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}3

where T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}4 is a smoothing parameter.

For each target essay, the method finds its T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}5 nearest neighbors in the memory bank using cosine similarity. If T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}6 denotes the neighbor index set, the pseudo soft label is

T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}7

and the pseudo class label is

T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}8

The target cross-entropy loss is then

T={xt}t=1∣T∣\mathbf{T}=\{x_t\}_{t=1}^{|\mathbf{T}|}9

and the full classification loss is

y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).0

The paper explicitly attributes three functions to this pseudo-labeling procedure: it exploits local structure in representation space, assumes nearby essays have similar score categories, and reduces individual prediction noise by averaging neighbors. A plausible implication is that ATOP treats target adaptation as a local manifold-labeling problem rather than as direct self-training from single predictions.

5. Optimization procedure and implementation

The total ATOP objective is

y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).1

where y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).2 and y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).3 are trade-off weights. In the reported experiments, y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).4 and y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).5 (Zhang et al., 8 Aug 2025).

Training follows a two-stage alternating optimization scheme. In the first stage, the topic-specific prompts are frozen. The model computes y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).6, y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).7, and y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).8, and updates the shared prompt, classifier, trait predictors, discriminators, and PLM-related modules in the prompt pipeline using y^=ϕ(S,T,xt;θ).\hat{\mathbf{y}}=\phi(\mathbf{S},\mathbf{T},x_t;\theta).9. In the second stage, the topic-shared prompt and discriminators are frozen. The model computes pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},0 and pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},1, and updates the topic-specific prompts, classifier, and trait predictors using pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},2. The purpose of this alternation is to separate shared invariant knowledge from topic-specific adaptation.

ATOP is evaluated on ASAP++, an extended ASAP dataset with 12,987 essays across 8 topics and 3 genres: argumentative, narrative, and source-dependent. Trait sets vary by topic, and some traits are omitted when they are not present in source topics. Examples of traits listed in the paper are Cont, Org, WC, SF, Conv, TA, Lan, and Nar. Scores are normalized to pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},3 and divided into the intervals pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},4, pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},5, pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},6, and pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},7, corresponding to poor, moderate, good, and excellent. The evaluation metric is Quadratic Weighted Kappa (QWK), which the paper describes as standard for AES.

The implementation uses BERT-base as the PLM backbone. Both shared and specific prompt lengths are set to pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},8. The PLM feature dimension is pshared={e1,e2,…,en},\mathbf{p}_{\text{shared}}=\{\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n\},9, reduced to nn0 by a linear layer. Handcrafted features are nn1-dimensional, yielding a total input size of nn2 for the trait-attention and MLP components. Training uses 30 epochs, batch size 4, the Adam optimizer, learning rate 0.01, decay rate 0.9, and decay step 2000. The system is implemented in PyTorch 1.9.0 and Python 3.7.5, and trained on 4 NVIDIA GTX TITAN GPUs (Zhang et al., 8 Aug 2025).

6. Empirical results, ablations, and interpretation

ATOP is compared against Hi-att, AES aug, Bert-FT, PT-V2, PAES, CTS, PMAES, PLAES, and LLM-fs, with LLM-fs used for holistic regression only. These baselines cover classic deep AES, BERT fine-tuning, prompt-based AES, domain adaptation and alignment, meta-learning and contrastive learning, and LLM prompting.

On multi-trait regression by topic, ATOP achieves the best average QWK across topics, with 0.594 compared with 0.575 for the best baseline, PLAES, which the paper describes as an improvement of about 1.9%. On multi-trait regression by trait, ATOP again obtains the best average, with 0.590 versus 0.570 for PLAES. The paper states that it performs especially well on topic adherence, language, narrativity, and word choice, which are identified as traits where topic-specific information matters more. On holistic classification, ATOP reports an average QWK of 0.626, compared with 0.592 for the best baseline. On holistic regression, it reports 0.653 versus 0.621 for the best baseline (Zhang et al., 8 Aug 2025).

The ablation study attributes distinct contributions to the main components. Removing adversarial training causes average performance drops of about 1.9% on the topic dimension and about 1.8% on the trait dimension. Removing topic-specific prompts causes drops of about 1.0% and about 1.1%, respectively. Removing classification modeling causes drops of about 1.4% on both topic and trait dimensions. These results are used to support the claims that adversarial training strengthens shared-feature learning, topic-specific prompts are important for topic-sensitive traits, and the unified regression-classification framework contributes to overall performance.

The paper also reports t-SNE visualizations. In the full model, source and target feature spaces are described as compact and overlapping. Without adversarial training, source-topic clusters separate more strongly. Without topic-specific prompts, target-topic features become scattered and less structured. The interpretation advanced in the paper is that adversarial learning improves topic-agnostic alignment, while topic-specific prompts help organize target-topic representations.

An important technical point is that ATOP does not treat adversarial alignment as uniformly beneficial. The paper notes that adversarial alignment can slightly hurt on some topics with large distribution gaps. This places ATOP in a more qualified position than methods that assume stronger alignment is always preferable.

7. Significance, limitations, and scope

ATOP is presented as a prompt-based, adversarial, topic-aware model for cross-topic AES that integrates a shared soft prompt for topic-invariant essay quality, a topic-specific soft prompt for target-sensitive features, adversarial training for shared-prompt robustness, neighbor-based pseudo-labeling for target-topic supervision, and a joint regression-classification objective. Within the reported experiments, the method is characterized as parameter-efficient compared with full fine-tuning and as consistently beneficial for both holistic and multi-trait scoring, especially on topic-dependent traits (Zhang et al., 8 Aug 2025).

Its limitations are stated with similar specificity. The method still depends on pseudo-label quality, which may propagate errors. It uses BERT-base and handcrafted features, so performance may vary with other PLMs or feature sets. The strongest evidence is on ASAP++, and generalization to other domains is not directly established. The paper also notes that some topics with rigid structure may still favor feature-engineered methods.

These caveats delimit the scope of the contribution. The paper does not claim that topic-specific prompting eliminates the challenges of unlabeled target-topic adaptation, nor that adversarial transfer is uniformly safe for regression tasks. Instead, ATOP is positioned as a framework that attempts to balance topic invariance with topic sensitivity under the practical constraints of cross-topic AES. A plausible implication is that its broader significance lies not only in its reported QWK gains but also in its explicit decomposition of transferable essay scoring into shared and specific components, each trained under a different supervisory signal.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Adversarial Topic-aware Prompt-tuning (ATOP).