Fine-Tuning Without Gradients? Closed-Form, LLM-Written Classifiers on a Frozen Encoder
Organizations: Department of Computer Science and Engineering, Bangladesh University of Engineering and Technology (BUET), Dhaka-1000, Bangladesh · Department of Electrical and Electronic Engineering, University of Asia Pacific, Dhaka, Bangladesh
Abstract
Can a classifier computed in closed form on a frozen encoder match gradient fine-tuning? We present closed-form weight-space programming (WSP): a large language model (LLM), used as a design assistant, writes programs that read a frozen masked language model through cloze-style prompt templates at several layers, fit closed-form heads (shrinkage discriminant analysis, kernel ridge regression and the encoder's label-word prior) on labelled data, and select among a pool of candidate heads by cross-fitting. No gradient is computed and no encoder weight changes. We instantiate the framework on RoBERTa-large. On 11 development datasets with 512 to 8,192 training labels, WSP is ahead of full fine-tuning (FT) and LoRA at every label budget (by 0.3 to 0.6 points on average; the registered non-inferiority tests pass) and within 0.5 points of prompt-based fine-tuning (PFT); these datasets also shaped the recipe. With fewer labels its lead over FT and LoRA grows: 1.2 to 3.5 points with 64 and 128 labels, and 3.8 to 5.3 points in the few-shot setting of 16 labels per class, where WSP is again within half a point of PFT on the development datasets. On six held-out datasets, WSP stays ahead of LoRA and within half a point of FT on average, although with six datasets no registered test passes, and PFT is ahead, by 1.30 points with 8,192 labels. WSP never collapses and is deterministic, but it needs one encoder pass per template (17 here). We report all eight recipe versions, every decision that saw test results, and 27 ideas that did not help.
Figures & tables
| frozen encoder, no gradient training | gradient training | ||||||||||
| Datasets | Labels | Zero-shot | LP | LP-prompt | LP-ml | LP-prompt -ml | WSP (ours) | FT | LoRA | PFT | WSP PFT |
| 11 development | 512 | 87.44 | 87.21 | 90.09 | 89.73 | 92.46 | 93.77 | 93.22 | 93.42 | 93.85 | 0.08 |
| 10 development | 2,048 | 86.97 | 89.38 | 91.11 | 91.61 | 93.31 | 94.29 | 93.95 | 93.87 | 94.29 | 0.00 |
| 11 development | 8,192 | 87.56 | 91.32 | 92.54 | 93.03 | 94.07 | 94.99 | 94.65 | 94.63 | 95.08 | 0.09 |
| 6 held-out | 512 | 59.12 | 63.00 | 68.83 | 63.49 | 67.37 | 70.74 | 70.21 | 69.61 | 71.26 | 0.51 |
| 6 held-out | 8,192 | 59.21 | 69.52 | 72.02 | 70.27 | 72.22 | 73.89 | 74.28 | 73.68 | 75.19 | 1.30 |
| 512 labels | 8,192 labels (whole pool when smaller) | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | WSP | FT | LoRA | PFT | WSP | FT | LoRA | PFT |
| SST-2 | 93.65 | 92.85 | 92.97 | 94.00 | 95.11 | 94.15 | 94.30 | 95.18 |
| AG News | 90.10 | 90.11 | 89.63 | 89.92 | 93.11 | 92.93 | 92.36 | 93.23 |
| MR | 90.68 | 88.81 | 88.49 | 90.81 | 91.18 | 91.34 | 91.34 | 91.84 |
| SUBJ | 96.38 | 95.50 | 96.20 | 96.62 | 97.65 | 97.38 | 97.27 | 97.65 |
| CR | 92.73 | 92.55 | 92.82 | 93.62 | 94.15 | 93.35 | 92.82 | 94.24 |
| WSP baseline (points) | ||||
|---|---|---|---|---|
| Data | Labels | vs FT | vs LoRA | vs PFT |
| Dev. | 512 | 0.56 ✓ | 0.35 ✓ | 0.08 ✓ |
| [ 0.24, 0.87] | [ 0.09, 0.80] | [ 0.44, 0.28] | ||
| 2,048 | 0.34 ✓ | 0.42 ✓ | 0.00 ✓ | |
| [ 0.08, 0.59] | [ 0.18, 0.65] | [ 0.29, 0.28] | ||
| 8,192 | 0.34 ✓ | 0.36 ✓ | 0.09 ✓ | |
| 64 labels | 128 labels | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | WSP | FT | LoRA | PFT | WSP | FT | LoRA | PFT |
| SST-2 | 93.08 | 86.09 | 88.53 | 92.43 | 92.70 | 89.95 | 91.82 | 92.93 |
| AG News | 88.66 | 88.23 | 88.33 | 89.05 | 88.89 | 89.21 | 89.06 | 89.43 |
| MR | 90.43 | 84.43 | 85.87 | 89.62 | 90.24 | 85.74 | 87.15 | 89.93 |
| SUBJ | 94.37 | 93.60 | 93.58 | 95.22 | 94.70 | 94.15 | 94.43 | 95.83 |
| CR | 90.16 | 82.80 | 87.06 | 92.82 | 91.93 | 87.94 | 90.87 | 93.17 |
| WSP baseline (points) | |||
|---|---|---|---|
| Labels | vs FT | vs LoRA | vs PFT |
| 64 | 3.48 ✓ | 2.94 ✓ | 0.61 |
| [ 1.36, 5.59] | [ 0.93, 4.96] | [ 1.57, 0.36] | |
| 128 | 1.68 ✓ | 1.18 ✓ | 0.47 |
| [ 0.70, 2.66] | [ 0.11, 2.24] | [ 1.23, 0.30] | |
| Dataset | WSP | FT | LoRA | PFT |
|---|---|---|---|---|
| SST-2 | 92.36 | 77.20 | 82.68 | 89.93 |
| AG News | 86.89 | 87.42 | 87.35 | 88.62 |
| MR | 87.97 | 71.91 | 74.41 | 87.52 |
| SUBJ | 91.56 | 90.31 | 91.05 | 94.42 |
| CR | 88.99 | 79.36 | 82.98 | 92.55 |
| MPQA | 81.21 | 74.52 | 73.97 | 85.25 |
| Trained on | Labels | WSP | FT | LoRA | PFT |
|---|---|---|---|---|---|
| SST-2 | 512 | 91.44 | 90.57 | 89.33 | 86.82 |
| 2,048 | 93.03 | 93.17 | 92.65 | 89.65 | |
| 8,192 | 92.45 | 93.14 | 92.87 | 89.42 | |
| each of 6 | 512 | 90.17 | 91.10 | 90.95 | 90.07 |
| Labels | ||||
|---|---|---|---|---|
| Version | What it adds | 512 | 2,048 | 8,192 |
| v2 | label-word prior; template-pooled heads | 93.07 | 93.76 | 94.60 |
| v3 | prior-mean kernel; Occam’s window | 93.20 | 93.78 | 94.73 |
| v4 | additive multi-view kernel | 93.21 | 93.82 | 94.73 |
| v5 | cross-fitted selection | 93.26 | 93.88 | 94.75 |
| v6 | new prompts for MPQA, TREC-6, SUBJ | 93.50 | 93.97 | 94.81 |
Appendix figures & tables27 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Classes | Train pool | Test | Max. tokens |
| SST-2 | 2 | 66k | 872 | 64 |
| AG News | 4 | 119k | 7,600 | 128 |
| MR | 2 | 7.5k | 1,066 | 64 |
| SUBJ | 2 | 7.0k | 2,000 | 64 |
| CR | 2 | 2.4k | 376 | 96 |
| MPQA | 2 | 7.8k | 2,000 | 32 |
| Family | Head and grid | # |
|---|---|---|
| mv | per-view shrinkage LDA, average of the per-view log-posteriors; shrinkage | 3 |
| cat | LDA on the concatenation of per-view PCA-256 projections; shrinkage , alone or averaged with mv 0.1 or mv 0.3 | 18 |
| stack | LDA on 5-fold cross-fitted per-view LDA log-posteriors; shrinkage | 3 |
| tpool | one LDA per (layer, pooling) fitted on the samples of all templates; shrinkage | 3 |
| rff | random-Fourier-feature ridge ( ); bandwidth ridge | 9 |
| klin | exact linear kernel ridge in dual form on the standardised concatenation of all views; ridge | 4 |
| frozen encoder, no gradient training | gradient training | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v7 | WSP v8 | FT | LoRA | PFT |
| SST-2 | 92.74 | 82.87 1.47 | 89.79 0.81 | 93.04 0.35 | 93.65 0.19 | 92.85 0.70 | 92.97 0.87 | 94.00 0.29 |
| AG News | 87.91 | 88.11 0.36 | 88.38 0.58 | 89.46 0.48 | 90.10 0.41 | 90.11 0.28 | 89.63 0.37 | 89.92 0.66 |
| MR | 90.46 | 80.68 0.58 | 86.34 0.04 | 90.15 0.47 | 90.68 0.85 | 88.81 0.51 | 88.49 0.38 | 90.81 0.15 |
| SUBJ | 81.58 | 94.08 0.52 | 95.35 0.47 | 96.28 0.02 | 96.38 0.16 | 95.50 0.43 | 96.20 0.14 | 96.62 0.28 |
| CR | 87.94 | 84.22 0.88 | 90.78 0.25 | 92.91 0.50 | 92.73 0.82 | 92.55 0.57 | 92.82 0.57 | 93.62 0.43 |
| frozen encoder, no gradient training | gradient training | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v7 | WSP v8 | FT | LoRA | PFT |
| SST-2 | 92.89 | 86.35 0.58 | 91.48 0.66 | 94.53 0.29 | 94.72 0.09 | 93.88 0.33 | 94.19 0.24 | 94.53 0.84 |
| AG News | 87.90 | 90.14 0.22 | 90.35 0.55 | 91.46 0.23 | 91.60 0.34 | 91.76 0.19 | 91.11 0.15 | 91.28 0.56 |
| MR | 90.56 | 84.93 0.50 | 87.87 0.44 | 91.12 0.42 | 91.46 0.20 | 90.59 0.16 | 90.28 0.71 | 91.78 0.62 |
| SUBJ | 81.65 | 95.73 0.38 | 95.97 0.17 | 97.17 0.12 | 97.30 0.04 | 97.05 0.04 | 96.88 0.16 | 97.30 0.25 |
| CR | 88.03 | 87.41 0.66 | 92.55 0.43 | 93.35 0.22 | 93.79 0.13 | 93.71 0.13 | 93.71 0.25 | 94.77 0.33 |
| frozen encoder, no gradient training | gradient training | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v7 | WSP v8 | FT | LoRA | PFT |
| SST-2 | 93.00 | 87.88 0.14 | 92.05 0.62 | 95.26 0.30 | 95.11 0.22 | 94.15 0.34 | 94.30 0.92 | 95.18 0.25 |
| AG News | 87.89 | 91.14 0.23 | 91.06 0.21 | 93.09 0.12 | 93.11 0.16 | 92.93 0.12 | 92.36 0.42 | 93.23 0.16 |
| MR | 90.43 | 86.30 | 89.40 | 91.28 | 91.18 | 91.34 0.19 | 91.34 0.44 | 91.84 1.03 |
| SUBJ | 81.70 | 96.80 | 96.25 | 97.40 | 97.65 | 97.38 0.08 | 97.27 0.18 | 97.65 0.08 |
| CR | 88.03 | 87.50 | 92.82 | 93.88 | 94.15 | 93.35 0.78 | 92.82 1.00 | 94.24 0.45 |
| frozen encoder, no gradient training | gradient training | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v7 | WSP v8 | FT | LoRA | PFT |
| SST-5 | 44.16 | 41.75 1.82 | 51.19 0.85 | 56.30 0.64 | 56.20 1.09 | 53.14 1.83 | 52.31 0.52 | 55.44 0.92 |
| CoLA | 45.13 | 78.01 0.12 | 72.96 0.28 | 78.78 0.45 | 78.62 0.55 | 80.31 0.80 | 80.12 0.65 | 80.09 0.16 |
| DBpedia-14 | 93.31 | 95.30 0.28 | 98.17 0.02 | 98.33 0.15 | 98.31 0.23 | 98.39 0.12 | 98.61 0.16 | 98.59 0.18 |
| Yahoo-10 | 64.50 | 64.40 1.12 | 70.15 0.42 | 69.37 0.36 | 69.49 0.67 | 69.18 0.48 | 69.31 0.39 | 70.60 0.57 |
| Yelp-5 | 55.84 | 51.54 0.23 | 61.13 0.41 | 62.45 0.29 | 62.27 0.54 | 61.53 0.63 | 60.24 1.22 | 63.63 0.51 |
| frozen encoder, no gradient training | gradient training | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v7 | WSP v8 | FT | LoRA | PFT |
| SST-5 | 44.18 | 50.36 0.10 | 57.32 0.55 | 59.41 0.20 | 59.80 0.37 | 58.84 0.95 | 58.05 0.69 | 60.87 0.64 |
| CoLA | 45.25 | 81.30 | 77.76 | 83.03 | 82.74 | 85.08 0.36 | 83.73 0.82 | 85.08 0.55 |
| DBpedia-14 | 93.32 | 98.29 0.05 | 98.95 0.08 | 99.24 0.03 | 99.28 0.03 | 99.09 0.09 | 99.03 0.12 | 99.19 0.10 |
| Yahoo-10 | 64.46 | 71.49 0.15 | 73.06 0.24 | 74.07 0.19 | 73.76 0.45 | 74.61 0.31 | 74.32 0.13 | 75.17 0.28 |
| Yelp-5 | 55.97 | 59.55 0.50 | 63.05 0.62 | 64.93 0.06 | 65.33 0.18 | 65.79 0.76 | 65.13 0.71 | 66.99 0.49 |
| Datasets | Labels | vs | Mean diff. | SD | 90% interval | Lower bound | Non-inferior ( ) | Inferior ( ) | |
|---|---|---|---|---|---|---|---|---|---|
| Development | 512 | FT | 11 | 0.56 | 0.58 | [ 0.24, 0.87] | 0.29 | yes ( 0.001) | no (1.000) |
| LoRA | 11 | 0.35 | 0.81 | [ 0.09, 0.80] | 0.02 | yes (0.003) | no (0.997) | ||
| PFT | 11 | 0.08 | 0.66 | [ 0.44, 0.28] | 0.40 | yes (0.031) | no (0.969) | ||
| Development | 2,048 | FT | 10 | 0.34 | 0.43 | [ 0.08, 0.59] | 0.12 | yes ( 0.001) | no (1.000) |
| LoRA | 10 | 0.42 | 0.41 | [ 0.18, 0.65] | 0.21 | yes ( 0.001) | no (1.000) | ||
| PFT | 10 | 0.00 | 0.49 | [ 0.29, 0.28] | 0.26 | yes (0.006) | no (0.994) |
| 512 labels | 2,048 labels | 8,192 labels | ||||||||||
| Dataset | LP-p | LP-ml | LP-p-ml | WSP | LP-p | LP-ml | LP-p-ml | WSP | LP-p | LP-ml | LP-p-ml | WSP |
| SST-2 | 89.79 | 87.16 | 92.81 | 93.65 | 91.48 | 90.29 | 93.96 | 94.72 | 92.05 | 91.70 | 94.00 | 95.11 |
| AG News | 88.38 | 88.32 | 88.10 | 90.10 | 90.35 | 90.25 | 89.82 | 91.60 | 91.06 | 91.44 | 91.43 | 93.11 |
| MR | 86.34 | 83.52 | 89.99 | 90.68 | 87.87 | 87.71 | 91.03 | 91.46 | 89.40 | 88.93 | 90.90 | 91.18 |
| SUBJ | 95.35 | 95.35 | 95.67 | 96.38 | 95.97 | 96.92 | 96.88 | 97.30 | 96.25 | 97.05 | 96.95 | 97.65 |
| CR | 90.78 | 88.30 | 91.76 | 92.73 | 92.55 | 91.05 | 92.46 | 93.79 | 92.82 | 90.43 | 92.55 | 94.15 |
| Labels | WSP | FT | LoRA | PFT |
|---|---|---|---|---|
| 512 | 46.8 | 51.0 | 50.6 | 51.0 |
| 8,192 (whole pool) | 58.2 | 63.8 | 60.2 | 63.8 |
| Idea | Evidence | Outcome |
|---|---|---|
| Attention-head amplification † | test 0.3, mostly out of domain | not adopted |
| Closed-form FFN key value edits of weak neurons † | dev 1.4, test 1.6 to 2.0 | negative |
| Multi-round weight edits accepted on held-out train rows † | test 0.2 to 0.4 | negative |
| Closed-form self-training on 32k unlabelled texts | never selected on dev | negative |
| 8 templates instead of 4 (recipe R) | no gain at 8,192 labels | negative |
| Multi-encoder kernels | dev gains did not transfer | negative |
| Encoder | Dataset | WSP v8 | v7 | FT | LoRA | PFT | |
|---|---|---|---|---|---|---|---|
| roberta-base | SST-2 | 92.20 0.16 | 91.93 | 91.82 | 92.16 | 93.23 | 0.04 |
| roberta-base | AG News | 92.60 0.13 | 92.63 | 92.72 | 91.91 | 92.97 | 0.12 |
| bert-large | SST-2 | 90.94 0.41 | 90.94 | 92.24 | 92.66 | 92.28 | 1.72 |
| bert-large | SST-2 e | 90.60 0.82 | 91.55 | 92.24 | 92.66 | 92.28 | 2.06 |
| bert-large | AG News | 92.07 0.05 | 92.01 | 92.54 | 92.08 | 92.42 | 0.46 |
| frozen encoder, no gradient training | gradient training | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v8 | FT | LoRA | PFT |
| SST-2 | 92.89 | 69.92 6.38 | 86.54 1.54 | 93.08 0.05 | 86.09 0.87 | 88.53 1.14 | 92.43 0.66 |
| AG News | 88.03 | 84.14 1.12 | 83.15 0.61 | 88.66 0.38 | 88.23 0.85 | 88.33 1.12 | 89.05 0.75 |
| MR | 90.40 | 72.51 1.51 | 84.52 0.87 | 90.43 0.35 | 84.43 1.84 | 85.87 1.65 | 89.62 0.19 |
| SUBJ | 80.72 | 90.83 0.67 | 93.05 0.85 | 94.37 0.51 | 93.60 0.46 | 93.58 0.72 | 95.22 0.55 |
| CR | 87.15 | 70.48 1.36 | 88.21 0.45 | 90.16 1.42 | 82.80 4.02 | 87.06 5.13 | 92.82 1.00 |
| frozen encoder, no gradient training | gradient training | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Zero-shot | LP | LP-prompt | WSP v8 | FT | LoRA | PFT |
| SST-2 | 93.00 | 74.58 3.56 | 87.96 0.82 | 92.70 0.92 | 89.95 1.52 | 91.82 0.52 | 92.93 0.97 |
| AG News | 88.04 | 86.43 0.45 | 86.61 0.26 | 88.89 0.58 | 89.21 0.27 | 89.06 0.09 | 89.43 0.40 |
| MR | 90.40 | 76.20 0.65 | 85.27 0.28 | 90.24 0.48 | 85.74 0.58 | 87.15 0.41 | 89.93 0.27 |
| SUBJ | 81.67 | 92.47 0.35 | 93.87 0.24 | 94.70 0.43 | 94.15 1.13 | 94.43 0.91 | 95.83 0.08 |
| CR | 87.68 | 76.60 0.75 | 89.54 0.55 | 91.93 0.50 | 87.94 1.95 | 90.87 1.09 | 93.17 0.25 |
| Labels | vs | Mean diff. | SD | 90% interval | Lower bound | Non-inferior ( ) | Inferior ( ) | |
|---|---|---|---|---|---|---|---|---|
| 64 | FT | 11 | 3.48 | 3.87 | [ 1.36, 5.59] | 1.66 | yes (0.003) | no (0.997) |
| LoRA | 11 | 2.94 | 3.69 | [ 0.93, 4.96] | 1.30 | yes (0.006) | no (0.994) | |
| PFT | 11 | 0.61 | 1.76 | [ 1.57, 0.36] | 1.48 | no (0.577) | no (0.423) | |
| 128 | FT | 11 | 1.68 | 1.80 | [ 0.70, 2.66] | 0.84 | yes (0.001) | no (0.999) |
| LoRA | 11 | 1.18 | 1.95 | [ 0.11, 2.24] | 0.35 | yes (0.009) | no (0.991) | |
| PFT | 11 | 0.47 | 1.40 | [ 1.23, 0.30] | 1.15 | no (0.468) | no (0.532) |
| Dataset | WSP v8 | FT | LoRA | PFT |
|---|---|---|---|---|
| SST-2 | 92.36 0.65 | 77.20 5.69 | 82.68 3.56 | 89.93 2.22 |
| AG News | 86.89 0.95 | 87.42 1.06 | 87.35 0.77 | 88.62 0.59 |
| MR | 87.97 1.97 | 71.91 6.45 | 74.41 6.04 | 87.52 3.02 |
| SUBJ | 91.56 2.67 | 90.31 2.52 | 91.05 1.81 | 94.42 0.50 |
| CR | 88.99 1.77 | 79.36 4.75 | 82.98 4.80 | 92.55 0.69 |
| MPQA | 81.21 3.25 | 74.52 2.69 | 73.97 4.13 | 85.25 2.31 |
| Recipe | Adds; adoption rule |
|---|---|
| R | multi-view reading of 12 layers, kernel heads |
| v2 | MLM-head prior, template pooling, top-3 rule |
| v3 | prior-mean kernel, Occam’s window |
| v4 | additive multi-view kernel |
| v5 | cross-fitted selection |
| v6 | editor round 2: dev-selected templates and label words for MPQA, TREC-6, SUBJ; rule: 1 point of <mask> -LDA dev accuracy |
| Labels | Datasets | R | v2 | v7 | v8 |
|---|---|---|---|---|---|
| 512 | 2 | 90.76 | 91.04 | 91.25 | 91.88 |
| 2,048 | 2 | 92.77 | 92.75 | 92.99 | 93.16 |
| 8,192 | 5 | 94.01 | 93.95 | 94.18 | 94.24 |
| Dataset | Templates | Label words (one group per class) |
|---|---|---|
| SST-2 | x It was <mask> . ⋆ x All in all , it was <mask> . x In summary , the film is <mask> . x Overall , I thought it was <mask> . | terrible, bad, awful, boring, poor, horrible, dull, disappointing great, good, wonderful, excellent, fantastic, amazing, fun, enjoyable |
| AG News | x This article is about <mask> . <mask> news : x x The topic is <mask> . x Category : <mask> . | world, politics, international, war sports, football, baseball, soccer business, economy, finance, markets technology, science, computers, internet |
| MR | x It was <mask> . ⋆ x All in all , it was <mask> . x In summary , the film is <mask> . x Overall , I thought it was <mask> . | terrible, bad, awful, boring great, good, wonderful, excellent |
| SUBJ | x This is <mask> . ⋆ x This sentence is <mask> . x It is a <mask> statement . <mask> : x ⋆ | objective, factual, plot subjective, opinion, personal |
| CR | x It was <mask> . ⋆ x Overall , the product is <mask> . x In summary , it is <mask> . x I think it is <mask> . | terrible, bad, awful, poor great, good, excellent, perfect |
| MPQA | x It was <mask> . ⋆ x This is <mask> . ⋆ x The opinion is <mask> . x Overall , it is <mask> . | bad, negative, terrible, wrong good, positive, great, right |
| Dataset | Templates | Label words (one group per class) |
|---|---|---|
| TREC-6 | x The answer is a <mask> . x This question is about <mask> . <mask> question : x x Answer type : <mask> . | description, definition, meaning thing, entity, object abbreviation, acronym person, human, people number, date, amount location, place, country |
| BBC News | x This article is about <mask> . <mask> news : x x The topic is <mask> . x Category : <mask> . | technology, computers, internet business, economy, finance sport, football, cricket entertainment, film, music politics, government, election |
| Yelp-2 | x It was <mask> . ⋆ x All in all , it was <mask> . x Overall , the experience was <mask> . x I would say it is <mask> . | terrible, bad, awful, horrible great, good, excellent, amazing |
| Amazon-2 | x It was <mask> . ⋆ x Overall , the product is <mask> . x In summary , it is <mask> . x I think it is <mask> . | terrible, bad, awful, poor great, good, excellent, perfect |
| IMDB | x It was <mask> . ⋆ x All in all , it was <mask> . x In summary , the film is <mask> . x Overall , I thought it was <mask> . | terrible, bad, awful, boring great, good, wonderful, excellent |
| Dataset | Templates | Label words (one group per class) |
|---|---|---|
| SUBJ | x This is a <mask> of the film . x The sentence is part of the <mask> . x This sentence is <mask> . <mask> : x ⋆ | objective, factual, plot, story, summary subjective, opinion, personal, review, critical |
| MPQA | He said : x . The tone was <mask> . x . This is a <mask> thing to say . " x " expresses a <mask> opinion . The attitude " x " is <mask> . | negative, bad, critical, hostile, angry, unfavorable positive, good, favorable, supportive, happy, friendly |
| TREC-6 | x The answer is a <mask> . x The expected answer is a <mask> . x The answer will be a <mask> . x Tell me the <mask> . | description, definition, reason, explanation thing, object, animal, product abbreviation, acronym person, name, people, author number, date, year, amount place, location, city, country |
| CR | x My experience with it was <mask> . x I would rate it as <mask> . x So it is a <mask> product . x In short , <mask> . | terrible, bad, awful, poor, horrible, disappointing, useless great, good, excellent, perfect, amazing, wonderful, fantastic |
| Dataset | Templates | Label words (one group per class) |
|---|---|---|
| SST-5 (r1) | x It was <mask> . ⋆ x All in all , it was <mask> . x In summary , the film is <mask> . x Overall , I thought it was <mask> . | terrible, awful, horrible bad, poor, disappointing okay, average, fine good, nice, enjoyable great, excellent, wonderful |
| CoLA (r1) | x This is <mask> . ⋆ x The grammar of this sentence is <mask> . x This sentence is grammatically <mask> . x It sounds <mask> . | incorrect, wrong, odd, strange correct, right, fine, natural |
| DBpedia-14 (r1) | x This article is about a <mask> . <mask> : x ⋆ x The topic is a <mask> . x Category : <mask> . | company, business, firm school, university, college artist, musician, singer, painter athlete, player, footballer politician, senator, minister ship, aircraft, car, vehicle building, church, hospital river, mountain, lake village, town animal, insect, bird, fish plant, tree, flower album, record film, movie book, novel, magazine, journal |
| Yahoo-10 (r1) | x This question is about <mask> . <mask> question : x x The topic is <mask> . x Category : <mask> . | society, culture, religion science, mathematics, math health, medicine, medical education, school, reference computers, internet, software sports, sport, football business, finance, money entertainment, music, movies family, relationships, love politics, government, law |
| Yelp-5 (r1) | x It was <mask> . ⋆ x All in all , it was <mask> . x Overall , the experience was <mask> . x I would say it is <mask> . | terrible, awful, horrible bad, poor, disappointing okay, average, fine good, nice, enjoyable great, excellent, amazing |
| Amazon-5 (r1) | x It was <mask> . ⋆ x Overall , the product is <mask> . x In summary , it is <mask> . x I think it is <mask> . | terrible, awful, useless bad, poor, disappointing okay, average, fine good, nice, decent great, excellent, perfect |
| Dataset | Templates | Label words (one group per class) |
|---|---|---|
| SST-5 (final) | x The reviewer thought the movie was <mask> . x My rating : <mask> . x All in all , it was <mask> . x Verdict : <mask> . | terrible, awful, horrible bad, poor, disappointing okay, average, fine good, nice, enjoyable great, excellent, wonderful |
| CoLA (final) | x The grammar of this sentence is <mask> . x This sentence is <mask> . x That sounds <mask> to me . x This is <mask> . ⋆ | incorrect, wrong, odd, strange correct, right, fine, natural |
| Yahoo-10 (final) | x This question is about <mask> . x It is a question about <mask> . x This question belongs to the <mask> section . x The subject is <mask> . | society, culture, religion, philosophy, history science, math, physics, chemistry, biology health, medicine, disease, diet, doctor education, school, college, homework, language computers, internet, software, computer, windows sports, football, soccer, basketball, baseball business, finance, money, jobs, tax entertainment, music, movies, celebrities, tv family, relationships, love, dating, marriage politics, government, law, elections, war |
| Yelp-5 (final) | x All in all , it was <mask> . x Verdict : <mask> . x My rating : <mask> . x Overall , the experience was <mask> . | terrible, awful, horrible, worst, disgusting bad, poor, disappointing, mediocre, bland okay, average, fine, decent, ok good, nice, solid, pleasant, tasty great, excellent, amazing, perfect, fantastic |
| Amazon-5 (final) | Review : x Verdict : <mask> . x My rating : <mask> . A <mask> review : x x I would rate it as <mask> . | terrible, awful, useless, worst, horrible bad, poor, disappointing, cheap, flimsy okay, average, fine, ok, mediocre good, nice, decent, solid, useful great, excellent, perfect, amazing, fantastic |
| Datasets | The second batch of 12 templates (round 7), numbered as in Table 35 | |
|---|---|---|
| SST-2, MR, IMDB | (1) x A <mask> movie . (2) x A <mask> one . (3) x The movie is <mask> . (4) x It was <mask> ! (5) x My verdict : <mask> . (6) x In a word , <mask> . | (7) x The critic found it <mask> . (8) x It is a <mask> film . (9) x I found it <mask> . (10) A <mask> film : x (11) x Simply <mask> . (12) x The reviewer thought the movie was <mask> . |
| AG News, BBC News | (1) x This is a piece of <mask> news . (2) x Section : <mask> . (3) x News category : <mask> . (4) [ <mask> ] x (5) x This story belongs to <mask> . (6) A <mask> story : x | (7) x It is about <mask> . (8) x Filed under <mask> . (9) Breaking <mask> news : x (10) x This was published in the <mask> section . (11) x More <mask> news . (12) <mask> : x |
| CR, Amazon-5 | (1) x A <mask> product . (2) x The quality is <mask> . (3) x This product is <mask> . (4) x It is <mask> ! (5) x My verdict : <mask> . (6) x In a word , <mask> . | (7) x I found it <mask> . (8) A <mask> buy : x (9) x Customer rating : <mask> . (10) x Simply <mask> . (11) x All in all , it was <mask> . (12) x It was <mask> . |
| Amazon-2 | (1) x A <mask> product . (2) x The quality is <mask> . (3) x This product is <mask> . (4) x It is <mask> ! (5) x My verdict : <mask> . (6) x In a word , <mask> . | (7) x I found it <mask> . (8) A <mask> buy : x (9) x Customer rating : <mask> . (10) x Simply <mask> . (11) x All in all , it was <mask> . (12) x I would rate it as <mask> . |
| Yelp-2 | (1) x The food was <mask> . (2) x The service was <mask> . (3) x A <mask> place . (4) x My verdict : <mask> . (5) x In a word , <mask> . (6) x I found it <mask> . | (7) x Overall , a <mask> experience . (8) x It is <mask> ! (9) x Rating : <mask> . (10) A <mask> review : x (11) x The place is <mask> . (12) x Simply <mask> . |
| MPQA | (1) The phrase " x " sounds <mask> . (2) x . That is <mask> . (3) " x " - a <mask> remark . (4) x . The sentiment is <mask> . (5) The words " x " are <mask> . (6) x . Such a <mask> view . | (7) In the news : " x " . The tone is <mask> . (8) x . It feels <mask> . (9) Reaction : " x " . Clearly <mask> . (10) x . Opinion : <mask> . (11) x . It was <mask> . (12) x . Overall , it is <mask> . |
| Datasets | The second batch of 12 templates (round 7), numbered as in Table 35 | |
|---|---|---|
| SUBJ | (1) x This text is from a <mask> . (2) x It is a <mask> sentence . (3) x Type : <mask> . (4) x This line comes from the <mask> . (5) x The writer is being <mask> . (6) x This is <mask> . | (7) <mask> sentence : x (8) x This describes the <mask> . (9) x Fact or opinion ? <mask> . (10) x A <mask> statement . (11) x It is taken from the <mask> . (12) x In this sentence , the tone is <mask> . |
| TREC-6 | (1) x The question asks for a <mask> . (2) x Answer : a <mask> . (3) x I want to know the <mask> . (4) x This asks about a <mask> . (5) Question about a <mask> : x (6) x The answer is the <mask> . | (7) x Expected answer type : <mask> . (8) x Please give the <mask> . (9) x Looking for a <mask> . (10) x The reply should be a <mask> . (11) <mask> : x (12) x This is a <mask> question . |
| SST-5 | (1) x A <mask> movie . (2) x A <mask> one . (3) x The movie is <mask> . (4) x It was <mask> ! (5) x My verdict : <mask> . (6) x In a word , <mask> . | (7) x The critic found it <mask> . (8) x It is a <mask> film . (9) x I found it <mask> . (10) A <mask> film : x (11) x Simply <mask> . (12) x Overall , I thought it was <mask> . |
| CoLA | (1) x Is this sentence grammatical ? It is <mask> . (2) x The sentence is <mask> . (3) x Grammatically , this is <mask> . (4) x As English , this is <mask> . (5) x This sounds <mask> . (6) x It reads <mask> . | (7) x A native speaker would find this <mask> . (8) x The wording is <mask> . (9) x This English is <mask> . (10) <mask> sentence : x (11) x That is <mask> English . (12) x This phrasing is <mask> . |
| DBpedia-14 | (1) x This is about a <mask> . (2) x It is a <mask> . (3) x This entry describes a <mask> . (4) x Type : <mask> . (5) [ <mask> ] x (6) A <mask> : x | (7) x The subject is a <mask> . (8) x This text is about a <mask> . (9) x Wikipedia category : <mask> . (10) x In short , a <mask> . (11) x It describes a famous <mask> . (12) This <mask> is described below : x |
| Yahoo-10 | (1) x Topic : <mask> . (2) x Category : <mask> . (3) [ <mask> ] x (4) A question about <mask> : x (5) x This is about <mask> . (6) x Section : <mask> . | (7) x It is related to <mask> . (8) x The question concerns <mask> . (9) <mask> : x (10) x Posted in <mask> . (11) x The answer is about <mask> . (12) x The main topic is <mask> . |
| Datasets | The second batch of 12 templates (round 7), numbered as in Table 35 | |
| Yelp-5 | (1) x The food was <mask> . (2) x The service was <mask> . (3) x A <mask> place . (4) x My verdict : <mask> . (5) x In a word , <mask> . (6) x I found it <mask> . | (7) x Overall , a <mask> experience . (8) x It was <mask> . (9) x Rating : <mask> . (10) A <mask> review : x (11) x I would say it is <mask> . (12) x Simply <mask> . |
| Dataset | Runs | Chosen templates (times chosen) |
|---|---|---|
| SST-2 | 9 | 7 (9), 12 (9), 5 (8), 8 (6), 1 (1), 3 (1), 6 (1), 10 (1) |
| AG News | 9 | 8 (9), 9 (9), 5 (8), 11 (3), 1 (2), 3 (2), 10 (2), 7 (1) |
| MR | 7 | 8 (7), 5 (5), 1 (4), 3 (3), 7 (3), 12 (3), 6 (2), 9 (1) |
| SUBJ | 7 | 7 (6), 6 (5), 4 (4), 12 (4), 2 (3), 1 (2), 8 (2), 5 (1), 9 (1) |
| CR | 7 | 11 (7), 2 (5), 5 (5), 6 (4), 8 (3), 12 (2), 3 (1), 9 (1) |
| MPQA | 7 | 6 (5), 3 (4), 7 (4), 9 (4), 8 (3), 11 (3), 10 (2), 1 (1), 2 (1), 5 (1) |