---
title: "Self-Adaptation for Unsupervised Domain Adaptation — Cui 2019"
description: "Self-Adapt combines source and target projections with pseudo-labels to transfer sentiment classifiers across Amazon review categories."
canonical: "https://research.elamur.ai/free/en/papers/cui-2019-self-adaptation-unsupervised-domain-adaptation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cui-2019-self-adaptation-unsupervised-domain-adaptation/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Self-Adaptation for Unsupervised Domain Adaptation

# Self-Adaptation for Unsupervised Domain Adaptation

Paper · 2019 · Xia Cui and Danushka Bollegala

**Authors:** Xia Cui and [Danushka Bollegala](https://md.research.elamur.ai/free/en/authors/danushka-bollegala/) · **Year:** 2019 · **Venue:** Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **7** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/cui-2019-self-adaptation-unsupervised-domain-adaptation/cited-by/) · Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/R19-1025/)
- [PDF](https://aclanthology.org/R19-1025.pdf)
- [DOI 10.26615/978-954-452-056-4_025](https://doi.org/10.26615/978-954-452-056-4_025)

## Summary

A classifier trained to recognize praise and criticism in book reviews has to make the same distinction when it reads a review of a kitchen appliance. The task carries over, but the language that signals a verdict can change with the product. Xia Cui and Danushka Bollegala study how to make that transfer when the available training labels come from the original category and the new category supplies reviews without labels. Their method, Self-Adapt, uses the labels it starts with to change how source reviews are represented, then uses its predictions on target reviews to learn a second change of representation.

The method begins with a vector for each review. For a labelled source review, it finds nearby reviews with the opposite sentiment and summarizes those neighbours as a weighted vector. It learns separate transformations for positive and negative reviews with the aim of moving these opposite-label examples farther apart. A classifier trained on the transformed source data then predicts labels for unlabelled target reviews. Predictions above a confidence threshold become provisional training labels, known as pseudo-labels. Self-Adapt uses them to learn separate positive and negative transformations for the target domain. The final sentiment classifier trains on the transformed reviews from both domains.

The authors evaluate Self-Adapt on Amazon product reviews. The standard benchmark covers books, DVDs, electronic appliances and kitchen appliances, with 12 directed transfers. An extended benchmark covers 16 other product categories and 240 transfers, with results averaged by target category. Using a fixed nearest-neighbour setting, the complete method has the highest or joint-highest test accuracy among its successive variants for every standard transfer, and the highest reported average for every extended target. For books to electronic appliances, the standard-benchmark test accuracy goes from 64.00% with no adaptation to 73.25% with the source projection, 73.50% after adding pseudo-labelled target reviews and 77.50% after projecting those reviews too.

Self-Adapt generally performs better than the authors’ implementations of classical self-training and its agreement-based variants, although the standard benchmark includes ties and a loss. Its comparison with published neural approaches is more mixed. It has the highest test accuracy in 3 out of 12 transfers, and multitask tri-training is ahead in 8. The evidence is strongest for a narrower conclusion. On these review datasets, target predictions can help twice, first by supplying examples for the final classifier and then by guiding a transformation specific to the target category. The experiments also use a separate set of labelled target reviews to tune the classifier’s regularization, a qualification to the unsupervised training setup.

## Deep dive: Self-Adaptation for Unsupervised Domain Adaptation

Self-Adapt combines source and target projections with pseudo-labels to transfer sentiment classifiers across Amazon review categories. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### When the task stays the same and the reviews change

In [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/), a classifier learns from examples associated with categories. For the task in this paper, the input is a product review and the category is positive or negative. The authors call the product category that provides the labelled training reviews the *source domain*. The *target domain* is the category in which the resulting classifier will be used. The order matters. Learning from books and applying the result to DVDs uses different training data and a different test set from learning from DVDs and applying the result to books.

A transfer is possible because the same sentiment labels have meaning in both categories. It is difficult because the distribution of review features can change. Reviews can dwell on attributes that matter for one kind of product and rarely come up for another. Even if a classifier learns a good decision rule on source reviews, the patterns it recognizes may be less informative in the target category. The paper treats this as a problem of adapting a classifier to a new distribution while keeping the prediction task fixed. That makes [sentiment classification](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) a way to study domain adaptation with a task whose labels are easy to explain.

The unsupervised domain adaptation setting described by the authors gives the learner source reviews with sentiment labels and access to unlabelled reviews from the domains. The target reviews used as unlabelled training input still provide evidence about what target documents look like. Their sentiment is the missing part. The question is whether training can make use of those documents without supplying their true labels to the adaptation steps. A separate set of labelled target reviews allows the experimenters to measure accuracy. The paper also sets aside labelled target examples for a regularization decision, which matters when interpreting how closely its evaluation matches the ideal setup.

The paper uses a single source and a single target for each transfer. That choice makes the roles of the datasets clear. A target result reflects what can be learned from the available source labels, the target review text and the procedure that connects them. Repeating the experiment with other source categories asks how much the result depends on the particular origin of those labels. Repeating it with other target categories asks whether the procedure helps beyond a familiar product pair. This distinction becomes important in the larger benchmark, where the authors report a separate average for each destination category.

#### Learning a shared representation

One line of earlier work sought to change the feature space before transferring a classifier. A feature records something the classifier can use about a document. In a review, features can reflect the words or word sequences it contains. A projection maps those features to another representation. Earlier projection methods described in the paper tried to bring the source and target distributions closer in the resulting space, on the reasoning that a decision rule would transfer more readily if the two domains were represented more similarly.

Structural Correspondence Learning illustrates the approach. It relies on *pivots*, features that can provide a useful connection between domains. The paper describes choices based on frequency and on association measures, including mutual information in earlier sentiment work. The logic is that broadly useful features can help relate features whose use is more specific to a domain. Choosing pivots is therefore part of specifying the adaptation procedure. Cui and Bollegala also discuss previous work that learns how suitable a feature is as a pivot during training. [Structural Correspondence Learning](https://md.research.elamur.ai/free/en/papers/blitzer-2006-domain-adaptation-structural-correspondence-learning/)

The authors place spectral feature alignment and autoencoder approaches in this broader family. The paper also discusses neural approaches that pursue domain invariance, meaning that the resulting representation should be less revealing of which domain supplied the input. The Variational Fair Autoencoder uses a discrepancy measure to encourage that property. Domain-adversarial training seeks features that retain information for classification while reducing information useful for telling the domains apart. This gives context to the objective in Self-Adapt. Its projections are learned separately within the source and target, and their objectives use the sentiment labels available in each domain to define which local examples to separate.

The use of separate projections changes what each objective can respond to. In the source category, the available labels tell the learner which input patterns occur near a sentiment boundary. In the target category, the provisional labels provide corresponding information about target reviews, with the uncertainty that comes from predictions. The system can therefore learn different transformations in the two categories without first deciding which features qualify as pivots. The paper’s final training stage then brings the projected examples together for the task they share.

#### Turning predictions into training examples

The other line of earlier work uses a classifier’s predictions to increase the supply of labelled examples. Classical self-training starts with the existing labels and fits a classifier. It adds unlabelled examples when the classifier predicts their labels with sufficient confidence. The enlarged dataset supports another fit, which may make confident predictions possible for more examples. In the procedure described by the authors, the cycle ends when it can add no more labels that meet the confidence criterion. For domain adaptation, the initial labels come from the source and the new predictions are made in the target. [Yarowsky’s work on word sense disambiguation](https://md.research.elamur.ai/free/en/papers/yarowsky-1995-unsupervised-word-sense-disambiguation-rivaling/)

The paper discusses applications of self-training to several language tasks, including document classification and sentiment classification. Work on parser adaptation is another example it cites. The common resource is a pool of unlabelled material from which the learner can choose new training cases. The predictions have a practical role because each selected case supplies both a real example from the destination domain and a proposed label. The reliability of the additions depends on whether the classifier’s confidence remains a useful guide after the domain changes. [Reranking and Self-Training for Parser Adaptation](https://md.research.elamur.ai/free/en/papers/mcclosky-2006-reranking-self-training-parser-adaptation/)

Co-training and tri-training offer other ways to decide which labels to accept. Co-training uses different views of an example, with each view supplying a set of features for its own classifier. Agreement can provide a basis for assigning a label. The paper notes that the method depends on the information the views capture and how well they complement one another. It cites domain adaptation work that treated source and target feature spaces as views. [Combining Labeled and Unlabeled Data with Co-Training](https://md.research.elamur.ai/free/en/papers/blum-1998-combining-labeled-unlabeled-data-co-training/)

Tri-training relaxes the demand for distinct feature views. In the paper’s account, it trains three classifiers using bootstrapped samples of the labelled data and uses agreement between at least two classifiers to assign a label to an unlabelled example. The diversified version requires exactly two classifiers to agree and the third to disagree, changing the set of examples that qualify. The authors also describe neural forms of tri-training. They treat classical tri-training as a serious point of comparison because previous work under domain shift found it competitive with more complex approaches. [Strong Baselines for Neural Semi-Supervised Learning under Domain Shift](https://md.research.elamur.ai/free/en/papers/ruder-2018-strong-baselines-neural-semi-supervised/)

Self-Adapt combines the representation and label-generation approaches by giving each a role at a different point in training. Source labels first guide a change of representation. A classifier fitted after that change produces labels for target examples. Those labels then guide how target reviews are represented. The implemented pipeline proceeds through these stages once. Its central question is whether pseudo-labels can improve a projection-based adaptation procedure when the target projection uses them to decide which nearby examples should be separated.

### The method, step by step

#### From reviews to vectors

Self-Adapt operates on vectors that describe complete reviews. The paper calls the representation a bag-of-n-grams embedding. An n-gram is a sequence of adjacent units in the text, here words. The experiments include unigrams and bigrams, which capture individual words and adjacent word pairs. The method pools embedding information by summation into a single vector for the review. Local wording can enter through the n-grams, and the pooled vector gives every review the same number of coordinates regardless of its length. [N-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/)

The initial vectors rely on pretrained [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/). The paper’s general notation describes adding the embeddings of a review’s words. In the experimental setup, the authors describe bag-of-n-grams features for unigrams and bigrams using 300 dimensional pretrained [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) vectors. This representation gives the method a common starting space for source and target reviews. A review is an individual observation in that space, and the nearest-neighbour calculations compare review vectors. The neighbours are complete reviews, even though word embeddings supplied the coordinates from which the review representation was built.

The main projection stages each fit a pair of square matrices. A matrix changes the coordinates of a review vector and leaves its dimensionality the same. One matrix in the pair is used for positive training examples and the other for negative training examples. For the source reviews, the known labels tell the procedure which matrix to apply. For the selected target reviews, the predicted labels play the same role. Those choices can be made when preparing the final training set because each review in it has a label, either observed or assigned.

The procedure can be read as two classifier fits connected by an intermediate labelling pass. The first fit produces the scores used to choose target examples. The second fit uses data from both domains after each domain’s projection has been learned. Between the fits, the target text contributes to training through the examples whose scores clear the threshold. This structure makes a useful distinction between the classifier that creates the provisional labels and the classifier that is evaluated on the target task.

How Self-Adapt builds the final sentiment classifier The steps in order.

#### Finding the reviews worth separating

The labelled source set is divided into reviews known to be positive and reviews known to be negative. For each positive review, Self-Adapt searches the negative pool for its nearest neighbours. For each negative review, it searches the positive pool. This focuses the separation objective on nearby cases from opposite classes. A negative review already far from a positive one has less relevance to that positive review’s local surroundings than a negative review with a very similar starting vector.

The paper’s notation for the neighbour summary is the following.

```
φ(x, D, k) = ∑_{u ∈ NN(x, D, k)} θ(x, u)u
```

Here `x` is the vector for the review being considered, `D` is the candidate set of review vectors and `k` is the number of neighbours requested. `NN(x, D, k)` is the set of those nearest neighbours chosen from `D`. The membership sign `∈` says that `u` takes each neighbour in that set, and `∑` adds their contributions. The weight `θ(x, u)` is calculated using the cosine similarity of `x` and `u`. The product `θ(x, u)u` is the neighbour vector scaled by that weight. The resulting vector `φ(x, D, k)` represents the neighbourhood for this review and candidate set.

Cosine similarity compares the direction of vectors. In the paper, it serves both to express how close a neighbour is and as the basis for weighting its contribution. The selected weights are normalized as follows.

```
∑_{u ∈ NN(x, D, k)} θ(x, u) = 1
```

The sum runs over the same selected neighbours. The symbols `u`, `x`, `D`, `k`, `NN` and `θ` have the meanings just given, and `1` is the stated total weight. With the fixed setting `k = 1`, the neighbourhood representation is the vector of the selected opposite-class review. With a larger neighbourhood, the summary can reflect several nearby reviews. The authors also mention Euclidean distance as an alternative measure. Their account of the weighting uses cosine similarity.

The order of operations matters. The neighbour function takes the original review vector and a set of candidates. Its output appears inside a matrix multiplication in the projection objective. The procedure presented in the paper therefore uses the neighbourhood summary built from these inputs when judging the transformed separation. The nearest negative review of a positive example is selected from the negative pool before its contribution to the objective is expressed through the negative transformation. The same choice, with labels reversed, applies to anchors from the negative pool.

#### Learning the source projection

The authors define the source projection, written `Sₚᵣⱼ`, through matrices `A₊` and `A₋`. Their objective scores each review against its opposite-label neighbourhood and sums these distances across the source set.

```
Oₗ(A₊, A₋) = ∑_{x ∈ Sₗ₊} ‖A₊x − A₋φ(x, Sₗ₋, k)‖₂
           + ∑_{x ∈ Sₗ₋} ‖A₋x − A₊φ(x, Sₗ₊, k)‖₂
```

`Oₗ` is the objective computed from the labelled source reviews. `A₊` and `A₋` are the source matrices for the positive and negative classes. `Sₗ₊` and `Sₗ₋` are the corresponding sets of labelled source review vectors, and `x` ranges over the set named beneath each sum. Juxtaposition in `A₊x` denotes matrix multiplication. The neighbour function `φ` uses the number of neighbours `k` and the candidate pool shown in its arguments. The minus sign subtracts one projected vector from the other, and `‖ · ‖₂` is the Euclidean norm of the resulting difference. The plus sign between the sums adds the contributions from the two anchor classes.

In the first sum, the positive matrix transforms the individual positive review. The negative matrix transforms the vector representing the nearby negative reviews. The distance is between these transformed vectors. The second sum works with a negative anchor and a positive neighbourhood. Both terms depend on both matrices, so changing a matrix affects distances involving that class in both roles. The objective described by the authors seeks a larger value. Its practical intuition is that the later classifier may have an easier job if opposite sentiments in close neighbourhoods are more clearly separated in the training representation.

Each matrix starts as the identity, the transformation that leaves a vector unchanged. The authors use [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) to fit the matrices and denote the fitted values with stars. Each square matrix has `d` rows and `d` columns, where `d` is the dimensionality of the input review representation. The same number of coordinates is present after the transformation. Thus the method changes the geometry used for training even though its projections preserve the input dimension.

The labelled source examples are then transformed class by class.

```
Sₗ* = (A₊* ∘ Sₗ₊) ∪ (A₋* ∘ Sₗ₋)
```

`Sₗ*` is the projected source dataset. `A₊*` and `A₋*` are the fitted source matrices. `Sₗ₊` and `Sₗ₋` are the original source sets for each sentiment. The operation `∘` indicates applying the matrix to every vector in the set that follows it, and `∪` collects the results into one dataset. The labels stay with the reviews for classifier training. Their vector coordinates are what change.

This is where supervision first affects the geometry. The label of a source review determines the neighbourhood the method searches, the matrix applied to the review and the matrix applied to its opposite-label neighbourhood. The method learns from the arrangement of reviews near these class contrasts. The formulation gives no separate term for requiring positive reviews to form a single cluster or negative reviews to form a single cluster. Its explicit focus is the distance between each anchor and the selected opposite-label summary.

#### Assigning provisional target labels

The next stage fits a classifier on `Sₗ*` and uses it to score the unlabelled target reviews. A classifier trained on projected source examples is therefore presented with target review vectors in the common input dimensionality. The paper’s pseudo-labelling algorithm writes each target review as `x` and supplies it to the classifier directly. The target projection will be learned only after some of these examples acquire provisional labels.

```
p(t = y | x) = f(x, y; Sₗ*)
```

`p(t = y | x)` is the classifier’s estimated probability that the unknown label `t` of review `x` is the candidate value `y`, given the review. The vertical bar means that the estimate is conditional on the input. `f` denotes the classifier, with `x` and candidate `y` as the arguments used to obtain a score, and the notation after the semicolon identifies its training dataset. Here that dataset is `Sₗ*`, the projected source reviews. The candidate values in `Y` are `+1` for positive and `−1` for negative.

The criterion for retaining an example is a strict confidence comparison.

```
p(t = y | x) > τ
```

The symbols on the left still denote the estimated probability for assigning class `y` to the input `x`, whose true label is `t`. The greater-than sign requires that probability to exceed `τ`, the chosen confidence threshold. A retained input is entered into the target training set with its predicted label. The algorithm considers reviews from `Tᵤ`, the unlabelled target pool, and returns `Tₗ′`, the set of selected target examples with pseudo-labels. A review with no prediction above the threshold supplies no labelled training pair in this stage.

The threshold provides a way to choose the target data by classifier confidence. A high score is a statement about what the classifier predicts, and whether it is correct remains an empirical question. The set chosen by the threshold can have different proportions of positive and negative reviews and can represent some kinds of target text more readily than others. These are consequences of selection by the source-trained classifier. The paper uses the selected examples as the supervision available for constructing the target projection.

Classical self-training would fit another classifier on the enlarged labelled set and repeat the labelling pass. The authors say that in their preliminary experiments this repetition provided no improvement beyond the first pass in domain adaptation. They therefore use a single pass in Self-Adapt, avoiding further rounds of fitting and label selection. The final training step still uses the newly labelled target reviews. Its purpose is to learn the sentiment classifier after the target projection, so it sits at the end of the pipeline.

#### Learning from the target neighbourhoods

With pseudo-labels assigned, Self-Adapt splits the selected target vectors into `Tₗ′₊` and `Tₗ′₋`. They play the roles that the known positive and negative source sets played earlier. A provisionally positive review is compared with nearby provisionally negative reviews, and a provisionally negative review with nearby provisionally positive ones. The two matrices for the target, `B₊` and `B₋`, are fit using that target data.

```
Oₗ′(B₊, B₋) = ∑_{x ∈ Tₗ′₊} ‖B₊x − B₋φ(x, Tₗ′₋, k)‖₂
             + ∑_{x ∈ Tₗ′₋} ‖B₋x − B₊φ(x, Tₗ′₊, k)‖₂
```

`Oₗ′` is the objective for the pseudo-labelled target set. `B₊` and `B₋` are target matrices for the predicted positive and negative classes. Each has the same `d` by `d` shape as a source matrix. `Tₗ′₊` and `Tₗ′₋` are the target review sets with the corresponding pseudo-labels. Each `x` is an anchor from the set indicated by its sum, and `φ` produces the opposite-label neighbourhood vector from the other set using `k` neighbours. Matrix multiplication changes the coordinates of the anchor and its neighbourhood vector. The minus signs form their differences, the Euclidean norm `‖ · ‖₂` gives the distances and the two sums collect those distances over the target training examples.

The stated target aim is to increase these separations, following the source procedure. Both target matrices start as the identity and the paper again specifies Adam. The target objective depends directly on the review geometry in the target pool that passed the confidence filter. A provisional label can therefore influence more than the classification loss on its own example. It can determine which transformation the review receives and whether it becomes a candidate neighbour for other selected reviews.

After training the target matrices, the authors construct the projected target training set.

```
Tₗ′* = (B₊* ∘ Tₗ′₊) ∪ (B₋* ∘ Tₗ′₋)
```

`Tₗ′*` is the projected collection of pseudo-labelled target reviews. `B₊*` and `B₋*` are the fitted target matrices. `Tₗ′₊` and `Tₗ′₋` select the respective pseudo-label classes. As in the source expression, `∘` applies each matrix to the review vectors in its class set, `∪` joins the resulting collections and the star marks the fitted or projected quantity. The label used to select the matrix remains the label attached to the projected example.

#### Fitting the final classifier

The final fit uses both transformed datasets.

```
f(x, y; Sₗ* ∪ Tₗ′*)
```

`f` here is the final classifier. It scores candidate sentiment `y` for a test review vector `x`. The union `Sₗ* ∪ Tₗ′*` identifies the reviews used to fit it, combining the projected source set `Sₗ*` and the projected, pseudo-labelled target set `Tₗ′*`. The source and target training vectors have the same number of coordinates, which allows the classifier to use a common set of input weights.

The experiments use logistic regression with L₂ regularization. Logistic regression fits a decision rule based on a weighted combination of review features and provides probabilities for the classes. The regularization term penalizes large coefficients, with its strength decided by validation. The authors choose a linear classifier so that the changes due to fitting the projections can be evaluated with a comparatively simple prediction rule. They describe the method as compatible with other binary classifiers.

In the paper’s notation, the source and target matrices prepare examples with known or assigned training labels. The final classifier takes the target test review vector as its input. The procedure gives no additional class-dependent transformation for an unlabelled test review. At evaluation, the classifier’s output is the prediction to compare with the review’s held-out label. This division of responsibilities matters because selecting a positive or negative transformation by the true test label would use the very information the classifier is supposed to infer.

The experimental recipe caps projection training at 100 epochs, which the authors say was sufficient for convergence in their projection runs. The fitting decisions about neighbourhood size, confidence and regularization are reflected in the different comparisons. The paper says that the implementation of Self-Adapt would be made publicly available upon acceptance.

### Experiments and results

#### The standard and extended Amazon benchmarks

The experiments draw on the [Amazon multi-domain sentiment dataset](https://md.research.elamur.ai/free/en/papers/blitzer-2007-biographies-bollywood-boom-boxes-blenders/). The original reviews include product star ratings, which the authors use to define the binary task. Reviews with 4 or 5 stars count as positive. Reviews with 1 or 2 stars count as negative. The protocol leaves out 3 star reviews because their sentiment is ambiguous under this rule. The data also include unlabelled review pools. Different product domains contain different products, and the paper notes that a product may have several reviews within its own domain.

The Multi-domain Adaptation Dataset, or MAD, is the standard subset in the paper. Its categories are books, DVDs, electronic appliances and kitchen appliances. The authors abbreviate them as B, D, E and K. The official training split for each category contains 800 positive and 800 negative examples. The official test split for each contains 200 positive and 200 negative examples. Each of the 12 transfers has a designated source and a designated target. A result for books to DVDs is the classification accuracy on the DVD test set after adaptation from books. The reverse transfer is evaluated on the book test set.

The Extended Multi-domain Adaptation Dataset, or EMAD, draws on 16 other categories from the same review collection. Its categories include apparel, gourmet food, music and software. Using the same rating rule, the authors set aside a random 20% of the available labelled reviews for testing and build a training set from the remaining reviews with equal counts of positive and negative examples. For EMAD, the paper reports average target test accuracy for each destination category across its possible source categories. This summarizes the 240 ordered transfers while preserving the identities of the targets.

Accuracy measures the share of classified reviews whose predicted sentiment agrees with the label derived from the rating. The test examples are held out from training. The authors separately describe selecting 10% from labelled target data for validation, outside the train and test splits, to tune logistic regression. The searched regularization values are `0.001`, `0.01`, `0.1` and `1`. For the component comparison the neighbourhood size is fixed at `k = 1` and the authors give `[0.5, 0.9]` as the cross-validation range for the confidence threshold. For the classical self-training comparison they report validation-selected thresholds in `[0.6, 0.9]`, with neighbourhood size selected using validation for Self-Adapt.

The tables identify significant improvements for certain comparisons using an exact binomial test. The marks in the component table refer to the no-adaptation baseline, with levels `p = 0.01` and `p = 0.001`. In the neural comparison the reference for the marks is DANN. An accuracy ranking and a significance mark answer different questions. A ranking orders the displayed test scores. A mark supplies the paper’s statistical result for the specified baseline and threshold.

#### How performance changes as stages are added

The no-adaptation baseline trains on the original labelled source vectors and predicts target test labels. The source projection variant first transforms the labelled source examples and then uses them to train the classifier. The next variant generates target pseudo-labels and includes the resulting reviews in classifier training in their original representation, alongside the projected source examples. The full method projects the selected target examples too. Because the stages are added in this order, the comparison traces what changes when each stage is introduced under the fixed neighbourhood setting.

Test accuracy by adaptation stage on MAD from books to electronic appliances The source projection raises accuracy, and the complete procedure achieves the highest result.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| No adaptation | 64.00 |
| Source projection | 73.25 |
| Source projection and pseudo-labelling | 73.50 |
| Self-Adapt with source and target projections (this paper) | 77.50 |

The source projection improves on no adaptation in most MAD transfer rows and ties it for kitchen appliances to DVDs, at 71.25% target test accuracy. The complete method is highest or tied for highest across the rows. For DVDs to books its fixed-setting accuracy is 75.50%, shared by the source projection and the pseudo-labelling variant. For electronic appliances to kitchen appliances it is 81.00%, again shared by all the variants that include the source projection. For DVDs to kitchen appliances the complete procedure reaches 79.75%, compared with 71.50% for no adaptation. The authors report significant gains over no adaptation under `p < 0.001` for 7 out of 12 transfers.

The EMAD target averages show the complete method leading the component comparison in every reported category. For cameras and photo equipment, the average test accuracy is 68.46% for no adaptation and 74.54% for the complete method. For jewellery and watches the corresponding values are 68.90% and 79.79%. Gourmet food has an average of 72.34% without adaptation and 83.15% with both projections. These figures concern different target categories, with each score aggregating transfers into its own target. They should be read as performance across possible origins for the same destination.

The pattern in the larger review collection helps put individual transfers in context. In MAD, the reader can see whether adapting in one direction yields a larger accuracy gain than adapting in the other. In EMAD, the reader can see whether the complete method remains ahead when each target is reached from a range of sources. The published target averages answer that second question for the comparisons shown. They leave the individual EMAD transfer results unresolved.

#### Comparison with classical pseudo-labelling methods

The authors reimplement classical self-training, tri-training and diversified tri-training. They use source-labelled examples as seeds and generate pseudo-labels for the target pool. The comparison uses common datasets, feature representations and experimental settings. They report the results after the first iteration because their experiments found that further iterations yielded no significant increase for these methods in this setting. That implementation choice gives the baselines and Self-Adapt a common stopping point for label generation.

Classical self-training, labelled Self in the comparison, has test accuracy of 65.00% for books to electronic appliances, alongside 64.00% for no adaptation. For DVDs to books, Self yields 73.00%, against 74.00% for no adaptation. The tri-training variants produce some stronger scores. For example, on electronic appliances to kitchen appliances, tri-training and Self-Adapt tie at 82.50%, while no adaptation produces 76.00%. On books to DVDs, diversified tri-training and Self-Adapt tie at 77.25%.

Test accuracy for self-training methods on MAD from electronic appliances to DVDs Diversified tri-training leads this transfer even though Self-Adapt generally fares better across the benchmark.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| No adaptation | 66.75 |
| Classical self-training | 66.25 |
| Tri-training | 68.25 |
| Diversified tri-training | 73.50 |
| Self-Adapt (this paper) | 69.50 |

The paper describes Self-Adapt as outperforming the classical methods on 11 out of 12 MAD transfers. The displayed scores support that count when ties for best are included. They also show that diversified tri-training wins the transfer from electronic appliances to DVDs. On the extended dataset, Self-Adapt has the highest average among the compared classical methods for all 16 target categories. For example, the gourmet food average test accuracy is 77.88% for diversified tri-training, 75.39% for tri-training and 83.15% for Self-Adapt.

The neighbourhood setting is important when relating the classical comparison to the component results. In the component experiment all stage variants have `k = 1`. The paper describes validation selection of `k` for Self-Adapt in the classical comparison. Some displayed results therefore differ for the complete method across the MAD tables. For DVDs to books, the component table gives 75.50% with the fixed setting, and the classical comparison gives 81.00% for Self-Adapt. The fixed-setting table is the place to assess the contribution of the stages under a shared neighbourhood setting.

#### Comparison with published neural results

The paper compares Self-Adapt on MAD with published results from the Variational Fair Autoencoder, DANN, Asymmetric Tri-training and Multi-task Tri-training. These entries come from the original publications. The comparison is useful for placing the reported accuracies alongside other adaptation approaches on the same benchmark. The systems use different review representations or amounts of unlabelled data, so the scores also reflect differences in experimental setup.

Test accuracy against published neural methods on MAD from DVDs to books Self-Adapt has the highest reported accuracy for this transfer.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Variational Fair Autoencoder | 75.50 |
| DANN | 72.30 |
| Asymmetric Tri-training | 73.20 |
| Multi-task Tri-training | 77.49 |
| Self-Adapt (this paper) | 81.00 |

Self-Adapt has the highest accuracy in 3 out of 12 MAD transfers in this comparison. The wins are DVDs to books, electronic appliances to books and kitchen appliances to books. Its target test accuracy is 76.25% for electronic appliances to books and 75.00% for kitchen appliances to books. Multitask Tri-training is ahead of Self-Adapt in 8 transfers. For example, it obtains 87.07% for electronic appliances to kitchen appliances, where Self-Adapt scores 82.50%. The paper describes Self-Adapt as competitive with DANN and reports a significant improvement over DANN for DVDs to books at the `p = 0.001` level. The overall comparison and the marked result concern different scopes, since the mark applies to that particular transfer.

The authors give a concrete account of the input differences for Multi-task Tri-training. It represents reviews using 5000 dimensional vectors whose unigram and bigram features are weighted by [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/). Self-Adapt uses its 300 dimensional representation built with pretrained GloVe embeddings. The cited Multi-task Tri-training experiments use 2000 unlabelled examples for each domain. Self-Adapt scores the available unlabelled target pool and passes the confident examples to later training. The authors treat its ability to screen the available pool without an initial subsample as a practical advantage. The reported comparison leaves open how the methods would fare under the same review representation and unlabelled input.

### What the ablations show

#### The source transformation can help before any target labels are inferred

The component experiment is a sequence of additions to a common starting procedure. The first comparison asks whether changing the representation of the known source examples helps the classifier transfer. Both the no-adaptation classifier and the source projection classifier fit on source training examples. The second one sees coordinates transformed by a procedure that used source sentiment labels and opposite-class neighbours. The difference in target test performance therefore provides evidence about whether that transformation can help on its own.

The gains are evident for several transfers. For kitchen appliances to books, accuracy is 63.00% with no adaptation and 73.75% after adding the source projection. For electronic appliances to books, it is 67.25% and 74.50%, respectively. The tie for kitchen appliances to DVDs shows that the effect varies with the direction. At the level of the extended dataset, the source projection has a higher average than no adaptation for each target category in the component table. Those averages show the breadth of the improvement while preserving the uncertainty about individual source choices.

The result gives some support to the paper’s design choice. Supervision from the source can identify useful sentiment distinctions in how the source reviews are arranged. A training representation built around those distinctions can help some target decisions even before target text enters the fitting stages. The experiment measures success through classification accuracy. It does not directly show how the projected distances relate to errors on individual target reviews or whether each class becomes more coherent in the transformed representation.

#### Adding target examples gives a smaller and less uniform effect

The next comparison keeps the source projection and adds pseudo-labelled target examples to the classifier’s training set. These examples remain in their original representation in this variant. The resulting change asks whether training on selected target inputs is useful before learning a target transformation. In the papers’ terms, the contrast is between `Sₚᵣⱼ` and `Sₚᵣⱼ + PL`.

Some MAD rows show a modest gain. For DVDs to kitchen appliances the accuracy rises from 75.00% to 76.25% at this step. For books to kitchen appliances it changes from 75.25% to 76.00%. Other rows illustrate why the effect should be described as a tendency. For DVDs to books the score stays at 75.50%, and for kitchen appliances to DVDs it changes from 71.25% to 71.00%. In the EMAD table, the average for magazines moves from 71.54% with the source projection to 71.45% with the target additions. The paper’s broad description of consistent improvement is stronger than the pattern in the displayed scores.

The small changes make sense as evidence about the selected set’s value to the classifier at that particular stage. The pseudo-labels come from a classifier trained with source supervision. Adding a confidently predicted target review gives the learner a real target input, together with a label that can still carry source errors. The test scores summarize the effect of those additions as a group. They offer no count of correct pseudo-labels or direct accounting of the kinds of reviews the threshold admitted.

The preliminary iteration comparisons add context to this limited gain. The authors report that repeated pseudo-labelling and retraining provided no further improvement for Self-Adapt after the initial pass. They likewise report no significant gain beyond the first iteration of the classical baselines in their domain adaptation experiments. These observations explain the single-pass training decision. Since the paper gives no series of scores by round, it provides no basis for tracing whether the extra rounds plateaued, varied with the domain pair or reversed gains on particular transfers.

#### Using the labels to learn target geometry yields the clearest extra gain

The final comparison uses the pseudo-labelled examples to fit the target projection and then includes their transformed versions in the final training set. Both the preceding variant and full Self-Adapt draw their pseudo-labels from the source-stage classifier. The main change at this point is how the selected target reviews are represented. The comparison therefore addresses the central claim that target pseudo-labels can be useful as input to projection learning.

For books to kitchen appliances, the fixed-setting accuracy goes from 76.00% with pseudo-labelled target examples to 78.75% when the target projection is added. For DVDs to electronic appliances, it goes from 71.50% to 74.25%. There are also cases in which the earlier stages already reach the final accuracy. Electronic appliances to kitchen appliances remains at 81.00%, and DVDs to books remains at 75.50%. The benefit of the target transformation is a pattern across the experiment, with examples where the score does not change.

The extended dataset supplies a useful complement because every target average in the component table improves after adding the target projection. The average for outdoor living is 78.01% with source projection and pseudo-labelling, and 78.93% with both projections. For video the corresponding averages are 68.37% and 68.97%. For gourmet food they are 82.89% and 83.15%. The authors report 168 labelled and 267 unlabelled training instances for gourmet food and highlight the result as evidence that the procedure can help a category with a relatively small training pool. The table shows performance with the available data, leaving the response to deliberate changes in pool size open.

The staged design supports a conclusion about the complete training recipe. It shows what adding a target projection contributes after source projection and confidence-based pseudo-labelling have already taken place. It does not isolate a target transformation learned independently of the source projection. The source transformation affects the classifier that creates the pseudo-labels, which in turn affect the training examples and neighbourhoods available for the target transformation. Each later stage depends on decisions made earlier.

The separate comparisons with classical methods place these findings in context. The combined procedure typically yields better target accuracy than the authors’ classical pseudo-labelling baselines, with exceptions visible in MAD. The authors also report that their tri-training variants were sensitive to the seed instances. They give no seed-by-seed results, so the paper provides a qualitative observation about sensitivity rather than a quantitative comparison of variability. Taken together, the staged results give more direct evidence for the contribution of the target projection than the rankings against separately designed methods do.

### Limitations

#### Limits identified by the authors

The authors evaluate a binary sentiment task with a single source and a single target for each run. They regard the underlying procedure as applicable more broadly and envisage extensions to more classes or domains. Their proposed future tasks include cross-domain [part-of-speech tagging](https://md.research.elamur.ai/free/en/topics/part-of-speech-tagging/) and [named entity recognition](https://md.research.elamur.ai/free/en/topics/named-entity-recognition/). Those tasks require predictions at a different level from the review-wide sentiment label. The paper’s experiments establish results for review classification, leaving how to form examples, class neighbourhoods and target training sets for those tasks to future work.

The extended experiment addresses a limitation the authors identify in the standard benchmark’s product coverage. It adds a substantially wider set of product categories. As a presentation choice, the paper reports averages by target category because printing all the pairwise results would take more space. This makes the paper easier to read, but the averages provide less detail about the weakest or most variable origin-to-destination transfers. The paper’s broad claims about EMAD are best read at the level of targets and their reported averages.

The comparison with Multi-task Tri-training has a limit the authors state directly. They lacked its implementation for a rerun with the same features and unlabelled pool, so they used published results. They also report a preliminary observation that the choice of unlabelled dataset could affect neural adaptation performance. The comparison consequently establishes where the published scores stand on the benchmark. A matched experiment would be needed to attribute a difference to the adaptation algorithm while holding representations and target inputs fixed.

The authors describe the lower input dimensionality and the ability to screen all available unlabelled target examples as practical strengths. These are properties of the reported procedure. The experiments provide no matched measurements of runtime, memory consumption or how either changes as the review collection grows. The smaller input dimension, the single label-generation pass and the reported projection training cap describe parts of its computational setup. They leave total costs relative to the compared methods open.

#### Limits visible in the evaluation

The general problem definition assumes no labelled target training data. The experimental protocol nonetheless uses labelled target reviews for validation, explicitly for selection of the regularization coefficient. The source and target projection stages still use the stated source labels and target pseudo-labels, and target test reviews are held apart. The tuning choice means the reported accuracies are for a protocol with some labelled target validation data. The paper offers no corresponding experiment in which validation decisions also have to be made without target labels.

Both datasets come from the Amazon review collection and derive the task labels from star ratings. EMAD gives evidence over a wider range of product categories and dataset sizes within that collection. It leaves open transfers to other kinds of texts, other annotation schemes and label spaces where classes change across domains. The omission of middle-rated reviews likewise narrows the inference. The method is tested on the positive and negative examples defined by the star rule, with no measured requirement to handle neutral or ambiguous sentiment.

The standard benchmark’s balanced train and test splits make accuracy straightforward to read in that setting. For EMAD the paper specifies balanced training sets and describes test selection as a random fraction of available labelled reviews. The reported accuracy alone gives no detail about the distribution of positive and negative errors or the performance on reviews selected and rejected by the confidence threshold. Separate error breakdowns could clarify whether transferring from a given source favours one sentiment class. The results here concern total correct predictions on the held-out reviews.

The authors’ significance statements should also be read with their reference comparisons in mind. In the component benchmark, the marks indicate differences from no adaptation. They do not establish that the final target projection produces a statistically significant increment over the preceding pseudo-labelling variant for each pair. The neural table similarly marks comparisons against DANN and gives no general significance test of all the systems’ rankings against one another. The accuracy differences and the stated tests support related claims with different scopes.

#### Limits visible in the projection equations

The equations give a precise rule for which training distances contribute to the objective. Their geometry leaves consequential details open. Each objective sums distances between transformed reviews and opposite-label neighbourhoods. In the written source objective, scaling both matrices together can increase any non-zero distances and hence the sum. A bound on the matrix scale or a penalty on the matrices would matter to the existence of a finite maximizer, and the displayed objective gives no such term. The paper describes identity initialization, Adam and a finite training schedule. Those describe the reported fitting procedure and do not establish the existence of a finite optimum for the written objective.

There is also a wording inconsistency in the target optimization. The target section describes seeking larger distances and using the same scheme as for the source, then calls the fitted matrices minimizers. For the displayed sum of positive distances, minimizing and maximizing would encourage opposite things. The method’s stated rationale, the description of the target stage and the summary of the approach all point to increasing separation. The terminology leaves the exact optimization convention less fully specified than the intended effect.

The objectives are local and class-dependent. They contain no term directly measuring alignment between projected source and projected target distributions. Greater separation for selected neighbours can be useful to final classification, but it does not by itself guarantee that the two projections put similar source and target cases in corresponding positions. The classifier fit on their union is where the procedure uses the two transformed datasets together. The main evidence that the pieces work jointly is therefore the target test accuracy.

The target objective requires opposite pseudo-labels to define neighbours. When a confidence filter is very selective, it can leave few candidates for one of the classes. The paper gives no fallback for a class pool that lacks the requested neighbours. It also reports no analysis of whether the retained labels are balanced or how often a selected review is used as another review’s neighbour. These details matter to understanding how the method would behave in transfers where the initial classifier is heavily biased toward one sentiment. The experiments show how the specified procedure performed in the benchmark runs.

Finally, the target projection and its training labels are learned from the same provisional decisions. A wrong label can put a review in the wrong neighbour pool as well as tell the final classifier the wrong sentiment. The results show that these risks did not prevent the complete procedure from improving the reported component comparisons overall. They leave unanswered how the gains depend on pseudo-label quality, whether alternative label-selection schemes would help and which of the corrected test predictions can be traced to the intended changes in local geometry.

### What came after

The later work linked to Self-Adapt is a survey of neural unsupervised domain adaptation in natural language processing. It cites the paper in the course of surveying the broader problem of transferring language systems across domains without target training labels. Self-Adapt falls within that problem through its combination of a learned representation and target labels created by prediction. The citation places the paper in a later survey of the field. Details of any experimental reuse, extension or further evaluation of its procedure remain unspecified. Neural Unsupervised Domain Adaptation in NLP

## Cite

Cite as Xia Cui and Danushka Bollegala. 2019. Self-Adaptation for Unsupervised Domain Adaptation. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.26615/978-954-452-056-4_025](https://doi.org/10.26615/978-954-452-056-4_025)

```bibtex
@inproceedings{cui2019self,
  title = {{Self-Adaptation for Unsupervised Domain Adaptation}},
  author = {Xia Cui and Danushka Bollegala},
  booktitle = {Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019)},
  year = {2019},
  doi = {10.26615/978-954-452-056-4\_025},
  url = {https://doi.org/10.26615/978-954-452-056-4_025}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
