Elamur Research

Zero-shot Entity Extraction from Web Pages

Paper · 2014 · Panupong Pasupat and Percy Liang

Summary

A webpage may contain exactly the list someone is looking for, mixed in with menus, headings, and details about each item. A page about hiking near Baltimore, for example, might give each trail a name, a rating, and a distance. Returning the trail names requires finding the relevant part of the page and deciding which field to take from each entry. Panupong Pasupat and Percy Liang study a form of information extraction in which the input is an ordinary search query and a single page. The extractor receives no example answer for the request and cannot check its results against other pages.

The authors represent a page as a tree of HTML elements. They generate candidate lists by finding paths that pick out text from repeated structures, such as corresponding cells across table rows. A learned ranker then judges each candidate from the placement of its elements in the tree and the linguistic properties of the extracted strings. It can ask whether the selected elements share a parent or whether the strings have similar lengths and grammatical patterns. The distinction matters because a well-formed table can offer several equally regular columns, and a site menu can contain more uniform text than the list a reader wants. The default extractor ranks candidates from the page alone. The query helps obtain the page through web search, and a separate experiment tests whether giving the ranker a broad category for the query improves its choices.

The authors built OPEN WEB from search queries and their results, retaining 2773 query–page pairs for which annotators agreed. Annotators recorded the first, second, and last answers, so the main accuracy measure checks those positions. On the held-out test data, the extractor achieved 40.5% accuracy, and 55.8% of examples had a compatible answer among the top five predictions. A baseline that relied on often observed HTML path patterns achieved 10.3% and 20.9% on the same measures. The candidate generator could produce at least one compatible list for 66.6% of test examples. The gap between that coverage and the first-choice score shows how frequently a promising candidate can be available while the ranker favors another list.

The experiments help locate the remaining difficulty. Page structure was the stronger feature family by itself, while linguistic properties helped distinguish fields within a repeated structure. Broad query categories helped when layout cues were removed or when an unrelated page was attached to the relevant one. Other failures arose before ranking began. A path could sweep in unrelated links, miss answers formatted with different tags, or select a whole table when the query called for filtering its rows. The paper thus separates finding a list in the HTML from deciding whether that list answers the request.

Deep dive: Zero-shot Entity Extraction from Web Pages

Zero-shot entity extraction from web pages finds lists of items on a single page using its HTML structure and the wording of a search query. · about 32 minutes to read

The problem and its context

Finding the requested field on a single page

The paper asks what can be extracted when a person can describe a category before knowing any of its members. Someone looking for hiking trails near Baltimore can express that request without naming a trail. The same situation arises when looking for dishes served by a local restaurant or products sold by a small company. The words of the request specify the desired information, and a relevant page supplies the instances. A system has to connect the description with the text that belongs in the answer.

The input to the extraction task includes the page itself. Web search is how the authors collect relevant pages for their study, but extraction begins once the query and page are paired. A search result may point to a useful page while leaving the work of reading a table or scanning a list to the user. Conversely, an extractor can faithfully collect a group of strings from that page and still return the wrong thing. Search and extraction operate at different levels. One locates a document, while the other must identify a particular list within it.

A whole list has to be selected. In a trail directory, a trail name may be recognizable by itself, yet recognition tells the extractor little about which other names belong in the same answer. Repetition supplies a possible grouping. If each trail occupies a row, the trail names may occupy corresponding positions across the rows. Repetition also creates ambiguity. A column of distances repeats just as faithfully as a column of names. The extractor has to distinguish an arrangement that looks like a list from the list that satisfies the request.

The authors call the task zero-shot because a request arrives without sample members of the category and the categories encountered at test time may extend beyond those seen in training. The system can still learn from annotated query–page pairs. What transfers is evidence about how useful lists are organized and how their members tend to look. For instance, a pattern of short, similarly formed names can recur across unrelated categories. The aim is to reuse that evidence when the particular names and the page layout are unfamiliar.

Why earlier web extraction assumptions matter

The paper describes earlier approaches as frequently relying on seed examples or on the recurrence of the same entities across pages. A seed provides a concrete starting point. If a known member appears in a repeated field, its position can help identify other members on that page. Recurrence across pages provides a different kind of clue. Repeated occurrences of an entity can reinforce an extraction that would be uncertain on the evidence of any individual page. According to the authors, such clues are easier to obtain for common categories. For a narrow request, a single useful page and a description may be all the extractor has.

Wrapper induction offers another way to exploit repetition. A wrapper is an extraction procedure tied to the way information is laid out. Pages from a site may use a common template, so a rule for locating a field on one page can be useful on other pages from the same domain. The authors describe much of that work as concentrating on a small set of domains with regular templates. OPEN WEB calls for a different kind of reuse. Relevant pages can express the same information through tables, nested lists, headings, or other structures. A rule tied to a particular template has limited reach across that collection.

The paper also discusses work that sought to generalize across pages while making assumptions about the data format or about how a particular kind of information is typically laid out. It distinguishes its own objective from extracting complete records. If a row contains a newspaper name and its circulation, a record extractor has reason to preserve both. A request for newspapers makes the name the target. Deciding which repeated fields constitute a record and deciding which field answers a natural-language request are separate operations, even when they begin with the same page representation.

There is a parallel with work on extracting categories and relations from prose. The authors cite Automatic Acquisition of Hyponyms from Large Text Corpora as an example of using recurring linguistic patterns to find category members. They also cite work that brings semi-structured information to relation extraction, including Distant supervision for relation extraction without labeled data and Multi-instance Multi-label Learning for Relation Extraction. In the web-page task, linguistic regularities help judge the extracted strings, while the HTML organizes the candidates the system can judge. A table can present a category without ever stating, in a sentence, how its members relate to one another.

The connection to interpreting questions

The authors also place the task near semantic parsing, where a natural-language request is mapped to a formal representation that can be used to answer it. They discuss efforts to extend parsing to large databases, including Semantic Parsing on Freebase from Question-Answer Pairs and Scaling Semantic Parsers with On-the-Fly Ontology Matching. As the paper recounts, the Freebase study found that a simple database query could answer less than 10% of the naturally occurring questions it considered. The authors use that finding to motivate treating semi-structured pages as a source of facts for answering questions.

The analogy has a concrete consequence for the design. An extraction rule plays the part of a formal expression. Executing it on a page returns strings, just as executing a formal query on a data source returns an answer. The learning problem concerns the link between these expressions and their results. An annotator can identify answer strings without describing the path through the HTML that reaches them. This makes it possible to train from examples of desired output, even when the intermediary operation remains unspecified.

A page can also require a richer operation than choosing a repeated field. If a table lists companies across Asia and the query asks for technology companies in China, the company column supplies the strings, but the location column determines which rows qualify. The authors identify this as a problem of compositionality. Different parts of a request specify what to return and what conditions to apply. The paper starts with a narrower operation, selecting lists with paths, which makes it possible to study how far recurring HTML structure and properties of the returned text can take the extractor.

The method, step by step

Turning page structure into possible answers

A reader can frequently see a list because items are arranged in rows or consistently styled entries. The extractor begins with the document object model, or DOM, a tree that represents the nesting of HTML elements. A table contains rows, for instance, and each row contains cells. Nodes with the same parent are siblings. Their tag names describe the kinds of elements they represent, and their positions distinguish siblings that carry the same tag. From this representation, the system can ask for a particular field across many repeated records.

The authors treat the text of a DOM node as a possible entity if it is shorter than 140 characters. Throughout the paper, an entity in an extracted list is a string taken from the page. A candidate can therefore be a trail name, a title, or another piece of text the query calls for. The length condition helps define the units the search considers. The system still requires a way to combine those units, since considering every possible grouping would make the number of lists grow exponentially with the number of candidate entities.

For that purpose, the authors introduce an extraction predicate, a simplified form of XPath. A predicate is a sequence of instructions for moving downward through the tree. Each instruction includes a tag and may also specify a position. With a position, it follows the corresponding child among siblings with that tag. With only a tag, it follows all matching children. A path can consequently pinpoint a table and expand across its rows while keeping the cell position fixed. The tag sequence preserves the route through the document. The indexed and unindexed parts determine where the route branches.

Consider a trail table in which the leftmost cell in each row contains the name. A single name can be reached by a path that specifies both its row and its cell. Allowing the row to vary takes the same cell across the rows. Allowing the cell to vary as well gives a different candidate containing more of the table. The ranker receives the resulting lists as alternatives. The generator has no need to infer from the query that a particular column is a name column before forming that candidate.

Extracting an entity list from a web page

The steps in order.

Extracting an entity list from a web pageStep 1: Represent the page as an HTML tree1. Represent the page as an HTML treeStep 2: Find an indexed path to each node2. Find an indexed path to each nodeStep 3: Drop selected indices to form repeated paths3. Drop selected indices to form repeated pathsStep 4: Execute paths and retain multi-item lists4. Execute paths and retain multi-item listsStep 5: Summarize the selected nodes and strings5. Summarize the selected nodes and stringsStep 6: Rank paths using learned feature weights6. Rank paths using learned feature weightsStep 7: Return the list selected by the highest-ranked path7. Return the list selected by the highest-ranked path

Generating paths by removing indices

The generator starts at each node with a path that selects that node alone. It considers removing any subset of the indices from the last portion of that path. When an index is removed, the tag stays in place, so generalization follows a repeated structural pattern. This gives the generator a way to propose a whole column from a single cell, or a sequence of list items from a single entry, without writing separate procedures for tables and lists.

The paper illustrates this with a suffix ending in tr[5]/td[2] and a generalization depth of 2. Here tr identifies a row and td a cell. The original suffix keeps the row and cell positions fixed. Removing the row index gives tr/td[2], the corresponding cell from each matching row. Removing the cell index gives tr[5]/td, the cells in the specified row. Dropping both gives tr/td, which can collect cells across rows and columns. The rest of the path remains fixed in this illustration, anchoring the search to a particular part of the tree.

The experiments use a depth of 8. Restricting index removal to a suffix allows lower levels of the path to vary while retaining the higher-level context. An ancestor near the root can therefore keep a candidate inside a section, while an unindexed step farther down collects its repeated entries. The generator retains paths that return at least two entities. Multiple paths can end up selecting the same nodes and producing the same list. In the development examples, the authors report averages of 8449 predicates and 1209 distinct entity lists per example. Those figures count different things. The first measures how many instructions the generator proposes, while the second measures how many unique outputs those instructions yield.

The paper writes execution as follows.

y = ⟦z⟧𝑤

Here z is an extraction predicate, w is the webpage, and the brackets mean that the predicate is executed against that page. The result y is the ordered list of entity strings drawn from the selected nodes. The equality identifies the answer with the output of that execution. The paper calls this output the predicate’s denotation. The distinction is useful because different predicates can have the same denotation, even though the routes they take through the tree differ.

Making a candidate list comparable to another

A ranking method needs to compare candidates whose lengths may differ sharply. One option would be to describe each entity and add its feature values to the values from the other entities. The authors point out that this creates a normalization problem. A long list can accumulate large feature totals by virtue of its length. The paper instead summarizes lists through the distribution of properties among their members.

The first step is abstraction. For structural evidence, a node can be represented by its tag, its position among its siblings, or the number of children it has. For linguistic evidence, a string can be represented by how many words it contains or by its sequence of grammatical tags. An abstract token in this procedure is a value used for comparison. It can be a number, an HTML attribute, or a description of the form of the text.

The next step is aggregation. For each kind of abstract token, the extractor builds a histogram of the values seen across the candidate. It records the majority value, or mode, and the proportion of the list that shares it. A separate feature marks whether all the values agree. The paper also uses normalized entropy, with a maximum of 1, to represent how dispersed the values are. Where the vocabulary of values is finite, the authors use normalized counts of individual values as well. For numerical tokens, they include the mean and standard deviation. The implementation turns real-valued summaries into indicator features by placing the values into bins. This allows the learned weight to depend on the range in which a statistic falls.

The different summaries preserve different information. A list in which almost every string shares a grammatical pattern can have a strong majority without complete agreement. Two candidates can share a majority value and still differ in how their remaining values are distributed. An average word count can show that two lists are similar in typical length, while their standard deviations distinguish a consistently short list from a mixture of very short and much longer strings. The summaries give the ranker several ways to recognize similarity without equating it with uniformity.

Reading HTML organization and linguistic form

The structural features start with the selected nodes. They summarize HTML tags and attributes such as IDs and classes, counts of children and siblings, positions among siblings, and the identities of parents. Applying the all-agree feature to parents, for example, indicates whether the selected nodes share a parent. This can describe a group of entries drawn from a single container. A table column can have a different structure, with cells under separate row nodes but a common ancestor farther up.

For that reason, the extractor also applies structural summaries to ancestors. It groups ancestors by the number of levels above the selected nodes and computes features for each level separately. The experiments use up to 5 levels. A candidate that looks dispersed at the immediate-parent level can become coherent at a higher level. Conversely, a candidate whose strings look alike may turn out to draw them from distinct regions of the page when the extractor examines their ancestors.

Other structural features describe coverage. A gap feature can indicate that the first sibling is missing from a selection. Such a pattern can arise when a header is left out, although whether that omission is appropriate depends on the page and the candidate. The paper also estimates coverage relative to the whole tree from timestamps assigned during a depth-first traversal. Those timestamps help estimate how much of the tree lies in the subtrees rooted at the selected nodes. Together, sibling coverage and page coverage describe the selection at different scales.

The denotation features describe the extracted strings. They use the number of words, the identities of first and last words, the orthographic shape of phrases and of individual words, and part-of-speech tagging at phrase and word level. A shape feature preserves a pattern such as the capitalization of a name while suppressing its spelling. For some features each string contributes one abstract token. For word shape, each word contributes a token, so a phrase with several words contributes several observations. The resulting statistics describe the vocabulary or form of a list as a whole.

The method combines the feature families in a single vector.

φ(x, w, z) = [φₛ(w, z); φ𝒹(x, y)]

Here φ is the combined feature vector, x is the input query, w is the webpage, and z is the candidate predicate. The symbol y denotes the list returned by executing z on w. The subscript ₛ identifies structural features and 𝒹 identifies denotation features. The square brackets and the separator indicate that the vectors are concatenated, so the structural and denotation values occupy different positions in the combined representation. The notation permits query-dependent denotation features. In the default system, the denotation features use the extracted text alone.

Learning from a partially annotated list

Annotating every answer on every page would have required more effort than the authors wanted to impose on workers. They had annotators identify the first, second, and last entity instead. A list is considered compatible if the corresponding positions match those annotations. Compatibility is the signal used both for training and for the main evaluation.

c(y) ∈ {0, 1}

Here c is the compatibility function for a particular annotated example, and y is a candidate list. The membership sign ∈ says that c returns one of the values in braces. The value 1 indicates agreement at all the annotated positions. The value 0 indicates that at least one of those checks fails. Since the condition depends on the returned list, it can apply equally to different paths that produce the same answer. It can also accept different lists when their annotated positions agree.

The ranker assigns a probability to each available predicate. It uses a log-linear distribution, so a weighted sum of the features determines the score before that score is exponentiated and normalized.

pθ(z ∣ x, w) ∝ exp{θᵀ φ(x, w, z)}

Here pθ is the distribution with learned parameters θ, and the bar means that the probability of z is conditional on x and w. The proportionality sign ∝ means that the exponential value on the right is divided by a common normalizing sum over the available predicates. The notation θᵀ φ is the dot product of the learned parameter vector and the candidate’s feature vector. The superscript ᵀ represents transposition, allowing the product to sum each feature value multiplied by its weight. The function exp turns that score into a positive value. For a given query and page, maximizing this probability selects the same predicate as maximizing the weighted score.

Training uses the probability of obtaining a compatible answer, which is found by adding up the probability assigned to all predicates that pass the annotation check.

pθ(c = 1 ∣ x, w) = ∑ᶻ∈Z(w) pθ(z ∣ x, w) · c(⟦z⟧𝑤)

Here Z(w) is the set of candidate predicates generated for page w, and the sum runs over every z in that set. The dot denotes multiplication. Each predicate contributes its conditional probability if execution gives a list for which c returns 1. A predicate whose list receives 0 contributes no probability to the event on the left. The expression ⟦z⟧𝑤 again means the result of running z on w. The predicate is latent during training because the annotation supervises the result and leaves the particular path unspecified.

The authors maximize the regularized log probability of compatibility across the training examples.

∑ᵢ₌₁ⁿ log pθ(c⁽ⁱ⁾ = 1 ∣ x⁽ⁱ⁾, w⁽ⁱ⁾) − (λ/2) ‖θ‖₂²

Here i indexes the training examples and n is the number of examples. The superscript (i) associates a query x, page w, and compatibility function c with example i. The function log takes the logarithm of the total compatible probability for that example. The minus sign introduces the regularization penalty. The notation ‖θ‖₂² is the squared Euclidean norm of the weight vector, and λ/2 scales that penalty. The regularizer discourages large weights while the likelihood term rewards placing more probability on compatible paths.

The paper uses AdaGrad to update the parameters, with adaptive step sizes for individual features. Training makes 5 passes through the training data. The authors select λ = 0.01 through cross-validation and use that value across their experiments. At prediction time, the ranker can choose a path from its scores and execute it without access to the annotation. The authors made the OPEN WEB dataset and their extraction code available together.

Experiments and results

How OPEN WEB was assembled

The dataset begins with search queries phrased as requests for lists. The authors use the Google Suggest API to expand partial queries into complete ones, following a breadth-first procedure from the Freebase question-answering work they cite. Breadth-first expansion here means that generated queries supply further partial queries to explore. The initial prompts consist of list of followed by a short letter prefix. Autocomplete gives more natural and more specific requests than could be obtained from the prefixes alone, while the expansion rules open new branches of the search.

The rules split or trim a returned query to produce new partial queries. A request for hotels in Guam, for instance, supplies material around a preposition that can be reused in another suggestion request. A coordination such as food and drink gives separate terms to explore. A final word can likewise provide a new starting point. These transformations are for query collection. The extractor itself has no corresponding rule for interpreting a preposition, splitting a coordination, or matching a location to a table field.

The authors continued until the procedure yielded 100K queries. They downloaded the top 2–3 Google search results for each query and sanitized the pages. From those query–page pairs, they randomly submitted 8000 for annotation through Amazon Mechanical Turk. A worker could mark the page irrelevant or give the first, second, and last answers. The dataset includes examples with agreement from at least two workers. The annotation procedure thus includes an explicit relevance decision before a page is accepted as a source of answer strings.

OPEN WEB contains 2773 examples drawn from 2269 distinct queries. The paper reports 894 query headwords, meaning the central words used to name the requested categories. They range from common categories such as movies to more specialized ones such as enzymes and headgear. The pages come from 1438 web domains, and 83% of those domains occur only once. The paper illustrates variation in page layout as well as subject matter. Relevant information can appear in grids, elaborate tables, ordinary lists, headings, or paragraphs. A method that depends on recurring structure within a page must handle markedly different structures from one example to another.

The origin of the pages matters for interpreting the experiment. Each page has already ranked highly for the request in a search engine. The relevant list may therefore be prominent enough to find from the page alone. The authors use this possibility to explain why the default features can work without directly encoding the words of the query. The benchmark evaluates extraction on those selected pages. It also provides a setting in which the usefulness of direct query information can be tested by making the page evidence more ambiguous.

What the metrics count

The authors reserve 30% of OPEN WEB for the test set. For development results they report averages from 10 random 80-20 splits, and the development tables show variation alongside the averages. The held-out test scores and the averages over development splits describe separate evaluations. Preserving that distinction matters when comparing the headline result with feature and input experiments, which the paper reports on development data.

Accuracy records the fraction of examples whose highest-ranked list is compatible with the annotation. Accuracy at 5 records the fraction with any compatible list among the first five predictions. This second measure asks whether the extractor can put a usable candidate near the top. A short list of alternatives may be helpful to a reader checking the outputs, but the measure itself credits an example whenever a compatible candidate is present. It leaves the choice among those alternatives to the evaluation.

The oracle score has a different role. It checks whether the generator produced at least one compatible candidate anywhere in its output. There is no ranking decision in that check. The same oracle value consequently serves as a reference for accuracy and accuracy at 5. Any compatible list outside the generated set is beyond the reach of either measure under the existing generator. Finding such a list requires changing the representation, generation rules, or preprocessing.

The authors compare compatibility with complete annotation on a separate sample of 100 pages that had at least one valid extraction predicate. They manually record the full answer list for each of those pages, then inspect the longest compatible candidate. It is exactly correct in 85% of the sample. The paper reports that many candidates among the remaining 15% differ from the full answer by only a few entities. This check gives a concrete indication of what the abbreviated annotation captures. It concerns the longest compatible candidate on pages where compatibility was already achievable. The main accuracy score concerns the list the ranker actually selects.

A baseline that learns recurring paths

The baseline counts path suffix patterns found among compatible predicates in the training data. A suffix covers the end of the path, where the HTML immediately surrounding the selected node is described. The learner pools evidence across different explicit index values. For example, indexed cells can contribute to the same pattern even when the cells occupy different positions. It also allows the path entries in the suffix to be permuted for matching, so each pattern can be represented by a collection that preserves repeated entries without requiring their original order.

Many of the frequent patterns shown in the paper involve tables, rows, and cells. That is useful evidence if a new page arranges its relevant data similarly. The baseline ranks a test predicate by the frequency of the associated suffix pattern. It learns which local structures commonly produce an answer in the training examples. The full system can also consider the arrangement of selected nodes across the page and the properties of the strings they yield. A highly frequent path pattern can describe several candidates on the same page, which creates room for those additional features to help.

Results on the held-out pages

The full extractor attains 40.5% test accuracy, compared with the suffix baseline’s 10.3%. The test oracle is 66.6%. The oracle bar in the chart shows the availability of compatible outputs under the default generator. It serves as a diagnostic reference alongside the systems that have to select an output.

First-choice compatibility on the OPEN WEB test split

The full extractor leads the suffix baseline, and the oracle shows room to improve candidate selection.

First-choice compatibility on the OPEN WEB test splitSuffix baseline: 10.3Suffix baseline10.3Full extractor (this paper): 40.5Full extractor (this paper)40.5Oracle: 66.6Oracle66.6
The numbers
System or settingAccuracy %
Suffix baseline10.3
Full extractor (this paper)40.5
Oracle66.6

At 5, the full extractor reaches 55.8% on the test set and the baseline reaches 20.9%. These scores show that candidate ranking is useful even when its first choice fails. A compatible answer is more often close enough to appear within the short list returned by the full system. The oracle still describes the same available candidates as in the first-choice comparison.

Top-five compatibility on the OPEN WEB test split

The full extractor includes a compatible list more often than the suffix baseline.

Top-five compatibility on the OPEN WEB test splitSuffix baseline: 20.9Suffix baseline20.9Full extractor (this paper): 55.8Full extractor (this paper)55.8Oracle: 66.6Oracle66.6
The numbers
System or settingAccuracy at 5 %
Suffix baseline20.9
Full extractor (this paper)55.8
Oracle66.6

The development results show the same ordering. Mean first-choice accuracy is 10.8 ± 1.3 for the baseline and 41.1 ± 3.4 for the full system. Mean accuracy at 5 is 25.6 ± 2.0 for the baseline and 58.4 ± 2.7 for the full system. The development oracle in the main results table is 68.7 ± 2.4 under both columns. These are scores on the percentage scale used for development reporting across the random splits. Together with the test results, they show that learning to evaluate the returned lists helps substantially over relying on recurring suffixes.

The paper separately reports that the simplified paths cover 69.7% of the development examples in its discussion of predicate expressiveness. It also gives a coverage result for a language extended with indices that omit the first or last matching node. These are candidate-generation diagnostics. The main results table reports the oracle associated with the development splits used for its comparison, so each figure belongs with its own reported setting.

What the ablations show

Page structure and string properties carry different evidence

The feature ablation retrains the extractor using different combinations of input features. The development comparison is useful because it asks what each family contributes while retaining the same basic task of selecting an extraction path. The following chart uses the first-choice means. The paper’s full system is represented by the setting with both families.

First-choice compatibility by feature family on OPEN WEB development splits

Structural features are stronger alone, and adding denotation features improves first-choice accuracy.

First-choice compatibility by feature family on OPEN WEB development splitsDenotation features only: 19.8Denotation features only19.8Structural features only: 36.2Structural features only36.2Structural and denotation features (this paper): 41.1Structural and denotation features (thispaper)41.1
The numbers
System or settingAccuracy %
Denotation features only19.8
Structural features only36.2
Structural and denotation features (this paper)41.1

The development accuracy at 5 follows the same pattern. Denotation features alone score 41.7 ± 2.7, structural features alone score 54.5 ± 2.5, and the full feature set scores 58.4 ± 2.7. On these pages, the placement and organization of the selected nodes provide stronger evidence by themselves than the form of the strings. The denotation features add information that remains valuable once the ranker can see the layout.

The query for UK newspapers shows what those contributions look like within one page. The structural-only version chooses circulation figures. A consistent column is a sensible candidate according to the geometry of the table, yet both circulation and newspaper names can occupy consistent columns. The denotation-only version selects navigation strings from a hidden part of the page. Those strings form a linguistically plausible group when considered without their location. With both feature families, the system returns newspaper titles, including The Sun and Daily Mail.

The example supports a division of labor between the feature families. Structural cues can favor a repeated region that looks like the main data. Linguistic cues can help choose a field inside that region. Both kinds of evidence remain imperfect. Navigation links can be regular in their wording and in their placement, while a correct list might vary in both respects. The example clarifies why the aggregate improvement is plausible without implying that every page admits the same sequence of decisions.

When knowing the query category helps

The authors test a way of giving the ranker broad information about the query. They manually classify the queries into 7 categories. The labels include, among others, people, media titles, locations or organizations, and object names. For each denotation feature, they pair its value with the query’s category. This allows a cue such as a particular word shape to carry different weight for a request about a person and one about a media title.

f(y) → (f(y), g(x))

Here f is an individual denotation feature applied to list y, x is the query, and g(x) is its manually assigned category. The arrow denotes replacement of the original feature by the pair in parentheses. The comma separates the evidence from the extracted list and the category that conditions its use. The authors call this an oracle experiment because it supplies the category manually. Its purpose differs from the coverage oracle, which checks whether the existing candidates contain a compatible list.

The examples show that these labels can change which text looks suitable. A person category can favor a list of individual names over headlines on a page about professional athletes with concussions. An object-name category can favor drug names over classification headings for a query about soft drugs. For the request about book titles in Euclid’s Elements, the category condition can prefer entries that include more of the titles. These examples concern the kind of string an answer should contain. A broad category provides little guidance when the decision depends on a relation such as where a company is located.

On the ordinary development pages, structural features with query-conditioned denotation features reach 41.7 ± 2.5 first-choice accuracy and 58.1 ± 2.4 accuracy at 5. The authors find no significant overall improvement over the default combination. This aggregate result coexists with the changes seen on individual pages. The authors suspect that page structure already provides some of the discriminating evidence that the query category would otherwise contribute.

They test that explanation by taking away structural features. Under that condition, query-conditioned denotation features yield 25.0% development accuracy, compared with 19.8% for unconditioned denotation features. The corresponding accuracy-at-5 scores are 48.0 ± 2.7 with the query category and 41.7 ± 2.7 without it. When the ranker must choose from the strings alone, knowing what kind of entity the query asks for improves its choices.

The second test changes the input page. The authors concatenate each original page with an unrelated page, so a visually or structurally prominent list may belong to either one. With structural and ordinary denotation features, this modified development condition yields 19.3% first-choice accuracy. Replacing the ordinary denotation features with category-conditioned ones brings the score to 29.2%. Accuracy at 5 is 41.2 ± 2.3 with ordinary denotation features and 49.2 ± 2.2 with query conditioning. Together, the two tests show when broad query information becomes more valuable. It can help when structural evidence is absent and when the available structure points toward competing material.

What a known answer changes

A separate experiment gives the system a seed entity, using the second answer recorded by the annotators. The ordinary setting reaches 41.1% first-choice development accuracy, and the seeded condition reaches 52.9%. Under the seeded condition, development accuracy at 5 is 66.5 ± 2.5. This setup approximates an assumption made in earlier extraction work, as the authors describe it. A known member can help anchor the search in the right part of the page or in the correct field of a repeated record.

The experiment uses a seed drawn from the annotation for that particular example. It measures the benefit of supplying a correct member under that condition. The defining question of the main task remains how much can be recovered from the original page and query without that extra information. The seeded result makes the practical cost of the missing clue visible through a comparison within the same extraction system.

Separating missing candidates from bad choices

The error analysis first asks whether a compatible list existed in the set of candidates. A coverage error means that the answer required a list the generator failed to produce under the compatibility criterion. A ranking error means that a compatible candidate was available but a different list was chosen. These diagnoses point to different parts of the system. More informative features can change the choice among available candidates. Coverage failures require some change to what the system can propose or how the answer is represented.

One common coverage failure occurs when the same path reaches both the answers and unrelated material. The authors attribute about 36% of coverage errors in their development analysis to this kind of overlap. A Wikipedia list of relevant entries, for instance, can share its HTML structure with the links in a See Also section. A path that generalizes across both may be unable to isolate the intended list. Another group of failures occurs when pages use interchangeable tags, such as b and strong, or vary their nesting across different entries. A fixed tag sequence can miss members that are visibly presented in the same way.

Other coverage failures reflect operations that the path language has little room to express. Answers embedded in running text may require splitting a string at punctuation. An answer may occupy only part of a selected node’s text. A list in a table may require filtering rows using another column, as in the China example. The paper also notes incorrect annotations and cases where the rendered page presents entities in an order different from the one expected from its tree. These sources of failure have different remedies. Making paths more flexible addresses some variations in markup, while interpreting row conditions requires resolving the meaning of the request against the page’s fields.

The authors test a small extension to the path language. The index forms [1:] and [:-1] omit the first and last matching nodes, respectively. In the development coverage figures reported for predicate expressiveness, they raise coverage from 69.7% to 76.2%. A list that is otherwise correct but includes an extra boundary item can now have a compatible candidate. The experiment establishes that this added expressiveness expands the answer set under the annotation criterion. Improved ranking of those new candidates would be a separate result.

Among ranking errors, the paper finds that menus, sidebars, headings, and similar non-content material can be attractive to the ranker. These parts of a page often have internally consistent markup and wording. The same properties that help locate a real list can therefore make boilerplate a strong competitor. Other ranking errors involve picking the wrong field, returning entries from the wrong region, or including a header or footer. The authors suggest using visual evidence about how a page is rendered to help favor salient content. Their analysis identifies a reason such evidence might help, while the reported system uses DOM and string features.

Limitations

Limits identified by the authors

The authors treat compatibility as an approximation to full-list correctness. Matching the first, second, and last answers constrains the candidate, but omissions or extra entries can remain between those positions. The full-list check gives evidence about the approximation in a sample with valid predicates. It evaluates the longest compatible list. Exact recovery for the ranked outputs across the full benchmark would require complete annotations for those outputs and a corresponding evaluation. The headline scores are therefore best read as rates of agreement with the annotated positions.

The paper identifies restrictions in the extraction language. A uniform path works naturally when the page repeats the same tags in the same pattern. Pages with inconsistent markup, mixed content and navigation, or answers embedded in a longer string can defeat that representation. The authors discuss normalizing HTML, using an alternative page representation, and adopting more expressive predicates. The boundary-index experiment supplies direct evidence for one small extension. Other changes are possibilities motivated by the errors.

The system also has limited means of handling a compositional request. A query can ask for entities that have a specific value in another field, as in a table of companies filtered by country, or call for aggregation. The authors propose aligning the linguistic structure of the query with the positions and relationships of information on the page. Their broad category experiment addresses a narrower issue. It supplies a cue about the kind of text expected in the answer, leaving filters and aggregations for future work.

The authors report that direct comparison with earlier systems is difficult because those systems address different task setups. The suffix baseline provides a comparison under the benchmark’s own conditions. The seed experiment changes one assumption to resemble an earlier setting, using the same extractor as a controlled comparison. It consequently measures the effect of giving this system a known answer. It leaves the relative performance of different published extraction systems under a shared evaluation undetermined.

Limits that follow from the evaluation

The benchmark’s query and page selection favors a particular kind of request. Queries begin with a list-seeking form, are expanded using search suggestions, and are paired with high-ranking search results. Annotators can reject irrelevant pages, and agreement is required for retention. These choices give the study varied examples for evaluating extraction from a plausible source page. The results apply to that pipeline. Recovering an answer from a lower-ranked page, deciding that no page contains the answer, or choosing among multiple possible sources would introduce decisions that the benchmark does not score.

Domain diversity lends credibility to the claim that the benchmark includes many different layouts. The paper reports random development splits and a held-out test set. A split that explicitly withholds whole domains or whole query categories would answer a stronger question about transfer. The reported results establish that a single learned extractor can handle part of a varied set without seed entities at prediction time. Performance under a systematic exclusion of previously seen layouts, domains, or categories remains open.

The page-only default also limits what the main results establish about responding to the words of a request. With the page and candidate set fixed, the default scoring features remain the same when the query changes. Search can bring query relevance into the pipeline by choosing a page on which the right list is prominent. The manual-category and concatenation experiments isolate a further contribution from the query, under their particular conditions. A system that must return different fields for different requests about the same page would need a way to connect those requests to the available fields directly.

Finally, candidate coverage measures agreement with the partial annotation, so it inherits the same interpretation as accuracy. An expanded path language could make a list compatible by repairing a genuine omission or by producing a different list that happens to agree at the checked positions. Evaluating how much the extension improves exact recovery would require inspecting the full lists. Coverage still serves its intended diagnostic purpose. It marks the examples in which ranking has an opportunity to succeed on the metric the paper actually uses.

What came after

Interpreting requests over structured data

Compositional Semantic Parsing on Semi-Structured Tables takes up the problem of interpreting natural language over semi-structured tables. The connection is clearest at the point where the web extractor’s path representation runs out of operations. A path can collect company names from a column, while a compositional interpretation can express the need to use a location field to determine which names qualify. The later paper’s subject therefore corresponds to the earlier paper’s distinction between locating a repeated field and expressing the conditions an answer must satisfy. The citation places the papers in that common line of work.

Simpler Context-Dependent Logical Forms via Model Projections considers how to simplify formal representations when their interpretation depends on context. The extraction predicate in the earlier paper provides a concrete example of a context-bound expression. Its path is executed on a particular page, and the text it returns depends on the tree supplied to it. The later work’s title points to a different formal question about that relationship, namely how a projection can simplify the expression used in a context-dependent task. Its connection lies in the role of context in making an executable representation useful.

Connecting selection to a larger task

Joint Mention Extraction and Classification with Mention Hypergraphs brings together finding mentions and assigning their classes. Those decisions have a counterpart in the web paper. An extractor has to find a region that yields candidate strings and assess whether those strings are of a suitable kind. A mention hypergraph and an HTML path describe different units of selection, and the later work is concerned with mention extraction and classification. Its citation connects the papers at the level of choosing and characterizing textual items within a structured prediction problem.

Language Models can Solve Computer Tasks addresses the broader problem of carrying out computer tasks. The web extractor studies one bounded operation relevant to that problem. Given a page and a request, it identifies strings that can be used as the answer. The later work provides a point of contact between this narrow extraction task and research that treats information on a computer as part of a task environment. The citation establishes that connection without specifying a transfer of the extractor’s path language, feature representation, or training procedure.

These works connect to different decisions that the extraction paper brings into view. A system may have to determine what an expression means in context, which operation the request calls for, or which text belongs in the output. In Pasupat and Liang’s experiments, page structure can solve much of the selection problem when the relevant material is prominent. The cases that resist it show where an interface between language and structured data needs stronger ways to refer to fields, combine conditions, and distinguish useful content from other regularities on a page.

Cite

Cite as Panupong Pasupat and Percy Liang. 2014. Zero-shot Entity Extraction from Web Pages. Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/p14-1037

@inproceedings{pasupat2014zero,
  title = {{Zero-shot Entity Extraction from Web Pages}},
  author = {Panupong Pasupat and Percy Liang},
  booktitle = {Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2014},
  doi = {10.3115/v1/p14-1037},
  url = {https://doi.org/10.3115/v1/p14-1037}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/pasupat-2014-zero-shot-entity-extraction-web/