Unsupervised Cross-Domain Word Representation Learning

Meaning of a word varies from one domain to another. Despite this important domain dependence in word semantics, existing word representation learning methods are bound to a single domain. Given a pair of \emph{source}-\emph{target} domains, we propose an unsupervised method for learning domain-specific word representations that accurately capture the domain-specific aspects of word semantics. First, we select a subset of frequent words that occur in both domains as \emph{pivots}. Next, we optimize an objective function that enforces two constraints: (a) for both source and target domain documents, pivots that appear in a document must accurately predict the co-occurring non-pivots, and (b) word representations learnt for pivots must be similar in the two domains. Moreover, we propose a method to perform domain adaptation using the learnt word representations. Our proposed method significantly outperforms competitive baselines including the state-of-the-art domain-insensitive word representations, and reports best sentiment classification accuracies for all domain-pairs in a benchmark dataset.


Introduction
Learning semantic representations for words is a fundamental task in NLP that is required in numerous higher-level NLP applications (Collobert et al., 2011).Distributed word representations have gained much popularity lately because of their accuracy as semantic representations for words (Mikolov et al., 2013a;Pennington et al., 2014).However, the meaning of a word often varies from one domain to another.For exam-ple, the phrase lightweight is often used in a positive sentiment in the portable electronics domain because a lightweight device is easier to carry around, which is a positive attribute for a portable electronic device.However, the same phrase has a negative sentiment assocition in the movie domain because movies that do not invoke deep thoughts in viewers are considered to be lightweight (Bollegala et al., 2014).However, existing word representation learning methods are agnostic to such domain-specific semantic variations of words, and capture semantics of words only within a single domain.To overcome this problem and capture domain-specific semantic orientations of words, we propose a method that learns separate distributed representations for each domain in which a word occurs.
Despite the successful applications of distributed word representation learning methods (Pennington et al., 2014;Collobert et al., 2011;Mikolov et al., 2013a) most existing approaches are limited to learning only a single representation for a given word (Reisinger and Mooney, 2010).Although there have been some work on learning multiple prototype representations (Huang et al., 2012;Neelakantan et al., 2014) for a word considering its multiple senses, such methods do not consider the semantics of the domain in which the word is being used.
If we can learn separate representations for a word for each domain in which it occurs, we can use the learnt representations for domain adaptation tasks such as cross-domain sentiment classification (Bollegala et al., 2011b), cross-domain POS tagging (Schnabel and Schütze, 2013), crossdomain dependency parsing (McClosky et al., 2010), and domain adaptation of relation extractors (Bollegala et al., 2013a;Bollegala et al., 2013b;Bollegala et al., 2011a;Jiang and Zhai, 2007a;Jiang and Zhai, 2007b).
We introduce the cross-domain word represen-tation learning task, where given two domains, (referred to as the source (S) and the target (T )) the goal is to learn two separate representations w S and w T for a word w respectively from the source and the target domain that capture domainspecific semantic variations of w.In this paper, we use the term domain to represent a collection of documents related to a particular topic such as user-reviews in Amazon for a product category (e.g.books, dvds, movies, etc.).However, a domain in general can be a field of study (e.g.biology, computer science, law, etc.) or even an entire source of information (e.g.twitter, blogs, news articles, etc.).In particular, we do not assume the availability of any labeled data for learning word representations.
This problem setting is closely related to unsupervised domain adaptation (Blitzer et al., 2006), which has found numerous useful applications such as, sentiment classification and POS tagging.For example, in unsupervised cross-domain sentiment classification (Blitzer et al., 2006;Blitzer et al., 2007), we train a binary sentiment classifier using positive and negative labeled user reviews in the source domain, and apply the trained classifier to predict sentiment of the target domain's user reviews.Although the distinction between the source and the target domains is not important for the word representation learning step, it is important for the domain adaptation tasks in which we subsequently evaluate the learnt word representations.Following prior work on domain adaptation (Blitzer et al., 2006), high-frequent features (unigrams/bigrams) common to both domains are referred to as domain-independent features or pivots.In contrast, we use non-pivots to refer to features that are specific to a single domain.
We propose an unsupervised cross-domain word representation learning method that jointly optimizes two criteria: (a) given a document d from the source or the target domain, we must accurately predict the non-pivots that occur in d using the pivots that occur in d, and (b) the source and target domain representations we learn for pivots must be similar.The main challenge in domain adaptation is feature mismatch, where the features that we use for training a classifier in the source domain do not necessarily occur in the target domain.Consequently, prior work on domain adaptation (Blitzer et al., 2006;Pan et al., 2010) learn lower-dimensional mappings from non-pivots to pivots, thereby overcoming the feature mismatch problem.Criteria (a) ensures that word representations for domain-specific non-pivots in each domain are related to the word representations for domain-independent pivots.This relationship enables us to discover pivots that are similar to target domain-specific non-pivots, thereby overcoming the feature mismatch problem.
On the other hand, criteria (b) captures the prior knowledge that high-frequent words common to two domains often represent domain-independent semantics.For example, in sentiment classification, words such as excellent or terrible would express similar sentiment about a product irrespective of the domain.However, if a pivot expresses different semantics in source and the target domains, then it will be surrounded by dissimilar sets of non-pivots, and reflected in the first criteria.Criteria (b) can also be seen as a regularization constraint imposed on word representations to prevent overfitting by reducing the number of free parameters in the model.
Our contributions in this paper can be summarized as follows.
• We propose a distributed word representation learning method that learns separate representations for a word for each domain in which it occurs.
To the best of our knowledge, ours is the first-ever domain-sensitive distributed word representation learning method.
• Given domain-specific word representations, we propose a method to learn a cross-domain sentiment classifier.
Although word representation learning methods have been used for various related tasks in NLP such as similarity measurement (Mikolov et al., 2013c), POS tagging (Collobert et al., 2011), dependency parsing (Socher et al., 2011a), machine translation (Zou et al., 2013), sentiment classification (Socher et al., 2011b), and semantic role labeling (Roth and Woodsend, 2014), to the best of our knowledge, word representations methods have not yet been used for crossdomain sentiment classification.
Experimental results for cross-domain sentiment classification on a benchmark dataset show that the word representations learnt using the proposed method statistically significantly outper-form a state-of-the-art domain-insensitive word representation learning method (Pennington et al., 2014), and several competitive baselines.In particular, our proposed cross-domain word representation learning method is not specific to a particular task such as sentiment classification, and in principle, can be in applied to a wide-range of domain adaptation tasks.Despite this taskindependent nature of the proposed method, it achieves the best sentiment classification accuracies on all domain-pairs, reporting statistically comparable results to the current state-of-the-art unsupervised cross-domain sentiment classification methods (Pan et al., 2010;Blitzer et al., 2006).

Related Work
Representing the semantics of a word using some algebraic structure such as a vector (more generally a tensor) is a common first step in many NLP tasks (Turney and Pantel, 2010).By applying algebraic operations on the word representations, we can perform numerous tasks in NLP, such as composing representations for larger textual units beyond individual words such as phrases (Mitchell and Lapata, 2008).Moreover, word representations are found to be useful for measuring semantic similarity, and for solving proportional analogies (Mikolov et al., 2013c).Two main approaches for computing word representations can be identified in prior work (Baroni et al., 2014): counting-based and prediction-based.
In counting-based approaches (Baroni and Lenci, 2010), a word w is represented by a vector w that contains other words that co-occur with w in a corpus.Numerous methods for selecting co-occurrence contexts such as proximity or dependency relations have been proposed (Turney and Pantel, 2010).Despite the numerous successful applications of co-occurrence countingbased distributional word representations, their high dimensionality and sparsity are often problematic in practice.Consequently, further postprocessing steps such as dimensionality reduction, and feature selection are often required when using counting-based word representations.
On the other hand, prediction-based approaches first assign each word, for example, with a ddimensional real-vector, and learn the elements of those vectors by applying them in an auxiliary task such as language modeling, where the goal is to predict the next word in a given sequence.The dimensionality d is fixed for all the words in the vocabulary, and, unlike counting-based word representations, is much smaller (e.g.d ∈ [10, 1000] in practice) compared to the vocabulary size.The neural network language model (NNLM) (Bengio et al., 2003) uses a multi-layer feed-forward neural network to predict the next word in a sequence, and uses backpropagation to update the word vectors such that the prediction error is minimized.
Although NNLMs learn word representations as a by-product, the main focus on language modeling is to predict the next word in a sentence given the previous words, and not learning word representations that capture semantics.Moreover, training multi-layer neural networks using large text corpora is time consuming.To overcome those limitations, methods that specifically focus on learning word representations that model word co-occurrences in large corpora have been proposed (Mikolov et al., 2013a;Mnih and Kavukcuoglu, 2013;Huang et al., 2012;Pennington et al., 2014).Unlike the NNLM, these methods use all the words in a contextual window in the prediction task.Methods that use one or no hidden layers are proposed to improve the scalability of the learning algorithms.For example, the skip-gram model (Mikolov et al., 2013b) predicts the words c that appear in the local context of a word w, whereas the continuous bag-of-words model (CBOW) predicts a word w conditioned on all the words c that appear in w's local context (Mikolov et al., 2013a).Methods that use global co-occurrences in the entire corpus to learn word representations have shown to outperform methods that use only local cooccurrences (Huang et al., 2012;Pennington et al., 2014).Overall, prediction-based methods have shown to outperform counting-based methods (Baroni et al., 2014).
Despite their impressive performance, existing methods for word representation learning do not consider the semantic variation of words across different domains.However, as described in Section 1, the meaning of a word vary from one domain to another, and must be considered.To the best of our knowledge, the only prior work studying the problem of word representation variation across domains is due to Bollegala et al. (2014).Given a source and a target domain, they first select a set of pivots using pointwise mutual information, and create two distributional representa-tions for each pivot using their co-occurrence contexts in a particular domain.Next, a projection matrix from the source to the target domain feature spaces is learnt using partial least squares regression.Finally, the learnt projection matrix is used to find the nearest neighbors in the source domain for each target domain-specific features.However, unlike our proposed method, their method does not learn domain-specific word representations, but simply uses co-occurrence counting when creating in-domain word representations.Faralli et al. (2012) proposed a domain-driven word sense disambiguation (WSD) method where they construct glossaries for several domain using a pattern-based bootstrapping technique.This work demonstrates the importance of considering the domain specificity of word senses.However, the focus of their work is not to learn representations for words or their senses in a domain, but to construct glossaries.It would be an interesting future research direction to explore the possibility of using such domain-specific glossaries for learning domain-specific word representations.Neelakantan et al. (2014) proposed a method that jointly performs WSD and word embedding learning, thereby learning multiple embeddings per word type.In particular, the number of senses per word type is automatically estimated.However, their method is limited to a single domain, and does not consider how the representations vary across domains.On the other hand, our proposed method learns a single representation for a particular word for each domain in which it occurs.
Although in this paper we focus on the monolingual setting where source and target domains belong to the same language, the related setting where learning representations for words that are translational pairs across languages has been studied (Hermann and Blunsom, 2014; Klementiev et al., 2012;Gouws et al., 2015).Such representations are particularly useful for cross-lingual information retrieval (Duc et al., 2010).It will be an interesting future research direction to extend our proposed method to learn such cross-lingual word representations.

Cross-Domain Representation Learning
We propose a method for learning word representations that are sensitive to the semantic variations of words across domains.We call this problem cross-domain word representation learning, and provide a definition in Section 3.1.Next, in Section 3.2, given a set of pivots that occurs in both a source and a target domain, we propose a method for learning cross-domain word representations.We defer the discussion of pivot selection methods to Section 3.4.In Section 3.5, we propose a method for using the learnt word representations to train a cross-domain sentiment classifier.

Problem Definition
Let us assume that we are given two sets of documents D S and D T respectively for a source (S) and a target (T ) domain.We do not consider the problem of retrieving documents for a domain, and assume such a collection of documents to be given.Then, given a particular word w, we define cross-domain representation learning as the task of learning two separate representations w S and w T capturing w's semantics in respectively the source S and the target T domains.
Unlike in domain adaptation, where there is a clear distinction between the source (i.e. the domain on which we train) vs. the target (i.e. the domain on which we test) domains, for representation learning purposes we do not make a distinction between the two domains.In the unsupervised setting of the cross-domain representation learning that we study in this paper, we do not assume the availability of labeled data for any domain for the purpose of learning word representations.As an extrinsic evaluation task, we apply the trained word representations for classifying sentiment related to user-reviews (Section 3.5).However, for this evaluation task we require sentiment-labeled user-reviews from the source domain.
Decoupling of the word representation learning from any tasks in which those representations are subsequently used, simplifies the problem as well as enables us to learn task-independent word representations with potential generic applicability.Although we limit the discussion to a pair of domains for simplicity, the proposed method can be easily extended to jointly learn word representations for more than two domains.In fact, prior work on cross-domain sentiment analysis show that incorporating multiple source domains improves sentiment classification accuracy on a target domain (Bollegala et al., 2011b;Glorot et al., 2011).

Proposed Method
To describe our proposed method, let us denote a pivot and a non-pivot feature respectively by c and w.Our proposed method does not depend on a specific pivot selection method, and can be used with all previously proposed methods for selecting pivots as explained later in Section 3.4.A pivot c is represented in the source and target domains respectively by vectors c S ∈ R n and c T ∈ R n .Likewise, a source specific non-pivot w is represented by w S in the source domain, whereas a target specific non-pivot w is represented by w T in the target domain.By definition, a non-pivot occurs only in a single domain.For notational convenience we use w to denote non-pivots in both domains when the domain is clear from the context.We use C S , W S , C T , and W T to denote the sets of word representation vectors respectively for the source pivots, source non-pivots, target pivots, and target non-pivots.
Let us denote the set of documents the source and the target domains respectively by D S and D T .Following the bag-of-features model, we assume that a document D is represented by the set of pivots and non-pivots that occur in D (w ∈ d and c ∈ d).We consider the co-occurrences of a pivot c and a non-pivot w within a fixedsize contextual window in a document.Following prior work on representation learning (Mikolov et al., 2013a), in our experiments, we set the window size to 10 tokens, without crossing sentence boundaries.The notation (c, w) ∈ d denotes the co-occurrence of a pivot c and a non-pivot w in a document d.
We learn domain-specific word representations by maximizing the prediction accuracy of the nonpivots w that occur in the local context of a pivot c.The hinge loss, L(C S , W S ), associated with predicting a non-pivot w in a source document d ∈ D S that co-occurs with pivots c is given by: Here, w * S is the source domain representation of a non-pivot w * that does not occur in d.The loss function given by Eq. 1 requires that a non-pivot w that co-occurs with a pivot c in the document d is assigned a higher ranking score as measured by the inner-product between c S and w S than a nonpivot w * that does not occur in d.We randomly sample k non-pivots from the set of all source do-main non-pivots that do not occur in d as w * .
Specifically, we use the marginal distribution of non-pivots p(w), estimated from the corpus counts, as the sampling distribution.We raise p(w) to the 3/4-th power as proposed by Mikolov et al. (2013a), and normalize it to unit probability mass prior to sampling k non-pivots w * per each co-occurrence of (c, w) ∈ d.Because nonoccurring non-pivots w * are randomly sampled, prior work on noise contrastive estimation has found that it requires more negative samples than positive samples to accurately learn a prediction model (Mnih and Kavukcuoglu, 2013).We experimentally found k = 5 to be an acceptable tradeoff between the prediction accuracy and the number of training instances.
Likewise, the loss function L(C T , W T ) for predicting non-pivots using pivots in the target domain is given by: Here, w * denotes target domain non-pivots that do not occur in d, and are randomly sampled from p(w) following the same procedure as in the source domain.
The source and target loss functions given respectively by Eqs. 1 and 2 can be used on their own to independently learn source and target domain word representations.However, by definition, pivots are common to both domains.We use this property to relate the source and target word representations via a pivot-regularizer, R(C S , C T ), defined as: Here, ||x|| represents the l 2 norm of a vector x, and c (i) is the i-th pivot in a total collection of K pivots.Word representations for non-pivots in the source and target domains are linked via the pivot regularizer because, the non-pivots in each domain are predicted using the word representations for the pivots in each domain, which in turn are regularized by Eq. 3. The overall objective function, L(C S , W S , C T , W T ), we minimize is the sum 1 of 1 Weighting the source and target loss functions by the respective dataset sizes did not result in any significant increase in performance.We believe that this is because the benchmark dataset contains approximately equal numbers of documents for each domain.
the source and target loss functions, regularized via Eq. 3 with coefficient λ, and is given by:

Training
Word representations of pivots c and non-pivots w in the source (c S , w S ) and the target (c T , w T ) domains are parameters to be learnt in the proposed method.To derive parameter updates, we compute the gradients of the overall loss function in Eq. 4 w.r.t. to each parameter as follows: Here, for simplicity, we drop the arguments inside the loss function and write it as L. We use mini batch stochastic gradient descent with a batch size of 50 instances.AdaGrad (Duchi et al., 2011) is used to schedule the learning rate.All word representations are initialized with n dimensional random vectors sampled from a zero mean and unit variance Gaussian.Although the objective in Eq. 4 is not jointly convex in all four representations, it is convex w.r.t. the representation of a particular feature (pivot or non-pivot) when the representations for all the other features are held fixed.
In our experiments, the training converged in all cases with less than 100 epochs over the dataset.The rank-based predictive hinge loss (Eq. 1) is inspired by the prior work on word representation learning for a single domain (Collobert et al., 2011).However, unlike the multilayer neural network in Collobert et al. (2011), the proposed method uses a computationally efficient single layer to reduce the number of parameters that must be learnt, thereby scaling to large datasets.Similar to the skip-gram model (Mikolov et al., 2013a), the proposed method predicts occurrences of contexts (non-pivots) w within a fixed-size contextual window of a target word (pivot) c.
Scoring the co-occurrences of two words c and w by the bilinear form given by the inner-product is similar to prior work on domain-insensitive word-representation learning (Mnih and Hinton, 2008;Mikolov et al., 2013a).However, unlike those methods that use the softmax function to convert inner-products to probabilities, we directly use the inner-products without any further transformations, thereby avoiding computationally expensive distribution normalizations over the entire vocabulary.

Pivot Selection
Given two sets of documents D S , D T respectively for the source and the target domains, we use the following procedure to select pivots and non-pivots.First, we tokenize and lemmatize each document using the Stanford CoreNLP toolkit2 .Next, we extract unigrams and bigrams as features for representing a document.We remove features listed as stop words using a standard stop words list.Stop word removal increases the effective cooccurrence window size for a pivot.Finally, we remove features that occur less than 50 times in the entire set of documents.
Several methods have been proposed in the prior work on domain adaptation for selecting a set of pivots from a given pair of domains such as the minimum frequency of occurrence of a feature in the two domains, mutual information (MI), and the entropy of the feature distribution over the documents (Pan et al., 2010).In our preliminary experiments, we discovered that a normalized version of the PMI (NPMI) (Bouma, 2009) to work consistently well for selecting pivots from different pairs of domains.NPMI between two features x and y is given by: NPMI(x, y) = log p(x, y) p(x)p(y) (11) Here, the joint probability p(x, y), and the marginal probabilities p(x) and p(y) are estimated using the number of co-occurrences of x and y in the sentences in the documents.Eq. 11 normalizes both the upper and lower bounds of the PMI.
We measure the appropriateness of a feature as a pivot according to the score given by: score(x) = min (NPMI(x, S), NPMI(x, T )) .
(12) We rank features that are common to both domains in the descending order of their scores as given by Eq. 12, and select the top N P features as pivots.We rank features x that occur only in the source domain by NPMI(x, S), and select the top ranked N S features as source-specific non-pivots.Likewise, we rank the features x that occur only in the target domain by NPMI(x, T ), and select the top ranked N T features as target-specific non-pivots.
The pivot selection criterion described here differs from that of Blitzer et al. (2006;2007), where pivots are defined as features that behave similarly both in the source and the target domains.They compute the mutual information between a feature (i.e.unigrams or bigrams) and the sentiment labels using source domain labeled reviews.This method is useful when selecting pivots that are closely associated with positive or negative sentiment in the source domain.However, in unsupervised domain adaptation we do not have labeled data for the target domain.Therefore, the pivots selected using this approach are not guaranteed to demonstrate the same sentiment in the target domain as in the source domain.On the other hand, the pivot selection method proposed in this paper focuses on identifying a subset of features that are closely associated with both domains.
It is noteworthy that our proposed cross-domain word representation learning method (Section 3.2) does not assume any specific pivot/non-pivot selection method.Therefore, in principle, our proposed word representation learning method could be used with any of the previously proposed pivot selection methods.We defer a comprehensive evaluation of possible combinations of pivot selection methods and their effect on the proposed word representation learning method to future work.

Cross-Domain Sentiment Classification
As a concrete application of cross-domain word representations, we describe a method for learning a cross-domain sentiment classifier using the word representations learnt by the proposed method.Existing word representation learning methods that learn from only a single domain are typically evaluated for their accuracy in measuring semantic similarity between words, or by solving word analogy problems.Unfortunately, such gold standard datasets capturing cross-domain semantic variations of words are unavailable.Therefore, by applying the learnt word representations in a cross-domain sentiment classification task, we can conduct an indirect extrinsic evaluation.
The train data available for unsupervised crossdomain sentiment classification consists of unlabeled data for both the source and the target domains as well as labeled data for the source domain.We train a binary sentiment classifier using those train data, and apply it to classify sentiment of the target test data.
Unsupervised cross-domain sentiment classification is challenging due to two reasons: featuremismatch, and semantic variation.First, the sets of features that occur in source and target domain documents are different.Therefore, a sentiment classifier trained using source domain labeled data is likely to encounter unseen features during test time.We refer to this as the feature-mismatch problem.Second, some of the features that occur in both domains will have different sentiments associated with them (e.g.lightweight).Therefore, a sentiment classifier trained using source domain labeled data is likely to incorrectly predict similar sentiment (as in the source) for such features.We call this the semantic variation problem.Next, we propose a method to overcome both problems using cross-domain word representations.
Let us assume that we are given a set {(x S for the source domain S. For simplicity, let us consider binary sentiment classification where each review x (i) is labeled either as positive (i.e.y (i) = 1) or negative (i.e.y (i) = −1).Our cross-domain binary sentiment classification method can be easily extended to multi-class classification.First, we lemmatize each word in a source domain labeled review x (i) S , and extract unigrams and bigrams as features to represent x (i) S by a binary-valued feature vector.Next, we train a binary linear classifier, θ, using those feature vectors.Any binary classification algorithm can be used for this purpose.We use θ(z) to denote the weight learnt by the classifier for a feature z.In our experiments, we used l 2 regularized logistic regression.
At test time, we represent a test target review by a binary-valued vector h using a the set of unigrams and bigrams extracted from that review.Then, the activation score, ψ(h), of h is defined by: Here, f is a similarity measure between two vectors.If ψ(h) > 0, we classify h as positive, and negative otherwise.Eq. 13 measures the similarity between each feature in h against the features in the classification model θ.For pivots c ∈ h, we use the the source domain representations to measure similarity, whereas for the (target-specific) non-pivots w ∈ h, we use their target domain representations.We experimented with several popular similarity measures for f and found cosine similarity to perform consistently well.We can interpret Eq. 13 as a method for expanding a test target document using nearest neighbor features from the source domain labeled data.It is analogous to query expansion used in information retrieval to improve document recall (Fang, 2008).Alternatively, Eq. 13 can be seen as a linearly-weighted additive kernel function over two feature spaces.

Experiments and Results
For train and evaluation purposes, we use the Amazon product reviews collected by Blitzer et al. (2007) for the four product categories: books (B), DVDs (D), electronic items (E), and kitchen appliances (K).There are 1000 positive and 1000 negative sentiment labeled reviews for each domain.Moreover, each domain has on average 17, 547 unlabeled reviews.We use the standard split of 800 positive and 800 negative labeled reviews from each domain as training data, and the rest (200+200) for testing.For validation purposes we use movie (source) and computer (target) domains, which were also collected by Blitzer et al. (2007), but not part of the train/test domains.
Experiments conducted using this validation dataset revealed that the performance of the proposed method is relatively insensitive to the value of the regularization parameter λ ∈ [10 −3 , 10 3 ].For the non-pivot prediction task we generate positive and negative instances using the procedure described in Section 3.2.As a typical example, we have 88, 494 train instances from the books source domain and 141, 756 train instances from the target domain (1:5 ratio between positive and negative instances in each domain).The number of pivots and non-pivots are set to N P = N S = N T = 500.
In Figure 1, we compare the proposed method against two baselines (NA, InDomain), current state-of-the-art methods for unsupervised crossdomain sentiment classification (SFA, SCL), word representation learning (GloVe), and crossdomain similarity prediction (CS).The NA (noadapt) lower baseline uses a classifier trained on source labeled data to classify target test data without any domain adaptation.The InDomain baseline is trained using the labeled data for the target domain, and simulates the performance we can expect to obtain if target domain labeled data were available.Spectral Feature Alignment (SFA) (Pan et al., 2010) and Structural Correspondence Learning (SCL) (Blitzer et al., 2007) are the state-ofthe-art methods for cross-domain sentiment classification.However, those methods do not learn word representations.
We use Global Vector Prediction (GloVe) (Pennington et al., 2014), the current state-of-theart word representation learning method, to learn word representations separately from the source and target domain unlabeled data, and use the learnt representations in Eq. 13 for sentiment classification.In contrast to the joint word representations learnt by the proposed method, GloVe simulates the level of performance we would obtain by learning representations independently.CS denotes the cross-domain vector prediction method proposed by Bollegala et al. (2014).Although CS can be used to learn a vector-space translation matrix, it does not learn word representations.Vertical bars represent the classification accuracies (i.e. percentage of the correctly classified test instances) obtained by a particular method on target domain's test data, and Clopper-Pearson 95% binomial confidence intervals are superimposed.
Differences in data pre-processing (tokenization/lemmatization), selection (train/test splits), feature representation (unigram/bigram), pivot selection (MI/frequency), and the binary classification algorithms used to train the final classifier make it difficult to directly compare results published in prior work.Therefore, we re-run the original algorithms on the same processed dataset under the same conditions such that any differences reported in Figure 1 can be directly attributable to the domain adaptation, or word-representation learning methods compared.
All methods use l 2 regularized logistic regression as the binary sentiment classifier, and the reg-Accuracy Proposed GloVe NA proposed method for domain adaptation tasks beyond sentiment classification.

Conclusion
We proposed an unsupervised method for learning cross-domain word representations using a given set of pivots and non-pivots selected from a source and a target domain.Moreover, we proposed a domain adaptation method using the learnt word representations.
Experimental results on a cross-domain sentiment classification task showed that the proposed method outperforms several competitive baselines and achieves best sentiment classification accuracies for all domain pairs.In future, we plan to apply the proposed method to other types of domain adaptation tasks such as cross-domain partof-speech tagging, named entity recognition, and relation extraction.
Source code and pre-processed data etc. for this publication are publicly available3 .

Figure 2 :
Figure 2: Accuracy vs. dimensionality of the representation.