Elamur Research

Modelling Representation Noise in Emotion Analysis using Gaussian Processes

Paper · 2017 · Daniel Beck

Summary

A headline can convey fear and sadness at the same time, and it can convey one more strongly than the other. Predicting those intensities requires more than deciding whether a text sounds positive or negative. It also requires a way to turn a short text into numbers when there are relatively few examples with human ratings. Daniel Beck studies a simple solution to that data problem. He represents a text by averaging vectors for its words, using vectors learned from unlabelled material. The average is easy to obtain, but it can place texts with different emotional content close together. The paper asks what kind of regression works well when the input representation can obscure distinctions that matter for sentiment and emotion analysis.

Beck uses Gaussian process regression, which assigns probabilities to possible functions for turning a text vector into an emotion score. Its kernel determines how strongly the score at one input is expected to inform the score at another. A common choice, the squared exponential kernel, favours very smooth functions. The paper tests Matérn kernels, which allow the relationship between input vectors and scores to vary less smoothly. This changes the assumptions of the regression while leaving the text representation fixed. The experiments also score the predictive distributions, which convey how uncertain the regressions are about an intensity as well as giving a point prediction.

The proposed kernels improved average results on both evaluation datasets. On SemEval2007 news headlines, the Matérn 3 ⁄ 2 variant reached Pearson’s r of 0.616 under cross-validation. The squared exponential Gaussian process reached 0.596, and support vector regression reached 0.593. Both Matérn variants had a negative log predictive density of 4.05, compared with 4.07 for the squared exponential variant. On the official WASSA2017 tweet test sets, Matérn 3 ⁄ 2 reached an average Pearson’s r of 0.571 with the 100-dimensional vectors used in the main comparisons. Giving that same variant 300-dimensional vectors raised its test correlation to 0.627. The winning shared-task submission scored 0.747.

The evidence supports a practical conclusion about kernel choice. A less restrictive smoothness assumption can improve intensity prediction from a simple text representation, and the comparison holds across headlines and tweets under their respective evaluation protocols. The size of the advantage depends on the emotion and the setting. In the headline experiment, the clearest diagnostic came from joy, where one squared exponential fit learned a very short lengthscale and overfit. The paper handles this kind of problem by changing the function fitted over the vectors. Identifying the information lost from individual texts, and accounting for noise or bias in the human ratings themselves, remain separate questions.

Deep dive: Modelling Representation Noise in Emotion Analysis using Gaussian Processes

Beck shows how Matérn kernels help Gaussian processes predict emotion intensity from averaged word embeddings in news headlines and tweets. · about 33 minutes to read

The problem and its context

What an emotion score represents

The task begins with a distinction between emotional polarity and emotional detail. A coarse polarity judgment can identify an unfavourable tone while leaving open whether the text conveys anger, fear or sadness. Emotion analysis, as Beck defines it, concerns those more specific aspects of a text. Work on how words relate to feelings gives the task its connection to psycholinguistics. Opinion mining gives it an applied setting in which a more detailed account of affect can matter. The paper uses intensity scores to express those details. Each score answers a question about the strength of a particular emotion on the scale the dataset supplies.

The Affective Text examples make the scoring scheme concrete. One headline concerns storms that caused deaths, power failures and cancelled flights. Its ratings include fear at 82 and sadness at 60. Another headline concerns archaeological evidence of early tool use by chimpanzees. Its ratings include surprise at 64 and joy at 23. These are examples from the SemEval2007 headline annotations. They illustrate both why a score can be more informative than an emotion name and why the task allows distinct emotions to coexist. The storm headline supplies a strong signal for more than one of the judges’ categories. The archaeological headline gives surprise and joy different strengths even though the underlying text is the same.

Human judges annotated the headlines using the emotion categories associated with Ekman. The headline scale runs from 0 to 100. At the low endpoint the category is absent, and the upper endpoint represents its greatest intensity on the scale. In this setup, a system learns a relationship between text and the scores assigned by judges. Latent emotion is the phenomenon of interest, and the recorded linguistic annotation supplies the target that can actually be compared with a prediction. The distinction matters because the paper evaluates agreement with these scores. It has no independent measurement of the emotion felt by a headline writer or by the people described in the story.

The earlier work Beck discusses illustrates how much a task can change with the annotation scheme and the material being annotated. In the work on children’s fairy tales, annotators marked whether an emotion occurred in a sentence. Those labels answer a question about presence. The headline ratings give an additional account of strength. Work on emotion in music used finer-grained labels and drew on melody notes as well as lyrics, so the written words formed only part of the input. Beck’s experiments instead examine how far a text representation can support intensity prediction in the selected datasets. Emotions from Text: Machine Learning for Text-based Emotion Prediction

Why the representation can be unreliable

A regression needs inputs that it can compare. A bag-of-words representation records the words in a text without preserving their sequence. A useful relationship between such features and human scores is easier to learn when enough labelled texts contain the relevant vocabulary. Beck identifies a difficulty for emotion analysis because labelled examples are scarce. A short text also offers few words from which to learn. When a word occurs rarely in the labelled collection, there is limited direct evidence about how its occurrence should affect an estimate of anger, joy or another category. A representation learned partly from a larger, unlabelled collection gives the regression a way to use information beyond those occurrences.

A word embedding places a word at a location in a numerical space learned from language data. Beck uses the arithmetic mean of a text’s word vectors, giving the regression a fixed-length input even when texts differ in length. The paper cites other tasks for which averaging has been empirically effective in spite of losing information such as word order. The point of adopting the average here is to get a usable text input from existing lexical information in a setting with limited supervision. Its simplicity also makes the experiment easy to interpret because the researchers can keep the input construction constant and compare ways to use those word embeddings.

There are two reasons to expect discrepancies between the geometry of the average and the emotion scores. One comes from the word vectors. A word’s representation reflects the different contexts that contributed to its training, and the contexts relevant to a particular headline or tweet are only part of that mixture. The other comes from averaging. The average combines the word vectors without a separate account of which word is central to the emotional meaning or how the words are arranged. Reversing the order of the same covered words leaves the average unchanged. A regression can learn a different relationship between distances and scores, but it still receives only the information encoded by those distances and the positions of the vectors.

Beck calls the problem representation noise. Here the expression describes a concern about how an imperfect input space relates to the scores. If nearby text vectors frequently have slightly different ratings, a regression with a very strong preference for smooth changes may be poorly matched to their relationship. If two different texts arrive at exactly the same vector, the input alone cannot tell the regression which text it was given. Allowing a rougher function can address the first kind of difficulty. The second follows directly from what was discarded in constructing the representation. Keeping these cases distinct gives the paper’s proposal a definite scope.

Where Gaussian processes fit

Beck situates the work alongside an earlier study that used multitask Gaussian processes for emotion analysis. That study tried to exploit dependencies between emotions. It used bag-of-words inputs and a squared exponential kernel. The present paper concentrates on a different component of the prediction problem, namely the covariance assumed for the function over text inputs. A joint regression can share information between output categories, while a less restrictive kernel can change which input-to-score functions are favoured. Beck treats those choices as compatible and suggests combining them as future work.

The paper also identifies uses of Gaussian processes for predicting how long a translator will spend post-editing a machine translation, and for social media tasks involving word usage over time, user profiling and rumours. These examples establish the reason for considering the method here. A kernel can encode an assumption about what makes observations informative about each other. If the relevant structure concerns variation over time, the kernel can reflect that setting. In the emotion experiments, the structure of interest is the degree of smoothness expected when moving among text vectors. The paper’s intervention is to make that assumption explicit and test its consequences for prediction.

The method, step by step

From words to a fixed-length input

The procedure starts by splitting each text into tokens with the NLTK PTB tokeniser and converting the tokens to lower-case. A token is a unit produced by that splitting procedure. Its spelling after lowercasing is used to look for a corresponding word vector. Beck uses embeddings learned from Wikipedia and Gigaword, with 100 dimensions in the main experiments. This makes the supervised step comparatively narrow. The intensity ratings are used to learn the relationship between text vectors and scores, while the coordinates for individual words come from GloVe.

For a text with covered words, the procedure averages the vectors for those words coordinate by coordinate. A word absent from the embedding vocabulary is skipped. Each retained occurrence contributes to the same average, and the number of coordinates in the result is determined by the embeddings. A short headline and a longer tweet can therefore be compared in the same dimensional space. The order of the words makes no separate contribution after tokenization. The paper uses the same preprocessing for the main kernel comparisons, so the comparisons measure what the regressions do with this representation.

Each input vector is paired with a score for the emotion being predicted. For the headline data, the same text can carry separate ratings for the Ekman categories. For the tweet data, each emotion has its own collection of texts. The mathematical setup is a regression with a scalar response. An output such as a fear score is a quantity on the corresponding annotation scale, with distinct possible values within that scale. The installation of a new kernel affects how the regression connects those quantities across inputs. It does not create a new emotion scale or alter the training annotations.

From text to an emotion intensity prediction

The steps in order.

From text to an emotion intensity predictionStep 1: Tokenize and lowercase each text1. Tokenize and lowercase each textStep 2: Look up available GloVe vectors2. Look up available GloVe vectorsStep 3: Average the covered word vectors3. Average the covered word vectorsStep 4: Pair each text vector with its emotion score4. Pair each text vector with its emotion scoreStep 5: Choose a kernel for the regression5. Choose a kernel for the regressionStep 6: Fit hyperparameters on the training data6. Fit hyperparameters on the training dataStep 7: Predict a distribution for an unseen text7. Predict a distribution for an unseen text

From paired observations to a distribution over functions

A Gaussian process, abbreviated GP, is a probability distribution over functions in the sense that it specifies a joint Gaussian distribution for their values at any finite collection of inputs. A reader can think of the prior as a description of plausible relationships between text vectors and scores before the labelled examples are used. The mean gives the expected function value at an input. The covariance says how deviations from those expectations tend to move together at different inputs. This covariance gives a labelled example a way to influence the prediction for another text.

The paper introduces a training collection containing vectors and scalar responses. A separate letter for the collection keeps it distinct from the input matrix used in the regression formulas.

𝒟 = {(xᵢ, yᵢ) : i indexes the n training examples}

Here 𝒟 is the training collection. The index i identifies an example, n is the number of examples, xᵢ is its D-dimensional text vector, and yᵢ is its scalar emotion score. The braces collect all these input and response pairs. In the conditional distributions below, X denotes the training inputs together, and y is the vector of their observed scores.

f(x) ∼ GP(m(x), k(x, x′))

Here f is the latent function, and f(x) is its value at the input vector x. The symbol ∼ means distributed according to. GP denotes the Gaussian process. Its mean function m(x) gives the prior expectation at x. Its kernel k(x, x′) gives the covariance between function values at x and at the second input vector x′. Beck sets the prior mean m(x) to 0. After observing the labels, the inferred function can take values throughout the response scale.

The latent value and the observed score play different roles. The latent value represents the function the regression is trying to infer. The observed score is treated as that value plus an independent Gaussian disturbance. The disturbance gives the regression room to account for variation in the labels around the function. The Matérn choice affects the function’s smoothness. It is a separate part of the specification from the additive disturbance.

yᵢ = f(xᵢ) + ηᵢ

In this equation yᵢ is the observed score for training example i, and f(xᵢ) is the latent function evaluated on that example’s input vector xᵢ. The term ηᵢ is the additive disturbance for the example. Indexing the disturbance by i makes explicit that the observation assumption applies across the training cases.

ηᵢ ∼ 𝒩(0, σₙ²)

Here ηᵢ is the disturbance for case i, and ∼ denotes its distribution. The symbol 𝒩 denotes a Gaussian distribution. Its mean is 0, and σₙ² is its variance, with the subscript on σₙ indicating observation noise. The white-noise assumption in the paper treats the disturbances as independent and gives them a common variance.

Bayes’ rule updates the prior using the scores. Functions under which the observed labels are more plausible receive more support from the likelihood. The prior, through the covariance, still determines which shapes are plausible and how information can be shared across inputs. This is where the choice of kernel enters the inference. The labels can be identical in two fits, yet the fits can produce different predictions because the assumed covariances differ.

p(f | X, y) = p(y | X, f) p(f) / p(y | X)

Here p denotes a probability density and the vertical bar indicates conditioning. The term p(f | X, y) is the posterior over the latent function f given the training inputs X and scores y. The term p(y | X, f) is the likelihood of the scores for a given function and given inputs. The factor p(f) is the Gaussian process prior for the chosen kernel and settings. The denominator p(y | X) is the marginal likelihood of the scores given the inputs, obtained by integrating over the latent function.

The relevant matrix contains the kernel evaluation for every pair of training vectors. It is commonly called a Gram matrix in the paper’s treatment. The observation noise contributes to the diagonal, since it contributes to the variance of each observed score and is independent across observations. It is helpful to distinguish the resulting covariance of observed training scores from the posterior covariance of the latent function. The paper’s description blurs these distributions at one point, but the predictive and marginal-likelihood equations use the noise-adjusted training covariance in the role shown here.

K̄ = K + σₙ² Iₙ

Here K̄ is the covariance matrix for the observed training scores under the Gaussian assumptions. K is the matrix of kernel values between training vectors, and σₙ² is the observation-noise variance. The identity matrix Iₙ has n rows and columns, with n the training-set size. Multiplying it by σₙ² adds that variance to each diagonal entry of K.

What the kernel changes

A kernel gives the GP an answer to a practical question. If the function value at one vector is high relative to its prior mean, how strongly should that shift expectations at a nearby vector? The answer is determined by the form of the kernel and by settings fitted from the training data. For the distance-based kernels in the paper, a lengthscale sets the distance over which inputs are expected to remain related. A scale parameter controls the strength of the covariance. Smoothness and lengthscale are distinct. The former concerns the kind of variation the prior allows, and the latter concerns how far the dependence between input locations extends.

The distance in the paper is a scaled Euclidean distance. It combines coordinate differences after expressing them in units of the lengthscale. Writing it in those units gives the following notation for the squared distance used in all the distance-based equations.

r² = ∑ᵢ ((xᵢ − x′ᵢ) / ℓ)²

Here r² is the squared scaled distance between text vectors x and x′. The sum ∑ᵢ runs over their D coordinates, where D is the dimension of the input space. Within this formula, xᵢ and x′ᵢ are the i-th coordinates of the two vectors, and ℓ is the lengthscale in distance units. The index i refers to a coordinate in this equation. In the training pair notation it refers to an example. The symbol r in the kernel formulas refers to distance, whereas Pearson’s r in the evaluation refers to correlation.

The squared exponential kernel is the paper’s conventional nonlinear comparison. It is also known as the radial basis function kernel. The covariance weakens as the squared scaled distance increases. In GP regression, this kernel gives a prior with an especially strong smoothness property. The process is infinitely mean-square differentiable. Mean-square differentiability describes differentiability for a random function through the behaviour of its increments in mean square. For this application, the consequence Beck emphasises is that the prior favours functions whose values change very smoothly as inputs move through the representation space.

k_SE(x, x′) = σᵥ exp(−r² / 2)

Here k_SE is the squared exponential covariance between x and x′, the two input vectors. The factor σᵥ is the covariance scale as written in the kernel. The symbol exp denotes the exponential function, and r² is the squared scaled distance between the inputs. The denominator 2 is the constant in the exponent of the squared exponential kernel.

Matérn kernels have an extra smoothness parameter, ν. The smaller values considered in the paper make rougher behaviour plausible. Beck tests the 3 ⁄ 2 and 5 ⁄ 2 variants because they provide intermediate smoothness assumptions and have convenient explicit forms. Both are still distance-based covariances. They change the shape of the dependence on distance and the smoothness of the implied random functions. Training still yields a lengthscale for a particular dataset and emotion. A less smooth prior and a small fitted lengthscale describe different aspects of the resulting GP.

k_Mat32(x, x′) = σᵥ (1 + √(3r²)) exp(−√(3r²))

Here k_Mat32 is the Matérn covariance with ν equal to 3 ⁄ 2. The inputs are x and x′, their squared scaled distance is r², and σᵥ is the covariance scale. The symbol √ denotes the square root, and exp denotes the exponential function. The constants 1 and 3 are part of the expression for this value of ν. The factor preceding exp and its exponent together determine how covariance changes with distance.

k_Mat52(x, x′) = σᵥ (1 + √(5r²) + 5r² / 3) exp(−√(5r²))

Here k_Mat52 is the Matérn covariance with ν equal to 5 ⁄ 2, evaluated between the input vectors x and x′. The factor σᵥ is again the covariance scale, and r² is their squared scaled distance. The square root is denoted by √, and exp is the exponential function. The constants 1, 5 and 3 give the distance-dependent factors for this version. The polynomial factor includes a term proportional to r², in addition to the constant and square-root terms.

The paper illustrates the smoothness parameter by drawing functions from GP priors. When ν is small, a draw changes more irregularly over input positions. For ν equal to 1 ⁄ 2, the Matérn form is a simple exponential kernel, illustrating a much rougher case than the squared exponential. The black curve in the figure depicts the squared exponential limit, which the Matérn family approaches as ν increases without bound. This is an illustration of assumptions built into the functions before fitting. Its curves give an intuition for how the priors differ independently of what happens on the labelled datasets.

The motivation for the tested forms is that proximity between averages is an imperfect guide to emotional similarity. A strong smoothness assumption can treat nearby input locations as part of a relationship that varies too gently for the annotation patterns. The Matérn variants allow more local variation while still linking text vectors through a common covariance. The study leaves the vectors themselves untouched in this comparison. It also leaves the Gaussian observation assumption in place. The proposal is to use a more appropriate prior for the mapping available from those inputs, with the empirical comparison deciding whether the different assumption helps on held-out texts.

How a fitted process makes a prediction

At prediction time, the procedure creates the same kind of input vector for the unseen text. It evaluates the covariance between that vector and every training vector. Those values are collected into a vector that relates the new location to the training set. The training covariance remains relevant because similar training examples are themselves related. The predictive formulas use both the new vector’s relationship to the training cases and the relationships already present among those cases.

k∗ = [k(x₁, x∗), k(x₂, x∗), …, k(xₙ, x∗)]ᵀ

Here k∗ is the column vector of covariances with the unseen input x∗. Each k is an evaluation of the selected kernel. The training inputs run from x₁ and x₂ through xₙ, with n denoting their total number and the ellipsis indicating the intervening examples. The superscript ᵀ transposes the displayed row into a column.

μ∗ = k∗ᵀ K̄⁻¹ y

Here μ∗ is the predictive mean at x∗. The vector k∗ contains the covariances between that input and the training inputs, and ᵀ denotes its transpose. The matrix K̄ is the noise-adjusted training covariance, and ⁻¹ denotes the matrix inverse. The vector y contains the observed scores. Their influence in the prediction depends on the covariances as a whole. This calculation therefore differs from taking a simple average of nearby labels.

σ∗² = k(x∗, x∗) − k∗ᵀ K̄⁻¹ k∗

Here σ∗² is the predictive variance of the latent function at the new input x∗. The term k(x∗, x∗) is the prior variance there, obtained by evaluating the kernel at the input and itself. The vector k∗, its transpose indicated by ᵀ, and the inverse K̄⁻¹ describe the information supplied by the training inputs and their noise-adjusted covariance. The subtraction gives the uncertainty that remains about the latent function after conditioning on the training data.

p(f∗ | x∗, X, y) = 𝒩(f∗ | μ∗, σ∗²)

Here p is a density, f∗ is the latent function value at the new vector x∗, X denotes the training inputs, and y contains their scores. The vertical bar on the left indicates the information being conditioned on. The symbol 𝒩 denotes the Gaussian density evaluated at f∗, with mean μ∗ and variance σ∗². The mean can serve as the point prediction. The distribution describes uncertainty around it.

In the paper’s notation, the prediction is introduced as a distribution for the unseen response y∗, while the displayed Gaussian is written for f∗ and its variance is the latent-function variance. Under the stated additive noise assumption, a distribution for a new observed rating has the same mean, with the observation-noise variance added to the latent variance. That distinction matters in interpreting a score based on predictive density. A prediction about the rating can include variation around the underlying function as well as uncertainty about the function itself. The evaluation below reports the density scores as the paper gives them.

Choosing the settings from the training data

A kernel form still needs numeric settings. The lengthscale controls distance in the covariance, and the covariance scale and observation variance help determine how the regression apportions variation. The paper tunes GP hyper-parameters by maximizing the log marginal likelihood on the training data. It uses the GPy toolkit and runs 100 iterations of L-BFGS for each GP fit. L-BFGS is the gradient-based optimizer used to adjust the settings. For the main comparisons, choosing a Matérn variant fixes the value of ν before this optimization. The fitted hyper-parameters then determine how that variant acts on the training data for the task.

log p(y | X, θ) = −(yᵀ K̄⁻¹ y) / 2 − log |K̄| / 2 − (n log(2π)) / 2

Here log is the natural logarithm, p is a density, y is the vector of n observed scores, and X is the collection of corresponding input vectors. The symbol θ denotes the hyper-parameters, including the lengthscale where applicable. The matrix K̄ is the covariance of the observed responses at those settings, |K̄| denotes its determinant, ⁻¹ denotes the inverse, and ᵀ denotes the transpose. The constant π appears in the Gaussian normalization, and the factors of 2 come from the Gaussian log density.

The first term measures how the recorded scores fit the covariance associated with the settings. It uses the output vector directly. The determinant term depends on the covariance and penalizes complexity in the marginal-likelihood criterion. The final term provides the normalization for the Gaussian expression. Maximizing the whole objective balances agreement with the scores and the structure of the covariance. The procedure can use all the available training examples to choose the hyper-parameters without reserving a separate validation set for each GP fit. The held-out examples still have a separate role when performance is evaluated. The paper makes available code for reproducing the experiments, including the fitting and evaluation procedures.

Experiments and results

The headline and tweet evaluations

The headline evaluation uses the SemEval2007 Affective Text data. Beck pools the shared task’s official development and test sets, yielding 1,250 headlines. The pooled collection is evaluated with 10-fold cross-validation. The held-out fold changes across the runs, and the paper aggregates the evaluation across folds. Headlines are rated for six emotions—anger, disgust, fear, joy, sadness and surprise—using the original 0–100 scale. Each emotion can therefore be evaluated on the same collection of underlying texts. A headline result from this paper refers to the pooled cross-validation protocol, which matters when comparing it with work that preserved a different split.

The tweet evaluation uses the WASSA2017 emotion intensity data. The available emotions are anger, fear, joy and sadness, with distinct collections of tweets for the different emotions. The scores originated in Best-Worst Scaling and were converted to the interval from 0 to 1. Beck combines the official training and development sets for each emotion, then uses that emotion’s official test set for evaluation. The official test sets provide a common basis for comparison with the shared-task entries. The paper reports average performance over the emotion datasets for its main tweet results. Within that average, each emotion concerns its own test texts.

The two experiments both ask for intensity predictions from short texts, with the same basic GloVe averaging procedure. They differ in genre, response scale, annotation procedure, how the emotion datasets are organized and how test predictions are obtained. These differences help interpret a shared pattern across the benchmarks. The kernel choice is being tested under more than one data and evaluation arrangement. The absolute scores, however, refer to their own tasks and protocols. A headline correlation and a tweet correlation are measures of agreement with different sets of human ratings, even when they come from a regression of the same form.

The comparisons and their measures

The primary controlled comparison is among GP kernel choices. Alongside the proposed Matérn variants, Beck fits a GP with a linear kernel and a GP with a squared exponential kernel. A linear comparison tests an input-to-score relationship that does not have the local distance-dependent flexibility of the nonlinear kernels. The squared exponential comparison retains a nonlinear distance-based covariance and brings a stronger smoothness preference. Since all the GPs use the same optimization method and, in the main tables, the same text features, these comparisons are the closest ones for examining the effect of the covariance choice.

The paper also uses ridge regression and support vector regression as non-Bayesian baselines. Ridge regression fits a linear relationship with a penalty on the size of the fitted coefficients, controlled by its regularization setting. Support vector regression uses a squared exponential kernel in the reported headline comparison. Its search considers the penalty for prediction errors, the size of the margin and the kernel lengthscale. For these baselines, the fitting implementation is scikit-learn. Hyper-parameter search uses 3-fold cross-validation within the training set. The procedure fits on two folds at a time, uses the other as development data, and bases selection on results across the internal folds. These development folds serve a different purpose from the held-out folds used to evaluate headline performance.

Pearson’s r measures how closely predicted and annotated scores vary together in a linear relationship. A higher value means better agreement by that measure. A regression can have good correlation even if its predictions would need a shift or rescaling to match the numerical annotation scale more closely. Beck also reports negative log predictive density, abbreviated NLPD, for the GPs. It measures how much density the predictive distribution assigns to the observed test score, with a lower value preferred. A distribution that is very narrow around an inaccurate prediction can receive a poor density score. The baselines reported as point predictors have no corresponding NLPD in the tables. The measures thus ask different questions about the same prediction task.

How the kernels performed on headlines

For the pooled SemEval2007 data, the headline results below are averaged over the emotions and the 10 cross-validation folds. Matérn 3 ⁄ 2 has the highest average Pearson correlation, at 0.616, and Matérn 5 ⁄ 2 follows at 0.609. Among the baselines, the highest average is 0.596 for the squared exponential GP. Support vector regression with the squared exponential kernel reaches 0.593. The linear GP reaches 0.549, and ridge regression reaches 0.547. The ordering puts both Matérn variants ahead in the overall comparison. Beck reports that the small correlation advantage of Matérn 3 ⁄ 2 over Matérn 5 ⁄ 2 is statistically insignificant in this experiment.

Average Pearson correlation across SemEval2007 headline emotions and folds

Both Matérn variants have higher average correlation than the reported baselines.

Average Pearson correlation across SemEval2007 headline emotions and foldsRidge regression: 0.547Ridge regression0.547Support vector regression: 0.593Support vector regression0.593Linear GP: 0.549Linear GP0.549Squared exponential GP: 0.596Squared exponential GP0.596Matérn 5 ⁄ 2 GP: 0.609Matérn 5 ⁄ 2 GP0.609Matérn 3 ⁄ 2 GP (this paper): 0.616Matérn 3 ⁄ 2 GP (this paper)0.616
The numbers
System or settingPearson’s r
Ridge regression0.547
Support vector regression0.593
Linear GP0.549
Squared exponential GP0.596
Matérn 5 ⁄ 2 GP0.609
Matérn 3 ⁄ 2 GP (this paper)0.616

The headline density results broadly agree with the correlation ordering. Average NLPD is 4.10 for the linear GP and 4.07 for the squared exponential GP. The two Matérn variants both reach 4.05 at the precision reported. Thus the headline experiment favours the Matérn family on both measures in the aggregate. The equal density scores for the two variants also put the small distinction in their correlation results in perspective. A preference about how the predicted mean follows the labels need not produce a corresponding difference in the score assigned by the whole predictive distribution.

How the kernels performed on tweets

On the official WASSA2017 test sets, using the 100-dimensional embeddings, the best average Pearson correlation within Beck’s comparison is 0.571 for Matérn 3 ⁄ 2. Matérn 5 ⁄ 2 reaches 0.567. The squared exponential GP reaches 0.551, ridge regression reaches 0.528, and the linear GP reaches 0.527. The main tweet results table includes those baselines. The support vector regression result belongs to the headline evaluation. In the tweet comparison, both Matérn variants again improve over the squared exponential GP with the same representation.

Average Pearson correlation on the official WASSA2017 tweet test sets

With the same averaged word vectors, the Matérn variants lead the reported comparison.

Average Pearson correlation on the official WASSA2017 tweet test setsRidge regression: 0.528Ridge regression0.528Linear GP: 0.527Linear GP0.527Squared exponential GP: 0.551Squared exponential GP0.551Matérn 5 ⁄ 2 GP: 0.567Matérn 5 ⁄ 2 GP0.567Matérn 3 ⁄ 2 GP (this paper): 0.571Matérn 3 ⁄ 2 GP (this paper)0.571
The numbers
System or settingPearson’s r
Ridge regression0.528
Linear GP0.527
Squared exponential GP0.551
Matérn 5 ⁄ 2 GP0.567
Matérn 3 ⁄ 2 GP (this paper)0.571

The Matérn 3 ⁄ 2 GP also has the lowest reported average NLPD on the WASSA2017 test sets, at -0.390. Matérn 5 ⁄ 2 scores -0.386, compared with -0.375 for the squared exponential GP and -0.365 for the linear GP. Negative values are possible because the score uses a continuous probability density, whose value at an observation can exceed unity. The sign itself has no special performance meaning. The ordering within this test setup is what matters, and the scale of the density scores differs from the one in the headline experiment, where the response values use a different interval.

Beck also places the best Matérn variant in the context of the shared task. With the 100-dimensional GloVe vectors, its average Pearson correlation of 0.571 would correspond to 11th place among 22 submissions according to the paper. With 300-dimensional vectors and the same Matérn 3 ⁄ 2 kernel, the average rises to 0.627, which the paper places at 10th in the official results. The comparison table gives 0.660 for the best shared-task baseline and 0.747 for the winning submission. The paper notes that the leading submissions drew on features beyond word embeddings, including emotion lexicons and character n-grams.

WASSA2017 test Pearson correlation with different features and shared-task comparators

The larger embeddings improve the Matérn result while the shared-task comparators score higher.

WASSA2017 test Pearson correlation with different features and shared-task comparatorsMatérn 3 ⁄ 2 GP with 100-dimensional embeddings: 0.571Matérn 3 ⁄ 2 GP with 100-dimensionalembeddings0.571Matérn 3 ⁄ 2 GP with 300-dimensional embeddings (this paper): 0.627Matérn 3 ⁄ 2 GP with 300-dimensionalembeddings (this paper)0.627Best shared-task baseline: 0.660Best shared-task baseline0.660Winning shared-task submission: 0.747Winning shared-task submission0.747
The numbers
System or settingPearson’s r
Matérn 3 ⁄ 2 GP with 100-dimensional embeddings0.571
Matérn 3 ⁄ 2 GP with 300-dimensional embeddings (this paper)0.627
Best shared-task baseline0.660
Winning shared-task submission0.747

The shared-task comparison and the fixed-feature comparison put different claims on the table. The fixed-feature comparison supports a preference for the Matérn covariance in the regression Beck studies. The shared-task results show where the best version examined in the paper stands among systems that can use other resources and feature choices. The stronger Matérn result with the larger embeddings shows that the covariance and the input representation are both consequential. The kernel comparison remains interpretable because the main experiments control the representation, while the larger-vector experiment changes it explicitly.

What the ablations show

Changing the covariance with the features held fixed

The paper’s principal controlled comparison replaces the GP kernel while retaining the same text preprocessing, features, likelihood family and hyper-parameter optimization procedure. This is the most direct evidence for the paper’s proposal. The Matérn and squared exponential versions work with the same averaged inputs, so the stronger average results for Matérn cannot be attributed to adding a lexicon or replacing the input with a different set of vectors. The linear GP provides a separate reference point for what a simpler dependence on the inputs can achieve. Ridge regression and support vector regression supply practical baselines, though those comparisons also involve differences in estimation and tuning.

The comparison establishes that a change in covariance can improve prediction in this setup. It does not identify roughness as the only mathematical property responsible for the effect. Changing from squared exponential to Matérn changes the distance-dependent covariance as well as the differentiability of the prior. The hyper-parameters can then adjust differently under each kernel when fitted to the same examples. The sampled prior functions explain the motivation for the change. The held-out tests establish that the resulting fitted regressions differ in performance. Together they give a plausible explanation tied to the covariance, without measuring how much each aspect of that covariance contributes.

The comparison between the two Matérn variants is more narrowly about which of the tested members of the family works better. Their relative positions are close in the headline average and the paper finds no significant separation there. On the tweets, Matérn 3 ⁄ 2 also leads the main comparison on both reported measures, with the more moderate description of a small preference in the paper. The results support replacing the squared exponential assumption more clearly than they support a universal choice between the tested values of ν. The per-emotion headline results show why that distinction is worth keeping.

Where the headline results differ by emotion

The joy result prompted Beck to inspect the individual SemEval2007 folds. Across the headline folds, the linear GP’s Pearson correlation for joy is 0.539, above the squared exponential GP’s 0.531. The Matérn 3 ⁄ 2 and 5 ⁄ 2 variants reach 0.595 and 0.592 for joy, respectively. On the same emotion, the squared exponential GP’s density score is 4.33, and each Matérn variant reaches 4.29. The correlation reversal between linear and squared exponential is particularly informative because the squared exponential GP performs better on average over the headline emotions. A single aggregate would conceal the unusual behaviour on joy.

The individual-fold inspection found one squared exponential fit for joy with a very low lengthscale. A small lengthscale means that covariance can become weak over a short distance in the input space. The resulting regression can follow training observations tightly in their immediate neighbourhoods without carrying those changes effectively to held-out inputs. Beck describes the fit as interpolation that led to overfitting. The Matérn fits in this comparison did not show that behaviour. This is a concrete diagnosis of how the hyper-parameter fit went wrong in a particular case. It gives the performance difference more substance than an appeal to sampled priors alone.

It also clarifies two meanings of local variation. The squared exponential prior has a strong mathematical smoothness property. A squared exponential fit can still vary over short input distances when its lengthscale is very small. The bad joy fold illustrates such a fitted scale. The Matérn proposal modifies the class of functions favoured by the prior so that roughness can be expressed through the covariance form itself. The paper’s diagnosis is confined to the observed fold. It does not report a study of the rates of small-lengthscale fits across repeated runs or a general guarantee against interpolation under the Matérn kernels.

Fear shows a different pattern in the headline results. It has the highest absolute Pearson correlations for all the reported systems. The squared exponential GP achieves 0.737 for fear, and each Matérn GP achieves 0.740. Their fear NLPD scores are 4.07 for Matérn 3 ⁄ 2 and 4.08 for Matérn 5 ⁄ 2, alongside 4.08 for the squared exponential GP. Beck interprets the relatively small room for improvement as a possible case of diminishing returns. The simpler regressions already capture much of the variation in fear ratings under this evaluation. There is no direct measurement of how far this explanation extends to other datasets or representations.

The results for surprise show that kernel choice and metric choice matter even within the same emotion. The squared exponential GP reaches a surprise correlation of 0.462. Matérn 3 ⁄ 2 reaches 0.472, while Matérn 5 ⁄ 2 reaches 0.445. On surprise NLPD, the squared exponential and Matérn 3 ⁄ 2 variants each score 4.03, and Matérn 5 ⁄ 2 scores 4.01. A variant with lower correlation can assign greater density to the actual test ratings through its predictive distribution. That is consistent with the metrics evaluating different properties. It also gives a clear exception to any reading in which both proposed kernels improve every emotion on every measure.

The remaining headline categories show stronger agreement between the metrics. For anger, the squared exponential GP reaches Pearson’s r of 0.638, compared with 0.650 and 0.647 for the Matérn variants in order of increasing ν. The corresponding NLPD values are 3.92, 3.90 and 3.91. For disgust, the squared exponential GP reaches a correlation of 0.515 and NLPD of 3.80. The two Matérn variants reach correlations of 0.540 and 0.533 and density scores of 3.76 and 3.78. For sadness, the correlations are 0.693 for squared exponential and 0.700 and 0.698 for the Matérn variants. The latter both reach 4.24 on density, compared with 4.25 for squared exponential.

Changing the representation with the kernel held fixed

The additional tweet experiment reverses which part of the system is varied. It keeps Matérn 3 ⁄ 2 and uses the 300-dimensional version of GloVe in place of the 100-dimensional version. The average increase in correlation on the official tweet test sets establishes that the regression can benefit from the alternative representation. Because the paper reports this change for that Matérn variant, the experiment answers a question about feature choice under a fixed covariance. Whether a squared exponential fit would gain as much from the larger vectors would require a corresponding comparison. The feature experiment gives no such result.

This difference in what is held fixed is central to understanding the findings. The common-input kernel comparisons give evidence about how to use the information already encoded in the average. The larger-vector comparison gives evidence about changing the information supplied to a particular regression. The joy analysis then provides an instance where a fitted kernel setting can be traced to poor test performance, while the fear and surprise results show how the outcome can depend on what is predicted and how it is scored. These are distinct sources of evidence for the paper’s conclusion about regression on imperfect text inputs.

Limitations

Limits the author identifies

Beck identifies the available emotion datasets as scarce, noisy and potentially biased. The proposal concerns noise associated with the representation and the resulting relationship between averaged embeddings and annotations. The paper treats noise and bias in the response scores as a separate area for further work. The Gaussian likelihood gives all the training labels the same form of additive noise. It does not distinguish between a text that judges interpret differently and a text for which the average of its word vectors is especially misleading. Both can make the observed scores difficult to predict, but the likelihood used here gives them no distinct mechanisms.

The author also points to the bounds on the rating scales. A Gaussian likelihood is convenient because the posterior and predictions can be handled with closed-form Gaussian calculations under the paper’s assumptions. A Gaussian distribution nevertheless has support outside the finite scale on which human scores are recorded. Beck suggests a Beta distribution over the scale limits as a possible direction for a likelihood that reflects those bounds. Changing the likelihood in this way would remove the tractability of the Gaussian treatment used in the study and require an approximation. The proposal is a direction for future work, with no experimental result about its performance in the paper.

Another stated question concerns the use of features found in stronger shared-task entries. The author proposes testing the Matérn approach with emotion lexicons and character n-grams. The results demonstrate flexibility across the two GloVe settings for the tested Matérn tweet regression, while the feature combinations used by the leading entries remain a different experimental setting. The paper also proposes combining Matérn kernels with the earlier multitask approach so that relationships between emotion outputs can be exploited. It does not report a joint comparison showing whether the benefits persist when emotion dependencies are learned.

Beck cautions against a direct comparison with the earlier multitask GP study on SemEval2007. That work reports a best headline Pearson correlation of 0.399, but it used a different data split and did not perform cross-validation. Its use of bag-of-words features also differed from the current setup. The two studies investigate compatible ideas, but their published headline correlations cannot isolate the contribution of joint training, vector representations or kernel smoothness. The present paper’s internal comparisons provide a firmer basis for its kernel claim because they use the same evaluation protocol.

Limits apparent from the design

The experiment measures predictive performance from a supplied representation. Representation noise motivates the choice of kernel, but its sources are not experimentally separated. The paper does not modify the training contexts of the embeddings, change the averaging rule while holding the word vectors fixed, or annotate which tokens determine a text’s emotional meaning. The kernel tests therefore provide evidence that rougher covariance assumptions are a better fit in the reported setting. They do not show how much of the improvement can be attributed specifically to context mixing in individual word vectors, loss of word order or any other particular feature of the average.

A related limit follows from averaging itself. A kernel can change the inferred relationship between locations in the vector space. If two texts produce the same averaged input, the fitted GP for a particular emotion gives them the same predictive distribution under the stated setup. Learning a rougher function cannot recover which word order produced an input or represent a token that was skipped because it had no GloVe entry. The paper also does not specify what happens if no token in a text has an embedding. In consequence, the claim is about improving regression on these features, with no demonstrated repair of the information lost in forming them.

The evaluation supports a degree of generalization across data arrangements, since the same kernel family leads the main comparisons on both headlines and tweets. The two tasks still share the broad setting of supervised intensity prediction from short texts. The study does not test whether a GP trained on headlines will predict tweet annotations, or the reverse. Nor is there an experiment on a separate text regression problem. The suggestion that the method may help where noisy embeddings are mapped to manual scores is a broader hypothesis motivated by these results. Its scope has to be distinguished from the two tested datasets.

The evaluation metrics also leave questions open. Correlation speaks to the association between predictions and ratings, while negative log predictive density includes the uncertainty assigned by the predictive distribution. An improvement in average density on the tested ratings gives evidence about distributional predictions within the benchmark. The paper does not examine whether the uncertainty estimates are reliable for texts far from the training data or for particular groups of inputs. The score scale, the handling of observation noise and the use of a shared Gaussian likelihood shape how those uncertainty results can be read.

Finally, the aggregate results support the reported average ordering without settling every performance comparison. The paper explicitly finds the headline correlation difference between the Matérn variants insignificant. Its tables do not supply a general uncertainty estimate for every contrast, and the detailed diagnosis of overfitting focuses on one joy fold. The per-emotion results also include a case in which the smoother Matérn variant trails the squared exponential GP on correlation. These qualifications confine the strongest conclusion to the average advantage observed for the tested family under the reported conditions.

What came after

A later citing paper, Modeling Empathy and Distress in Reaction to News Stories (2018), examines empathy and distress as reactions to news stories. Its stated subject changes the object of prediction. Beck’s headline experiment concerns the strength of particular emotions assigned to a text by human judges. The later title concerns responses to news, and names empathy and distress as the responses of interest. Both studies connect news language with affective judgments, but the meaning of the target differs. Beck’s results about the covariance of a regression over headline vectors do not establish how accurately reactions to stories can be predicted. Modeling Empathy and Distress in Reaction to News Stories

The citation establishes a connection between the studies, but it does not establish whether the later work inherited Beck’s Matérn kernels, his use of averaged GloVe vectors or his treatment of predictive uncertainty. Nor does it establish whether the later authors ran a comparison with his regressions. The documented continuation is the move from intensity judgments about emotion in short news texts to the study of empathy and distress as reactions to news stories.

Cite

Cite as Daniel Beck. 2017. Modelling Representation Noise in Emotion Analysis using Gaussian Processes. Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{daniel2017modelling,
  title = {{Modelling Representation Noise in Emotion Analysis using Gaussian Processes}},
  author = {Daniel Beck},
  booktitle = {Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 2: Short Papers)},
  year = {2017},
  url = {https://aclanthology.org/I17-2024/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/beck-2017-modelling-representation-noise-emotion-analysis/