Elamur Research

Optimized Substructure Discovery for Semi-structured Data

Paper · 2002 · Kenji Abe, Shinji Kawasoe, Tatsuya Asai et al.

Summary

Finding a repeated structure is not the same as finding an informative one. In a collection of movie records, information about a director may be almost unavoidable. Its presence tells us little about which records belong to a particular genre. A less widespread structure, such as a particular certification nested inside a certification field, may distinguish the selected genre much more clearly. Kenji Abe and colleagues investigate how to discover such distinctions automatically when documents have irregular, nested organization. Their task begins with documents assigned to a positive or negative group and asks which structural pattern produces the most informative separation.

The paper represents both documents and candidate structures as trees whose nodes have labels and whose children retain their left-to-right sequence. A candidate either occurs in a document or does not. Those outcomes divide the collection into matching and nonmatching groups, and the authors evaluate how mixed the target classes remain within both groups. They consider classification error, entropy, and Gini impurity. The objective therefore rewards class separation rather than repetition alone. A structure shared across the collection can be frequent yet statistically unhelpful, while a more selective structure can be useful despite missing some positive documents.

Their algorithm, OPTT, adapts machinery from the earlier FREQT tree miner. It constructs candidates through a restricted leaf-addition operation that gives each candidate a unique construction route. Instead of recording every complete mapping between a pattern and a document, it retains the document positions corresponding to the pattern’s final leaf. Successor occurrences can be calculated from these positions. A statistical lower bound then rules out extensions that cannot equal or improve the strongest result already examined. Together, these mechanisms address different sources of cost: redundant candidates, repeated matching, excessive occurrence storage, and fruitless exploration.

The favorable complexity result depends on restricting the structural search. With the maximum pattern size and maximum data-node branching treated as constants, the authors derive a runtime bound linear in the collection’s total node count. They also establish a contrasting hardness result when pattern size and the label alphabet are unrestricted. Experiments reflect this distinction. With the candidate-size limit held at 5, Citeseers runtime appears roughly linear as the input grows from 22,847 nodes to 402,740 nodes. On a fixed Imdb subset, increasing the permitted pattern size from 1 to 11 produces a trend the authors describe as exponential.

The practical comparisons also expose a resource tradeoff. For the reported Imdb experiment, depth-first OPTT occupies 8.0 MB, while breadth-first OPTT occupies 96.4 MB. Statistical pruning changes depth-first runtime from 29.7 seconds to 21.5 seconds; breadth-first runtime changes from 20.2 seconds to 20.0 seconds. The discovered movie structures show why the task matters: an explicit action-genre field separates the selected groups almost directly, a certification structure provides a less obvious association, and a director structure matches both classes throughout. These examples demonstrate optimization within the examined collections. They do not establish that the associations generalize to unseen records or describe movies independently of how the records were assembled.

Interesting ideas

Choose usefulness before choosing a search threshold. A minimum occurrence requirement is appropriate when repetition itself is the target. It can be misleading when the purpose is to explain a selected group. OPTT starts with a class-separation objective and designs its search around that objective. This principle applies to diagnostic rule discovery, corpus comparison, and information extraction: first specify what makes a result useful, then determine which computational shortcuts preserve that meaning.

Keep the comparison population visible. A pattern’s positive matches provide only part of its statistical meaning. Negative matches and the documents left outside the pattern are also relevant. Examining both sides prevents a highly repetitive background structure from appearing distinctive merely because it is common in the selected material. The same reasoning helps when comparing document categories, linguistic constructions, or error groups whose general formatting may be more similar than their labels suggest.

Arrange the search so duplicates never arise. Rightmost extension gives every candidate an unambiguous predecessor. The algorithm consequently avoids constructing equivalent candidates through different sequences and then spending effort recognizing the duplication. This is a reusable design principle for symbolic search: when possible, make the construction rules encode uniqueness. Similar reasoning can guide enumeration of expressions, queries, syntax fragments, and combinations of rule conditions.

Retain state according to the next operation. Complete occurrence mappings are more detailed than the chosen extension procedure requires. OPTT uses endpoints because its update operation can recover the relevant extension regions from those endpoints and the pattern shape. This suggests a broader approach to efficient computation: identify the information necessary for the next exact operation, retain that information, and prove that the discarded detail cannot affect the result.

Replace arbitrary cutoffs with an admissible bound. An extension can only reduce the set of matching documents. Combined with the impurity objective, this restriction yields an optimistic estimate of how good any descendant could become. The algorithm stops a branch only when that optimistic estimate is already inadequate. Such bounds are useful wherever an exact combinatorial search must remain explainable: rejecting work has a mathematical reason tied to the task, instead of a convenience threshold unrelated to the objective.

Treat memory behavior as part of algorithm selection. Traversal order leaves the permitted candidate structures unchanged, yet substantially affects the amount of pending evidence. The paper’s depth-first and breadth-first comparison shows why elapsed time alone cannot determine the best implementation choice. For an engineering system, a somewhat different traversal can determine whether a search fits its available resources at all.

Vary the parameters concealed by a scalability claim. A curve obtained while candidate size remains fixed answers a different question from a curve obtained while candidate size increases. The authors examine both. This is a useful habit in evaluation: identify which parameters make the search combinatorial, expose their effects separately, and state exactly what remains constant when reporting favorable growth with input volume.

Deep dive: Optimized Substructure Discovery for Semi-structured Data

How OPTT finds discriminative tree patterns in HTML and XML, why its pruning works, and what its experiments and complexity bounds establish. · about 37 minutes to read

How Mova uses it

Mova’s documented Rust components already turn language into explicit trees, derive frames, maintain text-specific worlds, and retain reasons for decisions. Its dictionary index also preserves occurrence evidence and proposes statistical selectors for review. Those capabilities make structural discovery relevant, but they do not demonstrate an OPTT implementation. The connections below are engineering proposals assessed against the documented mechanisms. A proposed “new” component means that this would be additional work to establish; it does not assert that every unlisted mechanism is absent. No performance transfer from the paper to Mova has been measured here.

Idea: Rank structural conditions by their diagnostic value. Where: Introduction and Section 2.1. Area: statistics and error analysis. Mova: частково є (world induce, world selfplay, and tools/dictindex). Mova already proposes readable repairs and statistical selectors, then evaluates or reviews them. A further experiment could compare a fragment’s presence in analyses with a particular error against its presence in analyses without that error. The proposed change concerns the ranking objective, not automatic acceptance of a rule. Why Mova: A diagnostic objective could direct attention towards conditions that distinguish a failure, even when those conditions are less common than general grammatical scaffolding.

Idea: Declare the background against which a pattern is distinctive. Where: Section 2.1 and the movie example in the Introduction. Area: corpus statistics. Mova: частково є (tools/dictindex source domains, feature marginals, and provenance). Existing index statistics already use a broader occurrence population. An OPTT-inspired experiment should additionally state the precise positive group, negative group, and document unit used for structural scoring. A comparison across unrelated source types could otherwise discover formatting differences rather than the intended linguistic contrast. Why Mova: An explicit background would make the meaning of “characteristic” inspectable and help reviewers identify confounding source differences.

Idea: Search for structures missing from part of the positive class. Where: Introduction and Figure 9. Area: lexical discovery and diagnostics. Mova: частково є (tools/dictindex overlapping selectors and reviewed clusters). The certification example shows that useful discrimination need not require a pattern to cover every positive item. Mova could preserve several partial structural selectors for a reviewed lexical group rather than insisting on a universal condition. Their coverage and exceptions would remain separate evidence. Why Mova: Linguistic uses often have several realizations, so a useful local distinction should not be discarded simply because it explains only some witnesses.

Idea: Give each candidate a canonical construction route. Where: Section 3.2 and Theorem 1. Area: combinatorial algorithms. Mova: нове. The digest establishes tree processing and rule induction, but not this particular enumeration scheme. A proposed miner could adopt a rightmost-extension discipline after specifying how token order, dependency relations, and node attributes enter its tree representation. Its uniqueness guarantee would require checking for that representation. Why Mova: Preventing duplicate candidates during construction could reduce wasted symbolic work while leaving a transparent record of how each structural hypothesis was assembled.

Idea: Keep only occurrence information sufficient for exact extension. Where: Section 3.3 and Lemma 1. Area: data processing. Mova: частково є (tools/dictindex compressed postings and compact frame records). Mova already stores evidence economically, but its existing records serve different operations from OPTT’s endpoint lists. A structural miner could investigate an additional endpoint representation linked to source identities. It would need an argument showing that its extension operation remains complete. Why Mova: The potential benefit is less repeated matching and less duplicated structural evidence, without replacing exact occurrence checks with approximate similarity.

Idea: Remove repeated endpoints during incremental updates. Where: Figure 6. Area: algorithms and counting. Mova: частково є (tools/dictindex distinct-sentence results and per-occurrence feature conventions). OPTT distinguishes uniqueness of candidate structures from uniqueness of their occurrence endpoints. A new structural component should do the same: several predecessor embeddings may lead to the same successor position. Duplicate detection belongs in the update procedure instead of being left to the statistical score. Why Mova: Correct endpoint sets would protect support calculations and avoid carrying redundant evidence into subsequent expansion steps.

Idea: Separate document coverage from occurrence frequency. Where: Sections 2.1 and 3.4. Area: statistics. Mova: частково є (tools/dictindex token-occurrence counts and distinct-sentence retrieval). OPTT’s internal evidence consists of node positions, but its objective counts matching documents. Mova could make this distinction explicit in structural reports, retaining token, sentence, and document measures under different names. Why Mova: A source with repeated examples should not acquire extra statistical influence accidentally when the declared question concerns whether a construction appears in each document.

Idea: Score the unmatched material as well as the matches. Where: Equation 1. Area: statistical objectives. Mova: нове. The documented index has association statistics, but the digest does not establish OPTT’s weighted split objective as a reusable structural scorer. A proposed implementation could retain the complete class contingency information and evaluate impurity in both resulting groups. Why Mova: This would discourage selectors that produce an attractive-looking matched subset while leaving the remaining evidence highly ambiguous, making the score correspond more closely to the stated separation task.

Idea: Exchange statistical objectives without rematching the corpus. Where: Section 2.1 and the evaluation step in Figure 3. Area: software architecture and statistics. Mova: нове. Classification error, entropy, and Gini all operate on class counts derived from the same occurrence evidence. A proposed structural discovery interface could separate matching from scoring so that reviewers can compare these preferences on identical candidates. Why Mova: Reusing exact evidence would reveal whether a discovery is stable across reasonable objectives or depends strongly on a particular way of penalizing class mixing.

Idea: Summarize candidate quality through sufficient class counts. Where: Section 3.4 and Equation 2. Area: data processing and mathematics. Mova: частково є (tools/dictindex aggregated counts and source-stratified summaries). OPTT’s stamp point makes a candidate’s statistical situation explicit without replacing its structural witnesses. Mova could attach an analogous count summary to every structural proposal while retaining the underlying source records. Why Mova: Reviewers could inspect the score’s inputs directly and compare candidates efficiently, while still being able to trace each aggregate back to the evidence that produced it.

Idea: Establish coverage monotonicity before pruning. Where: Section 3.4 and Theorem 2. Area: mathematical specification. Mova: частково є (groupant invariants and source-bound checks). Mova’s combinatorial descriptions already distinguish declared properties from evidence supporting them. A proposed miner should record that every extension adds requirements and therefore cannot gain matching documents. This property must be reconsidered if the pattern language later introduces alternatives or relaxation. Why Mova: A pruning rule is trustworthy only when its assumptions remain true; declaring monotonicity would connect the optimization shortcut to an explicit matching contract.

Idea: Prune using the best possible descendant score. Where: Theorem 2 and the pruning condition in Figure 3. Area: exact search. Mova: нове. No documented mechanism establishes OPTT’s impurity bound in Mova. A new bounded miner could apply the bound only after confirming compatible scoring and matching semantics. Each rejected branch could retain its bound and the incumbent score as its reason. Why Mova: This offers a concrete way to accelerate exact symbolic exploration while preserving a reviewable explanation for why an entire family of candidates was skipped.

Idea: Keep branches capable of tying the incumbent. Where: Figure 3 and the strict pruning comparison in Section 3.4. Area: ambiguity and interpretability. Mova: нове. Mova has candidate judging, but the digest does not establish complete reporting of tied structural optima. A proposed miner should distinguish “cannot win” from “cannot tie” and preserve equally scoring explanations when exhaustive output is requested. Why Mova: Several structures may explain the same observed split for different reasons, and their coexistence can expose uncertainty that a single returned winner would conceal.

Idea: Expose traversal as a resource policy. Where: Section 3.1 and Table 1. Area: execution and memory. Mova: частково є (tools/jobs and tools/twin). Mova already records resource estimates and measured costs. A structural discovery worker could offer explicit traversal choices, then select among them using observed memory and runtime under the same search contract. The paper’s absolute measurements would not predict the Rust implementation. Why Mova: A change in exploration order may make a bounded search feasible on available hardware without changing which structures are eligible or what score defines success.

Idea: Investigate how search order affects pruning opportunities. Where: Table 1 and Section 3.4. Area: algorithm analysis. Mova: нове. The paper demonstrates different pruning effects across traversals but does not provide a complete causal trace. Mova could record when a better incumbent appears and how that changes later branch decisions. Such tracing would diagnose behavior rather than assume a particular explanation. Why Mova: It could show whether a slow search needs cheaper updates, earlier strong candidates, or a more informative bound, instead of treating every runtime problem as the same problem.

Idea: State pattern limits in the execution contract. Where: Section 4.1 and Figure 8. Area: operational bounds. Mova: частково є (tools/enrich bounded proposals and the configured native deputy’s limits). The existing system already uses explicit scope restrictions. A structural worker should similarly record maximum candidate size, relevant branching statistics, matching rules, and completion status. Why Mova: These fields would make a completed bounded search distinguishable from an interrupted attempt and would prevent a favorable input-size result from being mistaken for unrestricted tractability.

Idea: Test corpus growth independently of hypothesis growth. Where: Figures 7 and 8. Area: evaluation design. Mova: частково є (tools/dictindex measure, tools/twin, and held-out evaluation practices). Existing measurement components could support separate runs varying source volume and candidate complexity. The important transfer is the experimental design; linear growth in Mova remains unknown. Why Mova: Separate curves would identify whether added cost comes from processing more witnesses or from considering a larger family of explanations, which call for different engineering responses.

Idea: Compare search mechanisms while keeping the task fixed. Where: Table 1. Area: controlled evaluation. Mova: вже є (en rules-audit, rule-disable controls, and regression gates). Mova already documents comparisons that enable or disable individual mechanisms. A structural miner could reuse that discipline to compare pruning and traversal while retaining the same representation, objective, and input. Why Mova: Controlled comparisons would attribute gains to the mechanism being changed and make time, memory, and completion evidence easier to interpret.

Idea: Keep objective-mismatched baselines distinct. Where: Table 1 and the comparison with FREQT. Area: evaluation interpretation. Mova: частково є (documented separation of CPU references, approximants, and task-specific measurements). FREQT’s frequency-based task differs from OPTT’s statistical optimization. Mova should similarly label a fast frequency selector as a different procedure when comparing it with an exact discriminative search. Why Mova: A shorter runtime is meaningful only alongside what work was required; otherwise a restricted baseline can appear to outperform a method whose task it does not actually complete.

Idea: Distinguish complete optimization from budgeted proposal generation. Where: Section 2.1 and Section 1.3. Area: reasoning and completion semantics. Mova: частково є (bounded worker outcomes, retained failures, and staged enrichment). A future miner should say whether it exhausted its declared language, safely pruned the remainder, or stopped with unexplored candidates. Greedy results should carry their own completion description. Why Mova: The same visible candidate can support different claims depending on how it was found, so search status belongs with the result rather than being inferred from a successful process exit.

Idea: Publish structural witnesses alongside aggregate quality. Where: Figure 9. Area: interpretability and provenance. Mova: вже є (tools/dictindex source credits and stable posting identities, plus rule explanations). Mova already retains evidence for proposals and decisions. An OPTT-inspired output could follow that practice by storing the exact structure, source scope, class coverage, and chosen objective together. Why Mova: A reviewer could distinguish a genuinely useful condition from a formatting artifact or an obvious target field without relying solely on an opaque score.

Idea: Identify direct target restatements among strong discoveries. Where: Figure 9’s genre example. Area: evaluation and information extraction. Mova: частково є (tools/dictindex exclusions and tools/enrich source checks). Existing admission boundaries already constrain what evidence enters proposals. An additional structural analysis could mark patterns that merely inspect an explicit encoding of the target designation. Why Mova: Such patterns may be statistically legitimate yet add little explanatory value, and distinguishing them would keep a discovery report informative without silently changing the optimization objective.

Idea: Make vertical and horizontal omissions separate choices. Where: Section 2.2. Area: syntax and representation. Mova: частково є (en trees and prag role extraction). OPTT preserves immediate parentage while allowing intervening siblings. A Mova adaptation should state those matching choices explicitly instead of using a vague notion of a fragment. Why Mova: A missing intermediate dependency node and an ignored neighboring dependent have different linguistic consequences, so conflating them could produce misleading explanations or invalidate occurrence updates.

Idea: Explore bounded dependency configurations. Where: Section 2.2 and Section 3.2. Area: syntax. Mova: частково є (en parsing and world induce). Mova’s Universal Dependencies output supplies structured input, and its repair induction supplies a plausible consumer. An experimental encoding could incorporate relation labels and selected lexical or morphological properties before mining contrasts between reviewed outcomes. Why Mova: Structural combinations may distinguish attachment or argument configurations that share vocabulary, but the encoding and any benefit would need separate validation.

Idea: Propose compound dictionary selectors from reviewed evidence. Where: Introduction, Section 2.1, and Figure 9. Area: lexicography. Mova: частково є (tools/dictindex propose, Nautilus review, and versioned labels). Current selectors use observed frames and collocates with support and PMI. A separate experiment could search combinations of structural conditions against an explicitly reviewed lexical group. Why Mova: A combination may identify a usage more precisely than a single collocate, while the existing witness and admission requirements can prevent statistical discrimination from becoming an unsupported definition.

Idea: Examine tree-shaped pragmatic contexts without erasing attribution. Where: Sections 2.1 and 2.2. Area: pragmatics. Mova: частково є (prag frames, attribution, and connective observations). The paper does not evaluate pragmatic interpretation. Mova could nonetheless test a declared tree encoding of local frame relationships when investigating recurring annotation disagreements. Non-tree relationships would need separate treatment. Why Mova: This could help find structural contexts associated with attribution or connective errors while keeping reported speech, beliefs, and asserted facts distinct in the underlying evidence.

Idea: Require reviewed admission after statistical discovery. Where: Section 2.1 and Figure 9. Area: durable knowledge. Mova: вже є (tools/enrich staging and Nautilus admission gates). Mova already separates proposals from accepted material. A discovered discriminator could enter a review queue carrying its witnesses, rather than becoming a rule, dictionary sense, or world fact immediately. Why Mova: An optimum describes an association in a particular sample; review is still needed to determine whether the association supports a linguistic explanation or a durable system change.

Idea: Attach complexity assumptions to the artifact that claims them. Where: Theorem 3 and Theorem 4. Area: mathematical documentation. Mova: частково є (groupants, declared invariants, and measured execution records). A proposed miner could state its size and branching assumptions alongside the algorithm identity and actual run scope. Any generalized representation would need a renewed bound. Why Mova: This would connect mathematical claims to observable execution conditions and prevent a theorem about bounded ordered trees from being extended casually to richer symbolic structures.

The problem and its context

The documents motivating this work have recognizable organization without sharing a rigid record layout. HTML and XML can contain nested elements, repeated fields, and optional components. The paper’s people example illustrates this variability: names can appear as simple content or as internally divided components, and people can have different attributes and repeated telephone entries. The collection is structured enough that nesting matters, but irregular enough that a fixed arrangement of fields does not capture every record naturally.

The authors place this difficulty against the growth of networked electronic collections. Their concern is not merely storage. Once many weakly standardized documents are available, a researcher needs ways to find useful regularities across them. Flattening everything into independent labels would discard relationships that distinguish a field’s role from the same content appearing elsewhere. Searching only entire documents would be too restrictive, because useful commonalities may occupy small local regions.

Their proposed unit of discovery is therefore a labeled tree pattern. This can express a nested configuration without reproducing the whole document. The research question is which such configuration best characterizes a group selected by the user. In the movie illustration, the user’s interest is represented by the distinction between action entries and other entries, rather than inferred from unspecified preferences.

That supplied distinction changes the mining objective. A frequent-pattern search asks which structures recur enough to pass a support condition. An optimized-pattern search asks which structure most effectively divides the target classes. These goals can coincide, but neither implies the other. A record-format convention may occur everywhere and separate nothing. A selective structure can be valuable even when it appears in only part of the interesting subset.

The paper locates optimized discovery within a tradition extending from statistical decision theory to learning theory and data mining. Its discussion mentions applications involving geometric regions, association rules, and textual patterns. The common abstraction is a candidate predicate evaluated on labeled examples. Here, the predicate is structural: a document either admits a matching of the tree pattern or does not.

The comparison with C4.5 helps clarify the intended search guarantee. According to the paper, impurity can guide local choices in a greedy learning procedure. OPTT instead treats the impurity objective itself as the quantity to optimize over its bounded pattern family. Finding a good candidate early does not finish the job unless the remaining candidates have been examined or safely ruled out.

Earlier semi-structured mining, as characterized by the authors, largely concentrates on frequent structures. Some methods construct candidates and test them against the data. Others follow levelwise approaches related to Apriori. Such methods benefit from frequency restrictions, but that source of pruning is not automatically suitable here: a low-frequency candidate can still be the discriminator the user wants.

FREQT provides the immediate algorithmic foundation. Instead of separating candidate generation from repeated whole-database matching, it develops structures incrementally together with their occurrence information. OPTT preserves that connection. The new challenge is to direct the machinery toward a statistical optimum while controlling a search that cannot simply discard everything below a chosen frequency.

The related-work discussion also distinguishes exact optimization from nearby alternatives. Matsuda and colleagues use graph-based induction to obtain near-optimal tree-like structures through greedy exploration. Inokuchi and colleagues begin with frequent subgraph discovery in an Apriori style and extend the approach towards optimization. Zaki’s independently proposed tree miner uses closely related enumeration machinery, with a gap-related pattern setting and further search ideas. These are descriptions of the research landscape given by the authors, not evidence that the methods solve identical tasks.

The contribution is best understood as an integration. Tree representation, statistical impurity, and incremental mining each have predecessors. OPTT combines them so that a bounded family of structural tests can be searched exactly, with compact occurrence updates and objective-aware branch rejection. Its theoretical analysis then states when this integration has favorable scaling and when the broader problem remains difficult.

The distinction between statistical and semantic usefulness remains important throughout. The user supplies the classes, and the algorithm optimizes separation. It does not know whether a resulting structure is surprising, explanatory, causally meaningful, or simply an explicit restatement of the class. The qualitative movie results make that separation visible instead of resolving it automatically.

The method, step by step

Specify the sample and the structural language

The database contains document trees. An accompanying binary attribute assigns each document to the interesting subset or its complement. The tree representation and the target attribute play different roles: the former supplies searchable structure, while the latter supplies the criterion against which structural distinctions are judged.

A candidate comes from the same general family of labeled ordered trees. Each candidate acts as a yes-or-no question about a document. The search does not initially assign probabilities to individual nodes or learn numerical representations of labels. It asks whether a specified arrangement occurs and then counts how those occurrence decisions relate to the supplied classes.

The pattern-size limit is an explicit input. This matters both operationally and mathematically. The algorithm promises optimality within the admitted size range, while the runtime analysis treats that range as a central parameter.

From labeled documents to optimal bounded patterns

The steps in order.

From labeled documents to optimal bounded patternsStep 1: Encode documents with ordered labeled trees1. Encode documents with ordered labeled treesStep 2: Initialize the empty candidate and occurrences2. Initialize the empty candidate and occurrencesStep 3: Count class membership among matched documents3. Count class membership among matched documentsStep 4: Score both sides of the split4. Score both sides of the splitStep 5: Reject branches using a descendant bound5. Reject branches using a descendant boundStep 6: Add leaves through rightmost extension6. Add leaves through rightmost extensionStep 7: Derive successor occurrences from retained endpoints7. Derive successor occurrences from retained endpointsStep 8: Report candidates attaining the minimum score8. Report candidates attaining the minimum score

Understand what “ordered” means

A node label identifies the kind of content or element represented at that position. Edges record immediate nesting. The order belongs to children sharing a parent: an earlier child remains earlier than a later child. Labels themselves do not need an alphabetical or numerical ordering.

This distinction matters because the same labels can describe different structures. A name nested inside a person is not interchangeable with a person nested inside a name. Similarly, selected children occurring in a particular sequence are not interchangeable with the reverse sequence.

Patterns receive preorder numbering. Traversal visits a node before proceeding through its children in their order. This numbering gives the rightmost leaf a privileged position in the algorithm: it is the final node of the pattern and the reference point for extension.

A match maps pattern nodes into document nodes without merging distinct pattern positions. Corresponding nodes must have identical labels. Immediate parent relationships must remain immediate parent relationships, so a pattern edge cannot silently absorb an arbitrary chain of intervening nodes.

The horizontal requirement is less restrictive than adjacency. Selected siblings must retain their relative order, but other document siblings may occur between them. Thus the pattern can ignore extra fields at a shared level while preserving the hierarchy of the fields it does retain.

The pattern root also need not coincide with the document root. A local configuration can match at an internal location. This is essential for discovering substructure rather than requiring every useful condition to describe the outermost document organization.

These choices define the search language. Changing any of them changes which patterns occur, which documents match, and potentially whether the occurrence-update and pruning arguments still apply. They are not implementation details that can be altered independently of the method.

Convert matches into class counts

After matching a candidate, the database is partitioned by pattern presence. Within each side, the supplied target attribute separates positive from negative documents. The objective therefore depends on the class counts in the matched and unmatched groups.

The paper’s classification-error impurity is:

ψ₁(x) = min(x, 1 − x)

The symbol x represents the positive proportion inside a group. The function ψ₁ returns the smaller class proportion. If the entire group were assigned its majority class, that smaller proportion would be misclassified.

The entropy choice is:

ψ₂(x) = −x log x − (1 − x) log(1 − x)

Here ψ₂ denotes entropy, x retains the same proportion meaning, and log denotes the logarithm used in the definition. Both class proportions contribute to uncertainty within the group.

The Gini choice is:

ψ₃(x) = 2x(1 − x)

The symbol ψ₃ denotes Gini impurity. Its factors describe the positive and negative shares. Like the other choices, it favors class-pure groups over groups with a more balanced class mixture.

The split objective weights each group’s impurity by its number of documents:

Ψ(T) = (N₁ᵀ + N₁ᶠ) ψ(N₁ᵀ / (N₁ᵀ + N₁ᶠ)) + (N₀ᵀ + N₀ᶠ) ψ(N₀ᵀ / (N₀ᵀ + N₀ᶠ))

T is the candidate pattern, ψ is the selected impurity function, and Ψ(T) is the resulting cost. N₁ᵀ counts matched positive documents; N₁ᶠ counts matched negative documents. N₀ᵀ and N₀ᶠ refer to the corresponding unmatched documents.

The leading subscripts distinguish occurrence from nonoccurrence. The superscripts distinguish the supplied classes. This notation separates a document’s target designation from the answer to the structural matching question.

Minimizing only the impurity among matches would neglect the rest of the collection. The weighted objective prevents that omission. A pattern is judged by the complete partition it induces, including positive documents it fails to match and negative documents it leaves outside.

A document contributes according to presence, not according to the number of embeddings it contains. Several occurrences may be necessary to support future extensions, but they do not turn the document into several independent class examples.

Express the score as a point in count space

For a fixed database, total class sizes do not vary between candidates. The variable part is the number of positives and negatives matched. The authors call this pair a stamp point.

(x, y) = (N₁ᵀ, N₁ᶠ)

The coordinate x counts matched positives, and y counts matched negatives. Different structures can have the same coordinates even if they match different individual documents. Their impurity scores are then identical because the objective uses these aggregate class counts.

The equivalent score expression is:

Φ(x, y) = (x + y) ψ(x / (x + y)) + (N − (x + y)) ψ((Nᵀ − x) / (N − (x + y)))

The symbol Φ expresses the split cost through the stamp point. Nᵀ is the total positive count, and N is the total document count in this expression. The quantity x + y gives the matched group’s size; the other group contains N − (x + y) documents.

This count-space view is what makes a structural search accessible to a numerical bound. The algorithm still needs tree matching to obtain x and y. Once it has them, however, it can reason about the best possible statistical consequences of further structural requirements.

The paper reuses N differently in its complexity section, where it denotes the number of data nodes. The distinction must be retained: document counts determine the objective, while node counts determine the size of the structural input.

Build candidates through a unique extension operation

Starting from the empty tree, OPTT adds a labeled leaf to obtain a larger candidate. The added leaf becomes the last child of some node along the current rightmost path. The allowed attachment points run from the existing final leaf upward toward the root.

This restriction is enough to generate the relevant ordered trees while avoiding multiple construction histories. Consider reversing a completed candidate’s construction: removing its last preorder node identifies the smaller pattern from which it arose. Theorem 1 formalizes this uniqueness by making the enumeration structure a tree.

The benefit differs from simply using a set to discard duplicate candidates. Duplicate suppression after generation still spends effort constructing competing versions and determining equivalence. Canonical extension prevents those competing routes from existing in the first place.

The boundary collection stores candidates waiting to be processed together with their occurrence lists. Its push and pop behavior determines traversal. A queue supports breadth-first exploration; a stack-like discipline supports depth-first exploration. Neither choice changes the candidate language.

Candidates are scored as they are removed from the boundary. The algorithm maintains the strongest score encountered and can retain candidates achieving it. Expansion ends at the admitted size limit or when the bound establishes that no relevant descendant can improve or tie the incumbent.

Keep endpoints instead of complete embeddings

A complete embedding specifies a document position for every pattern node. Retaining all such mappings can repeat considerable information, particularly when several mappings share most of their positions.

OPTT records the document positions assigned to the rightmost pattern leaf. These endpoints form the rightmost-occurrence list. The list can contain multiple positions from a document because different positions may permit different future extensions.

The sufficiency claim is specific. Endpoints are not a universal replacement for structural mappings. They work here because the rightmost-extension operation and the tree-matching definition constrain where a new node can occur relative to an existing endpoint.

For an extension attached below the final leaf, the update examines children of the corresponding document endpoint. For an attachment higher on the rightmost path, it uses ancestor navigation to identify the appropriate sibling region and scans subsequent siblings for the desired label.

The procedure thus calculates evidence for a successor from evidence for its predecessor. It avoids repeating a complete database search for every larger candidate. The incremental relationship between structure and evidence is central to both practical efficiency and the runtime argument.

Duplicate detection is needed within this update. Distinct prior endpoints can direct the procedure towards the same higher-level extension region. Without controlling that overlap, the algorithm could append the same resulting endpoint repeatedly.

Lemma 1 states that the update recovers exactly the rightmost occurrences of the successor without duplicates. This is a correctness property of the update machinery, not merely an observation that the lists tend to be short.

When evaluating impurity, the node positions must still be associated with their documents. Endpoint multiplicity supports extension; document identity supports classification counts. Keeping these roles separate prevents a representation chosen for search from changing the meaning of the objective.

Obtain a safe bound for every extension

Adding a required node cannot make a previously nonmatching document match. Every match of a larger candidate contains a match of its predecessor. As a consequence, extension can reduce either class’s matched count, but cannot increase it.

For a candidate with coordinates (x, y), every descendant therefore lies within the corresponding lower-count region. The paper combines this restriction with the impurity objective to obtain the following inequality:

Φ(x′, y′) ≥ min(Φ(x, 0), Φ(0, y))

The coordinates x′ and y′ belong to a descendant. The expression on the right evaluates class-pure matching extremes associated with the predecessor’s available coverage. It is a lower bound on descendant cost, not an assertion that an actual descendant achieves either extreme.

If that lower bound exceeds the best score already found, no descendant can be optimal. OPTT can skip the whole branch. The current candidate’s observed impurity alone would not justify that action: a poor current split might still have a highly selective extension.

The comparison is strict. Equality leaves open the possibility of another candidate attaining the incumbent score. Preserving that possibility matters because the stated output includes all optimal candidates within the size restriction.

The paper names this mechanism convexity pruning. Its examples of impurity and the direction of its displayed inequality correspond to what is ordinarily called concavity. The terminology should therefore be read with care. The operative guarantee is the descendant lower bound and its relationship to the incumbent, rather than the name attached to the curvature.

Separate statistical pruning from structural efficiency

Canonical generation, endpoint updates, and pruning solve different problems. The first prevents redundant candidates. The second avoids storing and rematching complete embeddings. The third prevents exploration of candidates whose best possible statistical outcome is already inadequate.

This separation helps explain why disabling pruning does not remove the entire method. OPTT without the pruning suffix still benefits from the structural machinery inherited from FREQT. Conversely, a strong statistical bound would not by itself make unrestricted candidate generation or repeated full matching inexpensive.

The algorithm is also not a greedy selector that commits permanently to the first appealing structure. Its incumbent is a reference for safe rejection. A candidate survives whenever the bound leaves room for an optimal descendant, even if the candidate itself scores poorly.

Read the bounded-case guarantee correctly

The principal runtime result is:

Time(OPTT) = O(k^(k+1) b^k N)

Time(OPTT) denotes the running time, k is the maximum candidate size, b is the greatest number of children of a data node, and N is the total node count across the database. O indicates an asymptotic upper bound.

The expression is linear in N when k and b remain fixed. It does not say that their influence is small. A collection with modest node count can still induce a demanding search when larger structures are allowed.

The proof tracks total occurrence-list length across a candidate level. Its central growth relation is:

R(k) ≤ kbR(k − 1)

R(k) denotes the combined rightmost-occurrence-list length for patterns at size k. The factor k accounts for possible extension positions, while b bounds the branching available in the data. The argument connects processing cost to incrementally produced occurrence evidence.

The comparison procedure in the analysis constructs possible candidates and then tests them. The authors allow the label vocabulary to grow with input size:

l(N) = O(N^α)

The function l(N) counts distinct labels, and α is an exponent subject to the paper’s assumptions. This setting matters because a larger label vocabulary expands the number of syntactically possible candidates.

For the generate-and-test comparison, they give:

T(N) = Θ(2^(ck) N^(1+kα))

Here T(N) is the estimated runtime, c comes from the candidate-count expression, and Θ specifies an asymptotically matching growth order. Unlike OPTT’s bounded-case expression, this dependence is not linear in N under the stated assumptions.

The broader methodological point is that an algorithm can avoid paying separately for every abstractly possible label combination. Incremental occurrence construction follows combinations supported by the data, and the proof accounts for that evidence directly.

Experiments and results

Collections, implementation, and measured quantities

The experimental material comes from Citeseers and Imdb. Citeseers consists of HTML generated through CGI. Imdb consists of movie entries that the authors obtained and manually converted into XML. The paper describes both collections as containing hundreds of thousands of nodes and thousands of distinct tags.

The implementation uses Java, SUN JDK1.3.1 JIT, and the OpenXML DOM library. The hardware description specifies a Pentium III 600MHz computer with 512 MB of memory running Linux 2.2.14. These conditions matter when interpreting absolute timings; the results characterize this implementation in that environment.

The reported quantities serve different purposes. Runtime and space evaluate computational behavior. The class coverage and Gini values attached to displayed structures explain the discoveries. The study does not report held-out predictive accuracy as its main experimental outcome.

Growth with input volume

The Citeseers scalability experiment holds the candidate-size ceiling at k = 5. Input ranges from 316 KB with 22,847 nodes to 5.61 MB with 402,740 nodes. The authors describe the runtime curve as roughly linear.

That observation is consistent with the theorem’s dependence on node count under fixed structural parameters. It is not a direct measurement of the asymptotic expression’s constants, nor does the surrounding discussion specify every intermediate plotted timing.

The experiment is nevertheless informative because document mining must cope with collections containing growing label vocabularies and repeated irregular structures. It tests whether the implementation’s incremental machinery remains useful beyond a tiny input.

Its conclusion should retain the fixed-size condition. Increasing the data while preserving a restricted candidate language is a different operation from making the language itself more expressive.

Growth with the candidate-size allowance

For the complementary experiment, the input remains an Imdb subset of 40 KB containing 5835 nodes. The permitted maximum pattern size varies from 1 to 11.

The runtime figure uses a logarithmic vertical axis. The paper interprets the trend as exponential growth with the pattern-size allowance. The actual intermediate timings are not stated in the prose, so the result is a reported trend instead of a numerical series to reconstruct.

This finding does not contradict favorable input-size scaling. The theoretical bound already places substantial dependence on candidate size. Together, the experiments identify a practical operating regime: more data can be manageable when the structural hypotheses remain small.

Traversal and pruning costs

The comparison on Imdb data of size 40 KB includes OPTT variants with depth-first or breadth-first traversal, each with or without the statistical bound. It also includes breadth-first FREQT under a 0.1% frequency setting.

Imdb 40 KB runtime by search configuration

Statistical pruning changes depth-first runtime more noticeably than breadth-first runtime.

Imdb 40 KB runtime by search configurationOPTT DF: 29.7OPTT DF29.7OPTT DF+C (this paper): 21.5OPTT DF+C (this paper)21.5OPTT BF: 20.2OPTT BF20.2OPTT BF+C: 20.0OPTT BF+C20.0FREQT BF, 0.1%: 10.4FREQT BF, 0.1%10.4
The numbers
System or settingseconds
OPTT DF29.7
OPTT DF+C (this paper)21.5
OPTT BF20.2
OPTT BF+C20.0
FREQT BF, 0.1%10.4

The shortest listed runtime belongs to FREQT, but its task differs. A frequency-constrained search does not establish completion of the same impurity optimization. The comparison indicates relative computational cost in the experiment, not interchangeable solution quality.

The space figures reveal a stronger distinction between traversal policies:

Imdb 40 KB space by search configuration

Depth-first OPTT requires substantially less reported space than breadth-first OPTT.

Imdb 40 KB space by search configurationOPTT DF: 8.0OPTT DF8.0OPTT DF+C (this paper): 8.0OPTT DF+C (this paper)8.0OPTT BF: 96.4OPTT BF96.4OPTT BF+C: 96.4OPTT BF+C96.4FREQT BF, 0.1%: 20.7FREQT BF, 0.1%20.7
The numbers
System or settingMB
OPTT DF8.0
OPTT DF+C (this paper)8.0
OPTT BF96.4
OPTT BF+C96.4
FREQT BF, 0.1%20.7

Pruning does not change the displayed space figure within either traversal family. Search order does. The result supports treating depth-first exploration as an attractive option when memory is the primary constraint, despite the shorter breadth-first timings in this particular comparison.

The meaning of the discovered structures

The qualitative experiment uses movie entries divided into 15 action items and 15 family items. The authors describe this collection as 1 MB with over two hundred thousand nodes. Gini provides the optimization criterion.

The action-genre structure has reported size 3 and Gini 0.125. Its coverage is 15/15 for action entries and 1/15 for family entries. It tests an explicit genre value, making it a strong separator whose interpretation closely follows the supplied grouping.

The certification example is less direct. Its reported size is 4, its Gini is 0.333, and its coverage is 12/15 among action entries against 0/15 among family entries. The nested value is 15, interpreted by the authors as a restriction concerning viewers under that age in at least one country.

The example is useful because the positive coverage is incomplete. A method that insisted on universal positive occurrence would reject it. The impurity objective can recognize that selective matches may still provide a valuable split.

For contrast, the director/person configuration has size 3 and frequency 1.00. Its displayed coverage is 15/15 in both classes. This establishes repetition without distinction: it reflects a shared property of the movie records instead of a characteristic of the selected group.

The displayed Gini values are reported as the authors give them. The qualitative presentation does not explain how its score normalization relates to the earlier weighted objective. Coverage is therefore the clearest basis for understanding what each structure separates; the score labels should not invite an undocumented recalculation.

What the ablations show

Changing traversal isolates a resource tradeoff

The depth-first and breadth-first variants explore the same kind of candidates using different boundary policies. This makes their comparison more informative than comparing unrelated miners: the principal changed mechanism is the order in which pending structures are processed.

A breadth-first policy can retain candidates across a broad level, together with their occurrence information. A depth-first policy advances along a branch before returning to alternatives. The memory measurements are consistent with these different demands on pending state.

The result does not make depth-first traversal universally preferable. Breadth-first OPTT is quicker in the displayed comparison. What the experiment establishes is that the choice has consequences on separate resource dimensions, and memory can change substantially even when the underlying discovery task stays fixed.

The paper does not break the measured space into candidate structures, occurrence lists, runtime overhead, and other components. The interpretation that boundary retention matters follows the algorithm’s organization, but the table is not a detailed memory profile.

Enabling pruning isolates an objective-aware shortcut

The C variants add the descendant bound to the corresponding traversal. The comparison therefore addresses whether the statistical argument saves work beyond the incremental search machinery already present.

The depth-first runtime improvement supports the authors’ effectiveness claim for that setting. The breadth-first comparison shows a much smaller visible change. It would be inaccurate to describe pruning as equally beneficial across the measured traversals.

There is a plausible interaction through the incumbent. The pruning decision depends on the best result encountered so far, and traversal influences when strong candidates are encountered. However, the paper does not trace incumbent discovery or count rejected branches, so that explanation remains an interpretation of the mechanism rather than an experimentally isolated cause.

Other contributions could also affect the net timing, including the cost of evaluating the bound itself. The study reports the combined runtime outcome; it does not separately measure every source of overhead or savings.

The scaling experiments control different sources of difficulty

The Citeseers experiment varies the amount of evidence under a fixed structural ceiling. The Imdb experiment varies the ceiling while keeping the evidence fixed. Their contrasting trends expose why the word “scalable” needs a parameter.

Neither experiment alone would provide the same picture. The input-volume curve could conceal a severe dependence on candidate complexity. The size-limit curve, viewed alone, could conceal the benefit of incremental processing across larger collections.

These are controlled parameter analyses rather than component-removal ablations. They support the conditional nature of the theorem and give an empirical warning against expanding the candidate language casually.

Some central mechanisms are justified without timed ablations

The paper does not report a separate experiment replacing rightmost enumeration with unrestricted leaf addition. It also does not time a version that stores every complete embedding instead of endpoints.

Those mechanisms receive support through the construction theorem, occurrence-update lemma, prior FREQT work, and complexity analysis. The absence of a timed replacement does not invalidate them, but it limits claims about how much of the observed runtime each mechanism contributes individually.

Similarly, the qualitative contrast between genre, certification, and director structures demonstrates what the objective selects. It does not establish comparative generalization, human surprise, or downstream usefulness. Its role is to make the statistical target understandable through actual output.

Limitations

Restrictions established by the authors

The bounded-case guarantee treats candidate size and data branching as central assumptions. Linearity in total node count is conditional on holding them fixed. The growth experiment with larger permitted patterns shows that this restriction is consequential in practice.

The authors also analyze maximum agreement, a problem dual to minimizing classification error. Their unrestricted-case theorem rules out a polynomial-time approximation guarantee of the following form, assuming P ≠ NP:

770/767 − ε

The quantity ε can be any positive value in the theorem’s statement. The expression specifies the forbidden approximation factor for the stated maximum-agreement problem, instead of a measured error rate or a runtime constant.

The conditions include unrestricted pattern size and an unrestricted label alphabet. The result continues to hold when maximum depth is at most three, or alternatively when maximum branching is at most two. The alternatives should not be merged into an unsupported assertion about imposing both restrictions simultaneously.

This theorem establishes a worst-case obstacle. It does not predict every dataset’s behavior, rule out useful bounded searches, or imply an identical approximation barrier for every impurity objective discussed in the paper.

The conference treatment refers the proof to the fuller technical report. The reduction is therefore not available in the main exposition for step-by-step inspection. The stated result still explains why limiting candidate size is more than a convenient experimental setting.

Boundaries of the evidence

A sample-optimal split need not remain optimal on new documents. The experiments demonstrate discovery and computational behavior within the supplied collections. They do not provide a held-out test of the movie structures’ predictive performance.

This distinction is particularly important for the certification association. Its coverage can depend on which entries were selected, which certification fields were present, and how the records were represented. The paper’s evidence supports a relationship in that collection, not a general rule about genre and age restrictions.

The genre example reveals another boundary. An algorithm can legitimately optimize its statistical objective by inspecting a field that expresses the target almost directly. That result may be less useful for discovery than an indirect clue, but the impurity function does not encode the user’s notion of novelty or explanatory depth.

The paper also does not report an experiment measuring human judgments of interestingness. The examples are interpretable and motivate the task, yet they do not establish that the output is consistently surprising or useful to domain specialists.

Data preparation and reproducibility limits

Imdb records were manually converted into XML. The experiment evaluates the resulting trees, without independently assessing a general conversion process for arbitrary semi-structured material.

The exact encoding matters. Whether content becomes a label, whether attributes become nodes, and how nesting is represented can alter the pattern language’s effective meaning. The article’s algorithmic definition is precise about matching once trees exist, but the experimental description does not constitute a complete account of every transformation decision.

The runtime table gives point measurements in a specified software and hardware environment. It does not accompany them with uncertainty intervals, repeated-run variation, or a broad comparison across implementation environments. The measurements should therefore support conclusions at their reported scope.

The plots similarly support the authors’ trend descriptions without supplying a full numerical series in the accompanying discussion. Inventing intermediate values or extrapolating full-collection runtime would go beyond the evidence.

Restrictions of the representation

The search language requires trees with exact labels and ordered children. Shared objects, cross-references, and overlapping relationships do not automatically fit that representation. Converting such structures into trees may duplicate or omit relationships, and the consequences would need examination.

Vertical matching also remains strict. A direct pattern edge cannot match an arbitrarily long descendant path. Horizontal matching permits intervening siblings, but still respects their order. Applications requiring different gap behavior or unordered children would need revised matching and update arguments.

Exact labels provide clarity but no built-in semantic equivalence. Two differently labeled fields will not match merely because a reader regards them as synonymous. Any label normalization would become an additional preprocessing decision with its own effect on discoveries.

The target is binary and supplied in advance. The paper does not solve the separate problem of identifying what a user ought to find interesting, nor does it experimentally extend the objective to richer forms of supervision.

Formal details requiring care

The curvature terminology is inconsistent with the usual naming of the displayed impurity functions and inequality. An implementation should rely on a correctly established bound for its chosen objective, instead of copying the word “convex” as sufficient justification.

The weighted impurity expression also encounters cases in which a resulting group is empty. The empty pattern makes this issue relevant immediately. The paper does not elaborate the arithmetic conventions for those cases, so a precise implementation must handle them explicitly without changing the intended limiting contribution.

Finally, returning every optimum can itself produce a large output. The paper emphasizes complete optimal discovery, but the displayed examples do not characterize how many equally scoring structures may exist in other collections. This is an output-size concern visible from the specification, rather than an experimentally measured limitation.

What came after

The available research record does not identify a subsequent citing study whose extension or application can be described reliably. There is therefore no supported basis for attributing later improvements, adoption, or downstream results to a particular successor.

The paper’s established connections point backward or sideways. FREQT supplies the incremental mining foundation. Bayardo’s enumeration approach informs the canonical construction strategy. Morishita and Sese provide the statistical pruning result, while Zaki’s independently developed miner offers a closely related enumeration approach. These relationships explain OPTT’s position without turning its predecessors or contemporaries into later consequences.

The method leaves identifiable questions open: how stronger bounds might affect exploration, how occurrence evidence should change under different matching rules, and whether discovered structures retain their value beyond the sample used to select them. Those are research directions suggested by the paper’s boundaries. They are not claims that later work has already resolved them.

Cite

Cite as Kenji Abe, Shinji Kawasoe, Tatsuya Asai, Hiroki Arimura and Setsuo Arikawa. 2002. Optimized Substructure Discovery for Semi-structured Data. Lecture notes in computer science.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/3-540-45681-3_1

@inproceedings{abe2002optimized,
  title = {{Optimized Substructure Discovery for Semi-structured Data}},
  author = {Kenji Abe, Shinji Kawasoe, Tatsuya Asai, Hiroki Arimura and Setsuo Arikawa},
  booktitle = {Lecture notes in computer science},
  year = {2002},
  doi = {10.1007/3-540-45681-3\_1},
  url = {https://doi.org/10.1007/3-540-45681-3_1}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/abe-2002-optimized-substructure-discovery-semi-structured/