Incorporating Content Structure into Text Analysis Applications
Paper · 2010 · Christina Sauper, Aria Haghighi and Regina Barzilay
Summary
A DVD reviewer can praise a presentation without saying in the same sentence whether the praise concerns the picture or the sound. A reader can usually tell from what the reviewer was discussing a moment earlier. Sauper and colleagues ask how an automated system can use that kind of context when rating individual product features or extracting phrases for a review summary. Their proposal is to learn a representation of what successive parts of a document discuss and let the prediction task influence what that representation learns.
The method assigns a hidden topic to each sentence or paragraph. The words in a passage and the topics of neighboring passages help determine its likely topic. The prediction component can then use ordinary wording features alongside versions of those features that indicate the topic in which the wording occurs. During training, the influence also runs in the other direction. The observed task labels make some interpretations of a passage more plausible than others. Reviews without task labels contribute evidence about vocabulary and the order in which topics appear. The same framework thus uses annotated examples to learn what to predict and raw reviews to learn how documents are organized.
The authors test the approach on DVD reviews with numerical ratings for different aspects, and on Amazon television reviews and Yelp restaurant reviews with phrases labeled by aspect. On the DVD test set, the mean squared rating error falls from 3.15 with ordinary task features to 2.80 with independently learned structure and 2.65 with joint training. The system supplied with the reviewers’ own section structure reaches 2.48. For phrase extraction with aspect labels, the jointly trained system reaches 28.2% F1 on Amazon, compared with 18.9% without content features, and 39.2% F1 on Yelp, compared with 28.8% without them. The gains have different sources. On Yelp, the last step from independent to joint training improves precision with the reported recall unchanged. On Amazon, that step improves recall while the reported precision falls.
The experiments also examine how the method responds to more raw reviews and fewer annotated examples. On Amazon, adding raw text improves the summarizer when the labeled set is held fixed. In a separate comparison with a smaller labeled training set, the authors report that adding 12.5% of the unlabeled data achieves a performance gain comparable to doubling the labeled data in that experiment. The results show how a task can benefit from document structure without requiring people to label that structure separately, while the DVD comparison shows that the quality of the structural information still matters.
Deep dive: Incorporating Content Structure into Text Analysis Applications
This paper shows how learning the structure of reviews can improve predictions of aspect ratings and help extract phrases about specific aspects. · about 35 minutes to read
The problem and its context
Assigning an observation to the right aspect
An aspect is a particular dimension the application is meant to track. A DVD review can discuss the film, the picture, the sound, and the extras. A restaurant review can discuss the food, the price, the atmosphere, and the service. In each case, the application already knows which dimensions it should report on. What it has to work out is where the text supplies evidence about them and what to do with that evidence.
The paper’s DVD example illustrates the distinction between recognizing approval and assigning that approval to the right aspect. A sentence expressing satisfaction with the presentation sounds favorable on its own. Its target is harder to identify. The surrounding discussion of bass and sound supplies the missing connection. If the preceding discussion concerned picture quality, much the same expression of satisfaction could support an entirely different rating. The local words give evidence about the direction of the judgment. The larger passage gives evidence about what is being judged.
The phrase extraction problem adds another decision. The system must identify the useful stretch of text and say which aspect it belongs to. In a television review, a description of something as easy to read could concern the remote or the menu. Words elsewhere in the sentence sometimes settle the question. In other cases, the reviewer has already established the subject and sees no reason to repeat it. A useful extractor must be able to carry that subject forward while still locating the relevant words precisely. These are related problems in sentiment analysis and text summarization.
A summary in this study is extractive. It selects wording that appears in the review, with an aspect attached to each selection. That makes the task narrower than writing a new account of what the reviewer thought and broader than looking up a fixed field in a form. For example, a restaurant reviewer can convey good value by discussing price, portion size, or what a meal was worth. The relevant text can take many forms. The application needs evidence about the aspect as well as a way to identify informative wording. The paper places this task at the intersection of summarization and information extraction.
This leads to a question about what document structure should represent. The paper points out that a distinction between subjective and objective language can help when the goal is to assess the opinion expressed by an entire review. In that setting, a sentence that merely describes a product may deserve less attention than one that evaluates it. But when the output is a separate rating for each aspect, establishing that a sentence is subjective still leaves the problem of assigning its opinion. A representation useful for the latter task needs to supply some indication of the subject under discussion. The authors take the choice of structural information to depend on the prediction the application has to make.
How earlier work used context
As the authors describe it, research on sentence ordering, extraction-based summarization, and segmentation had already given document content a central role. A sentence-ordering system needs evidence about which subjects tend to follow which others. A segmenter needs evidence that one stretch of text is about something different from the next. Work on coherence also considered context at both local and global scales. These earlier uses explain the choice to represent a document through a sequence of recurring subjects. The new question is whether such a sequence can help a task whose output consists of ratings or token labels. The immediate structural antecedent is Catching the Drift.
The paper also describes earlier applications in which context indicated whether a sentence was worth passing to a downstream component. Pang and Lee used an independent classifier to identify subjective sentences for sentiment analysis. Patwardhan and Riloff restricted extraction to sentences judged relevant to an event. In both cases, identifying likely evidence helps focus the eventual prediction. This study asks the structural representation to do more than admit or filter a sentence. A passage can be relevant in several different ways, depending on which aspect is likely to be under discussion. The subjectivity approach appears in A Sentimental Education.
A different line of sentiment research used intermediate polarity information. In the paper’s account, Choi and Cardie used word-level intermediate variables in a heuristic polarity decision. Somasundaran and colleagues used a bootstrapped local classifier to identify sentence polarity. McDonald and colleagues connected sentiment at the document, paragraph, and sentence levels, with training labels available at those levels. These examples show several ways of adding intermediate evidence between words and a final sentiment decision. Sauper and colleagues make the structural variables hidden and judge their value through the application’s predictions. The related work on sentence polarity and discourse is Supervised and Unsupervised Methods in Employing Discourse Relations for Improving Opinion Polarity Classification.
The authors also discuss supervised topic modeling, where latent topics help account for both the text and a document rating. Their own framework draws a different boundary between the components. The document component assigns probabilities to the text and its possible topic sequences. The task component takes that text as input and can score a prediction using a variety of features computed from it. That arrangement leaves room for features used by existing task systems, while giving a topic-dependent version of each feature a way to affect the output. The connection is through the hidden topic assignments. It does not require the rating and the words to be generated by the same set of parameters.
The practical consequence concerns what has to be annotated. The paper assumes supervised examples for the application: aspect ratings for the DVD reviews or token labels for the summaries. A second set of annotations saying which topic each sentence or paragraph belongs to would require a separate labeling effort and a separate decision about what the labels should be. Instead, the authors use recurring patterns in raw text and allow the observed task labels to guide the choice among plausible topic assignments. This is the point at which the earlier approaches to document organization and supervised prediction come together.
The method, step by step
From review text to possible readings
Start with the extraction task. Its input is a review divided into sentences. The output assigns a task label to every token, including an ordinary background label for words outside the desired phrases. A sentence about a restaurant, for example, may contain a phrase about service, a phrase about atmosphere, and words outside either selection. Alongside these token labels, the authors introduce another variable: a topic for the sentence as a whole. That topic helps account for why the words appear together and gives the extractor a cue about the sentence’s context.
The two kinds of labels serve different purposes. The token labels are the answers that a person annotates and the system ultimately predicts. The topic is an internal description of the sentence inferred from the document. It can favor one interpretation of the text while leaving room for differently labeled phrases in that sentence. A sentence about how a restaurant visit went might supply evidence for both food and service. Assigning the whole sentence a topic does not force any of its individual words to take a particular aspect label.
The authors represent the topic sequence with a hidden Markov model, or HMM. In this setup, a hidden topic makes some words more probable than others, and the topic of one sentence affects which topics are probable in the next. That gives the system two sources of evidence about an ambiguous sentence. Its own vocabulary may point in a particular direction, and nearby sentences can make a continuation or a change of topic plausible. Even though the transition rule is local, using it throughout a document allows evidence elsewhere in the sequence to affect the interpretation of a sentence.
The phrase extractor is a conditional random field, or CRF. It scores alternative sequences of token labels after it has seen the words. It uses features of individual labels in context and features of transitions between adjacent labels. The topic enters the features used to score individual token labels. As a result, wording that offers modest evidence for an aspect by itself can offer stronger evidence in a particular topic. The same lexical cue can participate in several such features with different learned weights.
During training, the authors alternate between estimating the probable topics and adjusting the parameters. A sentence whose vocabulary is compatible with several topics can be assigned more weight under the topic that also makes its annotated phrase labels probable. An unannotated sentence contributes evidence about topics from its words and its position in the sequence. At prediction time, there are no observed task labels, so the possible topics are weighted using the document alone. The summary decoder then uses the resulting token-label probabilities to choose an extraction.
Learning document structure and using it for extraction
The steps in order.
The document component
The content component uses a fixed, prespecified number of topics. Its probability for a document and a particular topic sequence takes the following form.
Pθ(s, T) = ∏ᵢ [Pθ(Tᵢ | Tᵢ₋₁) ∏_{w∈sᵢ} Pθ(w | Tᵢ)]
Here Pθ is probability under the content parameters θ. The document is s, and T is its entire topic sequence. The index i runs over the n sentences, with sᵢ the sentence at position i and Tᵢ its topic. The conditional probability Pθ(Tᵢ | Tᵢ₋₁) gives the transition from the preceding topic, with the first position governed by the start of the sequence. The inner product multiplies the probability Pθ(w | Tᵢ) for each word occurrence w in sᵢ. The outer product multiplies the resulting contributions across the document.
There are two assumptions in this expression. The transition at any position depends on the immediately preceding topic. And, for the purpose of this component, the probability of a sentence given its topic is a product over its words. The sentence contributes word counts and lexical evidence, while the order that the content component explicitly represents is the order of sentences and their topics. Word order can still matter to the task component through its observations and its token-label chain.
The word distributions also allow for a vocabulary shared across topics. Each topic’s distribution interpolates between its own word distribution and a common background distribution. The authors use that background to account for words that recur throughout the domain. A word can occur frequently in reviews without helping distinguish, for instance, discussion of the menu from discussion of the remote. Giving those common uses a shared source makes it possible to reserve topic-specific probabilities for words that better distinguish what is being discussed.
That distinction supplies a task feature as well. The authors include an indicator for whether a word is more likely to have come from the topic-specific distribution or from the background. More generally, they retain the original features and add a version of each one paired with the current topic. If a cue is useful in many contexts, the original feature can capture its general predictive value. The paired versions let the learner adjust its contribution in particular contexts.
The task component for extraction
Given the text and the entire topic sequence, the task component factors into a separate CRF for each sentence.
Pφ(y | s, T) = ∏ᵢ Pφ(yᵢ | sᵢ, Tᵢ)
Here Pφ is probability under task parameters φ, and y is the collection of token-label sequences for the document. The sequence yᵢ contains all the token labels in sentence sᵢ, and Tᵢ is the corresponding sentence topic. The product runs over sentence positions i. Once the topics and text are given, each factor scores the labels of its own sentence. The document still has a route to influence those decisions because the topic assigned to any sentence depends on evidence from the document’s topic chain.
Within a sentence, the CRF gives a label sequence a score from its token features and adjacent-label features.
Pφ(y | s, T) ∝ exp{∑ⱼ φᵀ[f_N(yⱼ, s, T) + f_E(yⱼ, yⱼ₊₁)]}
In this expression s, T, and y refer to a single sentence, its topic, and its label sequence. The index j ranges over token positions, yⱼ is the label at position j, and yⱼ₊₁ is the next label in the chain. The function f_N returns features of a label given the observed sentence and topic. The function f_E returns features of adjacent labels. In φᵀ, the superscript marks the transpose of the weight vector so that it can be paired with the feature vector. The sum adds the contributions along the sentence, and exp exponentiates that score. The proportionality sign indicates that the expression is normalized over possible label sequences for the given sentence and topic.
A node feature can reward an aspect label when a particular lexical cue appears in a suitable topic. An edge feature instead depends on the neighboring labels, so that a prediction can take account of how phrase labels tend to follow one another. The distinction matters because a likely sentence topic by itself cannot tell the extractor where a useful phrase starts or ends. The CRF still has to use the words and the label sequence to make that decision.
The complete probability for a labeled training document combines the document and task components.
P(T, s, y*) = Pθ(T, s) Pφ(y* | s, T)
Here P denotes the combined distribution. The asterisk in y* indicates the observed task labels, s is the text, and T is a possible assignment of topics to the document. The first factor scores the words and that assignment under the content parameters θ. The second scores the correct labels given the text and assignment under the task parameters φ. A sequence of topics receives strong support in training when it accounts for both the words and the annotated output.
Estimating the hidden topics and updating the parameters
The training data do not tell the algorithm which topic sequence to use. The labeled-data objective therefore sums the joint probability over possible assignments before taking the logarithm.
L_L(φ, θ) = ∑_{(s,y*)∈D_L} log[∑_T Pθ(s, T) Pφ(y* | s, T)]
The symbol L_L denotes the labeled-data log likelihood. The set D_L contains labeled reviews as pairs of text s and observed labels y*. The outer sum runs over those examples. The inner sum runs over possible document topic sequences T, using content parameters θ and task parameters φ. The logarithm applies to the probability of the observed pair after the unobserved topic sequences have been summed out.
The authors optimize the objective using expectation maximization, or EM. In its expectation step, the current parameters determine a probability distribution over the hidden topics. The maximization step then uses that distribution to update the parameters. Keeping probabilities over competing topics is useful when a passage is ambiguous. A sentence can contribute evidence to several topics in proportion to how plausible each one is, and the proportions can change on subsequent passes as the parameters change.
For a labeled extraction example, the authors exploit the fact that both the HMM word probabilities and the CRF label probabilities can contribute a separate term at each sentence position. Rearranging the joint probability gives the chain form used in the expectation step.
P(T, s, y*) = ∏ᵢ [Pθ(Tᵢ | Tᵢ₋₁) (∏_{w∈sᵢ} Pθ(w | Tᵢ)) Pφ(yᵢ* | sᵢ, Tᵢ)]
Here i indexes the sentences of text s, T is the full topic sequence, and Tᵢ and Tᵢ₋₁ are the current and previous topics. The first term is a topic transition under θ. Each word occurrence w in sᵢ contributes its probability under the current topic. The last factor is the probability of the observed token labels yᵢ* for that sentence, under task weights φ. Multiplying these terms gives the joint probability P of the full assignment and observations.
The label factor acts as another piece of evidence at the same position as the words. For a sentence where the text alone leaves several plausible topics, a topic receives additional support if the local CRF assigns high probability to the observed labeling. Because this extra term attaches to one sentence at a time, the authors can use Forward–Backward on the document chain. The algorithm combines evidence coming from earlier and later positions and produces the posterior probabilities needed for topic assignments and transitions. There is no need to list every complete topic sequence for this task.
The maximization step has a content update and a task update. The content update uses expected counts. An uncertain topic contributes a fraction of a word count to that topic, and an uncertain transition contributes according to its probability. This is the same kind of update the HMM would use by itself. The difference is where the counts come from. On labeled documents, the task evidence has already influenced the topic probabilities from which the counts are obtained.
The task update maximizes the expected sentence-label log likelihood. Written so that the document evidence in the expectation step is explicit, the contribution of a labeled document is as follows.
E_{T | s,y*}[log Pφ(y* | s, T)] = ∑ᵢ ∑_{k=1}^K P(Tᵢ = k | s, y*) log Pφ(yᵢ* | sᵢ, Tᵢ = k)
Here E means an expectation under the topic posterior from the expectation step, and T is the document topic sequence. The sentence index is i. The inner sum takes each topic index k from the first topic to K, the fixed number of topics. P(Tᵢ = k | s, y*) is the posterior weight for assigning topic k to sentence i after seeing the training text and labels. The logarithm scores the observed labels yᵢ* in sentence sᵢ under that assignment and task weights φ. The posterior weights are held fixed while the task weights are updated.
This update can be read as training on several topic-conditioned versions of each sentence. All versions have the same observed output. They differ in which topic-dependent features are active and how much weight the sentence receives in that version. A topic that carries almost all the posterior probability contributes most of the training signal for the sentence. When the evidence is divided, several versions affect the task weights. The authors use LBFGS, a gradient-based optimizer, for this update. The full learning problem can depend on the latent assignments that emerge during training.
Raw reviews enter through a likelihood term for the content component.
L_U(θ) = ∑_{s∈D_U} log Pθ(s) = ∑_{s∈D_U} log[∑_T Pθ(s, T)]
Here L_U is the unlabeled-data log likelihood, D_U is the set of text-only reviews, and s is an individual review. Pθ(s) is its probability under content parameters θ, obtained by summing the joint probability Pθ(s, T) over every possible topic sequence T. The outer sums accumulate the log probabilities across the raw reviews. There is no task-label factor in this term because those labels are unobserved.
The full objective combines the sources of evidence.
L(φ, θ) = L_U(θ) + L_L(φ, θ)
Here L is the total training objective. L_U depends on the content parameters θ. L_L depends on both θ and the task parameters φ. The raw reviews improve the estimates used to interpret content. They influence the task through those estimates, while the supervised task update still uses documents with observed task labels.
This distinction explains why a raw review can help without being assigned guessed aspect labels. Its words and topic transitions enter the normal content calculation. The content component also sees the text of the labeled examples, so even an experiment with no additional raw reviews has text available for learning topic structure. As described in the corpus setup, the two components draw on different amounts of supervision. The paper also announces a release of the implementation and processed data.
Turning probabilities into extracted phrases
At test time, the system has the words and must predict the labels. For each token, it averages the CRF’s topic-conditioned label probabilities using the probabilities of the topics given the observed document. The paper writes the marginalization in the following form.
P(yⱼ | s) = ∑_T P(yⱼ, T | s) = ∑_T Pθ(T | s) Pφ(yⱼ | s, T)
Here yⱼ is a candidate label at token position j and s stands for the observed text. T ranges over the topic assignments being marginalized, and P is probability under the combined system. Pθ(T | s) assigns weight to an interpretation of the content using θ. Pφ(yⱼ | s, T) is the token-label probability under task weights φ for that interpretation. Since the sentence CRF only uses its own topic, the computation for an individual token can use the document posterior for that sentence’s topic and the corresponding CRF token marginals.
The decoder bases its decision on a loss, which measures how costly an output would be if a particular true labeling were assumed. The loss of a sequence is the sum of its token losses.
L(y, ŷ) = ∑ⱼ L(yⱼ, ŷⱼ)
Here y is a possible true label sequence and ŷ is a proposed prediction. The sum runs over token positions j. The term on the right is the loss of predicting ŷⱼ when the true label is yⱼ. In this decoding context, L means prediction loss, distinct from the training objectives.
The paper uses an asymmetric loss because missing a relevant token and assigning a token the wrong label have different consequences for its extraction task.
L(yⱼ, ŷⱼ) = { 0 if ŷⱼ = yⱼ
{ c if yⱼ ≠ NONE and ŷⱼ = NONE
{ 1 otherwise
The symbol NONE represents tokens outside phrases of interest. A correct label incurs 0 loss. If a relevant token is assigned NONE, the loss is c, a chosen penalty for omitting it. Every other incorrect prediction incurs 1 loss, including extracting a background token or assigning a relevant token to the wrong aspect. The authors set c to 4 for Yelp and 5 for Amazon to encourage more coverage from predictors they describe as tending towards high precision.
The decoder selects the prediction with the lowest expected loss.
ŷ = arg min_{ỹ} E_{y | s}[L(y, ỹ)] = arg min_{ỹ} ∑ⱼ E_{yⱼ | s}[L(yⱼ, ỹⱼ)]
Here ỹ is a candidate sequence and ỹⱼ its label at position j. The notation arg min returns the sequence that minimizes the expression. E is expectation over possible true labels after observing s, L is the decoding loss, and ŷ is the selected sequence. The equality follows from the additive loss, which lets the decoder compute expected costs using the marginal label probabilities at each position.
For a fixed prediction at one position, the expected loss is explicit.
E_{yⱼ | s}[L(yⱼ, ỹⱼ)] = ∑_{yⱼ} P(yⱼ | s) L(yⱼ, ỹⱼ)
The sum ranges over possible true labels yⱼ for position j. Each term is the posterior probability P(yⱼ | s) after seeing text s times the loss of predicting ỹⱼ in that case. The authors use the negative of these expected losses as decoding scores. They run Viterbi, a dynamic procedure that finds the highest-scoring label sequence along the chain, so a high score corresponds to low expected loss. This criterion rewards a prediction that fares well across plausible true labels, based on the stated costs of different errors.
Adapting the framework to ratings
For DVD reviews, the structural variable is a topic for each paragraph, and the output is a rating for each aspect of the product. Instead of a sentence CRF, the task component uses a separate linear regression for each rating. A regression maps features of the review to a numerical prediction by learning how much weight to assign each feature. Here the original features include word occurrences from the document. Topic-conditioned versions give the system a way to distinguish the contribution of a word in one paragraph topic from its contribution in another. The HMM’s number of states is set equal to the number of rating aspects.
The change in output affects the expectation step. A token annotation belongs to a particular sentence, so its label likelihood can be attached at that point in the document chain. A rating applies to an entire review’s aspect and can be affected by any of the paragraph topics. Once the observed rating is taken into account, the assignments for different paragraphs can depend on one another through that rating. The paper gives the following posterior relationship.
P(T | y, s) ∝ P(s, T) P(y | T, s)
Here T is a tuple of topic assignments to paragraphs, s is the review text, and y is the observed collection of aspect ratings. P(s, T) is the text-and-topics probability supplied by the content component. P(y | T, s) scores the rating vector using the task component. The proportionality sign indicates that the product is normalized over possible tuples for the given text and ratings to obtain the posterior P(T | y, s).
For the DVD data, the authors compute this posterior exactly by enumerating the paragraph-topic tuples. They describe the number of units and topic choices in that setup as small enough to make enumeration possible. They also point to variational approximation as a way to address settings in which summing over assignments is impractical. The rating application thus shares the same coupling between document evidence and supervised predictions, while the kind of output determines how the hidden-topic probabilities can be computed.
Experiments and results
The reviews and their labels
The DVD dataset comes from IGN. Each review has ratings on a 1-10 scale for movie content, video, audio, and extras. The labeled training split contains 600 reviews and the test split contains 65. The corpus averages 1,027 words and 20.5 sentences per review. The corpus has ratings throughout, with no separate pool of extra unlabeled reviews. Its organization gives the authors another resource for evaluation: the reviews separate the different aspects into identifiable sections, so the reviewer-supplied structure can be used as a comparison for induced topics.
The two extraction datasets ask the system to identify useful review phrases and put each one under a pre-defined aspect. The Amazon dataset consists of television reviews, with labels covering such matters as the remote, menu, video, sound, and economy, along with inputs, appearance, and features. The labeled training set contains 35 reviews and the test set 48. The additional unlabeled pool contains 12,684 reviews. An Amazon review averages 214 words and 11.7 sentences in the corpus statistics.
The Yelp dataset consists of restaurant reviews. Its aspect list covers food, atmosphere, value, service, and overall impressions. It has 24 labeled training reviews, 48 labeled test reviews, and 33,015 unlabeled reviews. Its average review length is 178 words and 11.2 sentences. Both extraction datasets consequently pair a small annotated training set with a much larger source of raw text. In contrast with DVD ratings, each marked phrase has a location in the review, which is essential to the sentence-level supervision used by the extraction system.
For both extraction corpora, the authors retain reviews other site users judged helpful and filter out unusually short and unusually long documents. They obtain aspect labels through Mechanical Turk. Each annotator’s assignments include a control review previously labeled by a native speaker, and the authors discard work from annotators whose agreement on the control is low. This procedure gives them a way to screen contributions against a common example before using the labels. The paper cites a study of non-expert linguistic annotation.
The authors report Cohen’s kappa to characterize agreement, a measure that accounts for how much agreement could occur by chance. On Amazon, two native speakers annotate four documents and obtain agreement of 0.54. For Yelp, the authors compare pairs of annotators who received the same control documents and obtain agreement of 0.49. The numbers describe different agreement exercises. Both are relevant to the task because the judgment involves deciding what is worth extracting, how to bound it in the text, and which category should describe it.
The systems and what the metrics test
The experiments compare a task-only system, a system with independently induced structure, and the jointly trained system. The first, NoCM, uses the ordinary task features without the content features. IndepCM learns the underlying content component separately and makes its structural information available to the task. JointCM estimates the content and task parameters together, allowing the task labels to affect the topic assignments used during training. For DVDs, the Gold condition additionally supplies the structure marked by the review authors. That comparison asks how the task performs when given an observed organization of the review.
Two questions can be answered from these conditions. Comparing NoCM with IndepCM tests whether topic information helps even if it is induced without task feedback. Comparing IndepCM with JointCM tests whether the benefit extends to learning that structure in the context of the application. The Gold condition supplies a further point of comparison for the rating task because an author-provided segmentation is available there. The results report task accuracy and error, so an improvement means better extraction or rating predictions.
For ratings, the paper evaluates the discrepancy between predicted and observed scores across test documents and aspects. Mean absolute error, labeled L1, measures the size of the discrepancy in rating units regardless of direction. Mean squared error, labeled L2, gives larger discrepancies more influence by squaring them before averaging. Lower values are preferable for both. The authors use Student’s t-test for their significance comparisons on this task.
For extraction, token precision measures how often the system’s selected tokens agree with the annotation, and token recall measures how much of the annotated material the system recovers. Under the multi-label evaluation, getting credit requires identifying the token under the correct aspect. Amazon also has a binary evaluation that checks whether the token was selected at all. The F1 and F2 scores combine precision and recall, with F2 putting greater weight on recall. The authors test precision and recall separately with chi-square analysis, so significance marks on those columns do not automatically apply to the F scores.
Amazon also has an overlap-based summary evaluation using ROUGE. The authors control the length of the system output for that evaluation by matching the number of tokens in the human-labeled extraction. Otherwise, selecting more text could increase opportunities for overlap by giving a system a larger output budget. A score under the length control addresses a different question from token recall under the ordinary extraction settings. The evaluation method is ROUGE.
DVD ratings
The rating errors decrease at each step from the task-only baseline to independent structure, joint training, and the reviewer-supplied structure. On mean squared error, JointCM reaches 2.65 compared with 2.80 for IndepCM and 3.15 for NoCM. Supplied with the author-marked structure, Gold reaches 2.48. The best induced-structure result therefore comes from joint training, while the best overall result in this comparison uses observed structure.
Mean squared aspect rating error on the IGN DVD test set
Joint training gives the lowest error among the systems that induce their own document structure.
The numbers
| System or setting | Mean squared error |
|---|---|
| NoCM | 3.15 |
| IndepCM | 2.80 |
| JointCM (this paper) | 2.65 |
| Gold | 2.48 |
Mean absolute error follows the same ordering on the DVD test set. NoCM records 1.37, IndepCM 1.28, JointCM 1.25, and Gold 1.18. The distinction between the two rating metrics matters for the evidence about joint training. At the reported threshold of p < 0.05, the paper marks JointCM’s mean squared error as an improvement over IndepCM as well as NoCM. For mean absolute error, the JointCM result is marked as significant against NoCM. The successive improvement over IndepCM receives a significance mark for squared error only. Gold receives marks against both the preceding system and the task-only baseline for both metrics.
The two averages describe rating accuracy across the test reviews and aspects. Their movement indicates that the improvement is visible whether the average gives larger mistakes extra weight or treats each unit of error equally. The reported tests give stronger evidence for the incremental improvement from joint training under squared error. The averages alone do not identify which aspects account for that improvement.
Yelp phrase extraction
On the Yelp test set, F1 rises from 28.8% with NoCM to 37.9% with IndepCM and 39.2% with JointCM. The corresponding F2 scores are 34.8%, 43.7%, and 44.4%. Both combined scores favor the jointly trained system, and much of the observed improvement is already present when the content component is learned separately.
Aspect-labeled token extraction F1 on the Yelp test set
Independently learned structure improves extraction, and joint training yields the highest F1.
The numbers
| System or setting | F1 % |
|---|---|
| NoCM | 28.8 |
| IndepCM | 37.9 |
| JointCM (this paper) | 39.2 |
The precision and recall columns show what changes with each comparison. NoCM gets 22.4% precision and 40.3% recall. IndepCM gets 31.1% precision and 48.6% recall, with both improvements marked significant against the task-only system. JointCM reaches 32.9% precision and 48.6% recall. Its precision is marked significant against both earlier conditions at p < 0.05, and its recall is marked against NoCM. The move to joint training increases the proportion of selected tokens that receive the correct aspect, at the same reported level of recovery of annotated tokens as IndepCM.
These results address a stricter question than whether the system can find passages that sound useful. A word contributes to the multi-label score only when the system has also placed it under the correct aspect. The evaluation combines the two demands. In particular, the Yelp precision increase can arise from changing selected tokens, correcting aspect assignments, or both. The reported scores establish the aggregate improvement without dividing it into those sources.
Amazon phrase extraction
For aspect-labeled extraction on the Amazon test set, the F1 scores are 18.9% for NoCM, 24.5% for IndepCM, and 28.2% for JointCM. The F2 scores are 18.0%, 23.8%, and 31.3%, respectively. The greater separation in F2 between the systems with structure is consistent with the direction of the precision and recall changes. JointCM retrieves more of the annotated material while making a smaller share of its selected tokens correct than IndepCM does.
Aspect-labeled token extraction F1 on the Amazon test set
Joint training gives the highest F1, with the independent structure condition between it and the baseline.
The numbers
| System or setting | F1 % |
|---|---|
| NoCM | 18.9 |
| IndepCM | 24.5 |
| JointCM (this paper) | 28.2 |
For the Amazon multi-label metric, NoCM yields 20.4% precision and 17.5% recall. IndepCM reaches 25.8% precision and 23.3% recall. JointCM reaches 24.3% precision and 33.7% recall. The authors mark both columns of the independent condition as significant improvements over NoCM at p < 0.05. JointCM’s recall is marked significant against both earlier conditions, and its precision is marked against NoCM. The joint system’s better F scores here go with improved coverage. The independent system has the highest precision of the three on this test.
When aspect labels are ignored, binary token F1 is 35.1% for NoCM, 43.0% for IndepCM, and 47.8% for JointCM. Binary F2 is 33.6%, 41.8%, and 53.0%. The precision and recall figures again show the character of the joint system’s improvement. NoCM obtains 38.1% precision and 32.6% recall, IndepCM obtains 45.3% precision and 40.9% recall, and JointCM obtains 41.2% precision and 57.1% recall. As in the multi-label evaluation, the significance markings support the joint system’s recall improvement over both comparison systems and its precision improvement over the task-only baseline.
The binary and aspect-labeled scores measure separate properties of the extraction. A selected token can identify a useful stretch of the review, yet fail to count in the stricter metric if the system files it under the wrong aspect. The rankings under both evaluations show that the improvement in combined scores survives when the category requirement is applied. The comparison does not locate the point at which the system decides a token is useful or determine how frequently the topic changes that decision.
With the fixed output length for the Amazon summary overlap evaluation, NoCM scores 43.8% ROUGE, IndepCM 47.4%, and JointCM 47.6%. Both content conditions are marked as significant against NoCM at p < 0.05, and the paper also marks the successive comparisons. The length-controlled overlap scores sit closer together for the two content conditions than their multi-label F1 scores do. They reflect agreement in selected content under a token budget, while multi-label F1 additionally depends on which aspect is assigned and uses the ordinary extraction settings.
What the ablations show
Learning structure separately and with the task
Removing the content features or training the content component separately gives the most direct tests of the method’s design. The task-only comparison shows the value of giving the predictor this kind of document information at all. The independent condition is especially informative because it can already use vocabulary and topic transitions learned from raw text. Its better scores show that a useful representation can arise before the annotation is allowed to influence the topics.
The joint condition addresses the next question. If the topics already capture recurring subjects, can task supervision make them more helpful? Across the reported combined extraction scores and average rating errors, the joint system is better than the independent condition. The detailed metrics qualify what that means. The successive DVD comparison receives a significance mark on squared error. On Yelp, the further improvement is visible in precision. On Amazon, it is visible most clearly in recall, with lower precision than the independent system. The same training mechanism thus improves the measured balance of predictions in different ways across the tasks.
The conditions test the additions as used in the complete systems. The comparison establishes that passing predictions through topic-enriched features is useful in these experiments and that joint learning brings further task gains. It gives less direct evidence about which individual feature carried those gains. The jointly trained system uses both the topic-paired features and the indicator about a word’s probable source. The reported results compare the systems as a whole.
Adding neighboring words directly
The authors test an alternative way of giving the extraction baseline a broader view. They add unigram features from the sentence before and the sentence after the one being labeled. A unigram feature represents an individual word. This means the baseline can now use vocabulary from the immediate surroundings without having to infer a topic for those sentences.
For Amazon aspect-labeled extraction, that change takes the NoCM test F1 to 15.0%, below the original baseline’s 18.9%. On Yelp, it takes test F1 to 24.5%, below the original 28.8%. These results show that nearby words supplied in this form do not account for the benefits of the learned content representation. The authors suggest that the extra neighboring words enlarge the feature space without adding annotated examples to estimate the corresponding weights. The topic features give the system a coarser representation learned in part from raw text.
The comparison is specific to the features the authors add. Neighboring unigrams give the extractor a distinct form of context and a different set of parameters to estimate. The experiment leaves open how other ways of providing context might perform. The test is also confined to summarization. The baseline for the DVD task already uses word features from the whole document, which makes the same neighboring-word addition inapplicable there as described by the authors.
Using the sections supplied by reviewers
The DVD reviews give the paper a structural comparison that does not depend on artificially adding neighboring words. The document authors already identify the sections concerned with movie content, video, audio, and extras. Supplying this information lets the rating system associate the review’s language with explicitly marked passages. It produces the best errors under both rating metrics, while JointCM comes closest among the systems that infer the structure.
The result supports the interpretation that the quality of the structural information can affect the downstream task. If the main role of the extra features were simply to increase the number of available weights, the performance of reviewer-supplied structure would tell us little. In this case, the organization provided yields the kind of information about aspects that the authors argue is useful, and ratings are predicted even more accurately. The figures still measure ratings. They do not measure whether induced paragraphs received the same assignments that a reviewer would have given them, or how frequently a disagreement might still leave enough information for a correct rating.
Varying the available text and annotation
On Amazon, the authors vary the amount of raw review data for the content component while keeping the annotated set complete. The resulting curve shows better extraction as more raw data are made available in that comparison. At 0% additional unlabeled data, there is still a small source of text for the content component because the text from labeled examples can be used for that purpose. The horizontal axis therefore measures additions to the text already available, not whether the learner has ever seen any review text.
The authors then ask whether raw text can help when annotation is reduced. In the Amazon experiment with half the annotated training documents, the content component is trained with 0%, 12.5%, or 25% of the additional unlabeled data. The figure also shows the NoCM result with the full annotated training set. The authors report that adding 12.5% of the extra raw data achieves a gain comparable to that obtained by doubling the amount of annotated data in this experiment.
These comparisons isolate two resource questions. With the labeled set fixed, the raw-text comparison measures whether more material for inducing the content structure helps the eventual extraction task. With fewer annotated examples available, the second comparison asks whether the structural signal can make up some of the resulting performance loss. The reported equivalence concerns the gain in this Amazon experiment. It does not supply a general exchange rate between annotation and raw reviews, and it leaves the aspect supervision required by the task component in place.
Limitations
Limits identified by the authors
The authors state their training assumption explicitly. They have complete task labels for the supervised documents. The part inferred without dedicated annotation is content structure. A system that needed to discover the desired rating dimensions or learn what counted as an informative summary phrase from raw reviews alone would be solving a different problem. The annotation-sparsity experiment starts with fewer labeled documents, and the remaining task labels still tell the system what distinctions the output has to make.
The authors also specify how much structure the content component can express. The number of topics is fixed in advance. The extraction setting associates each sentence with a single hidden topic, while the rating setting assigns topics to paragraphs. The paper itself observes that a summary sentence commonly discusses a small number of aspects, and its examples include material of more than one aspect within a sentence. The token labels can express that mixture in the output. The content cue itself comes from a single topic for the sentence. This is a practical representation of larger context, with a limited account of how subjects can be interleaved within a passage.
The difference in inference between the applications is another limit the authors make explicit. Sentence-level label evidence preserves the chain structure needed by Forward–Backward in extraction. Document ratings can couple all the paragraph topics, leading the authors to enumerate the topic tuples in the DVD experiment. They mention approximation for a setting where the sum over possible assignments is too large. The results therefore show that the training procedure works for the reported tasks at their stated granularity. They leave the cost and performance of approximate learning for larger or more tightly coupled problems open.
The paper also presents the amount of text available to the content component as a factor in the quality of induced structure. Its main demonstration of this effect varies the Amazon raw-data pool. And on DVDs, the best rating scores use structure supplied by the review authors. The conclusion that better document representations may support further gains is a direction suggested by the evidence. The reported work examines the particular representation it implements and the comparison available on the DVD corpus.
What follows from the evaluation setup
All the applications studied are about reviews with known aspect inventories. The rating corpus even has clearly distinguished aspect sections. The extraction corpora have labels that match recurring consumer concerns and are drawn from reviews filtered for helpfulness and length. Within that setup, a topic chain can exploit regular aspects and repeated ways of discussing them. The paper has no test of transfer across these domains, or between their aspect inventories. Its results cannot establish what happens when documents have a less regular organization or when the intended aspects depart substantially from the subjects that dominate the raw text.
The formulation also assumes that labeled and unlabeled reviews can be accounted for by the same content component. The raw-text experiments make that assumption in the data the authors use. They do not compare a well-matched raw corpus with a poorly matched one, so they cannot show how sensitive the gains would be to a change in the source or style of those reviews. Similarly, the DVD results test the benefit of incorporating text structure in a corpus with ratings throughout. The evidence that adding a separate unlabeled pool can compensate for some annotation scarcity comes from Amazon.
The extraction references reflect human choices about useful content and its category. Cohen’s kappa is 0.54 in the Amazon exercise and 0.49 in the Yelp exercise, with different sets of annotator comparisons behind those values. Precision and recall therefore describe agreement with the corpus labels under specific matching rules. A system may choose a sensible phrase or boundary that gets no credit, and recovering a reference phrase does not establish how useful that output would be to a reader. The coarser Amazon metrics help show how much depends on the label requirement and how much selected wording overlaps with the references. The experiments do not include a separate judgment of the summaries by their intended readers.
The aggregation of results also matters. The DVD scores average over aspects and documents. The extraction scores combine token decisions across the test set. These are reasonable measures of overall task performance, but such averages cannot establish that improvement is consistent for each aspect or for every kind of review. The significance tests identify particular aggregate comparisons. The paper does not mark the extraction F scores with significance tests, so their rankings are descriptive, while the individual significance marks apply to precision, recall, and the reported overlap evaluation.
Finally, the main downstream results and the qualitative motivation do different jobs. The examples illustrate how a topic cue might help attribute praise or classify a short phrase. The experimental scores show that systems using the cue predict better on the given tests. They do not trace each improved prediction to an individual structural decision. Likewise, the experiment with neighboring unigrams rejects a particular implementation of wider context, and the raw-data experiments show what happens at the amounts tested. The evidence is about the value of the complete trained systems under these conditions. Identifying which transitions, word distributions, or topic-conditioned features account for specific successes would require comparisons at a finer level than the ones reported.
What came after
Ritter and colleagues’ 2011 study cites this paper and examines how to identify and classify names in tweets, a task known as named entity recognition. This brings the question of context into a different kind of text analysis. The review study considers how information from a larger passage can help assign token labels or aspect ratings. The later study’s stated task is to recognize entities in tweets. Its citation establishes a connection between the papers. Which part of the review method, if any, the later study carried into its experiments is unspecified. Named Entity Recognition in Tweets: An Experimental Study
Cite
Cite as Christina Sauper, Aria Haghighi and Regina Barzilay. 2010. Incorporating Content Structure into Text Analysis Applications. Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{sauper2010incorporating,
title = {{Incorporating Content Structure into Text Analysis Applications}},
author = {Christina Sauper, Aria Haghighi and Regina Barzilay},
booktitle = {Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing},
year = {2010},
url = {https://aclanthology.org/D10-1037/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/sauper-2010-incorporating-content-structure-into-text/