# Patent

## Title
Topic distillation via subsite retrieval

## Abstract

A method and system for generating a search result for a query of hierarchically organized documents based on retrieval of subtrees that are key resources for topic distillation is provided. The retrieval system may identify documents relevant to a query using conventional searching techniques. The retrieval system then calculates a subtree feature for subtrees that have an identified document as their root. After the retrieval system calculates the subtree feature for the subtrees, the retrieval system may generate a subtree relevance score for each subtree based on its subtree feature. The retrieval system may then order the identified documents based on their corresponding subtree relevances.

## Background
BACKGROUND
Many search engine services, such as Google and Overture, provide for searching for information that is accessible via the Internet. These search engine services allow users to search for display pages, such as web pages, that may be of interest to users. After a user submits a search request (i.e., a query) that includes search terms, the search engine service identifies web pages that may be related to those search terms. To quickly identify related web pages, the search engine services may maintain a mapping of keywords to web pages. This mapping may be generated by “crawling” the web (i.e., the World Wide Web) to identify the keywords of each web page. To crawl the web, a search engine service may use a list of root web pages to identify all web pages that are accessible through those root web pages. The keywords of any particular web page can be identified using various well-known information retrieval techniques, such as identifying the words of a headline, the words supplied in the metadata of the web page, the words that are highlighted, and so on. The search engine service may generate a relevance score to indicate how relevant the information of the web page may be to the search request based on various metrics such as the term frequency by inverse document frequency metric (“tf*idf”). The search engine service may also generate an importance score to indicate the importance of the web page based on various metrics such as Google's PageRank metric. The search engine service then displays to the user links to those web pages in an order that is based on a ranking determined by their relevance and importance.
Two well-known techniques for determining the importance of web pages are PageRank and HITS (“Hyperlink-Induced Topic Search”). PageRank is based on the principle that web pages will have links to (i.e., “outgoing links”) important web pages. Thus, the importance of a web page is based on the number and importance of other web pages that link to that web page (i.e., “incoming links”). In a simple form, the links between web pages can be represented by matrix A, where Aij represents the number of outgoing links from web page i to web page j. The importance score wj for web page j can be represented by the following equation:

wj=ΣiAijwi.

This equation can be solved by iterative calculations based on the following equation:

ATw=w

where w is the vector of importance scores for the web pages and is the principal eigenvector of AT.

The HITS technique is additionally based on the principle that a web page that has many links to other important web pages may itself be important. Thus, HITS divides “importance” of web pages into two related attributes: “hub” and “authority.” “Hub” is measured by the “authority” score of the web pages that a web page links to, and “authority” is measured by the “hub” score of the web pages that link to the web page. In contrast to PageRank, which calculates the importance of web pages independently from the query, HITS calculates importance based on the web pages of the result and web pages that are related to the web pages of the result by following incoming and outgoing links. HITS submits a query to a search engine service and uses the web pages of the result as the initial set of web pages. HITS adds to the set those web pages that are the destinations of incoming links and those web pages that are the sources of outgoing links of the web pages of the result. HITS then calculates the authority and hub score of each web page using an iterative algorithm. The authority and hub scores can be represented by the following equations:




  
    a
    ⁡
    
      (
      p
      )
    
  
  =
  
    
      
        ∑
        
          q
          ->
          p
        
      
      ⁢
      
        
          h
          ⁡
          
            (
            q
            )
          
        
        ⁢
        
          
        
        ⁢
        and
        ⁢
        
          
        
        ⁢
        
          h
          ⁡
          
            (
            p
            )
          
        
      
    
    =
    
      
        ∑
        
          p
          ->
          q
        
      
      ⁢
      
        a
        ⁡
        
          (
          q
          )
        
      
    
  




where a(p) represents the authority score for web page p and h(p) represents the hub score for web page p. HITS uses an adjacency matrix A to represent the links. The adjacency matrix is represented by the following equation:





  
    b
    ij
  
  =
  
    {
    
      
        
          1
        
        
          
            if
            ⁢
            
              
            
            ⁢
            page
            ⁢
            
              
            
            ⁢
            i
            ⁢
            
              
            
            ⁢
            has
            ⁢
            
              
            
            ⁢
            a
            ⁢
            
              
            
            ⁢
            link
            ⁢
            
              
            
            ⁢
            to
            ⁢
            
              
            
            ⁢
            page
            ⁢
            
              
            
            ⁢
            j
          
        
      
      
        
          0
        
        
          otherwise
        
      
    
  




The vectors a and h correspond to the authority and hub scores, respectively, of all web pages in the set and can be represented by the following equations:

a=ATh and h=Aa

Thus, a and h are eigenvectors of matrices ATA and AAT. HITS may also be modified to factor in the popularity of a web page as measured by the number of visits. Based on an analysis of click-through data, bij of the adjacency matrix can be increased whenever a user travels from web page i to web page j.
Although these techniques are useful for locating a broad range of documents that are relevant to a query, these techniques often do not provide satisfactory results for a “topic distillation.” Topic distillation refers to the finding of key resources for a particular topic. Some surveys have indicated that in 30%-40% of web searches the user is interested in finding key web pages for the topic of the query. Although a search engine may return a broad range of documents that include key documents, those key documents may be buried deep within the thousands of documents of the search result. For example, a person who submits the query “wireless communication” may want to identify a key web page for this topic. A typical search engine that bases relevance on the content of each web page may include the web pages of Table 1 in the search result.










TABLE 1





Rank
Document ID
Relevance
URL


















70
G35-97-1056561
9.858
cio.doe.gov/wireless/3g/3g_index.htm


470
G07-38-3990160
9.508
cio.doe.gov/spectrum/groups.htm


477
G35-75-1119753
9.481
cio.doe.gov/spectrum/philo.htm


518
G36-35-1278614
9.320
cio.doe.gov/wireless/background.htm


571
G07-10-2999356
9.093
cio.doe.gov/spectrum/background.htm


648
G35-01-1537522
8.817
cio.doe.gov/wireless/wwg/wwg_index.htm


649
G07-78-3824915
8.815
cio.doe.gov/wireless/









Table 1 lists web pages of the search result that are within the subsites “cio.doe.gov/wireless” and “cio.doe.gov/spectrum.” Since the user is interested in key web pages relating to wireless communication, the web page identified with the URL “cio.doe.gov/wireless” is likely more of a key resource to the topic of “wireless communication” than the other web pages listed in Table 1. However, because the relevance to the query may be based on the similarity of the content of the web pages to the query, many web pages that are not key resources for topic distillation have a higher relevance score and thus a higher ranking. In such a case, it can be difficult for a user to search through the pages of search results to identify key resources to the topic of interest.
SUMMARY
A method and system for generating a search result for a query of hierarchically organized documents based on retrieval of subtrees that are key resources for topic distillation is provided. The retrieval system may identify documents relevant to a query using conventional searching techniques. The retrieval system then calculates a subtree feature for subtrees that have an identified document as their root. The subtree feature is a combination of a contribution of that feature derived from the root document along with a contribution of that feature derived from the descendant documents of that root document. After the retrieval system calculates the subtree feature for the subtrees, the retrieval system may generate a subtree relevance score for each subtree based on its subtree feature. The retrieval system may then order the identified documents based on their corresponding subtree relevances.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a diagram that illustrates the hierarchical relations of web pages of a sample web site.
FIG. 2 is a block diagram that illustrates components of the retrieval system in one embodiment.
FIG. 3 is a flow diagram that illustrates the processing of the re-rank result using subsite component of the retrieval system in one embodiment.
FIG. 4 is a flow diagram that illustrates the processing of the calculate subsite feature component of the retrieval system in one embodiment.
FIG. 5 is a flow diagram that illustrates the processing of the calculate descendant contributions component of the retrieval system in one embodiment.
FIG. 6 is a flow diagram that illustrates the processing of the calculate descendant contributions at level component of the retrieval system in one embodiment.
FIG. 7 is a flow diagram that illustrates the processing of the rank ancestor subsites component of the retrieval system in one embodiment.



DETAILED DESCRIPTION
A method and system for generating a search result for a query of hierarchically organized documents based on retrieval of subtrees that are key resources for topic distillation is provided. In one embodiment, the retrieval system identifies documents relevant to a query using conventional searching techniques. For example, the retrieval system may input a query, submit the query to a search engine service, and receive the search result from the search engine service. The retrieval system then calculates a subtree feature for subtrees that have an identified document as its root. The subtree feature is a combination of a contribution of that feature derived from the root document along with a contribution of that feature derived from the descendant documents of that root document. For example, the feature may be a term frequency by inverse document frequency metric or any other feature or combination of features that can be used to determine relevance of a document to a query. After the retrieval system calculates the subtree feature for the subtrees, the retrieval system may generate a subtree relevance score for each subtree based on its subtree feature. Since the subtree relevance score is generated from features aggregated from both the root document and its descendant documents, the subtree relevance score provides a more accurate representation of the relevance of the root document to the query for purposes of topic distillation. The retrieval system may then order the identified documents based on their corresponding subtree relevances. The retrieval system may also assess the subtree relevance of ancestor documents of the identified documents. The retrieval system may calculate the subtree relevance for the parent document, the grandparent document, and so forth. The retrieval system may then select the ancestor document (one may consider a document to be its own ancestor) with the highest subtree relevance for inclusion in the search result. In this way, the retrieval system provides search results that identify subtrees of documents that represent key resources of the query topic, rather than results that identify individual documents whose content is more relevant to a query than the content of other documents.
In one embodiment, the retrieval system interfaces with a web-based search engine to identify subsites (i.e., a portion of a web site) of web pages that are key sources of information for a query topic. The retrieval system considers each web page of the search result to be a root web page of a subsite. The retrieval system calculates a subsite feature by combining a contribution of the feature of the root web page and a contribution of the feature derived from the descendant web pages. When calculating the contribution of the descendant web pages, the retrieval system weights the contribution of descendants with a close ancestral distance more highly than the contribution of descendants with a distant ancestral distance. For example, the contribution of a feature derived from child web pages of a root web page will have a greater effect on the subsite feature than the contribution derived from great-grandchildren web pages. In addition, the retrieval system weights the contribution of descendants that have fewer siblings more highly then the contribution of descendants with more siblings. For example, the contribution of a feature derived from a child web page with only one sibling will have a greater effect on the subsite feature than the contribution derived from a child web page with 10 siblings. In this way, the retrieval system factors in both ancestral distance and number of siblings in determining contribution of a web page to a subsite feature.
In one embodiment, the retrieval system uses an ancestral distance punishment factor when determining the contribution of a web page. The ancestral distance punishment factor may help prevent “concept drift” that results from more and more levels of web pages being added to a subsite. The retrieval system may represent the ancestral distance punishment factor as follows:

α(Δl)=λΔl  (1)

where α represents an ancestral distance punishment factor, Δl represents an ancestral distance between a root web page and a descendant web page, and λ represents a control parameter to control the amount of punishment. The ancestral distance is the number of levels from a web page to a descendant web page. The level l of a web page of a web site corresponds to its depth within the subsite. The root web page of a subsite has a level of 1, its children web pages have a level of 2, their children's web pages have a level of 3, and so on. Thus, the ancestral distance between web pages is represented as follows:

Δl=l(a)−l(b)  (2)

where l(x) represents the level of web page x, and a and b represent web page a and its descendant web page b. By adjusting the control parameter, the retrieval system can affect the contribution of ancestor web pages to a subsite feature. For example, if the control parameter is set to 1⁄2, then the punishment factor for child web pages will be 1⁄2, for grandchild web pages will be 1⁄4, for great-grandchild web pages will be 1⁄8, and so on. By increasing the control parameter, the effect of more ancestrally distant web pages will increase, and vice versa.

In one embodiment, the retrieval system uses a sibling punishment factor when determining the contribution of a descendant web page. The sibling punishment factor may help prevent the contribution resulting from a large number of sibling web pages at a certain level from overwhelming the contribution of the root web page of the subsite. If a web page has 10 child web pages, then even though the contribution from each child web page is punished by the ancestral distance punishment factor, the overall contribution from so many child web pages may be large. The retrieval system decreases the contribution of a web page as its number of sibling web pages increases. The retrieval system may represent the sibling punishment factor as follows:




  
    
      
        
          1
          
            
            
              R
              ⁡
              
                (
                
                  p
                  s
                
                )
              
            
            
          
        
        ⁢
        
          
            ∑
            
              u
              =
              1
            
            
              
                h
                ⁡
                
                  (
                  
                    p
                    s
                  
                  )
                
              
              -
              1
            
          
          ⁢
          
            [
            
              
                ∑
                
                  
                    p
                    
                      i
                      1
                    
                  
                  ∈
                  
                    R
                    ⁡
                    
                      (
                      
                        p
                        s
                      
                      )
                    
                  
                
              
              ⁢
              
                
                  ∑
                  
                    
                      p
                      
                        i
                        2
                      
                    
                    ∈
                    
                      R
                      ⁡
                      
                        (
                        
                          p
                          
                            i
                            1
                          
                        
                        )
                      
                    
                  
                
                ⁢
                
                  ⋯
                  ⁢
                  
                    
                      ∑
                      
                        
                          p
                          
                            i
                            u
                          
                        
                        ∈
                        
                          R
                          ⁡
                          
                            (
                            
                              p
                              
                                i
                                
                                  u
                                  -
                                  1
                                
                              
                            
                            )
                          
                        
                      
                    
                    ⁢
                    
                      
                        f
                        ⁡
                        
                          (
                          
                            p
                            
                              i
                              u
                            
                          
                          )
                        
                      
                      
                        
                          ∏
                          
                            k
                            =
                            1
                          
                          u
                        
                        ⁢
                        
                          
                          
                            R
                            ⁡
                            
                              (
                              
                                p
                                
                                  i
                                  k
                                
                              
                              )
                            
                          
                          
                        
                      
                    
                  
                
              
            
            ]
          
        
      
    
    
      
        (
        3
        )
      
    
  




where h(ps) represents height of the subsite with ps as the root web page, R(ps) represents the child web pages of ps, ∥a∥ represents the number of elements of a, and f(piu) represents the feature of web page piu. As indicated by Equation 3, the retrieval system sums the contribution of each descendant web page punished by the product of the number of siblings at each higher level in the subsite. For example, the contribution of a web page at level 3 with 5 siblings with a parent web page at level 2 with 4 siblings is 1/20 (i.e., 1/(4*5)). The retrieval system may further punish the resulting contribution by the number of child web pages.

In one embodiment, the retrieval system may combine the ancestral distance punishment factor and the sibling punishment factor when calculating the contribution of the descendant web pages. In addition, the retrieval system may add the contribution of the descendant web pages derived using the combined punishment factor to the contribution of the root web page according to the following:




  
    
      
        
          F
          ⁡
          
            [
            
              S
              ⁡
              
                (
                
                  p
                  s
                
                )
              
            
            ]
          
        
        =
        
          
            
              α
              ⁡
              
                (
                0
                )
              
            
            ⁢
            
              f
              ⁡
              
                (
                
                  p
                  s
                
                )
              
            
          
          +
          
            
              1
              
                
                
                  R
                  ⁡
                  
                    (
                    
                      p
                      s
                    
                    )
                  
                
                
              
            
            ⁢
            
              
                ∑
                
                  u
                  =
                  1
                
                
                  
                    h
                    ⁡
                    
                      (
                      
                        p
                        s
                      
                      )
                    
                  
                  -
                  1
                
              
              ⁢
              
                [
                
                  
                    α
                    ⁡
                    
                      (
                      u
                      )
                    
                  
                  ⁢
                  
                    
                      ∑
                      
                        
                          p
                          
                            i
                            1
                          
                        
                        ∈
                        
                          R
                          ⁡
                          
                            (
                            
                              p
                              s
                            
                            )
                          
                        
                      
                    
                    ⁢
                    
                      
                        ∑
                        
                          
                            p
                            
                              i
                              2
                            
                          
                          ∈
                          
                            R
                            ⁡
                            
                              (
                              
                                p
                                
                                  i
                                  1
                                
                              
                              )
                            
                          
                        
                      
                      ⁢
                      
                        ⋯
                        ⁢
                        
                          
                            ∑
                            
                              
                                p
                                
                                  i
                                  u
                                
                              
                              ∈
                              
                                R
                                ⁡
                                
                                  (
                                  
                                    p
                                    
                                      i
                                      
                                        u
                                        -
                                        1
                                      
                                    
                                  
                                  )
                                
                              
                            
                          
                          ⁢
                          
                            
                              f
                              ⁡
                              
                                (
                                
                                  p
                                  
                                    i
                                    u
                                  
                                
                                )
                              
                            
                            
                              
                                ∏
                                
                                  k
                                  =
                                  1
                                
                                u
                              
                              ⁢
                              
                                
                                
                                  R
                                  ⁡
                                  
                                    (
                                    
                                      p
                                      
                                        i
                                        k
                                      
                                    
                                    )
                                  
                                
                                
                              
                            
                          
                        
                      
                    
                  
                
                ]
              
            
          
        
      
    
    
      
        (
        4
        )
      
    
  




where F[S(ps)] represents the feature of the subsite with root web page ps. In one embodiment, the retrieval system may use a conventional metric for generating the feature of a web page. The feature of a web page may include term frequency, keyword frequency, title, image size, and so on. More generally, a feature may be represented as a feature vector describing various characteristics of a web page. The retrieval system may generate subsite features for all subsites of a web site.

The retrieval system may calculate the subsite feature for a subsite using a variety of techniques. For example, the retrieval system may adapt the propagation-based algorithm described in U.S. patent application Ser. No. 11/273,715, entitled “Hierarchy-Based Propagation of Contribution of Documents” and filed on Nov. 14, 2005, which is hereby incorporated by reference. When using that propagation-based algorithm, the retrieval system may initially generate the feature for the web pages without descendant web pages (i.e., leaf web pages). The retrieval system then propagates the feature of these web pages to their parent web pages and to their parent web pages up the hierarchy of web pages. The retrieval system may generate the feature of each ancestor web page from the web page itself and then factor in the feature of its descendant web pages to provide an overall feature for the ancestor web page. The retrieval system may generate the feature of a web page according to the following equation:




  
    
      
        
          
            
              
                g
                ⁢
                
                  (
                  
                    
                      F
                      ⁡
                      
                        (
                        p
                        )
                      
                    
                    ,
                    
                      Child
                      ⁡
                      
                        (
                        p
                        )
                      
                    
                  
                  )
                
              
              =
            
          
        
        
          
            
              {
              
                
                  
                    
                      
                        F
                        ⁡
                        
                          (
                          p
                          )
                        
                      
                      ,
                    
                  
                  
                    
                      
                        Child
                        ⁡
                        
                          (
                          p
                          )
                        
                      
                      =
                      Φ
                    
                  
                
                
                  
                    
                      
                        
                          
                            (
                            
                              1
                              +
                              α
                            
                            )
                          
                          ⁢
                          
                            F
                            ⁡
                            
                              (
                              p
                              )
                            
                          
                        
                        +
                        
                          α
                          ⁢
                          
                            
                              
                                ∑
                                
                                  q
                                  ∈
                                  
                                    RelChild
                                    ⁡
                                    
                                      (
                                      p
                                      )
                                    
                                  
                                
                              
                              ⁢
                              
                                g
                                ⁡
                                
                                  (
                                  
                                    
                                      F
                                      ⁡
                                      
                                        (
                                        p
                                        )
                                      
                                    
                                    ,
                                    
                                      Child
                                      ⁡
                                      
                                        (
                                        p
                                        )
                                      
                                    
                                  
                                  )
                                
                              
                            
                            
                              
                              
                                RelChild
                                ⁡
                                
                                  (
                                  p
                                  )
                                
                              
                              
                            
                          
                        
                      
                      ,
                    
                  
                  
                    
                      
                        RelChild
                        ⁡
                        
                          (
                          p
                          )
                        
                      
                      ≠
                      Φ
                    
                  
                
                
                  
                    
                      
                        
                          (
                          
                            1
                            +
                            α
                          
                          )
                        
                        ⁢
                        
                          F
                          ⁡
                          
                            (
                            p
                            )
                          
                        
                      
                      ,
                    
                  
                  
                    
                      
                        Child
                        ⁡
                        
                          (
                          p
                          )
                        
                      
                      ≠
                      Φ
                    
                  
                
                
                  
                    
                      
                    
                  
                  
                    
                      
                        and
                        ⁢
                        
                          
                        
                        ⁢
                        RelChild
                        ⁢
                        
                          (
                          p
                          )
                        
                      
                      =
                      Φ
                    
                  
                
              
            
          
        
      
    
    
      
        (
        5
        )
      
    
  




where g(F(p),Child(p)) represents the feature of web page p, F(p) represents a function for generating the feature for web page p, Child(p) represents the child web pages of p, Φ represents the empty set, RelChild (p) represents the child web pages of p that are related to the feature, | | represents the number of web pages in a set, and α represents the weight between the feature derived from the web page itself and the feature of the descendant web pages.

FIG. 1 is a diagram that illustrates the hierarchical relations of web pages of a sample web site. The web site 100 has a root web page 101 identified by the URL “www.va.gov.” Web page 101 has child web pages 111-115, with URLs “www.va.gov/disclaim.htm,” “www.va.gov/resdev,” “www.va.gov/dva.htm,” “www.va.gov/vetdata,” and “www.va.gov/spec_prog.htm.” In this example, the depth of the URL indicates the hierarchical relations of the web pages. For example, web page 120 is a child of web page 112 and has the URL “www.va.gov/resdev/ps.” Web page 120 has child web pages 131 and 132 with URLs “www.va.gov/resdev/ps/psmr” and “www.va.gov/resdev/ps/pshrd.” Web page 131 has child web pages 141 and 142 with URLs “www.va.gov/resdev/ps/psmr/mrs_programs.htm” and “www.va.gov/resdev/ps/psmr/default.htm.” In this example, web page 101 is an ancestor web page common to all the other web pages, and web page 141 is a descendant web page of web pages 131, 120, 112, and 101. Any web page of the website can be considered a root web page of a subsite. For example, web page 131 is a root web page of a subsite that includes web pages 131, 141, and 142. One skilled in the art will appreciate that various techniques may be used to identify the hierarchical relations or structure of documents and in particular web sites. For example, the hierarchical structure of a web site may be derived from a site map included as a web page of the web site or may be derived from the intra-site links between web pages.
FIG. 2 is a block diagram that illustrates components of the retrieval system in one embodiment. The retrieval system 230 is connected to web sites 210 and user computing devices 215 via communications link 220. The retrieval system includes a search engine component 231 and a search index store 232. The search engine component receives queries from user computing devices and identifies search results based on the search index store. The search index store may contain a mapping of keywords to web sites as generated by a web crawler. The retrieval system also includes a re-rank result using subsite component 233, a rank ancestor subsites component 234, a calculate subsite feature component 235, a calculate descendant contributions component 236, and a calculate descendant contributions at level component 237. The re-rank result using subsite component is invoked by the search engine component to re-rank search results factoring in subsite features derived from subsites that have a web page of the search result as their root web page. The re-rank result using subsite component invokes the calculate subsite feature component for each web page of the search result. The calculate subsite feature component invokes the calculate descendant contributions component to calculate the contribution of descendant web pages to the subsite feature. The calculate subsite feature component then combines the feature of the root web page with the contribution of the descendant web pages to generate the subsite feature. The calculate descendant contributions component invokes the calculate descendant contributions at level component for each level within the subsite to calculate the contribution of the web pages at that level to the subsite feature.
The computing device on which the retrieval system is implemented may include a central processing unit, memory, input devices (e.g., keyboard and pointing devices), output devices (e.g., display devices), and storage devices (e.g., disk drives). The memory and storage devices are computer-readable media that may contain instructions that implement the retrieval system. In addition, the data structures and message structures may be stored or transmitted via a data transmission medium, such as a signal on a communications link. Various communications links may be used, such as the Internet, a local area network, a wide area network, or a point-to-point dial-up connection.
The retrieval system may be implemented in various operating environments that include personal computers, server computers, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The retrieval system may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, and so on that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.
FIG. 3 is a flow diagram that illustrates the processing of the re-rank result using subsite component of the retrieval system in one embodiment. The component loops calculating a subsite feature for each subsite that has a web page of the search result as its root. In block 301, the component selects the next web page of the search result. In decision block 302, if all the web pages have already been selected, then the component continues at block 305, else the component continues at block 303. In block 303, the component invokes the calculate subsite feature component to calculate the subsite feature for the selected web page. In block 304, the component calculates a relevance for the subsite of the selected web page. The component may calculate the relevance using a term frequency by inverse document frequency metric. The component then loops to block 301 to select the next web page of the result. In block 305, the component reorders the web pages based on the subsite relevance associated with each web page. The component then completes.
FIG. 4 is a flow diagram that illustrates the processing of the calculate subsite feature component of the retrieval system in one embodiment. The component combines the contribution of the passed web page with the contribution of its descendant web pages to generate an overall subsite feature for the subsite with the passed web page as its root. In block 401, the component invokes the calculate descendant contributions component passing the root web page and receiving the contribution in return. In block 402, the component combines the contribution of the root web page to the contribution of the descendant web pages according to Equation 4 and then returns.
FIG. 5 is a flow diagram that illustrates the processing of the calculate descendant contributions component of the retrieval system in one embodiment. The component loops selecting each level of the subsite and calculates the contribution of the web pages at that level to the subsite feature. In block 501, the component selects the next lower level of the subsite starting with the level below the root web page. In decision block 502, if all the levels have already been selected, then the component continues at block 505, else the component continues at block 503. In block 503, the component invokes the calculate descendant contributions at level component for the selected level to calculate the contribution of the web pages at the selected level. In block 504, the component adds the contribution of the selected level adjusted by the ancestral distance punishment factor to the total contribution of the descendant web pages at the selected level. The component then loops to block 501 to select the next lower level of the subsite. In block 505, the component normalizes the total contribution by the number of child web pages and then returns.
FIG. 6 is a flow diagram that illustrates the processing of the calculate descendant contributions at level component of the retrieval system in one embodiment. The component is passed a level and calculates the contributions of the descendant web pages at that level to the subsite feature. In block 601, the component initializes the contribution of that level. In block 602, the component calculates the denominator of Equation _, which is the product of the number of descendant web pages at each level from the passed level to the root web page. In blocks 603-605, the component loops accumulating the contribution of each descendant web page at the passed level. In block 603, the component selects the next descendant web page at the passed level. In decision block 604, if all the descendant web pages have already been selected, then the component returns the contribution, else the component continues at block 605. In block 605, the component accumulates the contribution of each descendant web page divided by the denominator and then loops to block 603 to select the next descendant web page.
FIG. 7 is a flow diagram that illustrates the processing of the rank ancestor subsites component of the retrieval system in one embodiment. The component determines the subsite feature for each web page of the result and the subsite feature for each ancestor web page of the result. For each web page of the search result, the component selects the ancestor subsite with the highest relevance and returns the root web pages of those subsites ranked according to their subsite relevance. In block 701, the component selects the next web page of the search result. In decision block 702, if all the web pages have already been selected, then the component continues at block 708, else the component continues at block 703. In blocks 703-706, the component loops selecting each ancestor web page of the selected web page. In block 703, the component selects the next ancestor web page starting with the web page itself. In decision block 704, if all the ancestor web pages have already been selected, then the component continues at block 707, else the component continues at block 705. In block 705, the component invokes the calculate subsite feature component to calculate the subsite feature for the subsite with its root at the selected ancestor web page. In block 706, the component calculates the relevance for the subsite of the selected ancestor web page and then loops to block 703 to select the next ancestor web page. In block 707, the component discards all but the most relevant ancestor subsites for the selected web page and then loops to block 701 to select the next web page of the search result. In block 708, the component orders the subsites that have not been discarded based on relevance and then returns.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. For example, the retrieval system may be adapted to use any of a variety of functions to calculate a subsite feature. In addition, the ancestral distance punishment factor and the sibling punishment factor may be represented by a variety of linear and non-linear functions. A search engine may rank search results according to relevance based on the subtree features. The retrieval system may have an offline mode in which subtree features are calculated and stored for future use. Alternatively, the retrieval system may dynamically calculate subtree features for subtrees associated with queries. The retrieval system may store the dynamically generated subtree features so that they do not need to be recalculated for subsequent queries. Accordingly, the invention is not limited except as by the appended claims.

## Claims

1. A system with a central processing unit and a memory for calculating subtree features for subtrees having root documents, a subtree being a hierarchical organization of documents in which documents have ancestor/descendant relationships, comprising:
a calculate feature component that calculates a feature for each document within a subtree; and
a calculate subtree feature component that calculates a subtree feature for the subtree wherein a contribution of a descendant document of the root document decreases as an ancestral distance between the descendant document and the root document increases and as a number of sibling documents of the descendant document increases;
wherein the subtree feature of a subtree represents an aggregate feature for the root document of the subtree,
wherein the contribution is decreased as represented by the following:





  
    1
    
      
      
        R
        ⁡
        
          (
          
            p
            s
          
          )
        
      
      
    
  
  ⁢
  
    
      ∑
      
        u
        =
        1
      
      
        
          h
          ⁡
          
            (
            
              p
              s
            
            )
          
        
        -
        1
      
    
    ⁢
    
      [
      
        
          ∑
          
            
              p
              
                i
                1
              
            
            ∈
            
              R
              ⁡
              
                (
                
                  p
                  s
                
                )
              
            
          
        
        ⁢
        
          
            ∑
            
              
                p
                
                  i
                  2
                
              
              ∈
              
                R
                ⁡
                
                  (
                  
                    p
                    
                      i
                      1
                    
                  
                  )
                
              
            
          
          ⁢
          
            ⋯
            ⁢
            
              
                ∑
                
                  
                    p
                    
                      i
                      u
                    
                  
                  ∈
                  
                    R
                    ⁡
                    
                      (
                      
                        p
                        
                          i
                          
                            u
                            -
                            1
                          
                        
                      
                      )
                    
                  
                
              
              ⁢
              
                
                  f
                  ⁡
                  
                    (
                    
                      p
                      
                        i
                        u
                      
                    
                    )
                  
                
                
                  
                    ∏
                    
                      k
                      =
                      1
                    
                    u
                  
                  ⁢
                  
                    
                    
                      R
                      ⁡
                      
                        (
                        
                          p
                          
                            i
                            k
                          
                        
                        )
                      
                    
                    
                  
                
              
            
          
        
      
      ]
    
  



where h(ps) represents height of a subtree with the root document of ps, R(ps) represents the child document of ps, ∥a∥ represents the number of elements of a, and f(piu) represents the feature of document piu, and
wherein the components are implemented as computer-executable instructions stored in memory for execution by the central processing unit.

2. The system of claim 1 wherein the contribution of a descendant document decreases as an ancestral distance between the document and the descendant document increases.

3. The system of claim 1 wherein the contribution of a descendant document decreases as a number of sibling documents to the descendant document increases.

4. The system of claim 1 wherein the contribution of a descendant document decreases as an ancestral distance between the document and the descendant document increases and as a number of sibling documents to the descendant document increases.

5. The system of claim 1 including an ancestor subtree feature calculation component that calculates a subtree feature representing ancestor documents of a document based on a contribution of the feature from the ancestor document and a contribution of the feature from its descendant documents and wherein the relevance component calculates the relevance of the ancestor documents based on the calculated subtree features of the ancestor documents.

6. The system of claim 1 wherein the documents are web pages and a subtree represents a subsite of web pages.

7. A system with a central processing unit and a memory for calculating subtree features for subtrees having root documents, a subtree being a hierarchical organization of documents in which documents have ancestor/descendant relationships, comprising:
a calculate feature component that calculates a feature for each document within a subtree; and
a calculate subtree feature component that calculates a subtree feature for the subtree wherein a contribution of a descendant document of the root document decreases as an ancestral distance between the descendant document and the root document increases and as a number of sibling documents of the descendant document increases;
wherein the subtree feature of a subtree represents an aggregate feature for the root document of the subtree,
wherein the contribution is decreased as represented by the following:





  
    1
    
      
      
        R
        ⁡
        
          (
          
            p
            s
          
          )
        
      
      
    
  
  ⁢
  
    
      ∑
      
        u
        =
        1
      
      
        
          h
          ⁡
          
            (
            
              p
              s
            
            )
          
        
        -
        1
      
    
    ⁢
    
      [
      
        
          α
          ⁡
          
            (
            u
            )
          
        
        ⁢
        
          
            ∑
            
              
                p
                
                  i
                  1
                
              
              ∈
              
                R
                ⁡
                
                  (
                  
                    p
                    s
                  
                  )
                
              
            
          
          ⁢
          
            
              ∑
              
                
                  p
                  
                    i
                    2
                  
                
                ∈
                
                  R
                  ⁡
                  
                    (
                    
                      p
                      
                        i
                        1
                      
                    
                    )
                  
                
              
            
            ⁢
            
              ⋯
              ⁢
              
                
                  ∑
                  
                    
                      p
                      
                        i
                        u
                      
                    
                    ∈
                    
                      R
                      ⁡
                      
                        (
                        
                          p
                          
                            i
                            
                              u
                              -
                              1
                            
                          
                        
                        )
                      
                    
                  
                
                ⁢
                
                  
                    f
                    ⁡
                    
                      (
                      
                        p
                        
                          i
                          u
                        
                      
                      )
                    
                  
                  
                    
                      ∏
                      
                        k
                        =
                        1
                      
                      u
                    
                    ⁢
                    
                      
                      
                        R
                        ⁡
                        
                          (
                          
                            p
                            
                              i
                              k
                            
                          
                          )
                        
                      
                      
                    
                  
                
              
            
          
        
      
      ]
    
  



where h(ps) represents height of a subtree with the root document of ps, R(ps) represents the child documents of ps, ∥a∥ represents the number of elements of a, f(piu) represents the feature of document piu, and where α is represented as follows:


α(Δl)=λΔl


where Δl represents the ancestral distance between the root document and a descendant document and λ represents a parameter to control the amount of decrease, and
wherein the components are implemented as computer-executable instructions stored in memory for execution by the central processing unit.

8. A system with a central processing unit and a memory for calculating subtree features for subtrees having root documents, a subtree being a hierarchical organization of documents in which documents have ancestor/descendant relationships, comprising:
a calculate feature component that calculates a feature for each document within a subtree; and
a calculate subtree feature component that calculates a subtree feature for the subtree wherein a contribution of a descendant document of the root document decreases as an ancestral distance between the descendant document and the root document increases and as a number of sibling documents of the descendant document increases;
wherein the subtree feature of a subtree represents an aggregate feature for the root document of the subtree,
wherein a subtree feature is represented by the following:





  
    F
    ⁡
    
      [
      
        S
        ⁡
        
          (
          
            p
            s
          
          )
        
      
      ]
    
  
  =
  
    
      
        α
        ⁡
        
          (
          0
          )
        
      
      ⁢
      
        f
        ⁡
        
          (
          
            p
            s
          
          )
        
      
    
    +
    
      
        1
        
          
          
            R
            ⁡
            
              (
              
                p
                s
              
              )
            
          
          
        
      
      ⁢
      
        
          ∑
          
            u
            =
            1
          
          
            
              h
              ⁡
              
                (
                
                  p
                  s
                
                )
              
            
            -
            1
          
        
        ⁢
        
          [
          
            
              α
              ⁡
              
                (
                u
                )
              
            
            ⁢
            
              
                ∑
                
                  
                    p
                    
                      i
                      1
                    
                  
                  ∈
                  
                    R
                    ⁡
                    
                      (
                      
                        p
                        s
                      
                      )
                    
                  
                
              
              ⁢
              
                
                  ∑
                  
                    
                      p
                      
                        i
                        2
                      
                    
                    ∈
                    
                      R
                      ⁡
                      
                        (
                        
                          p
                          
                            i
                            1
                          
                        
                        )
                      
                    
                  
                
                ⁢
                
                  ⋯
                  ⁢
                  
                    
                      ∑
                      
                        
                          p
                          
                            i
                            u
                          
                        
                        ∈
                        
                          R
                          ⁡
                          
                            (
                            
                              p
                              
                                i
                                
                                  u
                                  -
                                  1
                                
                              
                            
                            )
                          
                        
                      
                    
                    ⁢
                    
                      
                        f
                        ⁡
                        
                          (
                          
                            p
                            
                              i
                              u
                            
                          
                          )
                        
                      
                      
                        
                          ∏
                          
                            k
                            =
                            1
                          
                          u
                        
                        ⁢
                        
                          
                          
                            R
                            ⁡
                            
                              (
                              
                                p
                                
                                  i
                                  k
                                
                              
                              )
                            
                          
                          
                        
                      
                    
                  
                
              
            
          
          ]
        
      
    
  




where F[S(ps)] represents the feature of subsites with root web page ps, h(ps) represents height of a subtree with the root web page of ps, R(ps) represents the child documents of ps, ∥a∥ represents the number of elements of a, f(piu) represents the feature of document piu, and where α is represented as follows:


α(Δl)=λΔl

where Δl represents the ancestral distance between the root document and a descendant document and λ represents a parameter to control the amount of decrease, and
wherein the components are implemented as computer-executable instructions stored in memory for execution by the central processing unit.

9. A computer-readable storage device containing instructions for controlling a computer system to identify web pages for a search result for a query, the web pages being organized into web sites, the web pages of a web site being hierarchically organized wherein the web pages of the web site have ancestor/descendant relationships, each web page of a web site being a root web page of a subsite of the web site, a subsite includes the root web page of the subsite and its descendant web pages, each web page having a feature, comprising:
receiving from a user a query;
identifying web pages that are related to the received query; and
for each identified web page,
calculating a subsite feature for the subsite with the identified web page being the root web page of the subsite based on a contribution from the feature of the identified web page and a contribution from the features of the descendant web pages of the identified web page, such that the contribution of the features of a descendant web page decreases as an ancestral distance between the identified web page and the descendant web page increases; and
determining relevance of the identified web page to the query based on the calculated subsite feature of the subsite; and
presenting to the user an indication of the identified web pages in an order that is based at least in part on the determined relevance of the identified web pages
wherein the subsite feature is represented by the following:






  
    F
    ⁡
    
      [
      
        S
        ⁡
        
          (
          
            p
            s
          
          )
        
      
      ]
    
  
  =
  
    
      
        α
        ⁡
        
          (
          0
          )
        
      
      ⁢
      
        f
        ⁡
        
          (
          
            p
            s
          
          )
        
      
    
    +
    
      
        1
        
          
          
            R
            ⁡
            
              (
              
                p
                s
              
              )
            
          
          
        
      
      ⁢
      
        
          ∑
          
            u
            =
            1
          
          
            
              h
              ⁡
              
                (
                
                  p
                  s
                
                )
              
            
            -
            1
          
        
        ⁢
        
          [
          
            
              α
              ⁡
              
                (
                u
                )
              
            
            ⁢
            
              
                ∑
                
                  
                    p
                    
                      i
                      1
                    
                  
                  ∈
                  
                    R
                    ⁡
                    
                      (
                      
                        p
                        s
                      
                      )
                    
                  
                
              
              ⁢
              
                
                  ∑
                  
                    
                      p
                      
                        i
                        2
                      
                    
                    ∈
                    
                      R
                      ⁡
                      
                        (
                        
                          p
                          
                            i
                            1
                          
                        
                        )
                      
                    
                  
                
                ⁢
                
                  ⋯
                  ⁢
                  
                    
                      ∑
                      
                        
                          p
                          
                            i
                            u
                          
                        
                        ∈
                        
                          R
                          ⁡
                          
                            (
                            
                              p
                              
                                i
                                
                                  u
                                  -
                                  1
                                
                              
                            
                            )
                          
                        
                      
                    
                    ⁢
                    
                      
                        f
                        ⁡
                        
                          (
                          
                            p
                            
                              i
                              u
                            
                          
                          )
                        
                      
                      
                        
                          ∏
                          
                            k
                            =
                            1
                          
                          u
                        
                        ⁢
                        
                          
                          
                            R
                            ⁡
                            
                              (
                              
                                p
                                
                                  i
                                  k
                                
                              
                              )
                            
                          
                          
                        
                      
                    
                  
                
              
            
          
          ]
        
      
    
  




where F[S(ps)] represents the feature of the subsites with root web page ps, h(ps) represents height of a subtree with the root web page of ps, R(ps) represents the child documents of ps, ∥a∥ represents the number of elements of a, f(piu) represents the feature of web page piu, and where α is represented as follows:


α(Δl)=λΔl


where Δl represents the ancestral distance between the root web page and a descendant web page and λ represents a parameter to control the amount of decrease.

10. The computer-readable storage device of claim 9 wherein the relevance of a subsite indicates how well the subsite represents a topic distillation for the query.

11. The computer-readable storage device of claim 9 wherein the contribution of a descendant web page decreases as a number of sibling web pages to the descendant web page increases.

12. The computer-readable storage device of claim 9 wherein the contribution of a descendant web page decreases as an ancestral distance between the root web page and the descendant web page increases and as a number of sibling web pages to the descendant web page increases.

13. The computer-readable storage device of claim 9 wherein the subsite features are calculated independently of a query and stored for use when identifying search results of queries.

14. The computer-readable storage device of claim 9 wherein the subsite features are calculated based on initial search results of a query.

15. The computer-readable storage device of claim 14 wherein the web pages of the search result are root web pages of subsites.