Elamur Research

Multiple Aspect Ranking Using the Good Grief Algorithm

Paper · 2007 · Benjamin Snyder and Regina Barzilay

Summary

A restaurant review can praise the food, criticize the service, and say very little about the atmosphere. A single satisfaction score compresses those judgments into an overall verdict. Benjamin Snyder and Regina Barzilay ask whether a system can recover the separate ratings from the review and use clues about how the judgments relate to one another. Their task belongs to sentiment analysis, but the desired answer is a set of ordered ratings. The restaurant reviews in the study carry scores for food, service, ambience, value, and overall experience, each on a scale of 1-5.

Good Grief gives each aspect a ranker and adds a classifier that reads the same review and predicts whether the writer gave every aspect the same rating. The rankers supply default ratings. The classifier supplies evidence for keeping those ratings equal or allowing them to differ. When the defaults conflict with that evidence, the decoder compares the cost of keeping them with the cost of changing them. The authors call these costs grief. The same decision procedure is used during training, so a ranker learns from the rating the system actually assigns to its aspect. The paper also gives a constructed example in which a simple cue for contrast lets joint decoding recover ratings that separate linear rankers cannot reproduce.

On the held-out restaurant reviews, the full Good Grief system records a ranking loss of 0.632, compared with 0.675 for independently trained PRank rankers and 0.663 for a baseline that shares evidence between aspects according to their similarity. Ranking loss measures how far the predictions are from the reviewers’ ratings, so lower values are better. Applying Good Grief only at test time yields 0.656. The authors report statistically significant improvements for the full system over all three comparisons.

The gains concentrate on reviews whose reference ratings are all equal. Against PRank, the paper reports a relative loss reduction of 21.8% on those reviews and 1.1% on reviews with differing ratings. A correct consensus decision leaves only the choice of a shared rating. A correct disagreement decision leaves open which aspects differ, in which direction, and by how much. The distinction explains both the strength of the method and the main limit of the relationship it learns.

Deep dive: Multiple Aspect Ranking Using the Good Grief Algorithm

Good Grief predicts several ratings from a single review by weighing each aspect’s score against evidence that the reviewer rated all aspects equally. · about 38 minutes to read

The problem and its context

A review can carry several judgments

The input to the task is the complete review. The desired output has a fixed place for each aspect, and every place contains a rating from the same ordered scale. A high score for the food and a low score for the service describe a different response from the reverse assignment, even when both reviewers might give the restaurant the same overall score. The order of the entries therefore identifies what is being judged. The order of the values within an entry identifies the degree of satisfaction.

This is the sense in which the authors use ranking. They are assigning an item to an ordered grade. A ranker reads a review and decides which grade applies to an aspect. It does not have to arrange a list of restaurants or decide which review should appear first. For the same reason, a prediction one grade away from the reviewer’s answer should be distinguished from an error that spans much of the scale. The experiment measures that distance directly.

Knowing the aspects in advance removes the need to discover the subjects a reviewer might discuss. It leaves a different problem. All rankers see the same text, and the words that matter for one aspect may be embedded in the description of another. A review can express the food judgment directly, then convey the atmosphere judgment by saying it matched or departed from the first. A separate ranker has to recover the relevant rating from that whole input. A joint system can also use the relation expressed between the judgments.

Relations in the text and relations in the ratings are distinct. A reviewer might use contrasting language without assigning different numerical scores. A set of equal ratings can also accompany prose that discusses each aspect separately. Good Grief makes equality of the recorded ratings its prediction target. Textual expressions of agreement and contrast matter insofar as they offer evidence about that target. The paper thus connects discourse analysis to a decision whose correctness can be checked against ratings supplied by the writer. Its motivation for using lexical cues to relationships in text draws on An Unsupervised Approach to Recognizing Discourse Relations.

From one polarity decision to several ordered ratings

The paper describes earlier sentiment work as commonly reducing an opinion text to a binary polarity judgment. A text gets grouped with favorable or unfavorable texts. That formulation established a way to treat opinion as a prediction problem with a single answer. The introduction places both review classification and work on identifying the polarity of opinion sentences in this background. Thumbs up? and Towards Answering Opinion Questions are examples the authors cite.

Earlier work on rating scales gave the single answer more resolution. A system could distinguish degrees of satisfaction while keeping one target per text. The Good Grief paper treats this ordered formulation as the immediate precursor to its own. The change it makes is to ask for several grades from the same document, with a distinct target for each aspect. The scale now organizes the possible answers within an aspect, while the set of aspects organizes the answers within a review. Seeing Stars is one of the earlier rating-scale studies in this account.

The paper takes its individual rankers from PRank, the perceptron ranking algorithm of Crammer and Singer. PRank learns how to combine input features into a score and where to place the boundaries between successive grades. This gives the authors a direct way to turn a document description into an ordered rating. It also supplies an update rule that can respond to a mistake in terms of the grade boundaries involved. The earlier application discussed in the paper trained separate rankers for users in the EachMovie data. Good Grief instead uses an aspect as the unit for an individual ranker.

A related approach from Basilico and Hofmann offers a way to share what rankers learn. In the collaborative filtering setting described in the paper, the score for a user includes contributions from other users, weighted by similarity. The user-specific feature weights are retained, and the users share grade boundaries. Translating the score-sharing idea to review aspects allows the ratings for related aspects to draw on some of the same lexical evidence. That mechanism can matter even when the final ratings differ.

Score sharing and agreement answer different questions. Score sharing asks how much the learned feature weights for another aspect should contribute when calculating an aspect’s score. The similarity in that calculation comes from the training data. Agreement asks, for the particular review at hand, whether the complete assignment should have equal entries. A general tendency for food and overall experience to move together does not settle whether a given writer’s ratings match. Conversely, a strong indication of equality in a particular review can be informative even when the most useful words for the aspects differ.

These distinctions give the paper a way to compare levels of coordination. Independent rankers predict each aspect without using the other predictions. A similarity-based score lets aspects borrow evidence before a grade is selected. Good Grief adds a decision over whole assignments and makes that decision depend on the review. It also tests what happens when training is allowed to respond to that decision. The method can therefore be followed from the mechanics of assigning a single grade to the question of whether several grades make sense together.

The method, step by step

From review text to a set of ratings

Good Grief first turns a review into features that its rankers can use. Each ranker combines those features into a numerical score and locates that score among boundaries for the ordered grades. This gives a default rating for each aspect. In parallel, a binary classifier produces a signed score for the question of whether the ratings are all equal. The sign indicates which answer it favors, and the magnitude determines how much that preference can influence decoding.

Imagine the authors’ example in which the aspect rankers propose ⟨5, 5, 4⟩ while the classifier favors consensus. Keeping the defaults leaves all the aspect rankers satisfied and takes a penalty from the classifier. Changing the assignment to ⟨5, 5, 5⟩ satisfies the classifier and takes a penalty for overruling the third ranker. That alternative is easy to see because it changes a single entry. The rule itself can consider any shared grade. It scores a proposed assignment by the distance of the underlying scores from the boundaries they would have to cross.

A ranker whose default score is close to the next grade can be relatively easy to overrule. Another ranker with the same default grade can object more strongly if its score lies farther inside that grade’s interval. This is why the decoder needs the underlying numerical scores. From the tuple of default grades alone, it could tell which assignments conflict with which components, but it could not recover the costs used to resolve those conflicts.

Training begins with the recorded review ratings. The authors derive the binary agreement labels from them and train the agreement classifier before training the joint rankers. As the aspect rankers learn, each training review is decoded under the joint rule. The system uses the resulting assignment to decide which aspect rankers to update. An error introduced or prevented by the agreement decision can therefore change the subsequent behavior of the rankers.

How Good Grief learns and assigns ratings

The steps in order.

How Good Grief learns and assigns ratingsStep 1: Extract lexical features from reviews1. Extract lexical features from reviewsStep 2: Derive agreement labels from recorded ratings2. Derive agreement labels from recorded ratingsStep 3: Train the agreement classifier3. Train the agreement classifierStep 4: Score each aspect and find its default rating4. Score each aspect and find its default ratingStep 5: Compare candidate assignments by total grief5. Compare candidate assignments by total griefStep 6: Update rankers using jointly decoded training errors6. Update rankers using jointly decoded training errorsStep 7: Decode new reviews with the learned weights7. Decode new reviews with the learned weights

The inputs, grades, and decision boundaries

The paper describes a sequence of labeled reviews. Every review has a feature vector and a corresponding vector of observed grades. Training proceeds in sequence, which is what makes the ranking procedure online in the paper’s terminology. It can change its weights after processing a training example, and the next prediction uses the current weights.

(xᵗ, yᵗ), with xᵗ ∈ ℝⁿ and yᵗ ∈ Yᵐ

Here t identifies an example in the sequence. xᵗ is its input vector and yᵗ is its observed rating vector. ℝ denotes the real numbers, n is the number of input features, and m is the number of aspects. Y is the set of grades allowed for each aspect. The raised t marks an example index, while the raised n and m indicate the dimensions of the respective spaces.

Y = {1, …, k}

Y is the ordered grade set, 1 is its lowest grade, and k is its highest grade. The ellipsis includes every intervening integer. An aspect index i identifies the entry yᵗ[i] of the reference vector.

H : X → Yᵐ

H is the prediction rule, X is the input space, and Yᵐ is the space of complete assignments to the m aspects. The arrow means that the rule maps an input to one such assignment. The individual grade boundaries explain where the default assignments come from before this rule resolves relations among them.

For an independent ranker, the feature score is a dot product. This operation multiplies each input feature by its learned weight and adds the contributions. Weights can support a higher or lower score. The result is a position on a continuous scale that will be divided into the discrete grades used by reviewers.

scoreᵢ(x) = w[i] · x

scoreᵢ(x) is the score for aspect i on the input x. w[i] is that aspect’s weight vector, and · denotes the dot product. The same x can yield different scores for different aspects because each aspect has its own weights.

The grade boundaries determine how to read a score. A ranker can raise or lower the default grade by moving the score with its feature weights or by moving the boundary with its grade parameters. The first and last intervals have unbounded ends. Between them, moving to a higher interval yields a higher rating.

−∞ = b[i]₀ ≤ b[i]₁ ≤ … ≤ b[i]ₖ₋₁ ≤ b[i]ₖ = ∞

b[i]ᵣ is boundary r for aspect i. k counts the grades, 0 indexes the lower endpoint preceding the first grade, and ∞ and −∞ denote the unbounded endpoints. The ≤ signs order the boundaries without requiring neighboring boundaries to be distinct.

b[i]ᵣ₋₁ ≤ scoreᵢ(x) < b[i]ᵣ

r is the selected grade for aspect i. Its interval starts at boundary r−1 and extends up to boundary r. The lower inequality includes the left boundary, and the strict upper inequality excludes the right boundary. Thus score equality with an upper boundary does not qualify for that interval.

ŷ[i] = min {r ∈ Y : scoreᵢ(x) − b[i]ᵣ < 0}

ŷ[i] is the default rating for aspect i, and min takes the smallest grade r in Y that meets the condition after the colon. The condition says that boundary b[i]ᵣ is strictly above the score for the review x. This is the paper’s explicit selection rule when some boundaries coincide.

For the full Good Grief system, the aspect score also takes contributions from other rankers. The paper takes this form from the collaborative filtering method and substitutes aspects for users. The individual weights are still used to assess the same review. Similarities determine how much of each additional score enters the calculation.

scoreᵢ(x) = w[i] · x + ∑ⱼ sim(i, j)(w[j] · x)

i is the aspect being scored, j indexes the rankers in the sum ∑ⱼ, and w[j] · x is the dot product for aspect j on the same input. sim(i, j) weights that contribution. In the earlier method, the paper describes sim as cosine similarity computed on the training data, with values from 0 to 1. Cosine similarity measures the alignment of the quantities being compared. The first term is the direct contribution from aspect i. The baseline borrowed from collaborative filtering shares boundaries, while the description of the Good Grief rankers gives each aspect its own boundary vector.

The important distinction for the decoder is where each resulting score lands relative to that aspect’s boundaries. A score assembled through borrowing still produces a default grade by the same interval rule. Its distance to other grade intervals still supplies a numerical penalty for changing the grade. The sharing method affects the evidence available to a ranker. The agreement classifier evaluates a property of the completed output.

Predicting whether the ratings agree

Each training review supplies a binary label in addition to its aspect ratings. The label is positive when every recorded rating equals every other one. If any pair of recorded ratings differs, the label is negative. Equal low ratings and equal high ratings both produce the positive label. The negative class collects every kind of unequal assignment, including a lone outlying aspect and arrangements in which several aspects have different grades.

The classifier has a weight vector a. In the paper’s notation it acts on x, as the aspect rankers do. The feature description gives this classifier an additional lexical feature, so x in the agreement score is understood to have the coordinates required by that component.

sₐ(x) = a · x

sₐ(x) names the agreement score on review x. a is the agreement weight vector, · is the dot product, and the subscript a distinguishes this score from an aspect score. A positive value favors consensus. A value of 0 or below favors disagreement under the paper’s sign convention. The magnitude of the score is the classifier’s confidence measure.

The paper allows standard binary classification training methods, giving a perceptron and support vector machine optimization as examples. This stage can use the same training reviews as the rankers because the agreement label is derived from the observed ratings. The method does not call for separate human judgments about whether the prose expresses contrast. It relies on a classifier learning which features help predict equality in the rating records.

A raw agreement score and an aspect score have different jobs and come from different training procedures. Their sizes affect how strongly the decoder treats disagreements among components. The paper therefore uses a development set to choose how heavily the agreement score should count.

a = αa₀

a₀ is the initial agreement weight vector, α is its scaling factor, and a is the vector used in the joint decision. Scaling the score changes the size of the agreement penalty relative to aspect penalties. The authors treat the aspect penalties as comparable because the rankers are trained under the same joint procedure.

Representing reviews with lexical features

The aspect rankers use unigrams and bigrams. A unigram is a single word feature. A bigram is a feature for neighboring words taken together. The authors discard entries that occur fewer than three times and report that the resulting vocabulary gives about 30,000 features. Every aspect ranker draws feature evidence from the review as a whole. Different weights let the same words matter differently for different ratings.

The agreement classifier also uses unigrams and bigrams. Its extra feature measures the maximum contrastive distance between a pair of words in the review. The distance is based on differences in the relative weights given to the words by independently trained PRank rankers. The premise is that a review containing words with sharply different rating implications can signal unequal judgments. The authors illustrate this with the combination of delicious and dirty, compared with expensive and slow, which they present as a lower-contrast pair.

The maximum turns a collection of word pairs into a feature for the review. A particularly strong contrast can register even when much of the review offers little evidence about equality. The individual PRank training matters twice in the experimental design. It supplies a baseline for predicting grades independently, and independently learned weights also help construct this feature for the agreement classifier. The paper describes the feature through relative feature weights and these examples. It gives no separate equation for the word-pair distance.

The classifier can therefore draw on both recognizable expressions and a signal derived from the way words contribute to aspect scores. Its target remains equality of the consumer ratings. A word pair is useful to the extent that it helps with that prediction in the data, whether the author of the review used an explicit contrastive expression or conveyed a change in evaluation through the words chosen for different subjects.

Turning a preference into grief

An aspect ranker’s grief measures how far its score would need to move to support a proposed grade. Its default grade needs no correction. A proposed grade above the default requires a correction toward the lower boundary of the higher interval. A proposal below the default requires a correction toward the upper boundary of a lower interval. The correction is a device for measuring the cost of an assignment. Decoding can choose a grade without changing the learned parameters or the input.

gᵢ(x, r) = min {|c| : b[i]ᵣ₋₁ ≤ scoreᵢ(x) + c < b[i]ᵣ}

gᵢ(x, r) is the grief for assigning grade r to aspect i of review x. c is a proposed real-valued correction and |c| is its absolute magnitude. The expression after the colon requires the corrected score to land in the chosen interval. min expresses the paper’s intended smallest correction. With a strict endpoint, a correction can approach the relevant boundary without attaining a minimum. For a nonempty interval in that case, the distance to the boundary gives the limiting cost.

The agreement penalty uses the same idea with the sign boundary at zero. Its candidate is the full rating vector. If a vector displays consensus even though the classifier favors disagreement, a correction must move the agreement score towards the positive side. If the vector displays disagreement while the classifier favors consensus, the correction instead has to bring the score to the nonpositive side.

gₐ(x, r) = min {|c| :
  (a · x + c > 0 ∧ ∀i, j ∈ {1, …, m}, r[i] = r[j])
  ∨
  (a · x + c ≤ 0 ∧ ∃i, j ∈ {1, …, m}, r[i] ≠ r[j])
}

gₐ(x, r) is the agreement grief for input x and complete assignment r. r[i] and r[j] are its grades for aspects i and j, and m is the number of aspects. c is a correction to a · x. ∧ requires both conditions on its sides, and ∨ allows either branch. ∀ means the equality must hold for every pair, while ∃ requires at least one differing pair. As with aspect grief, approaching an open side of a boundary can give a limiting distance without an attained minimum.

Agreement grief distinguishes classes of assignments. All consensus assignments face the same agreement penalty on a given review. The same is true of all disagreement assignments. Within either class, the aspect penalties determine which grades fit best. If a review is predicted to show consensus, the classifier has supplied a preference for equality regardless of whether the shared grade should be high or low.

Choosing the assignment

The decoder adds the aspect penalties and the agreement penalty for each candidate. It chooses an assignment that minimizes this total. The sum gives near-boundary and far-from-boundary decisions different influence, even when the default ratings are identical.

H(x) = arg minᵣ∈Yᵐ [gₐ(x, r) + ∑ᵢ₌₁ᵐ gᵢ(x, r[i])]

H(x) is the predicted vector for review x. arg min returns an assignment r with the smallest cost, and Yᵐ is the set of assignments of grades to the m aspects. gₐ is the cost from the agreement classifier. The sum starts at aspect 1, ends at aspect m, and adds the cost gᵢ of choosing grade r[i] for each aspect.

When the default assignment and the agreement prediction concur, the defaults incur zero grief and the paper says to return them. If the defaults display disagreement while the classifier favors consensus, the defaults are already a cheapest candidate among the disagreeing vectors. Every vector in that class pays the same agreement cost, and the defaults pay zero in aspect grief. The meaningful competition is with the cheapest shared grade. There the classifier pays no grief, and the relevant cost is the sum of the changes required of the aspect rankers.

The reverse conflict has a related interpretation. If the defaults all agree while the classifier favors disagreement, the decoder can preserve them and incur agreement grief. To produce disagreement it needs a different rating for at least one aspect. A change fits the objective when its aspect cost is small enough compared with the cost of overruling the classifier. The other rankers can keep their defaults if one inexpensive departure suffices to make the assignment unequal.

This makes the confidence threshold depend on the review and on the rankers. The same agreement score can matter a great deal when the aspect scores bunch near grade boundaries and very little when changing the grades would require large corrections. Scaling the agreement weights alters this balance. It retains the comparison between the evidence for a relationship and the evidence for particular grades.

Training with the joint prediction

The agreement classifier is already available when the paper’s joint ranking procedure starts. The rankers begin with zero feature weights and zero internal boundaries, with the final endpoint set to infinity. On each training review the system computes the entire predicted vector before making the aspect updates for that example. It then compares the predicted vector with the consumer’s ratings entry by entry. A correct entry leaves that ranker’s parameters unchanged. A mistaken entry triggers updates using the PRank boundary rule.

The first part of that rule expresses a grade as a series of answers about boundaries. At a boundary indexed by a candidate grade, the true grade either falls at or below the index, or lies above it. The algorithm records a signed target for each internal boundary.

yᵗᵣ[i] = −1 if yᵗ[i] ≤ r, and 1 if yᵗ[i] > r

yᵗᵣ[i] is the signed training target for aspect i, boundary r, and review t. yᵗ[i] is the observed grade. The target −1 denotes the lower-grade side of the boundary question, including grade r, and 1 denotes the higher-grade side. The algorithm uses the internal boundaries from grade 1 through grade k−1.

The next part identifies which boundary updates are called for when the aspect rating is wrong. This is where the result of joint decoding enters the PRank update. The comparison uses the grade selected by the full system.

τᵗᵣ[i] = yᵗᵣ[i] if (ŷᵗ[i] − r)yᵗᵣ[i] ≤ 0, and 0 otherwise

τᵗᵣ[i] is the signed update for the indicated boundary, aspect, and example. ŷᵗ[i] is the aspect’s grade in the decoded vector. r identifies the boundary being considered, and yᵗᵣ[i] says which side is indicated by the reference grade. 0 means there is no update from that boundary. The test includes equality by using ≤ 0, and the procedure only enters this update for aspects whose decoded grades are incorrect.

wᵗ⁺¹[i] = wᵗ[i] + (∑ᵣ τᵗᵣ[i])xᵗ

wᵗ[i] is the current weight vector for aspect i at example t. wᵗ⁺¹[i] is its successor, xᵗ is the feature vector for that example, and ∑ᵣ adds the signed updates over the internal boundaries. This changes the feature weights in the direction indicated by the boundary corrections.

bᵗ⁺¹ᵣ[i] = bᵗᵣ[i] − τᵗᵣ[i]

bᵗᵣ[i] is the current position of internal boundary r for aspect i, and bᵗ⁺¹ᵣ[i] is its updated position. τᵗᵣ[i] is the correction just defined. The subtraction moves the boundary in the opposing direction to the signed weight adjustment for that boundary. After the sequence of training examples, prediction uses the learned ranker parameters with the fixed agreement weights.

The training scheme is joint through its decisions. Suppose the agreement preference changes the grade picked for an aspect. If the changed grade is correct, the actual joint prediction gives that ranker no error to update on. If the new grade is wrong, the update reflects the mistake the full system made. Separate PRank training has access only to the ranker’s own grade when deciding that question. These procedures can therefore produce different updates even when they start with the same review and reference ratings.

The agreement classifier is trained separately and remains fixed during these ranking updates. The development set is used to choose the agreement scale and the number of training iterations. This division matters for reproducing the method. Joint training here means that the rankers learn in response to the same decoded vector. It does not require the binary agreement classifier to be refitted after every ranking error.

Why the joint rule can express more

The theoretical argument asks which finite training sets the prediction rules can fit perfectly. Its first part starts with data that separate rankers already fit. When an agreement classifier also predicts the correct relation throughout the data, the defaults incur zero aspect grief and zero agreement grief. Thus the combined rule can preserve the correct output. The more interesting case is a classifier that sometimes favors the wrong relationship.

For this case, the paper considers the signed distance between a score from a perfect separate ranker and its grade boundaries. Multiplying by the appropriate signed target gives a non-negative margin for a score on the correct side. The smallest such distance is the amount of separation the argument can rely on across the training examples for the aspect under consideration.

γ = minᵣ,ₜ {(w*[i] · xᵗ − b*ᵣ[i])yᵗᵣ[i]}

γ is the minimum signed margin over boundary indices r and examples t for the aspect being considered. w*[i] and b*ᵣ[i] are the weights and boundary of a perfect separate ranker for aspect i, with * marking those parameters. xᵗ is the example’s feature vector and yᵗᵣ[i] is the signed boundary target. The subtraction gives the score’s signed distance from that boundary before multiplication by the target.

aᵗ = 1 if all grades in yᵗ are equal, and −1 otherwise

aᵗ is the reference agreement sign for training example t, while yᵗ is its observed vector of grades. This sign records the relation in the reference answer. It is distinct from a, the vector that the classifier uses to estimate that relation from the review.

β = maxₜ {|a · xᵗ| : (a · xᵗ)aᵗ < 0}

β is the largest magnitude of an agreement score among the training examples with a strictly wrong sign. maxₜ takes the maximum over those examples. a · xᵗ is the agreement score, and the product with the reference sign aᵗ is negative when the signs oppose each other. If the agreement score is zero, the penalty at the sign boundary has zero limiting magnitude.

When the agreement mistakes cost less than changing any default grade, the defaults survive joint decoding. The authors show how the ranker can achieve this by changing the scale of its parameters. Multiplying its scores and boundaries by the same positive factor preserves the grades and enlarges the distances used to penalize changes.

λ = β/γ + ε

λ names the scale factor in the construction. β is the agreement error magnitude, γ is the ranker’s minimum margin, and ε is a positive amount added to make the scaled margin exceed the competing penalty. This expression requires a positive γ. The argument uses a separation with positive distance from the relevant boundaries. The written division would be undefined for parameters whose minimum margin was zero.

(w*[i], b*[i]) → (λw*[i], λb*[i])

w*[i] is the ideal feature-weight vector and b*[i] is its vector of grade boundaries for aspect i. The arrow denotes rescaling both by λ. The positions of scores relative to boundaries are preserved, so the integer grades stay the same even though the grief associated with changing them grows.

This construction is an existence argument. It identifies parameters under which joint prediction can preserve what independent ranking achieves. It does not say that the online training updates will learn those parameters. The second part of the argument establishes strictness by presenting a small training set whose pattern of ratings requires a type of decision unavailable to the separate linear rankers.

The example uses food and ambience, grades on a scale of 1-2, and lexical indicators for praise, criticism, and a contrast cue. Each example says directly whether the food is favorable or unfavorable. The ambience either follows that judgment or reverses it, according to whether the review expresses agreement or contrast. When the food is praised, contrast must push the ambience prediction down. When the food is criticized, the same contrast cue must push the ambience prediction up.

A linear ambience score assigns the contrast feature a fixed weight. The paper shows that, for the favorable-food examples, separating the two ambience grades requires that weight to be negative. For the unfavorable-food examples, separating their ambience grades requires it to be positive. The contradiction comes from comparing examples in which the other input coordinates stay the same. A fixed additive contribution cannot change direction according to the food judgment.

An agreement-aware decoder can use the cue to favor unequal grades while leaving the direction of the change to the current aspect scores. The paper gives agreement weights (0, 0, −5) for the illustration. The contrast feature receives the negative weight, and without that feature the agreement score is on the zero boundary. Under the limiting-distance reading, that boundary contributes no penalty against a default consensus. The aspect rankers can start by following the food cue. With a sufficiently strong food preference, the decoder keeps the food grade and changes the ambience grade when contrast calls for unequal ratings. Moving the ambience grade then goes in whichever direction makes the output unequal. The argument shows how the relationship changes the shape of the joint decision, using the same lexical information available to the individual rankers.

Experiments and results

Reviews, ratings, and data splits

The authors test the method on restaurant reviews from we8there.com. The consumers who wrote the reviews also supplied the aspect ratings. Every review used in the study contains text and the complete set of scores for food, service, value, ambience, and overall experience. In the results table the paper calls ambience Atmosphere and shortens overall experience to Experience. The predictions are evaluated against these consumer scores.

The corpus has 4,488 reviews, with an average review length of 115 words. The authors randomly allocate 3,488 reviews to training, 500 to development, and 500 to testing. The training data supply the aspect labels and the derived agreement labels. The development data determine the number of training iterations for the compared systems and the scaling factor for agreement grief. The figures reported for the main comparison are from the test set. The paper also identifies a release of the data and code used in the study.

A complete rating vector is a more varied target than the popularity of the highest grade might suggest. The training split contains 528 distinct rating vectors. The all-highest assignment ⟨5, 5, 5, 5, 5⟩ accounts for 30.5% of training reviews, while every other individual assignment accounts for at most 5%. Covering 90% of the training occurrences requires 227 different vectors. That combination of a dominant answer and a long tail motivates scoring the grades as separate entries with a way to coordinate them. Learning a separate class for every complete rating vector would give the system many classes whose training support is limited.

Agreement also occurs frequently enough to be an informative target. In the training split, 38% of reviews have identical ratings across aspects. Consensus includes the often occurring highest-grade assignment, but the definition also covers equal ratings at the other grades. Across the separate aspect labels, the most common grade is 5 for every aspect. This gives the authors a simple baseline that predicts the highest grade at every position regardless of the review.

Measuring how far a prediction misses

The evaluation uses ranking loss, which gives an error a magnitude equal to the distance between its predicted grade and its reference grade. It averages those distances over test reviews and aspects. A system can improve this measure by making more predictions exactly correct or by bringing its incorrect predictions closer to what the reviewers recorded. Overshooting and undershooting by the same amount contribute equally.

ranking loss = ∑ₜ,ᵢ |yᵗ[i] − ŷᵗ[i]| / (mN)

t indexes the N test reviews, and i indexes the m aspects. yᵗ[i] is the observed grade for an aspect and ŷᵗ[i] is the predicted grade. The absolute value bars give the magnitude of the difference, and the sum ∑ₜ,ᵢ includes all review and aspect pairs. The product mN is the number of entries being averaged. For a result reported for a particular aspect, the average pertains to that aspect on the test reviews.

Ranking loss is informative for this task because the grades have a defined order. If all errors were counted alike, a prediction that just crosses a grade boundary would count the same as one that puts a judgment at the opposite end of the scale. The paper’s loss instead treats the ordered scale as a measure of how far the prediction is from the reference. Accordingly, an aggregate loss describes performance across aspect entries. It does not directly give the fraction of reviews for which the entire predicted vector is correct.

The learned baselines distinguish independent from shared scoring. PRank trains a separate ranker for each aspect. SIM adapts the similarity-weighted approach, giving scores access to weights from other aspects. The majority baseline relies on the most frequent value of each rating. Together these comparisons put the same rating task under a fixed guess, separate lexical prediction, and similarity-based coordination.

The other settings isolate parts of Good Grief. GG Decode uses independently trained rankers and applies the agreement-based decision at test time. GG Train + Decode uses the joint decision during ranking training as well as at test time. GG Oracle supplies the correct agreement label during both training and decoding. That last setting has access to a property of the reference ratings, so it serves as a diagnostic for the value of knowing that property.

Overall loss on held-out reviews

Overall ranking loss on the we8there.com restaurant review test set

Good Grief with joint training improves on every deployable comparison, and access to true agreement lowers loss further.

Overall ranking loss on the we8there.com restaurant review test setMajority: 1.001Majority1.001PRank: 0.675PRank0.675SIM: 0.663SIM0.663GG Decode: 0.656GG Decode0.656GG Train + Decode (this paper): 0.632GG Train + Decode (this paper)0.632GG Oracle: 0.595GG Oracle0.595
The numbers
System or settingRanking loss
Majority1.001
PRank0.675
SIM0.663
GG Decode0.656
GG Train + Decode (this paper)0.632
GG Oracle0.595

The full Good Grief procedure improves on the independent rankers and on the baseline that shares feature scores. The authors report p < 0.002 for each comparison with PRank and SIM under a Fisher Sign Test. They also report p < 0.05 for the comparison with the decoding-only variant. These are results for the overall ranking comparison. The tests address whether the observed improvement is consistent enough across the evaluated examples to distinguish the systems under the authors’ chosen procedure.

The comparison with SIM matters because that baseline already lets related aspects influence each other. Good Grief’s improvement therefore comes in a setting where sharing learned evidence is an available alternative. The decoding-only comparison asks a narrower question about the joint procedure itself. The result favors letting the rankers learn under the same decision rule that will determine their outputs at test time.

The paper also plots ranking loss across training rounds. It reports that the full procedure’s advantage over the baselines persists across the rounds shown. This complements the development-set selection of training duration. The comparison at the selected setting describes the reported test differences, while the curves show that the ordering observed by the authors is visible during the course of training as well.

Results for the individual ratings

The authors report a lower loss for the full system than for both learned baselines on each of the restaurant aspects. The loss levels vary considerably by aspect. The table below gives the test results for the baselines and Good Grief’s two learned settings, without averaging the aspects into a single score.

AspectPRankSIMGG DecodeGG Train + Decode
Food0.6060.5620.5440.534
Service0.6760.6480.6480.622
Value0.7000.7060.7040.644
Atmosphere0.7760.7980.7980.774
Experience0.6180.6000.5840.584

Looking within these results clarifies the source of some of the systematic differences. For food, the loss declines across the reported sequence from separate ranking to similarity-based scoring to the two Good Grief settings. Service has the same loss under SIM and test-time Good Grief, then improves with joint training. For value, SIM and the decoding-only setting are both above PRank, while the jointly trained system records the lowest loss among these settings. Joint training also brings the atmosphere result below the independent baseline, after the other shared procedures yield higher loss. For experience, the two learned Good Grief settings record the same loss.

The majority loss offers a different kind of comparison. A fixed guess can exploit the frequency of the top rating, but the authors report higher test loss for that strategy on all of the aspect rows. Learning from the review text is already valuable before the system uses agreement. The full experiment asks how much further performance can improve when the individual pieces of lexical evidence are interpreted together. The split by reference agreement is where the authors investigate that question more directly.

What the ablations show

Joint training and test-time coordination

The decoding-only setting changes the decision at test time while leaving the ranking training independent. It gives the agreement classifier and the grief comparison a chance to change the output. The full procedure changes which prediction is used to update each ranker during training. The improvement from the first setting to the second supports the authors’ contention that training under the joint decision matters. A ranker learns to correct errors it can actually cause or inherit after the combination has been applied.

The aspect results show that this intervention acts unevenly. For experience, the reported loss is unchanged between the two variants. For value, the improvement associated with joint training is visible where test-time decoding by itself had produced a result above the independent PRank baseline. Service and atmosphere also distinguish the two training settings. The overall gain therefore reflects what happens on multiple aspect decisions with different tendencies to benefit from the final combination.

These comparisons test the procedure at the level of training and decoding. The experimental design gives less detail about which features account for the agreement signal. In particular, the paper does not present a test result with only the contrastive word-pair feature removed, nor does it offer a factorial comparison of similarity sharing, feature choice, and agreement scaling. The reported variants show which complete configurations do better and support the importance of joint training. They leave feature-level attribution open.

Where knowing agreement makes the largest difference

The authors divide the test set by the recorded ratings. There are 210 reviews with complete consensus and 290 with some difference among their ratings. Membership in these groups comes from the reference answers. It is used to analyze the results after prediction. The ordinary Good Grief system must infer the agreement relation from the review.

Ranking loss on consensus reviews in the we8there.com test set

Joint training and decoding reduce loss among reviews with equal reference ratings, and the agreement oracle improves further.

Ranking loss on consensus reviews in the we8there.com test setPRank: 0.414PRank0.414GG Train + Decode (this paper): 0.324GG Train + Decode (this paper)0.324GG Oracle: 0.281GG Oracle0.281
The numbers
System or settingRanking loss
PRank0.414
GG Train + Decode (this paper)0.324
GG Oracle0.281

On non-consensus reviews, PRank has a ranking loss of 0.864, the full learned procedure has 0.854, and GG Oracle has 0.830. The authors describe the full learned system’s improvement over PRank as a relative loss reduction of 21.8% in the consensus group and 1.1% in the non-consensus group. Both reference groups improve in the aggregate, with a much larger relative improvement for the group whose ratings are equal.

The explanation lies in what the relation rules out. A correct decision for consensus leaves five possible assignments on this scale. Each consists of repeating one grade across the entire vector. The decoder can combine evidence from the rankers to choose which shared grade is most plausible. An uncertain ranker can be pulled toward that grade when the other evidence favors it and its own objection is small.

A correct decision for disagreement excludes the all-equal vectors. Many other assignments still satisfy the decision, and nothing in the binary label specifies the outlying aspect or the appropriate grade. Even with the right information, the joint procedure must rely heavily on the rankers to choose among the remaining candidates. This is why giving it the true relation improves performance without resolving the harder choices involving distinct judgments.

The oracle comparison helps separate errors about the relationship from limits in what the relationship can express. The paper reports that most of the gain from access to true agreement comes from consensus reviews. Agreement mistakes are therefore a source of lost performance, especially where a correct decision would narrow the options substantially. The remaining loss for the non-consensus group is compatible with the authors’ account of weak constraints in that group. The oracle knows a property shared by many answers.

The oracle changes the agreement information in both training and decoding. Its result shows what happens when this experimental procedure has that information throughout. It does not isolate the gain from correcting test-time agreement alone. The aspect breakdown also shows that the oracle’s stronger aggregate does not imply lower loss everywhere. On value, the oracle records 0.674 on the test set, while the learned system records 0.644. This is an empirical comparison between trained procedures. Knowing the answer to the agreement question does not guarantee that every aspect’s aggregate prediction error will decline under the resulting updates.

When the agreement prediction is dependable

The agreement classifier by itself achieves 67% accuracy on the test set, compared with 58% for its majority baseline. This is a separate measurement from ranking loss. Agreement accuracy counts how often the binary relation is correctly predicted. It does not reflect how close the assigned grades are or how useful a correct relation is to the final combination.

The authors also order the test examples by the absolute agreement score. In the 10% with the highest confidence, the classifier has 90% accuracy. Across the highest-confidence third of the test data, it has 80% accuracy. These are results on selected groups, identified using the classifier’s score magnitude. They show that confidence contains information about the reliability of the agreement prediction, even though the overall accuracy includes the lower-confidence cases as well.

That pattern fits the weighting built into the grief comparison. When the classifier strongly favors a relation, the penalty for overruling it can justify changing a grade whose ranker is uncertain. A classifier decision near the sign boundary is cheap to overrule. The paper points out that what counts as low confidence depends on the scale chosen for agreement grief and on the costs of changing the aspect ratings for that review. The confidence analysis supports this use of relative strength. It does not establish that the score magnitude is a probability or that confidence alone determines which grades change.

Limitations

Limits identified by the authors

The authors use a single relation between the ratings. The decision says that every grade is equal or that at least one pair differs. Their analysis identifies the main practical restriction. Disagreement prunes too few of the available assignments to give the rankers strong guidance. Even perfect recognition of disagreement leaves the system unable to tell, from that relation alone, which judgments contrast or which aspect the reviewer preferred.

The authors propose studying additional rhetorical relations between aspects. The proposal follows directly from the differing usefulness of the two outcomes. A relation that distinguishes among kinds of disagreement could affect which unequal assignments remain plausible. The study tests only the complete-agreement distinction, so the effects of these other relations remain a question for later work.

The authors also identify theoretical analysis of convergence as future work. Their expressivity argument concerns the existence of parameter settings that yield correct assignments. The training-round comparison reports observed behavior on the restaurant corpus. Those results address different questions from whether the joint perceptron updates are guaranteed to converge under stated conditions.

Limits visible in the setup

The experiments come from one review site with a fixed set of restaurant aspects, the same grade scale for all aspects, and complete consumer ratings for every review. A system trained and evaluated in this setting can expect all the output positions to apply to every input. The evidence does not establish how the procedure would work with absent grades, reviews that concern a different set of aspects, or a domain where equality is rarer or expressed differently. Its improvement is measured under a random division of this corpus.

The reference grades tell the system what each writer recorded. They do not identify the sentences that support an aspect rating or say whether that rating can be recovered from the prose alone. For instance, a consumer can provide a rating for value while spending the review on food and service. Agreement can help predict the missing judgment from the other ratings’ evidence, but the experiment has no separate annotation of where that judgment was expressed. Ranking loss therefore measures reproduction of the recorded grades. It cannot distinguish evidence in an explicit opinion from a prediction made through patterns across ratings.

The extra contrast feature looks at word pairs through learned associations with ratings. Unigrams and bigrams provide additional lexical cues. These inputs support a classifier for the recorded relation without furnishing an analysis of which expressions refer to which aspects. The example in the proof shows how a contrast cue can affect a rating through the joint decision. The experiments do not measure whether the classifier identifies the intended scope of contrast in individual reviews.

The observed grade distribution shapes the losses. The highest grade is common for each aspect, and the all-highest tuple is common in training. The consensus analysis pools all shared grades. It therefore does not establish how much of the consensus benefit is available for each grade or whether similar gains would hold in a corpus with a different distribution of shared ratings. Furthermore, a change in average ranking loss does not reveal how often the complete tuple becomes exactly correct. The same measure can reflect a broadly distributed improvement or larger corrections on a smaller group of entries.

There are also details to resolve if the objective is taken literally at score boundaries. The aspect rule uses half-open intervals, and agreement uses a strict inequality on its positive side. The smallest correction in the equations may therefore exist only as a limiting distance. Equal neighboring boundaries can yield an empty grade interval. With limiting distances, a score on an endpoint can assign zero grief to a departure from the default. The paper provides a default selection rule for the aspect rankers and describes returning their defaults when the components concur. It gives no general convention for choosing among equal-cost joint assignments. These details matter for a precise implementation, especially since the internal grade boundaries are initialized at the same value.

The theoretical comparison uses separate linear rankers with thresholds as its reference class. The constructed contrast pattern demonstrates an advantage over that class. A different choice of feature representation or a ranker that can directly express interactions changes the comparison. The proof establishes what the agreement decision adds relative to the stated independent rules. It does not establish that equality is the only way to express that pattern or predict which unseen examples will benefit.

What came after

Predicting sentiment about aspects and summarizing reviews

Later papers that cite Good Grief include work that retains separate aspects of an opinion and work that studies how smaller pieces of text combine into a sentiment judgment. Their titles identify the problems they pursue. A citation establishes a connection to this paper. The particular use of its decoder, training rule, or restaurant data cannot be inferred from those titles.

A study from 2008 jointly treats text and aspect ratings for sentiment summarization. Its subject overlaps directly with this paper’s choice to treat a review and its aspect scores together. Good Grief uses the text to predict a vector of grades and gives their equality a dedicated role in the decision. The later study names summarization as the purpose of jointly handling text and ratings, extending the question from which grades to assign to how aspect-specific opinion can be represented in a summary. Text and Aspect Ratings for Sentiment Summarization

Work from 2010 addresses aspects and sentiment in online reviews through an unsupervised approach. The relevant difference is how aspect-level information enters the task. The restaurant experiment begins with named aspects and consumer scores available for all of them. The later work’s title places unsupervised analysis at the center of aspect sentiment. The common question is how to handle distinct opinions within a review, while the learning setup identified in the later paper differs from the supervision used for the Good Grief rankers. Unsupervised Aspect Sentiment for Online Reviews

A 2014 study brings discourse structure to abstractive summarization of product reviews. Its output is a summary, and its organizing subject is the structure of the review discourse. In Good Grief, the relation of interest affects which combination of ratings is chosen. In the later paper’s stated problem, discourse information bears on the production of a textual account of the reviews. The connection is in treating relationships among evaluations as relevant to the final output. Abstractive Summarization of Product Reviews

Understanding sentiment in context

A 2011 paper takes up the unsupervised discovery of discourse relations for resolving ambiguity in polarity within a sentence. Its question is closer to Good Grief’s motivation for using contrast. How evaluative language is connected can affect the sentiment that should be assigned. The scale of the decision differs. Good Grief predicts a relation among the grades for a whole review, while the later paper’s stated target is ambiguity inside a sentence. Discourse Relations and Intra-sentence Polarity

Another 2011 study focuses on learning word vectors for sentiment analysis. That identifies representation of words as its focus. Good Grief uses lexical features with aspect-specific weights and addresses coordination among the resulting grade predictions. The later paper takes up the question of how to learn representations suited to sentiment analysis. This is a different point in the prediction procedure at which the treatment of evaluative language can change. Learning Word Vectors for Sentiment Analysis

A further 2011 paper studies prediction of sentiment distributions using semisupervised recursive autoencoders. Its stated output is a distribution, and its approach uses recursive structure. The Good Grief output has several entries because a review is rated on several aspects. A distribution and a vector of aspect ratings give their entries different meanings. The connection between the tasks is that both ask for a more structured prediction than a single polarity category. Recursive Autoencoders for Sentiment Distributions

In 2013, work on semantic compositionality over a sentiment treebank addresses how sentiment relates to the arrangement of smaller expressions. Its subject is the composition of meaning, whereas the Good Grief agreement signal operates over predicted judgments about named aspects. The citation connects two ways of asking how evaluations depend on their context. The earlier paper looks at whether judgments in a review should match. The later paper makes the composition of sentiment in structured text the subject of study. Semantic Compositionality Over a Sentiment Treebank

The 2017 work on evaluative language beyond bags of words places linguistic analysis alongside computational applications. Good Grief makes for a specific connection to that subject. Its inputs are largely lexical, while its output decision can depend on a relationship among the judgments those features support. This is different from recovering discourse structure directly, but it makes clear where relational information enters the prediction. Across these later works, the questions span how evaluations are represented, how they combine in text, and how they should be expressed in a summary. Good Grief’s particular contribution to that discussion is a test of what can be gained by representing one relation among the ratings themselves. Evaluative Language Beyond Bags of Words

Cite

Cite as Benjamin Snyder and Regina Barzilay. 2007. Multiple Aspect Ranking Using the Good Grief Algorithm. Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference.

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

@inproceedings{snyder2007multiple,
  title = {{Multiple Aspect Ranking Using the Good Grief Algorithm}},
  author = {Benjamin Snyder and Regina Barzilay},
  booktitle = {Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference},
  year = {2007},
  url = {https://aclanthology.org/N07-1038/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/snyder-2007-multiple-aspect-ranking-good-grief/