Cold-Start Aware User and Product Attention for Sentiment Classification
Paper · 2018 · Reinald Kim Amplayo, Jihyeok Kim, Sua Sung et al.
Summary
A review can carry clues about its rating in both the words and the identities attached to them. A description of food as intensely salty may signal approval from a reviewer who likes that taste and disappointment from someone who dislikes it. A classifier can learn such patterns from past reviews, but a new reviewer or a rarely reviewed product offers little history to learn from. In sentiment classification, this is a cold-start problem. The metadata is available, but the representation learned from it may do little to help interpret the text.
Amplayo and colleagues address this problem with the Hybrid Contextualized Sentiment Classifier, or HCSC. It first represents each word using both a local window and information carried along the review by a recurrent encoder. It then builds separate readings of the text for the reviewer and the product. Each reading can draw on an individual representation learned for that identity or a shared representation assembled from other identities. The words in the current review guide the choice of which other reviewers or products contribute to the shared representation. A learned gate uses review frequency to determine how much influence the individual and shared readings have, and a final gate combines the reviewer and product readings to predict a rating.
With the original training sets, HCSC reaches accuracy of 0.542 and root mean squared error of 1.213 on the IMDB test set. On Yelp 2013, its test accuracy is 0.657 and its root mean squared error is 0.660. The previous user-and-product attention classifier, NSC, is close on exact rating accuracy. HCSC has significantly lower root mean squared error than NSC on both datasets, meaning that the size of rating errors also matters to the comparison. In the authors’ timing test, HCSC processes the first 100 batches 6.6x as fast as NSC on IMDB and 10.7x as fast on Yelp 2013.
The gap in exact rating accuracy widens when the authors remove whole user and product histories from training. In the most depleted IMDB setting, Sparse80, HCSC scores 0.368 and NSC scores 0.292. In Yelp 2013 Sparse80, the corresponding accuracies are 0.538 and 0.511. Under some sparse conditions, ordinary user and product attention even lowers accuracy relative to a version of NSC that omits those identities. A separate frequency analysis places HCSC’s largest gains in the low-history groups examined. Together, these results support a specific claim about personalization in rating prediction. Its value depends on the available history, and a classifier can make better use of it by learning when to draw on other reviewers and products.
Deep dive: Cold-Start Aware User and Product Attention for Sentiment Classification
How cold-start aware attention predicts review ratings by balancing what a classifier learns about individual users and products with shared evidence. · about 33 minutes to read
The problem and its context
What a review classifier can learn from identity
The task is to infer an ordered sentiment label from a review. A rating such as 4 out of 5 places the text on a scale, so the target has both a category and a position relative to the other categories. The authors treat prediction as text classification. Each review is assigned a rating class, and the distance between that prediction and the recorded rating can also be evaluated. The task has roots in work such as Thumbs up?, which the paper cites when introducing sentiment classification.
Reviewer and product identities add context to the words. A reviewer may repeatedly use a certain expression when praising something, while another reviewer uses it in complaints. A product may regularly be assessed in terms of a particular quality, giving words about that quality greater significance for its rating. The value of either identity lies in these recurring associations. Given a history, a classifier can learn a compact representation of associations that may help when it encounters another review linked to the same identity.
An identity can still be recorded when the history behind it is thin. Someone’s first review supplies text and a reviewer identifier, and a review of a new product supplies a product identifier. Those identifiers distinguish the entities. Their usefulness as predictive features depends on what the classifier has had an opportunity to learn. An unfamiliar identifier may have no useful individual representation, and one backed by a small history can carry unreliable associations. The authors’ design therefore has to address cases where personalizing the interpretation of the words can help and cases where an attempt at personalization can give the wrong words more influence.
Reviewer history and product history can also differ within the same review. An experienced reviewer may write about a new product, or a newcomer may comment on a often reviewed product. An approach that gives the two identities a common treatment has to accommodate these imbalances somewhere in the classification process. HCSC addresses them by constructing separate reviewer and product readings before combining them. The distinction matters because evidence can be scarce for one identity while remaining plentiful for the other.
Where earlier systems put the metadata
The earlier work surveyed in the paper uses identity information at several points in the prediction process. JMARS connects aspects, ratings, and sentiment through collaborative filtering and topic-based methods. Its use of reviewer and product information is part of a joint account of who writes about what and how they rate it. TLFM+PRC takes a text-driven latent factor approach, drawing on the consistency between identities and the preferences or expressions associated with them. Both belong to the paper’s baseline set, although their use of metadata differs from the direct word-level weighting that HCSC adopts.
UPNN brings reviewer and product information into a convolutional classifier through preference matrices. These representations can change the interpretation of words before the review is summarized for prediction. TUPCNN also uses a convolutional classifier, with temporal representations of reviewers and products learned from review order. UPDMN takes a different route. It first encodes the document with a recurrent network and then uses other documents associated with the reviewer or product as memory. In these approaches, user and product information can affect the meaning assigned to the text, the features available to the classifier, or the representation read out from a document.
The closest comparison is NSC, the paper’s strongest prior baseline overall. NSC brings user and product information into attention, the mechanism that assigns different weights to parts of the text before they are pooled. Its encoder is hierarchical, following Hierarchical Attention Networks for Document Classification. Identity context can help the classifier emphasize words that matter for a particular reviewer and product. The concern is that the same mechanism can use an identity vector with little useful information behind it. In the attention rule that motivates HCSC, the identity vectors enter the computation directly. There is no explicit dependence on how many reviews support either vector.
The paper also situates this problem within a wider line of sentiment research that uses information beyond the words of the current document. It mentions studies drawing on time and location, as well as work inferring topics, aspects, patterns of argumentation, or clusters of reviews. Some of those signals describe the circumstances of writing. Others summarize patterns found in collections of documents. They show how a classifier can draw on context even when direct evidence in a particular review or entity history is limited. HCSC applies that reasoning to user and product information itself by constructing an alternative to the individual identity vector.
How much history counts as enough
A rule could treat identities as either established or cold-start using a fixed minimum review count. The paper instead makes that decision part of training. Review count acts as evidence about the availability of individual information, and the effect of that count is learned. This makes it possible for useful individual information to emerge gradually. It also gives the classifier a way to allocate different amounts of individual and shared evidence across the coordinates of a review representation.
The design combines a question about reading with a question about data availability. To read well, the classifier needs word representations that reflect surrounding language and a pooling mechanism that can emphasize relevant words. To respond to scarce history, it needs a substitute for weak individual context and a way to use that substitute at the appropriate frequencies. The paper assigns these jobs to different parts of the architecture. The word encoder represents the review, the shared attention branch finds relevant collective evidence, and the frequency gate regulates the use of that evidence.
The method, step by step
From a review to a rating distribution
HCSC starts with the words of a review, its reviewer identity, and its product identity. The word encoder produces a vector at each word position. One part of that vector describes features found in a window around the word. Another part carries information accumulated while reading the sequence in both directions. Both the reviewer and the product branches work from that same sequence of encoded word vectors.
Each branch reads the review using an individual context and a shared context. In the reviewer branch, the individual context is a vector associated with the actual reviewer. The shared context comes from a weighted combination of other reviewer vectors. HCSC scores their relevance using the current review, which gives it a way to construct shared context even when little is known about the author. It then uses each context to weight and pool the words. The product branch uses the same design with product identities. The result is a set of candidate readings of the same document, all expressed in the same feature space.
A frequency gate mixes the individual and shared readings within each branch. The reviewer count affects that branch’s mix, and the product count affects its own. Then another gate uses the contents of the resulting reviewer and product vectors to produce the final document representation. A classifier transforms that representation into a probability distribution over ratings.
From review words and identities to rating probabilities
The steps in order.
The local part of the word encoder
The local branch uses a convolutional neural network, or CNN, drawing on Convolutional Neural Networks for Sentence Classification. A convolution applies the same learned filter to successive windows of words. Because it reuses the filter, a local pattern can contribute a feature wherever it occurs. HCSC keeps the features at their original positions so attention can decide later which parts of the review deserve the largest weights.
Here is the convolution written with the matching window and filter entries paired by an inner product.
cᵢ,ₕ = f(⟨[wᵢ₋₍ₕ₋₁₎⁄₂ ; … ; wᵢ₊₍ₕ₋₁₎⁄₂], W_f⟩ + b_f)
The index i marks the word at the center of the window, and h is the number of words in it. Each w with a position subscript is an input word vector. The brackets assemble the centered window, ; separates its entries, and … stands for the intervening word vectors. W_f is a learned filter with h rows and d columns, where d denotes the input vector dimension. The angle brackets combine corresponding entries of the window and the filter by multiplying and summing them. b_f is the filter bias, and f is the nonlinear function applied to the biased response. cᵢ,ₕ denotes the features at position i for width h, collected across the filters of that width.
A centered window can extend past either end of the review. The authors pad both sides by an amount that depends on the filter width.
padding per side = (h − 1) ⁄ 2
Here h is the width of the filter, and the right-hand side counts the padding positions added at each end. Odd filter widths let the center fall on an actual word position. Padding gives each width an output at every original position and makes it possible to line up features produced by different widths.
wᶜⁿⁿᵢ = [cᵢ,ₕ₁ ; cᵢ,ₕ₂ ; …]
wᶜⁿⁿᵢ is the local representation at word position i. Each cᵢ,ₕ is the block of features from filters of a particular width. The subscripts on h distinguish the widths used, … indicates any remaining widths, and the brackets with ; denote concatenation. This keeps the responses to narrower and wider windows available as separate features of the same word.
The sequence part of the word encoder
A local filter can see only what lies in its window. The recurrent branch supplies another source of context for reviews in which relevant words are farther apart. It uses a bidirectional long short-term memory network, or BiLSTM. This is a recurrent encoder that maintains a state as it reads the sequence. The forward state summarizes information carried from earlier positions, and the backward state carries information from later positions.
h⃗ᵢ = LSTM(wᵢ, h⃗ᵢ₋₁)
i is the current position, and wᵢ is the input vector there. h⃗ᵢ₋₁ is the forward hidden state at the preceding position. LSTM denotes the learned recurrent update, and h⃗ᵢ is the forward hidden state it produces. The right arrow identifies the direction in which the sequence is processed.
h⃖ᵢ = LSTM(wᵢ, h⃖ᵢ₊₁)
The left arrow identifies the backward direction. h⃖ᵢ₊₁ is the backward hidden state at the following position in the review’s original order. The backward LSTM updates it using the same current input wᵢ, producing h⃖ᵢ. The two directions therefore arrive at a word carrying different sequence histories.
wʳⁿⁿᵢ = [h⃗ᵢ ; h⃖ᵢ]
wʳⁿⁿᵢ is the recurrent representation at position i, and rnn identifies the recurrent neural network branch. The brackets concatenate the forward state h⃗ᵢ and the backward state h⃖ᵢ. The semicolon inside the formula separates the blocks that are placed next to one another.
w̃ᵢ = [wᶜⁿⁿᵢ ; wʳⁿⁿᵢ]
w̃ᵢ denotes the final encoded vector for position i, with the tilde distinguishing it from the input wᵢ. wᶜⁿⁿᵢ is the convolutional block and wʳⁿⁿᵢ is the recurrent block. The bracket notation joins them along the feature dimension. The authors cite work using local convolutional features and work using broader contextual representations, including Learned in Translation, to explain why both kinds of information are worth retaining.
This arrangement leaves the local and recurrent branches at the same level of the encoder. Both process the review’s input word vectors. The convolutional branch supplies features from nearby words to the output, and the recurrent branch supplies sequential context to that same output. Attention then operates on the joined representation. An individual word may receive a large weight in part because its vector contains useful information about the words around it.
Reading the review using an individual identity
Attention pools a sequence by assigning each position a weight and taking a weighted sum. The motivating attention rule from earlier work uses reviewer and product identity in a common scoring function. For each word, it projects the word vector and both identity vectors, adds them, applies a nonlinearity, and produces a scalar score.
e(w̃ᵢ, u, p) = vᵀ tanh(Wʷw̃ᵢ + Wᵘu + Wᵖp + b)
e is the unnormalized attention score, w̃ᵢ is the encoded word at position i, and u and p are the reviewer and product vectors. Wʷ, Wᵘ, and Wᵖ are learned projection matrices for their respective inputs. b is a bias vector. tanh is the elementwise hyperbolic tangent, and vᵀ is the transpose of a learned scoring vector v. The final multiplication reduces the transformed features to a single score for the word.
Cold-Start Aware Attention, or CSAA, starts by separating reviewer-conditioned scoring from product-conditioned scoring. The reviewer-side individual reading follows an additive attention mechanism of the kind cited in Neural Machine Translation by Jointly Learning to Align and Translate. The classifier learns which features of a word and an individual reviewer together make that position important to the rating. In the notation below, d in the attention superscript or subscript means distinct, the authors’ name for the individual branch. It is separate from the input dimension denoted by d in the convolution description.
eᵈᵘ(w̃ᵢ, u) = v_dᵀ tanh(W_dʷw̃ᵢ + W_dᵘu + b_d)
eᵈᵘ gives an unnormalized score for a word under individual reviewer context. w̃ᵢ is the encoded word, i is its position, and u is the actual reviewer’s distinct vector. W_dʷ and W_dᵘ project the word and reviewer vector into the space where their projected features can be added. b_d is the bias there. tanh acts on each component, and the transpose v_dᵀ of the learned vector v_d converts the result into one score.
aᵈᵘᵢ = exp(eᵈᵘ(w̃ᵢ, u)) ⁄ Σⱼ exp(eᵈᵘ(w̃ⱼ, u))
aᵈᵘᵢ is the normalized attention weight for position i. exp is the exponential function. The summation Σⱼ runs over every position j in the review, using w̃ⱼ for each encoded word and the same reviewer vector u throughout. This normalization is a softmax over word positions. It gives the individual reviewer branch a distribution of weight across the review.
vᵘ_d = Σᵢ aᵈᵘᵢ × w̃ᵢ
vᵘ_d is the reviewer’s distinct pooled review vector. Σᵢ sums over positions i, with × denoting multiplication of each encoded word vector by its scalar attention weight aᵈᵘᵢ. The reviewer affects how the review is summarized through the attention weights. The quantities being summed are word representations. On the product side, the equivalent calculation uses the actual product context and yields the product’s distinct pooled vector.
Constructing a shared context from the current text
For the shared branch, the review itself supplies the query for finding relevant identities. The authors use similarity in word use as the motivation. Their formula compares a mean of the encoded words in the current review with learned reviewer vectors. The comparison has access to local and recurrent information because those features are already present in the vectors being averaged. The averaging step then yields a single vector from which to score candidate reviewers.
eˢᵘ(μ({w̃ᵢ}), uₖ) = μ({w̃ᵢ}) W_sᵘ uₖ
eˢᵘ is a shared-branch relevance score on the reviewer side. μ({w̃ᵢ}) is the mean of the encoded word vectors over the positions i of the current review, treated as a row vector in this product. uₖ is the learned vector of candidate reviewer k, treated as a column vector. W_sᵘ is the learned matrix between the review mean and the candidate vector. The product returns a scalar that indicates how useful that candidate’s context may be for this review.
aˢᵘₖ = exp(eˢᵘ(μ({w̃ᵢ}), uₖ)) ⁄ Σⱼ exp(eˢᵘ(μ({w̃ᵢ}), uⱼ))
aˢᵘₖ is the normalized weight of candidate reviewer k. exp exponentiates the shared relevance scores, and Σⱼ sums over candidate reviewers j, whose vectors are uⱼ. Each score uses the same mean μ({w̃ᵢ}) from the current review. This softmax runs over identities. The softmax in the distinct attention calculation runs over word positions. The two distributions have different jobs because the shared context has to be constructed before it can guide the reading of the text.
u′ = Σₖ aˢᵘₖ × uₖ
u′ is the shared reviewer context. Σₖ sums over candidate reviewers k, multiplying each vector uₖ by its normalized scalar weight aˢᵘₖ. A candidate with a higher weight contributes more to the resulting context. This allows multiple reviewer vectors to contribute to one review, with their relative influence determined afresh from its encoded text.
vᵘ_s = att({w̃ᵢ}, u′)
vᵘ_s is the shared pooled reviewer vector. att denotes the additive scoring, normalization over words, and weighted pooling used to obtain a review vector. Its first argument is the sequence of encoded vectors w̃ᵢ. Its second is the shared context u′. The product counterpart uses candidate product vectors to build a shared product context and then uses it to pool the words into a shared product reading.
The mean and the final pooled vector serve different purposes. The mean gives each candidate identity a common description against which it can be scored. After the context is assembled, word-level attention can still give a particular position considerable influence. The path from average text features to candidate weights and then back to individual word weights is what lets a shared identity context shape the interpretation of the original review.
The shared branch can also respond differently to separate reviews associated with the same identity. Its starting point is the text of the review currently being classified, so the mixture need not stay fixed across that identity’s reviews. In the distinct branch, the identity vector is the same across those reviews, while the encoded words and attention weights change with the text. Both branches are document-specific at the pooling stage, with different ways of selecting the context that governs their reading.
Letting frequency regulate the two readings
The distinct and shared readings are complete pooled vectors by the time the frequency gate combines them. The gate uses the reviewer’s review count relative to the average reviewer count. On the product side, the analogous input is the product count relative to the product average. Normalization puts the count in relation to the amount of history typical for its kind of identity. The learned shape and scale parameters determine how the resulting frequency affects reliance on the individual vector.
gᵘ = 1 − exp(−(f(u) ⁄ ReLU(λᵘ))^ReLU(kᵘ))
gᵘ is the reviewer gate vector. f(u) is the review frequency for reviewer u, normalized by the average reviewer frequency before it enters this expression. λᵘ is the learned reviewer-side scale vector, and kᵘ is the learned reviewer-side shape vector. ReLU sets negative components to zero, so the transformed parameters are non-negative. exp is the exponential function, and ^ denotes exponentiation. Division and exponentiation are applied by component. For positive scale and shape, each component follows a Weibull cumulative distribution, giving a larger distinct weight as the normalized frequency grows.
The scale governs the frequency range over which a component changes, and the shape affects the form of that change. The paper describes the gate in probabilistic terms and gives its values through the cumulative expression. It then uses those values in an interpolation of the two vectors. This implementation of the idea gives HCSC room to rely more heavily on individual information in some coordinates than in others at the same review count.
vᵘ = gᵘ ⊙ vᵘ_d + (1 − gᵘ) ⊙ vᵘ_s
vᵘ is the combined reviewer reading. gᵘ multiplies the distinct reading vᵘ_d, and its componentwise complement 1 − gᵘ multiplies the shared reading vᵘ_s. The symbol ⊙ means elementwise multiplication, and 1 is applied to every component in the complement. Each feature is thus a blend of the corresponding features in the two readings. The analogous product operation yields vᵖ, the combined product reading.
Review frequency controls the use of evidence, while the attention scores control what evidence is extracted. A high reviewer count can give the individual reading more influence without requiring the same words to be attended to in every review by that person. A low product count can increase the shared reading’s influence without requiring all rarely reviewed products to borrow the same context. The separate inputs to these decisions give HCSC a way to handle the different combinations of available reviewer and product history.
Combining reviewer and product evidence
The final gate receives the combined reviewer and product vectors themselves. The earlier gates use counts, while this one can respond to the features in the two readings. Its transformation produces a coordinatewise weight for the reviewer representation, with the remaining weight assigned to the product representation.
gᵘᵖ = σ(W_g[vᵘ ; vᵖ] + b_g)
gᵘᵖ is the reviewer–product gate. vᵘ and vᵖ are the already mixed reviewer and product vectors, and the brackets concatenate them. W_g and b_g are the learned matrix and bias for this gate. σ denotes the sigmoid function, applied independently to each resulting component to produce a weight between zero and one.
vᵘᵖ = gᵘᵖ ⊙ vᵘ + (1 − gᵘᵖ) ⊙ vᵖ
vᵘᵖ is the final pooled review vector. gᵘᵖ determines the weight of vᵘ in each feature, and 1 − gᵘᵖ gives the corresponding weight of vᵖ. ⊙ applies those weights component by component. As in the frequency-gated mixtures, each input has the same dimensionality, so the result can go straight into the rating classifier.
Training the intermediate readings
The rating classifier first assigns a score to each class and then normalizes those scores with a softmax. The main prediction uses the final reviewer–product representation.
y′ = softmax(Wvᵘᵖ + b)
y′ is the predicted distribution over rating classes. W is the output matrix with a row for each class, vᵘᵖ is the final review vector, and b is the output bias with an entry for each class. The softmax converts the class scores into probabilities.
L = −Σ_{d ∈ D} Σ_{c ∈ C} y_c(d) · log(y′_c(d))
L is the cross-entropy loss for a classifier output. D is the collection of training documents, d identifies a document in that collection, C is the set of rating classes, and c identifies a class. y_c(d) is the target probability of class c for document d, and y′_c(d) is the predicted probability. log is the logarithm, · denotes multiplication, and the sums collect the terms across documents and classes. The negative sign makes low probability for the target rating incur a larger loss.
HCSC also applies the classifier to its intermediate review vectors. These are suitable inputs because the branch outputs are weighted pools of the encoded words and the later vectors combine corresponding features of those pools. The distinct, shared, and combined readings are all trained to support rating prediction using the same output matrix and bias.
V = {vᵘ_d, vᵖ_d, vᵘ_s, vᵖ_s, vᵘ, vᵖ, vᵘᵖ}
V is the collection of supervised pooled representations. Superscripts u and p identify the reviewer and product, and up identifies the final joint representation. Subscripts d and s identify the distinct and shared readings. vᵘ and vᵖ are the results of the frequency gates, and vᵘᵖ is the result of the final gate.
L_total = Σ_{v ∈ V} L_v
L_total denotes the complete training objective, v is a pooled representation from V, and L_v is the cross-entropy calculated by applying the shared output classifier to that representation. The sum gives each intermediate reading a direct training signal from the rating. For instance, the shared reviewer reading is assessed by its ability to support the class prediction even before the frequency gate decides how much of it to use in the final result.
The implementation used for the comparisons
Input word vectors, reviewer vectors, and product vectors have 300 dimensions. The authors initialize the word vectors with pretrained GloVe representations. In the hybrid encoder, the convolutional branch uses widths of 3, 5, and 7 with 50 feature maps at each width, producing a local block of 150 dimensions. The recurrent branch uses a state size of 75 in each direction, yielding 150 recurrent features. Their concatenation has 300 dimensions at each word position.
The paper also trains a convolution-only and a recurrent-only encoder with the same attention design. CNN+CSAA uses 100 feature maps at each of the reported filter widths, giving 300 features at each word. RNN+CSAA uses a recurrent state size of 150 in each direction for a 300-dimensional output. These variants keep the dimension of the word representations supplied to attention fixed while changing how those representations are produced.
Training uses shuffled mini-batches of size 32 and stochastic gradient descent with the Adadelta update rule. The authors report an ℓ₂ constraint of 3. They apply dropout at a rate of 0.5 on nonlinear connections and use a subset of the development set for early stopping. Their experiments run on a NVIDIA GeForce GTX 1080 Ti. The authors make the HCSC code and experimental data available in their HCSC repository.
Experiments and results
How the evaluation creates scarce histories
IMDB and Yelp 2013 both supply review text, a sentiment rating, and user and product identifiers. The IMDB task has 10 rating classes, and Yelp 2013 has 5. The paper uses the existing train, development, and test partition with its reported 8:1:1 ratio. The reviews were tokenized and split into sentences with Stanford CoreNLP. The original IMDB partition contains 67,426 training documents, 8381 development documents, and 9112 test documents. The corresponding Yelp 2013 counts are 62,522, 7773, and 8671.
The user and product counts clarify what the original partitions already contain. IMDB’s training set has 1310 users and 1635 products, while its test set has 1310 users and 1578 products. Yelp 2013’s training set has 1631 users and 1633 products, and its test set has 1631 users and 1577 products. These are counts in the respective splits. They summarize how many distinct identities appear, while the review-frequency analysis examines the amount of history available for identities more directly.
To test sensitivity to scarce history, the authors produce Sparse20, Sparse50, and Sparse80 training sets. At each setting they randomly select users and products and remove all reviews of the selected identities from training, using the selection percentages 20, 50, and 80, respectively. The labels describe the entity-removal settings. The number of surviving documents depends on how reviews are distributed across users and products. A document can disappear because of the author or the product, so the three settings also change the amount of text available to the classifier.
In IMDB, Sparse20 retains 44,261 training reviews, 1042 users, and 1323 products. Sparse50 retains 17,963 reviews, 659 users, and 840 products. Sparse80 reduces the training collection to 2450 reviews, 250 users, and 312 products. Yelp 2013 Sparse20 has 38,687 training reviews, 1301 users, and 1288 products. Its Sparse50 setting has 16,058 reviews, 818 users, and 823 products, and Sparse80 has 2406 reviews, 352 users, and 304 products. The comparison measures prediction after these changes to the training split. Holding out entire histories makes the resulting challenge different from reducing every identity’s history by the same amount.
Exact ratings and rating distance
Accuracy asks whether the predicted class is exactly the recorded class. It counts all errors as failures, even when the prediction lies immediately beside the reference rating. Root mean squared error, abbreviated RMSE, uses the distance between the predicted and recorded ratings. It squares the individual errors, averages them, and takes the square root. Larger rating errors receive greater weight in this measure. The two metrics therefore describe different properties of the same predictions. The paper reports both for the original datasets and accuracy for the sparse comparisons.
The full-data comparison covers earlier approaches that use collaborative, preference, temporal, memory, or attention features. The RMSE results include JMARS and TLFM+PRC, for which the paper’s main table omits accuracy. NSC gives the closest earlier comparison overall because it also uses reviewer and product identity in attention. The paper supplies significance markings for the original-dataset comparison, with a threshold of p < 0.01 for a marked difference in HCSC’s favor. An unmarked numerical advantage should be read at its reported size.
IMDB original-training test RMSE across classifiers
HCSC has the lowest rating error, and each encoder variant with cold-start aware attention also improves on NSC.
The numbers
| System or setting | RMSE |
|---|---|
| JMARS | 1.773 |
| UPNN | 1.602 |
| TUPCNN | 1.451 |
| TLFM+PRC | 1.352 |
| UPDMN | 1.351 |
| NSC | 1.281 |
| CNN+CSAA | 1.256 |
| RNN+CSAA | 1.237 |
| HCSC (this paper) | 1.213 |
On the original IMDB split, HCSC’s test accuracy is 0.542 and NSC’s is 0.533. The paper describes the reported improvement as 0.9%. For RMSE, HCSC’s 1.213 is significantly lower than NSC’s 1.281 and the other previous results in the table. The IMDB comparison is informative because the original-data accuracy gap is small and the rating-distance metric still distinguishes the classifiers. The paper interprets this as evidence that HCSC’s predictions stay closer to the reference ratings on the RMSE measure. That aggregate finding leaves open which individual ratings account for the improvement.
On the original Yelp 2013 split, HCSC gives test accuracy of 0.657 and NSC gives 0.650, a reported improvement of 0.7%. The paper describes its exact accuracy advantages over NSC on both original datasets as small and does not mark them significant. HCSC’s Yelp 2013 RMSE is 0.660, compared with NSC’s 0.692. UPDMN is much closer at 0.662. The authors report that HCSC’s Yelp 2013 RMSE advantage over UPDMN is slight, while its RMSE advantage over NSC is significant. The strongest earlier comparator thus depends on which metric is used.
The simpler encoders with CSAA also remain competitive in this full-data setting. CNN+CSAA and RNN+CSAA reach IMDB test accuracies of 0.522 and 0.527, alongside NSC’s 0.533. Both have lower IMDB RMSE than NSC. On Yelp 2013, the variants both reach test accuracy of 0.654, with RMSE of 0.665 for CNN+CSAA and 0.667 for RNN+CSAA. The comparisons matter because the variants retain the attention mechanism and use only one kind of word encoder. A classifier can achieve much of the reported rating performance without the full hybrid encoder, and the largest RMSE advantage over NSC cannot be assigned to combining convolutional and recurrent word features alone.
Accuracy as training histories are removed
For the sparse training comparisons, the paper uses both NSC and NSC(LA). The latter leaves out reviewer and product information and still uses hierarchical text encoding and attention. This gives the authors a way to check whether ordinary identity-conditioned attention helps under each degree of training depletion. The CSAA variants and HCSC use the matching sparse training sets for their comparisons.
IMDB Sparse80 test accuracy after training history removal
HCSC leads the comparison, while NSC with ordinary identity attention falls below its text-only counterpart.
The numbers
| System or setting | accuracy |
|---|---|
| NSC(LA) | 0.309 |
| NSC | 0.292 |
| CNN+CSAA | 0.343 |
| RNN+CSAA | 0.364 |
| HCSC (this paper) | 0.368 |
On IMDB Sparse20, HCSC reaches test accuracy of 0.505, tied with RNN+CSAA. NSC scores 0.497, the same as CNN+CSAA, while NSC(LA) scores 0.469. The paper reports HCSC’s advantage over NSC as 0.8%. At this level of history removal, ordinary identity attention still helps NSC relative to its text-only version. HCSC’s design earns its small lead in a setting where NSC can also benefit from the available identities.
On IMDB Sparse50, HCSC reaches test accuracy of 0.456, close to the recurrent variant’s 0.455. CNN+CSAA scores 0.444. NSC scores 0.408, and NSC(LA) scores 0.428. The change in the NSC comparison helps distinguish the sparse regimes. When more histories are removed, conditioning attention on individual identity vectors is associated with worse accuracy in NSC, while each CSAA configuration remains ahead of the text-only baseline.
In IMDB Sparse80, HCSC’s advantage over NSC is reported as 7.6%, with test accuracy of 0.368 for HCSC and 0.292 for NSC. The recurrent variant reaches 0.364 and the convolutional variant 0.343. Both exceed NSC(LA), which scores 0.309. The higher accuracy relative to NSC accompanies a substantial decline in HCSC’s own accuracy from Sparse20. Shared information helps in the most depleted training setting, where useful evidence is scarce across the collection as a whole.
Yelp 2013 Sparse80 test accuracy after training history removal
HCSC leads on the most depleted Yelp training set, where removing identity inputs improves NSC.
The numbers
| System or setting | accuracy |
|---|---|
| NSC(LA) | 0.523 |
| NSC | 0.511 |
| CNN+CSAA | 0.522 |
| RNN+CSAA | 0.527 |
| HCSC (this paper) | 0.538 |
On Yelp 2013 Sparse20, HCSC has test accuracy of 0.636, versus 0.626 for NSC, a reported improvement of 1.0%. RNN+CSAA scores 0.633, and CNN+CSAA matches NSC at 0.626. NSC(LA) reaches 0.624. On Sparse50, HCSC leads with 0.608, followed by CNN+CSAA at 0.605 and RNN+CSAA at 0.603. NSC is at 0.592 and NSC(LA) is at 0.590, so the ordinary identity-conditioned variant retains a small advantage on this split.
For Yelp 2013 Sparse80, the authors report a 2.7% improvement for HCSC over NSC. The corresponding test accuracies are 0.538 and 0.511. NSC(LA) gives 0.523, slightly above CNN+CSAA at 0.522. RNN+CSAA gives 0.527. This comparison qualifies the broad picture. The full HCSC classifier leads across the Yelp sparsity settings, while the simpler versions differ in how consistently they exceed the text-only comparison. The reported sparse gains for HCSC are larger against NSC at Sparse80 than at Sparse20 on both corpora.
Training time in the authors’ setup
The timing measurement covers the first 100 batches and is reported in seconds. On IMDB, NSC takes 7331 seconds and HCSC takes 1110, for the reported speedup of 6.6x. RNN+CSAA takes 968 seconds, a 7.6x speedup, and CNN+CSAA takes 256 seconds, a 28.6x speedup. On Yelp 2013, NSC takes 6569 seconds and HCSC takes 615, giving 10.7x. RNN+CSAA takes 561 seconds for 11.7x, and CNN+CSAA takes 146 seconds for 45.0x.
The timing order follows the recurrent structures used in the comparison. NSC stacks recurrent processing at different levels of the document hierarchy. HCSC and the recurrent variant use a single level of bidirectional recurrent encoding, and the convolutional variant uses no recurrent layer. The authors attribute the large timing gap to the sequential work in NSC’s stacked structure. The measured result concerns those implementations and batches. It shows that the fuller HCSC design can retain a recurrent encoder and the shared attention machinery while processing the reported workload much faster than NSC.
What the ablations show
How much of the result depends on the word encoder
The comparison of HCSC with CNN+CSAA and RNN+CSAA changes the encoder while retaining the cold-start attention design and the 300-dimensional input to it. This is a component comparison within the proposed architecture. It asks whether the local and recurrent features must appear together for CSAA to perform well. On IMDB with the original training data, the hybrid has the best reported accuracy and RMSE within this group, with the recurrent variant closer to it than the convolutional variant on both measures. On Yelp 2013 with the original training data, the simpler versions have the same accuracy and trade places on RMSE, with the convolutional variant giving the smaller error.
The sparse results give further detail. The recurrent variant ties the hybrid on IMDB Sparse20 and comes close on IMDB Sparse50 and Sparse80. In Yelp 2013 Sparse50 the convolutional version comes closer to the hybrid. The hybrid is strongest or tied for strongest across the sparse comparisons, while the relative usefulness of the individual encoders depends on the corpus and setting. These runs support the claim that CSAA can work with different ways of encoding words. They give less direct evidence about how much it improves any one encoder, since the paper does not report a matched run that simply removes CSAA from each of these encoders.
The efficiency comparison presents a related tradeoff. CNN+CSAA is the fastest reported classifier on the timed workload, and the hybrid has the strongest full-data RMSE and the highest or tied sparse accuracy in the tested group. Both results matter to the authors’ claim about obtaining good predictions with a simpler document structure. The results give empirical comparisons at the chosen dimensions and filter widths. Encoder structure and capacity still change together when the narrower component branches in HCSC are compared with the wider single-branch variants.
When ordinary identity attention becomes a liability
Comparing NSC with NSC(LA) holds the baseline family fixed while removing user and product context from its attention. On the milder sparse settings, the identity-conditioned version performs better. On IMDB Sparse50 and Sparse80 it falls behind NSC(LA) by the reported 2.0% and 1.7%, respectively. The corresponding reversal on Yelp 2013 Sparse80 is 1.2%. The results support the authors’ concern that identity information can become noisy when the classifier has little history from which to learn it.
The comparison is especially revealing because withholding identities can itself discard real information. In the less depleted settings, NSC’s advantage over NSC(LA) shows that identity context can earn its place. The problem is sensitivity to the quality of that context. HCSC has a way to preserve an identity’s role in reading the document through shared evidence when the direct representation is weak. The strength of its comparison with the text-only baseline reflects the behavior of the complete architecture, including its encoder and training objective.
Which review frequencies contribute to the gap
The frequency plots use the Sparse50 experiments. The IMDB plot groups test reviews by reviewer history, and the Yelp 2013 plot groups them by product history. The figure defines a bin labeled f as [f, f + 10), except when f = 100, where the interval is [f, ∞). Here f is the lower endpoint of a review-count bin, the square bracket includes that endpoint, and the closing parenthesis excludes the finite upper endpoint. These are comparisons of rating accuracy within count ranges, complementing the dataset-wide figures.
HCSC’s advantage over NSC is largest in the low-frequency groups shown in both plots. The margin becomes small as the review count rises. This pattern aligns with the role of the frequency gate. The classifier has a means of drawing on shared context where direct history is scarce, while examples attached to more established identities are also cases where NSC can use its individual context more effectively. The plotted comparisons locate the strongest gains. They do not measure a separate causal effect of review frequency under otherwise identical test conditions, since the reviews and identities vary across groups.
The paper examines the learned gates themselves by averaging the entries of their shape and scale vectors and plotting the resulting Weibull curves. For IMDB, the authors read the reviewer curve as reaching 80% distinct information at approximately five reviews. The corresponding product curve reaches 80% at roughly 40 reviews. In that visualization, reliance on individual product context grows more slowly with history than reliance on individual reviewer context. The authors relate this observation to earlier reports of only marginal improvement when product context was used on its own. The curves are summaries of vector-valued gates, so their crossings describe the plotted behavior instead of a universal minimum review count.
How the branches read particular reviews
The Yelp 2013 visualizations show word attention and average gate values for two examples. In the first example, the reviewer and product have cold-start histories. The authors observe that the distinct reviewer reading emphasizes words they regard as less useful. The average reviewer gate is shown as gᵘ = 0, so shared reviewer attention supplies the reviewer reading. That branch emphasizes words including fresh, baked, soft, and pretzels. These words describe what was evaluated and provide several cues that can be read together.
The second example has established reviewer and product histories. Its frequency gates lie close to 1, so its distinct readings contribute almost all the weight. The shared and distinct patterns still resemble each other in that example. This shows what the shared route can recover in an individual case where the direct route is useful enough to act as a comparison. The authors also observe differences between reviewer and product attention. The reviewer branch can emphasize evaluative or experiential words such as fresh and enjoyed, while the product branch can emphasize words such as pretzels and waitress, which refer to things or services under discussion.
These illustrations make the branch distinctions visible. The gate shows which pooled reading receives more weight, and the attention weights show which encoded positions contribute to each reading. The examples give a concrete picture of the paper’s interpretability analysis. Their scope is the displayed reviews, one of which the authors shorten for presentation. Evidence that the method improves predictions across histories comes from the test comparisons and frequency plots.
Limitations
Limits the authors identify
The authors explicitly leave the cold-start cutoff open. An entity without review history is a clear cold-start case, while the boundary at positive counts depends on when its individual information becomes useful. A learned gate supplies a gradual response for the task at hand. The averaged curves help explain how the fitted gate behaves and give the approximate IMDB thresholds the authors discuss. The paper offers them as observations about the fitted classifier, with the exact boundary left unresolved.
The authors also report where the comparative gains are small. On the original training sets, HCSC is close to NSC in accuracy, and its Yelp 2013 RMSE is close to UPDMN’s. For identities with more reviews in the frequency plots, the gain over NSC becomes marginal. The strongest empirical claims therefore concern rating distance on the original datasets and accuracy when training histories are depleted. The particular magnitude of an advantage depends on the metric and the available history.
Limits of the experimental setup
The sparse experiments jointly reduce the number of reviewed identities and the number of training documents. That design creates the pressure the method is intended to handle, but it has limited ability to tell which drop in performance comes from a smaller text collection and which comes from missing identities specifically. Changes can include how many examples are available for learning words, how much is known about a particular reviewer or product, and how many candidate identity vectors are useful for sharing. The Sparse50 frequency plots add evidence by locating the largest gains among lower-frequency groups. They still compare groups containing different reviews and identities. Separate removals on the reviewer and product sides would be needed to estimate the contribution of each kind of missing history under otherwise matched conditions.
The experiments also simulate scarcity by removing histories from existing datasets. This tests the ability to predict with less recorded evidence, and it includes the loss of complete identity histories. The setup does not establish performance under a chronological rollout in which new reviewers and products arrive over time. Nor does it show how a classifier would respond when the vocabulary, rating habits, or mix of products changes together with the available history. The claim supported by the experiments concerns the reported text and rating collections and the thinning procedure used on their training sets.
The architecture combines several changes relative to NSC. It uses a different word encoder, splits reviewer and product pooling, adds shared branches and frequency gates, combines the resulting readings with another gate, and supervises intermediate vectors with the same classifier. The encoder comparisons and the NSC(LA) control isolate some aspects of the design. The paper gives no matched performance series that separately removes the shared context, substitutes a fixed rule for the frequency gate, or trains only on the final rating output. The gains of the full system consequently measure the combined design. The per-frequency analysis and the example gates support the proposed interpretation without estimating the independent contribution of every component.
Review count is a measure of how much evidence exists, and the gate uses it as a proxy for the usefulness of that evidence. The gate’s inputs do not distinguish a consistent history from a varied one of the same length. In the shared branch, relevance is learned from the current text and candidate vectors. The experiments do not independently validate those softmax weights as a measure of similarity between people or between products. The measured outcome is rating prediction, so the most direct interpretation of similarity is usefulness for producing a context in that prediction process.
The description of the Weibull gate also leaves implementation details implicit. The displayed equation uses a rectified scale in the denominator. The intended cumulative behavior is clear with positive scale and shape, but the formula does not specify how a zero scale is handled. The evaluation shows the behavior of trained gates in the authors’ experiments, including low-count cases. Reproducing all edge conditions from the equations alone would require additional implementation detail.
The rating metrics capture complementary outcomes, and each has an evidential limit. RMSE is sensitive to whether errors are large or small on the ordinal rating scale. The aggregate decrease leaves open whether HCSC most frequently improves very large mistakes or slightly improves many smaller ones. Accuracy establishes the frequency of exact choices but leaves all wrong decisions undifferentiated. The sparse table reports accuracy, so the widening sparse advantage for HCSC is demonstrated for exact rating prediction. The paper’s full-data significance markings and its observation of small differences across runs do not supply a distribution across repeated random removals of training histories.
Finally, the timing experiment measures the first 100 batches on the authors’ hardware. It verifies an empirical training-speed advantage for their comparison. It does not establish end-to-end time to convergence, prediction latency, or how the cost of computing a shared context grows when many more candidate identities are available. The shared score uses a distribution over candidate vectors, which makes the size of that candidate set relevant to such a measurement. The paper’s successful timing comparison is tied to the dataset sizes and implementations actually evaluated.
What came after
Later extensions and replications of HCSC are undocumented here. The evidence ends with the authors’ comparison of direct and shared identity context on review ratings. Three questions remain unresolved: whether those gains extend to users and products that arrive naturally, what share of the improvement is attributable to the frequency gate itself, and how shared attention behaves when the candidate pools are much larger.
Cite
Cite as Reinald Kim Amplayo, Jihyeok Kim, Sua Sung and Seung-won Hwang. 2018. Cold-Start Aware User and Product Attention for Sentiment Classification. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{amplayo2018cold,
title = {{Cold-Start Aware User and Product Attention for Sentiment Classification}},
author = {Reinald Kim Amplayo, Jihyeok Kim, Sua Sung and Seung-won Hwang},
booktitle = {Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2018},
doi = {10.18653/v1/p18-1236},
url = {https://doi.org/10.18653/v1/p18-1236}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/amplayo-2018-cold-start-aware-user-product/