SPIED: Stanford Pattern based Information Extraction and Diagnostics
Paper · 2014 · Sonal Gupta and Christopher Manning
Summary
When a rule-based extractor adds an unfamiliar phrase to its dictionary, a developer needs to know what made the phrase look like a good candidate. If the phrase is a mistake, the rule that found it may explain where the error began. If a change to the extractor makes the mistake disappear, the developer also needs to see which correct phrases disappeared with it. SPIED addresses this problem in information extraction. It brings together a learner that builds dictionaries from text and a browser interface for examining how those dictionaries were built.
SPIED-Learn starts with small dictionaries for the categories of interest. It uses them to find familiar phrases in otherwise unlabeled text, then looks at the words around those phrases to generate candidate patterns. The patterns that score well search the text for more phrases. The learner ranks these candidates, adds selected phrases to the dictionaries, and uses the enlarged dictionaries in the next round. The authors demonstrate the process by learning names for drug treatments from medical text written by patients, starting with seed dictionaries for multiple categories.
SPIED-Viz shows the evidence from either one run or two runs side by side. Starting from a learned phrase, a developer can inspect the patterns that found it. Starting from a learned pattern, the developer can see which phrases counted as positive, negative, or unlabeled when the learner scored the pattern. Optional human judgments add a separate indication of which learned phrases are correct. In a comparison, the interface draws attention to phrases learned by only one run and lets the developer examine differences in rank and supporting patterns for phrases learned by both.
The paper demonstrates the kinds of questions these views can answer. A developer considering a shorter context window and a grammatical restriction can examine which phrases the settings gain or lose and trace individual differences back to their patterns. The evaluation consists of a worked application and examples of the interface. Extraction accuracy and the effect on developers’ time remain open questions. The authors release the learner and visualizer separately, so a developer can supply diagnostic records from another pattern-based learner.
Deep dive: SPIED: Stanford Pattern based Information Extraction and Diagnostics
SPIED learns entity names from seed lists and shows which text patterns produced each result, helping developers compare extraction runs. · about 34 minutes to read
The problem and its context
Why a readable rule still takes work to debug
A rule for extracting a phrase can be easy to read and difficult to evaluate. Its wording tells a developer what it will look for. The consequences depend on what the rule encounters in a corpus, which other rules encounter the same material, and which of the candidate phrases the system keeps. Inspecting a rule in isolation gives only part of the evidence needed to judge whether it helps.
The situation becomes more complicated when an extractor learns its own rules. A familiar phrase provides the context from which a rule is induced. A rule then finds unfamiliar phrases. Some of these are admitted to the dictionary and become examples for inducing fresh rules. A decision about a phrase can therefore affect output at a later stage, even when the phrase itself has already been checked and corrected elsewhere. To investigate the later output, a developer needs access to what the learner believed at the stage when it made the earlier decision.
The authors motivate this work with the use of rules in commercial extraction systems. In their account, practitioners value rules because they can understand the conditions that lead to a match and change those conditions to address mistakes. Rules can be written by people or induced from text. SPIED concentrates on the latter case, where a developer chooses the procedure and its settings but may have to inspect a large number of rules that the procedure generates.
The paper uses entity for a phrase belonging to a category the developer wants to learn. In the demonstration, the target category is drug treatment, abbreviated DT. The categories come from the task. The learner discovers phrases to add to them. Its operation begins with occurrences of phrases in the corpus, while the dictionaries it constructs contain phrases that can be matched again. The distinction matters in diagnosis. An occurrence supplies an example of a context, whereas a newly admitted dictionary phrase can influence labeling wherever that phrase is subsequently matched.
The category problem is related to named entity recognition, where a system identifies and labels mentions in text. The particular output emphasized here is a ranked collection of learned phrases and rules, with evidence of how the system acquired them. Questions about the quality of that collection differ from questions about whether every relevant occurrence in a document has been labeled. A developer might learn a useful dictionary entry from one convincing occurrence and still want to check its behavior across other contexts.
Learning from the words around known examples
The earlier extraction work cited by the authors gives context around known phrases an evidential role. A recurring expression can signal that the phrase in a particular position has a relevant meaning or belongs to a target category. Hearst’s work provides a precedent for looking at the words on the surface of the text, in their printed order. SPIED-Learn uses this general form of evidence. Automatic Acquisition of Hyponyms from Large Text Corpora
The authors also point to patterns over grammatical dependencies, which describe relationships between words. A dependency pattern can specify a connection established by dependency parsing. The paper mentions this line of work to place surface patterns in the broader practice of inducing extraction rules from context. Yangarber and colleagues supply the cited example. Automatic Acquisition of Domain Knowledge for Information Extraction
Bootstrapping supplies the larger learning strategy. A seed dictionary provides enough examples to begin searching for regularities. Those regularities then make it possible to extend the dictionary, and the extended dictionary becomes input to another round. The paper cites Collins and Singer as prior work on learning entity categories in this way. It draws on a tradition in which knowledge of some members and knowledge of their characteristic contexts develop together. Collins and Singer’s work on named entity classification
Thelen and Riloff’s work is relevant at the point where a learner has generated many possible patterns and must decide which deserve to be used. SPIED offers scoring choices from several earlier studies, including theirs. This makes the work on selecting patterns part of the method’s background as well as part of the problem the interface is meant to illuminate. Changing the score can change which parts of the corpus supply evidence for the next dictionary update. A Bootstrapping Method for Learning Semantic Lexicons using Extraction Pattern Contexts
What an overall score leaves unresolved
Consider a developer deciding how many words of context an extraction rule should inspect. A shorter window can yield broader matches because fewer surrounding words need to agree. The authors associate shorter contexts with a tendency toward higher recall and lower precision. Recall refers to how much of the relevant material is recovered. Precision refers to how much of the recovered material is relevant. The two objectives give the developer different reasons to inspect the phrases affected by a setting.
The developer might want to keep a short window and require a context word to have a particular grammatical category, such as a noun or a verb. This restriction uses the output of part-of-speech tagging. Its value depends on which matches it removes. If it blocks an ambiguous use of a context word, it may prevent a bad extraction. A correct phrase may also depend on a use that the restriction excludes. The question concerns the identity and circumstances of those matches.
A comparison of overall accuracy would collapse the gains and losses into a single result. Such a result can inform a choice between settings, but it does not identify a pattern to inspect or a useful match to preserve. The authors want the developer to be able to move from a difference in output to a particular phrase, and then to the context conditions that gave that phrase enough evidence to be learned.
This is an iterative engineering problem. A developer can alter how rules are generated, how rules are ranked, or how candidate phrases are selected. Under bootstrapping, the effect of one such alteration can propagate. A small change early in the run can lead to different rule inventories later, because the rules draw on different dictionaries. Seeing where the runs first produce different outputs can focus an investigation, even when a full explanation would require examining several subsequent decisions.
How diagnostic inspection fits among interactive systems
The paper describes interactive extraction tools whose main work is linguistic annotation, entity labeling, or manual rule construction. Callisto, Knowtator, SAPIENT, and brat are cited in connection with annotation and labeling. Such a tool can help a person mark spans in a text and record the judgments that go with those spans. SPIED begins its diagnostic work once a learner has produced a set of phrases and patterns that the developer wants to examine.
Other systems in the discussion help people specify or discover rules. The authors cite Akbik and colleagues for an interface that assists non-experts in writing patterns over dependency trees. They also describe GATE’s JAPE language, which can match regular expressions over annotations. These examples show how much of the earlier interactive work was concerned with giving users a workable way to express the conditions of extraction.
WizIE is the closest comparison in the authors’ account. It combines annotation with work on pattern extractors, proposes expressions from the context of labeled mentions, and displays explanations for results produced by a pattern. Its emphasis is on writing and selecting rules. The capability SPIED adds to this discussion is the direct comparison of the output and recorded evidence of two pattern learners.
The paper also describes What’s Wrong With My NLP? as a viewer for several linguistic representations, including trees, graphs, and entities. The authors see it as compatible with their diagnostic work. A linguistic viewer can help inspect the structure of an analyzed sentence, while SPIED organizes evidence around decisions made during learning. The paper’s question is how to display those decisions so a developer can follow the path from a rule to the phrases it found and from a phrase back to the rules that supported it.
The method, step by step
What goes into a learning run
SPIED-Learn receives a corpus and seed dictionaries for classes the developer has chosen. Each dictionary associates phrases with its class. The demonstration uses multiple dictionaries and follows the learning of the DT class. To understand the procedure, imagine starting from the question of what other phrases could belong to DT, given the examples that already appear in its dictionary. The system answers by searching for repeatable properties of the surroundings of those examples.
There are two objects to keep track of throughout the run. An entity candidate is a phrase the system is considering adding to a dictionary. A pattern candidate is a textual rule the system is considering using to find such phrases. A pattern can match a passage and identify a phrase within the match. The phrase is the candidate member of the category. The pattern expresses the contextual conditions that made that phrase retrievable.
Patterns and entities receive different kinds of evidence. The evidence for a pattern is the collection of entities it returns, together with the statuses those entities have at that moment. The evidence for an entity includes the patterns that returned it, their weights, and other features of the entity. Keeping these records makes it possible to explain a decision from either direction once the run finishes.
How SPIED-Learn expands a class dictionary
The steps in order.
Label the corpus with the current dictionaries
The first pass uses the seeds. SPIED-Learn looks for text that matches a dictionary phrase and labels the matching occurrence with the corresponding class. It can therefore obtain examples of DT in context without asking a human to label every occurrence by hand. The corpus is unlabeled when supplied to this procedure, and the learner assigns its own working labels as it proceeds.
The source of those labels changes after the initial pass. Later dictionaries contain phrases selected by the system as well as examples it received at the start. Consequently, a positive label in a later round can reflect a decision made in an earlier round. The dictionary captures what is accepted for learning at that stage, including errors already admitted to it.
This arrangement makes it possible to extract evidence from an unlabeled corpus, but it makes the starting examples consequential. A seed can provide several contexts in which its meaning fits the intended category. If it is ambiguous or simply belongs elsewhere, its occurrences can also supply contexts that lead the learner in the wrong direction. The paper explicitly allows for noisy seeds and erroneous entries from previous rounds, so the status positive should be read as part of the learner’s record.
Turn contexts into candidate rules
The learner next gathers the context around positively labeled mentions for the class. In the DT example, the surrounding words serve as evidence of how people write about phrases already in the treatment dictionary. The learner builds candidate patterns from these contexts. A candidate rule should be able to recognize a similar surrounding expression elsewhere and identify a possibly different phrase in the position of interest.
The authors describe these as surface word patterns. Their construction starts from words in the surrounding text, with settings governing which context is represented. A broader context can preserve several clues from the occurrence that inspired the rule. A narrower one can preserve the common portion of the expression and apply in more places. The developer’s choice of context window thus changes the range of candidate rules available for later scoring.
SPIED-Learn creates and applies these patterns with TokensRegex, a mechanism for expressing regular expressions over tokens. A token here is a unit of text that the matcher can address, commonly a word in the examples discussed. A token-level expression can describe a sequence involving words and their annotations. This is how the paper’s proposed comparison between plain context words and a grammatical restriction connects to the implementation.
Generating a pattern from a known occurrence establishes where it came from. Its reliability depends on what happens when the same conditions are applied beyond that occurrence. A rule drawn from a familiar phrase may also retrieve candidates associated with another meaning. Conversely, a rule can be useful precisely because it applies to material the seed dictionary has yet to reach. The scoring stage must use evidence from both familiar and unfamiliar extractions.
Score candidate patterns using their extractions
A pattern scorer evaluates the phrases a candidate pattern extracts. These phrases are grouped by their status for the current learning decision. Positive entities support the target class according to the learner. Negative entities have the opposing status under its heuristics. Unlabeled entities are ones for which that decision uses neither assignment. The paper describes these statuses through dictionary information and earlier learning, without specifying a complete mapping from every possible dictionary state to a status.
The groups answer distinct questions about a pattern. Positives show that it reaches examples already accepted for the class. Negatives show that its reach includes material the system has reason to treat as contrary evidence. Unlabeled extractions show where the pattern ventures beyond current knowledge. A pattern capable of extending the dictionary needs some reach into this last group. Whether that reach is valuable depends on what it finds there.
SPIED offers alternative pattern-scoring measures drawn from earlier research. The proper reading of a pattern rank therefore depends on which scorer the developer configured for the run. The same collection of extracted phrases can be evaluated under different scoring choices. SPIED-Viz retains the collection and its statuses so the developer can inspect the evidence on which the configured scorer acted.
After scoring, SPIED-Learn selects the highest-ranked candidates for the class. The developer supplies a maximum for the number of patterns to learn. This is a separate choice from the kind of score used. The scoring procedure provides an order, while the selection limit controls how far down that order the learner goes. The selected rules become available for the next stage of entity acquisition.
The paper describes the inputs to pattern scoring and the availability of alternative measures without writing a scoring equation. In particular, it does not assign a fixed weight to the positive, negative, or unlabeled groups in the tool description. The earlier learner that SPIED-Learn follows is credited with an improved pattern measure. Here the emphasis is on recording the evidence in a form that a developer can examine when using a chosen measure.
Apply the selected rules and score the phrases they find
The learned patterns are applied to the corpus to obtain candidate entities. A given phrase can be found by more than one pattern. The entity scorer uses the weights of those patterns as part of the evidence for the phrase. An entity’s support can therefore be examined together with the rules that produced it. Inspection can show whether several conditions account for the extraction or whether attention should first go to a particular pattern.
The phrase score also uses other measures. The example named in the paper is TF-IDF, a weighting that relates the frequency of a term to how widely it occurs across documents. Its inclusion means the entity scorer has access to evidence about the phrase beyond the identity of the rule that found it. The diagnostic display of matching patterns identifies part of the basis for acquisition. A full numerical explanation would also require the details of the scorer and the other measures it uses.
The authors identify their earlier entity scorer as the one reused by SPIED-Learn. They do not give an equation for combining its inputs here. The operative details they supply are the connection to pattern weights, the use of additional entity measures, and the ranking of candidates. A developer supplies a maximum number of entities to learn. The highest-ranked choices within the selection procedure enter the class dictionary.
A match in the corpus and a learned entity are different events in this sequence. A rule can find a phrase, leaving the phrase available for scoring, while other candidates outrank it at selection. This is important when reading a comparison. The interface flags phrases that were learned in one run only. Whether an absent phrase ever appeared as an unselected candidate is a further question about the learning record.
Repeat with the enlarged dictionaries
At the next iteration, dictionary matches can label occurrences of the phrases added in the preceding round. The new positives can contribute fresh contexts. Those contexts can give rise to patterns that could not have been proposed from the initial examples alone. Growth thus comes in part from reapplying earlier ideas and in part from the opportunity to induce new rules from changed evidence.
The paper describes repeating the procedure for a specified number of iterations and characterizes learning as continuing while further patterns or entities can be acquired. It supplies no detailed termination rule linking these descriptions. The iteration is the relevant unit for diagnosis because it establishes the state of the dictionary and the status of the evidence when a particular decision was made.
This sequence explains why a rule can look different when inspected after the run. A phrase it found as unlabeled may later become an accepted entry. A phrase it treated as a positive may later be judged incorrect by a human. Preserving the original evidence lets the developer reconstruct what was available when the rule was selected. Showing its later outcome alongside the original evidence lets the developer assess how that decision played out.
Add an independent judgment where one is available
SPIED-Viz can display an optional oracle label for a learned entity. In this paper, the term refers to an external judgment of whether the learned phrase is correct for the class, typically made by a person. The judgments are assigned outside the interface in the implementation described. The learner does not use them to score patterns or to acquire entries.
The distinction between working labels and external judgments is central to reading the display. A working label describes the role a phrase played in a specific decision. An oracle label expresses an assessment of an entry the system has learned. A single phrase can be counted as positive by the learner and judged incorrect by a person. Those two descriptions together can help explain why a pattern received favorable evidence it may have deserved less credit for.
An unlabeled extraction in the pattern view also differs from an entry without a human judgment in the entity view. The former describes the learner’s evidence at the time of pattern learning. The latter describes what assessment information is available for a learned entry. An unlabeled extraction may later be learned and judged. A phrase the system already considers positive may still have no human judgment available for display.
This external layer is what lets the interface distinguish a disagreement about what was learned from a judgment about whether the difference is good. Even without judgments, SPIED-Viz can identify phrases that appear in one output only and show how the system acquired them. With judgments, it can mark which of those differences correspond to correct or incorrect additions.
Read the record from the entity side
The entity-centered view begins with the ranked phrases learned in each iteration. A developer can inspect overall and per-iteration information about the runs, including their iterations, learned patterns, and the learned entries assessed as correct or incorrect. At the level of a particular entry, the view supplies its assessment where available and the patterns that found it.
Green and red identify entries judged correct and incorrect, respectively. In a comparison, icons draw attention to entries unique to a run. A trophy marks a correct entry, a thumbs-down marks an incorrect one, and a star marks a unique entry whose oracle label is unavailable. The same output difference can therefore prompt different questions. A correct unique phrase invites inspection of what gave that run useful reach. An incorrect one supplies a starting point for investigating the rules behind a mistake.
The detail view for a phrase includes information about its score and its standing in the other run when available. It also offers a search link, with the option to include terms that identify the problem domain. A developer can use that aid while investigating an unfamiliar phrase. The paper describes manual judgments as a separate activity, so the presence of the search option does not imply that SPIED has verified the entry.
If both runs learned a phrase, the comparison display brings their explanations together. The developer can inspect the rules visible for each run and see where the phrase sits in each ranking. A phrase high in one ranking may have been promoted by a pattern that the other run did not learn, or the two runs may have found it through overlapping rules. The comparison exposes the evidence needed to ask which account fits the observed result.
Read the record from the pattern side
The pattern-centered view begins with the rules learned at each iteration and includes counts for the run as a whole. It shows the pattern rankings and distinguishes rules unique to one of the outputs. The paper illustrates this with blue highlighting for a pattern that the other system did not learn. The developer can open a pattern and inspect what it extracted.
The three working-label groups are visible as they were when the pattern was scored. This enables an investigation into why a rule looked promising at the time. For example, the positives can be inspected for errors that had already entered the dictionary. The negatives can show what competing evidence the rule encountered. The unlabeled group shows where the pattern had a chance to discover material beyond the learner’s accepted examples.
The view also looks forward from that decision. It reports the percentage of the pattern’s then-unlabeled extractions that were later learned and judged correct. The denominator is the set of unlabeled entities extracted by the pattern at the time in question. The numerator is the part of that set the system went on to learn and the oracle judged correct. This combines an outcome of the learning process with an external assessment of that outcome.
An exclamation point indicates that fewer than half of the unlabeled entities were ultimately learned with the correct judgment. The proportion can be low when many extracted candidates never enter the dictionary or when candidates that do enter are found to be wrong. Those outcomes have different implications for debugging. The flagged value directs attention to a rule, and the detailed records give the developer a way to investigate what happened.
Connect the learner and the browser interface
SPIED-Viz accepts details of the learned entities and patterns in JSON. The learner provides the output and diagnostic evidence, and the browser reads that record to build the views. The paper names JavaScript, Angular, and jQuery as technologies used by the interface. The browser component visualizes learning decisions that have already been made.
This boundary allows a developer to use a different pattern or entity scorer without requiring the visualizer to implement it. It also allows another pattern-based learner to supply the records. The depth of the displayed explanation depends on the information that learner exports. For example, a list of learned phrases can support inspection of the entries, while tracing an entry to the rules that found it requires the corresponding pattern evidence.
The paper releases both pieces of code and demonstrates them together. SPIED-Learn supplies a concrete way to generate the record, from dictionary labels through repeated scoring and selection. SPIED-Viz makes portions of that record accessible through either a phrase or a rule. The same run can consequently be inspected in the direction in which evidence produced a result and in the reverse direction, from an observed result to the evidence behind it.
Experiments and results
The demonstration corpus and task
The paper describes an application that learns DT entities from medical text written by patients and left unlabeled. Starting dictionaries cover multiple classes. The demonstration follows the treatment dictionary as the learner uses those resources and the contexts it encounters to acquire additional entries. The authors point to their earlier work for the introduction and development of the task.
The paper gives the domain, target class, and source of initial labels. It does not report a named corpus release, corpus size, counts of seed entries, or a division into training and test sets. The learning procedure acts on unlabeled text with dictionary-based supervision. The human correctness assessments that the visualizer can display are distinct from that supervision. Accordingly, the screenshots should be read as illustrations of the extraction record produced by the demonstration.
The paper’s empirical presentation focuses on what the interface displays and how a developer can inspect an output difference. It describes per-iteration and overall information, ranked entries, the patterns associated with them, and assessments where available. There is no reported dataset-level score for SPIED-Learn in this paper. It also provides no baseline score against which to compare the extraction quality of the demonstration.
What the comparison measures and displays
The interface has a view for inspecting one learner’s output and a setting for comparing two outputs. The numerical distinction explicitly specified for these settings is how many systems can be displayed. The comparison setting opens questions about differences in membership, rank, and support for the same entry. The count below describes the display’s scope in the DT demonstration, where SPIED-Learn generated the diagnostic input.
Number of systems displayed by SPIED-Viz in the drug-treatment demonstration
The comparison setting lets a developer inspect paired extraction records.
The numbers
| System or setting | systems |
|---|---|
| Single-system inspection | 1 |
| SPIED-Viz comparison (this paper) | 2 |
Here a larger count means room to display more outputs in the same comparison. The count carries no claim about precision, recall, or speed. The screenshots are evidence of the diagnostic presentation, and the paper supplies no numerical performance comparison for the corpus.
The entity view shows how the comparison works for entries that differ between the outputs. For a unique phrase with a correct assessment, the trophy makes a potential gain easy to locate in the lists. A developer can open the entry and ask which patterns gave the run access to it. When a unique phrase is incorrect, the thumbs-down leads to a different investigation, starting with the patterns that allowed the unwanted entry to rank high enough to be selected.
The star in the interface identifies a unique phrase whose correctness judgment is unavailable. This case deserves its own visual cue because uniqueness is an observation about the outputs. It says that one run learned the entry and the other did not. The evidence for correctness still has to be obtained independently before the developer can count the discrepancy as a gain or a loss in quality.
For a shared entry, the paper illustrates a side-by-side presentation of the explanations. This comparison can bring a rank difference into focus even when the phrase appears in both dictionaries. The developer can look for a difference in the supporting rules and investigate whether the extraction was available under different circumstances. That kind of question would be hard to formulate from final membership alone, because both systems have reached the same visible acquisition decision.
The displays also report scores and ranks, which need to be interpreted in the context of the run. A score reflects the configured procedure and its evidence. A rank expresses a candidate’s standing among others. A phrase may move in the rankings even if its own supporting patterns are similar, because competing phrases change. The interface lets the developer inspect the phrase and its support alongside the change in position.
What a pattern’s diagnostic percentage measures
The pattern view adds a retrospective measure for each rule. It starts with the phrases counted as unlabeled when the rule was learned and asks what portion of that group later became correct, learned entries. A high proportion identifies a rule whose unfamiliar extractions often made that transition. A low proportion indicates that much of its unfamiliar material failed to reach that particular outcome. This measure concerns the selected pattern and its originally unlabeled output.
The article’s stated display cutoff is less than half of those unlabeled entities eventually learned and judged correct. Below that cutoff, the interface flags the pattern with an exclamation mark. The flag is a prompt to examine the records. An unfamiliar phrase can fail to contribute to the percentage because the system leaves it outside the learned dictionary, or because it adds the phrase and the subsequent judgment is unfavorable.
The percentage therefore has a narrower meaning than precision. It takes the system’s eventual selection into account, and its denominator is anchored to the unlabeled group at the rule’s learning step. A pattern can extract an appropriate phrase that remains below the entity selection cutoff. That phrase would still fail to contribute to the reported percentage. Looking at the selected and unselected cases can help a developer decide whether the first place to investigate is a rule’s reach or the later process for ranking phrases.
A related caution concerns comparisons over time. A phrase can start in a rule’s unlabeled group and later become part of the positive evidence available to another rule. The displayed retrospective percentage keeps the original group fixed for the purpose of that diagnosis. The current classification of the phrase thus adds information about what happened without changing the description of what the learner knew before.
What the screenshots establish
The paper illustrates the entity-centered display, the pattern-centered display, and the direct comparison for a phrase. These images establish the information available at each entry point. The entity view provides the supporting rules and comparison information for a learned phrase. The pattern view supplies the entities a rule extracted and the statuses used in scoring. The shared-phrase display brings two explanations together without requiring the developer to reconstruct the comparison from separate lists.
The screenshots show a form of inspection that is more detailed than the overall run counts also available in the interface. A pattern count can show that the size of the learned rule inventory has changed. A pattern entry can show which rule contributes to the difference and what it found. A phrase count can show the size of the acquired dictionary, while a phrase entry can show where judgment is available and whether another run acquired the same phrase. These are levels of a single diagnostic record.
Run A and run B in such a comparison are alternatives the developer brings to the interface. The visualizer can display the results of changing extraction parameters or components, but the paper does not designate a benchmark baseline, present a controlled series of configurations, or calculate a winning setting. Its demonstrated result is the ability to inspect output and provenance from the learner in a coordinated way.
That distinction matters for the claims a reader can take away from the medical example. The example gives the diagnostic facilities a concrete task, an output vocabulary, and a recurring learning procedure. It shows what a developer can see when the learner is applied to those data. There is no estimate of the quality of the resulting treatment dictionary, no measurement of how much correct terminology was missed, and no test of whether a developer using the interface reaches a better configuration.
What the ablations show
The paper reports no formal ablation study and instead illustrates how developers can investigate changes through differences in learned entries, supporting patterns, and the subsequent fate of initially unlabeled extractions.
Shorter windows and grammatical restrictions
The most concrete comparison the authors discuss is a developer’s choice about context size. A short window preserves fewer contextual conditions and can therefore allow matches in situations a longer window excludes. A part-of-speech restriction can narrow that set of matches again, by requiring a context word to occur in an allowed grammatical role. The two choices act on different properties of a rule and can interact.
The authors frame the comparison as a way to investigate the consequences of the restriction. If a correct phrase appears only without the grammatical constraint, inspecting its extraction can show which context made it available and what the constraint would have excluded. If an incorrect phrase appears in the less restricted run, the same inspection can show what permitted the match. The evidence is specific to those phrases and their rules.
Such a comparison could also reveal that a desired change has mixed effects. An aggregate precision result might favor a restriction that removes several errors, while a developer may still want to recover particular correct entries lost along the way. Because the interface identifies the unique phrases and shows the rules that support them, it gives the developer a route to studying the two kinds of outcome individually.
The paper uses this scenario to motivate the diagnostic design. It does not report the tested window sizes, scores for the alternatives, or a measured effect of enabling the restriction. The account supports a claim about the questions the interface can help investigate. A claim that a particular short window or grammatical condition improves DT extraction would require results for those conditions.
What differences in rank can tell a developer
Some changes influence when or how strongly a phrase is learned while leaving it in both outputs. A membership comparison would miss this case. SPIED-Viz lets a developer bring the phrase’s records into a single view and look at the patterns behind each run’s result. The onset of support and the composition of that support can be inspected together.
Suppose a shared phrase ranks earlier in one run. The displayed explanations might show that it was retrieved by a pattern unique to that run. Alternatively, the patterns behind the phrase may look similar, in which case the developer could examine the scoring evidence or the other candidates that competed for selection. These are possible readings of the comparison, based on the information the display offers. The paper gives no measured breakdown of how frequently each account applies.
The same reasoning is useful for a phrase learned in one run only. The first run’s evidence explains how it entered that dictionary. Comparing where the supporting rules appear can help locate a divergence. The absence of the phrase in the other learned dictionary leaves open whether the other run failed to match it, matched it with weaker evidence, or reached it when more highly ranked candidates took the available places.
The accumulated decisions in bootstrapping make this distinction especially important. A phrase learned earlier can supply contexts that help produce new rules later. Finding a rank difference can identify a candidate source of divergence. To attribute the later rule difference to that phrase, a developer would still need to trace how the dictionary and the candidate patterns changed across the relevant iterations.
What a pattern’s later yield adds to its original score
The paper’s pattern-centered analysis examines a question that cannot be answered at the moment a rule is selected. Of the phrases then considered unlabeled, which eventually became accepted entries that a person judged correct? Since the outcome is attached to the original evidence group, a reader can inspect a rule under the conditions in which the learner chose it and see what came of its reach into unfamiliar material.
A rule can look well supported under the learner’s current labeling and still contribute little to later acquisition. Familiar positive examples may account for its appeal, while much of the unlabeled material stays outside the dictionary. Equally, a pattern’s unfamiliar extractions may include useful material that another part of the pipeline fails to select. A low retrospective percentage suggests looking more closely at the rule and the candidate phrases before assigning blame.
The human assessment can uncover a different explanation. Some candidates may be selected and then judged incorrect. Their records provide examples of how a rule’s contextual conditions admitted unwanted material. If a previously learned error already served as a positive example for that rule, the developer can also see a possible route by which the error reinforced later learning. This is a trace to inspect, with each link grounded in the saved decisions.
An initially unlabeled entity can also be found by several selected patterns. If it later becomes a correct entry, the retrospective percentage can record that outcome for each relevant pattern. The result describes what happened to each rule’s extractions. It does not isolate a rule’s causal contribution to learning the phrase. A run that withheld the rule while keeping a defined comparison setup would ask a different question.
How to read a difference between two runs
The direct comparison offers most leverage when the developer knows which setting or component changed. If several choices change together, a unique pattern still supplies a lead, but its appearance can have several explanations. The generation step may have produced it only under one configuration. A changed scorer may have put it high enough for selection. The pattern came from a context that might itself have arisen from a difference in earlier dictionary entries.
The interface makes these alternatives concrete by giving the developer objects to inspect. Entry differences show what changed at the level of the dictionary. Pattern differences show which learned rules are available to account for some of those changes. The working-label groups show the evidence a rule had when it was ranked. Together, they provide the observational record needed to design or interpret a controlled follow-up. The paper demonstrates the record and leaves the follow-up comparisons open.
Limitations
Limits the authors identify
Oracle labeling takes place offline in the implementation the authors describe. A person can supply judgments for the interface to display, but assigning them inside the visualization is a proposed extension. This limits the kind of interactive refinement the demonstration supports. A developer can inspect the evidence for an unfamiliar entry and investigate it. The browser view has no reported facility for recording the resulting judgment and sending it back into the learner.
The authors also identify user evaluation as future work. They motivate SPIED by the time and effort needed to inspect extraction output, and they argue that coordinated views can make this task easier. They report no study of developers performing the same work with and without the visualizer. The time saved, the kinds of mistakes more readily detected, and the effect on the quality of decisions about settings remain unmeasured.
Another stated concern is the volume of diagnostic information for systems that learn large numbers of patterns and entities. The views provide rankings, counts, and drill-down access. At large output sizes, the developer can still have many entries and paths to inspect. The authors propose richer summaries, including descriptions of which parameter choices led to particular mistakes. They present such summaries as work ahead.
The authors propose extending the visualizer to relations learned by patterns. The demonstrated task concerns class membership for phrases. Relation diagnostics would have to represent the learned relation and the evidence linking its participants. The paper leaves the interface and learning records for that extension unspecified. The existing demonstration establishes the entity-level interaction.
What the setup leaves open
The demonstration gives a specific domain in which to see the method operate. It leaves the general quality of the learner unresolved. Details such as the size and coverage of the seed dictionaries, the composition of the medical corpus, and the number of examples available for assessment would be needed to interpret even an overall performance result. Without those details and an extraction score, the paper supports no estimate of how broadly the learned dictionary covers the treatment language in the corpus.
The meaning of the judgments is limited by the object being assessed. Human labels in the visualization concern learned entities. A correct assessment for a phrase says that the learned entry has been judged appropriate for the class. It does not establish that every occurrence in the corpus is being used in that sense. A separate assessment at the occurrence level would be required to evaluate labeling in cases where a phrase can have more than one use.
The displayed counts of correct and incorrect acquired entries can help track outcomes among assessed entries. Coverage requires an account of desirable entries the learner missed. When two outputs are compared, there can also be omissions shared by both runs. A comparison of learned dictionaries makes disagreements observable and gives no direct inventory of the correct phrases absent from both. The paper does not describe an independent enumeration that would provide that inventory.
Seed noise and errors from earlier rounds introduce another limit. The learner uses these inputs to create the very labels used for scoring its rules, so an error can supply apparent support for a pattern. The visualization can reveal a conflict between a working positive and a later adverse judgment, if such a judgment is available. The tool’s display of the conflict does not establish how often it occurs or how much it affects the final output.
The paper supplies little detail about the consistency of the human assessments. It says they are usually made by manually judging learned entities. It gives no assessment protocol, coverage rate, or agreement result. When a diagnostic depends on the distinction between correct and incorrect entries, its interpretation is conditional on the judgments recorded for that run. Unassessed entries leave the quality of some observed differences unresolved.
The retrospective pattern measure combines finding a phrase, learning it, and having it judged correct. Each stage can affect the outcome. A rule that finds relevant material can show a low percentage if its candidates are rarely selected. A rule that shares its extractions with other effective patterns can show a high percentage without being necessary for the acquisitions. The measure can help focus an investigation. It does not by itself answer whether keeping a rule improves extraction.
Rank comparisons have similar dependencies. If runs use different scoring measures, the raw scores can reflect different definitions of evidence. If they use different selection limits, the same rank can have different consequences for admission to the dictionary. Even ranks generated under the same settings are affected by changes to the pool of competing candidates. The interface shows rank differences with their surrounding evidence, while their interpretation depends on the configurations and the stage of learning.
The explanation provided by a supporting pattern is also bounded by what was recorded. A pattern explains how a phrase was found. Other entity-scoring measures help determine whether it was learned, and the paper does not give a complete numerical reconstruction of that calculation. A developer tracing a surprise down to the exact ranking decision would need the scorer’s details as well as the displayed pattern record.
Finally, SPIED-Viz’s independence from the learner depends on a practical interface between the two. Another system can supply diagnostic information in the required JSON form. To reproduce the richer views, its export must describe such things as which rules found a phrase and which entities supported a rule at the time it was learned. The paper demonstrates the path from SPIED-Learn to the visualizer. It leaves the effort of connecting learners with different representations or more limited records unevaluated.
What came after
The paper describes a research agenda built around the diagnostic record it makes available. It gives plans for later work, without reporting subsequent studies that carried them out. Those plans concern how developers provide feedback, how the display handles larger output sets, and how the evidence could be represented for learning tasks beyond the demonstrated entity class.
One proposed change was to let a developer assign oracle labels inside the interface. In the published design, a correctness judgment is prepared offline and displayed alongside the learning evidence. Moving the judgment into the browser would let the person record an assessment in the same place they inspect the phrase and its supporting patterns. The authors describe this as an interface feature. They do not report an interactive learning loop in which a new judgment immediately changes later rules.
The proposed extension to relation learning would carry over the idea of inspecting what a pattern discovered and why an item was learned. It would also require a diagnostic record suited to the object being discovered. A learned relation concerns an association between items, so a display would need to make the evidence for that association inspectable. The paper poses this extension as a direction for the visualizer. It supplies no relation-learning demonstration or follow-up result.
The authors also wanted summaries that help users handle larger runs. The existing views make individual entries inspectable after a developer decides where to look. A summary connecting settings to particular mistakes would take on part of that search. The proposal follows from the cost of navigating many learned phrases and patterns. The paper does not specify how such a summary would establish the connection between a parameter and an error when several earlier decisions could explain the outcome.
A study of developers using the interface was the planned way to examine the practical claim behind SPIED. The relevant questions concern what people can diagnose with the displayed evidence, how they navigate it, and whether their interactions help them refine a learner. The published demonstration shows how extraction records can be inspected. Whether that inspection improves developers’ decisions, and which parts of the interface contribute most, remained open.
Cite
Cite as Sonal Gupta and Christopher Manning. 2014. SPIED: Stanford Pattern based Information Extraction and Diagnostics. Proceedings of the Workshop on Interactive Language Learning, Visualization, and Interfaces.
@inproceedings{gupta2014spied,
title = {{SPIED: Stanford Pattern based Information Extraction and Diagnostics}},
author = {Sonal Gupta and Christopher Manning},
booktitle = {Proceedings of the Workshop on Interactive Language Learning, Visualization, and Interfaces},
year = {2014},
doi = {10.3115/v1/w14-3106},
url = {https://doi.org/10.3115/v1/w14-3106}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gupta-2014-spied-stanford-pattern-based-information/