# Patent

## Title
Measuring informative content of words in documents in a document collection relative to a probability function including a concavity control parameter

## Abstract

Processing methods and systems are provided for representing documents relative to importance of words in the document. A processor comprising a weighting model of word importance in a document in a collection relative to an importance of the word in other documents in the collection computes a deviation of distribution of the word from a probability distribution of the word in other documents in the collection, where the deviation distribution is weighted in accordance with a concavity control function. A concavity control parameter is adjustable relative to word frequency.

## Background
BACKGROUND
Many tasks such as Information Retrieval, Clustering and Categorization represent documents by vectors, where each dimension index of a document can represent a given word and where a value can encode the word importance in the document. The field of the subject embodiments relate to a representation of documents by the relative importance of a word in a document and to a particular weighting model relative to term frequencies in an associated collection. More particularly, the embodiments relate to weighting the measure of relative importance using a concavity control parameter.
Many weighting models try to quantify the importance of a word in a document with probabilistic measures. For each term in the collection, a probability distribution is associated to the term. For any word in any document, a probability according to the collection model can then be computed. The computed probability is related to the informative content of the word in the document or document collection (corpus).
The main hypothesis of many weighting models is the following: The more the distribution of a word in a document deviates from its average distribution in the collection, the more likely is this word significant for the document considered. This can be easily captured in terms of Shannon information. Let Xω the random variable of frequencies of word ω and P a probability distribution with parameter λω, then the Shannon information measure is:

Info P(Xw=x)=−log P(X=xw|λw)=InformativeContent  (1)

If a word behaves in the document as expected in the collection, then it has a high probability of P(X=xω|λω) occurrence in the document, according to the collection distribution, and the information it brings to the document, −log P(X=xω|λω), is small. On the contrary, if it has a low probability of occurrence in the document, according to the collection distribution, then the amount of information it conveys is greater
This is the idea underpinning the classical Divergence From Randomness Model and information-based models in Information Retrieval.
Hence, the cornerstone of many weighting models consists in using Shannon information −log P(Xω|λω) to measure the importance of a word in a document and weighting of words in documents.
Table 1 identifies many of the notations used in the remainder of this disclosure.







TABLE 1







Notations








Notation
Description





q, d
Original query, document


RSV (q, d)
Retrieval status value of d for q (ie Ranking Function)


xwd
# of occurrences of w in doc d


Xw
Discrete Random Variable for the xwd


Tw
Continuous Random Variable for normalized occurrences


ld
Length of doc d


avgl
Average document length in collection


N
# of docs in collection


Nw
# of documents containing w


idf (w)
−log(Nw/N)


P(w|C)
Probability of the word in the collection









A known notion to define the family of IR models is the following equation:

RSV(q,d)=Σwεq−qw log P(Tw≧twd|λw)  (2)

where Tw is a continuous random variable modeling normalized term frequencies and λw is a set of parameters of the probability distribution considered. This ranking function corresponds to the mean information a document brings to a query or, equivalently, to the average of the document information brought by each query term a.

Few words are needed to explain the choice of the probability P(Tw≧twd) in the information measure. Shannon information was originally defined on discrete probability and the information quantity from the observation of x was measured with −log P(X=x|Θ). As the normalized frequencies twd are continuous variables, Shannon information cannot be directly applied.
A known solution is to measure information on a probablility of the form P((twd−a—Tw—twd+b|λw). However, one has to choose values for a and b, and a=0 and b=+∞ have been chosen for theorical reasons. The mean frequency of most words in a document is close to 0. For any word large frequencies are typically less likely than smaller frequencies on average. The larger the term frequency is, the smaller P(Tw≧twd) is and the bigger −log P(Tw≧twd). Hence, the use of the survival function P(T>t) seems compatible with the notion of information content discussed above.
Overall, the general idea of the information-based family is the following:
1. Due to different document length, discrete term frequencies (x) are renormalized into continuous values (t(x))
2. For each term w, one can assume that those renormalized values follow a probability distribution P on the corpus. Formally, Tw:P(.|λw).
3. Queries and documents are compared through a measure of surprise, or a mean of information of the form




  
    RSV
    ⁡
    
      (
      
        q
        ,
        d
      
      )
    
  
  =
  
    
      Σ
      
        w
        ∈
        q
      
    
    -
    
      
        q
        w
      
      ⁢
      log
      ⁢
      
        
      
      ⁢
      
        P
        ⁡
        
          (
          
            
              
                T
                w
              
              ≥
              
                t
                ⁡
                
                  (
                  x
                  )
                
              
            
            |
            
              λ
              w
            
          
          )
        
      
    
  




So information models are specified by two main components: a function which normalizes term frequencies across documents, and a probability distribution modeling the normalized term frequencies. Information is the key ingredient of such models since information measures the significance of a word in a document.
Such known information models measure the relative importance of a word in a document compared to its importance in other documents in the collection by either a fixed weighting function (natural log) or the proposition of ad-hoc classes (which do not focus on concavity control).
There is always a need for new and improved representation of documents which can yield better results than known representations in document retrieval, categorization and clustering tasks. The subject embodiments address this need.
SUMMARY OF THE PREFERRED EMBODIMENTS
The subject embodiments relate to the use of a generalized algorithmic function including a concavity control parameter to measure the importance of words in documents.
In one preferred embodiment a method is provided for document representation by measuring informative content of words comprising associating a probability distribution for a plurality of words in a document collection;
forming a weighting model of word importance to the collection from the probability distribution therein;
determining a distribution of a selected word in a particular document in the collection;
computing a deviation of distribution of the selected word in the document from the probability distribution of the word in the collection in accordance with a concavity function; and
assigning a greater importance of the selected word to the informative content of the document by the greater the computed deviation whereby the document can be represented relative to the collection by the assigned importance of a plurality of selected words.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is flowchart showing steps of a preferred embodiment;
FIG. 2 is a graph of an i′-logarithm illustrating concavity control; and,
FIG. 3 is a graph showing a Mean Average Precision for dataset queries once the SVD has been performed for several latent dimensions.



DETAILED DESCRIPTION
The preferred embodiments use a generalized logarithmic function including a concavity control parameter to measure informative contents of documents.
Instead of measuring informative content with a fixed valued log function −log P(T>t), the subject embodiments measure the informative content of a word in a document with a variable concavity control parameter function, −logηP(T>t), where i sets curvature of the logarithm.
So, the feature vector of a document can be seen as:

φ(d)=(−logηP(Tw1|λ1), . . . ,−logηP(TM|λM))  (5)

The η-logarithm [5] comes from the statistical physics community and can be understood as a generalization of the logarithm function. The η-logarithm is defined by ∀t>0:




  
    
      
        
          
            ln
            η
          
          ⁡
          
            (
            t
            )
          
        
        =
        
          
            1
            
              1
              -
              η
            
          
          ⁢
          
            (
            
              
                t
                
                  1
                  -
                  η
                
              
              -
              1
            
            )
          
        
      
    
    
      
        (
        6
        )
      
    
  




The interesting properties of this curved logarithm are:



  
    
      
        ln
        η
      
      ⁡
      
        (
        1
        )
      
    
    =
    0
  




  
    
      
        ∂
        
          
            ln
            η
          
          ⁡
          
            (
            t
            )
          
        
      
      
        ∂
        t
      
    
    =
    
      
        1
        
          t
          η
        
      
      =
      
        t
        
          -
          η
        
      
    
  



    
    
        η=1 leads to the familiar log function.
    
    


FIG. 2 shows the graph of different η-logarithms including a concavity control parameter to illustrate how variability of the parameter affects concavity of the function.
The subject embodiments are motivated by the following points. In information retrieval tasks, the concavity in term frequencies of the retrieval function is a critical property of an IR model. For example, concavity favors documents that contain different query terms (i.e. aspects) against documents that contain one query term. A priori, there is no intrinsic reason for the log function to have the best analytical properties in an IR setting. Hence, the point of this generalization is to adjust the concavity of weighting functions. In fact, the −logη can parameterize a family of concave functions which will lead to better performance.
Although there is gain in expressive power with the introduction of the parameter η, there is also a loss in the interpretation in terms of probability. With the log function it is possible to write the information measure a document conveys as:

−log P(Td=(tw1, . . . ,twM))=−log ΠwP(Twd>tw)=−Σ log P(Twd>tw)  (7)

Note that the previous equation assumes independence assumptions between different words. With the ft-logarithm, it is not possible anymore to have such interpretation.
One can define a generalized information model of the form:

RSV(q,d)=Σwεq∩d−qw lnηP(Tw≧twd|λw)  (8)

This model, noted QLN, has then two parameters:

    
    
        c which normalizes the term frequencies
    
    






  (
  
    
      t
      wd
    
    =
    
      
        x
        wd
      
      ⁢
      
        log
        ⁡
        
          (
          
            1
            +
            
              c
              ⁢
              
                avgl
                
                  l
                  d
                
              
            
          
          )
        
      
    
  
  )




    
    
        η which sets the curvature of the logarithm
    
    


The benefit of such model is the ability to play with the curvature of the model in order to assess the role of concavity. Analysis of the model concavity includes an analysis of the weighting function h=lnηP(Tw≧twd|λw) of this model with a log-logistic distribution.




  
    
      
        
          h
          ⁡
          
            (
            
              t
              ,
              λ
              ,
              η
            
            )
          
        
        =
        
          
            -
            
              1
              
                1
                -
                η
              
            
          
          ⁢
          
            (
            
              
                
                  (
                  
                    λ
                    
                      λ
                      +
                      
                        t
                        wd
                      
                    
                  
                  )
                
                
                  1
                  -
                  η
                
              
              -
              1
            
            )
          
        
      
    
    
      
        (
        9
        )
      
    
  
  
    
      
        
          
            ∂
            h
          
          
            ∂
            t
          
        
        =
        
          
            -
            
              
                1
                -
                η
              
              
                1
                -
                η
              
            
          
          ⁢
          
            
              (
              
                λ
                
                  λ
                  +
                  
                    t
                    wd
                  
                
              
              )
            
            
              -
              η
            
          
          ⁢
          
            (
            
              -
              
                1
                
                  
                    (
                    
                      λ
                      +
                      
                        t
                        wd
                      
                    
                    )
                  
                  2
                
              
            
            )
          
        
      
    
    
      
        (
        10
        )
      
    
  
  
    
      
        
          
            ∂
            h
          
          
            ∂
            t
          
        
        =
        
          
            
              (
              
                λ
                +
                
                  t
                  wd
                
              
              )
            
            
              η
              -
              2
            
          
          
            λ
            η
          
        
      
    
    
      
        (
        11
        )
      
    
  
  
    
      
        
          
            
              ∂
              2
            
            ⁢
            h
          
          
            ∂
            
              t
              2
            
          
        
        =
        
          
            (
            
              η
              -
              2
            
            )
          
          ⁢
          
            
              
                (
                
                  λ
                  +
                  
                    t
                    wd
                  
                
                )
              
              
                η
                -
                3
              
            
            
              λ
              η
            
          
        
      
    
    
      
        (
        12
        )
      
    
  




Within this family of IR models, it is possible to get concave models. Heuristic conditions in Information Retrieval suggest that the IR weighting model should be concave in term frequencies. Hence, heuristic conditions suggest that η must be inferior than 2. The case where η=2 is the case where the model is linear:




  
    
      
        h
        =
        
          
            
              λ
              +
              
                t
                wd
              
            
            λ
          
          -
          1
        
      
    
    
      
        (
        13
        )
      
    
  




Note that whenever η<1, the weighting function h is bounded:




  
    
      
        h
        =
        
          
            
              1
              
                1
                -
                η
              
            
            ⁢
            
              (
              
                1
                -
                
                  
                    (
                    
                      λ
                      
                        λ
                        +
                        
                          t
                          wd
                        
                      
                    
                    )
                  
                  
                    1
                    -
                    η
                  
                
              
              )
            
          
          ≤
          
            1
            
              1
              -
              η
            
          
        
      
    
    
      
        (
        14
        )
      
    
  




Testing has shown that the generalized information model outperforms known baselines. So, changing the curvature of the models allows one to obtain significant improvements over prior known fixed weighting functions (natural log) or ad-hoc classes which do not focus on concavity control.
Latent Semantic Indexing (LSI) [3] computes a Singular Value Decomposition over a term-document matrix in order to find latent topics. It is also an approach to perform document clustering.
For example, several variants of LSI can be tried on the CLEF (define) dataset. The term document matrix is weighted with a TF-IDF baseline, or an informative content with log-logistic distribution as in information models or in accordance with the subject embodiment with the generalized informative content. More formally, the weighted term document matrix Iwd is defined as follows:




  
    
      
        
          l
          wd
        
        =
        
          
            -
            
              log
              η
            
          
          ⁢
          
            P
            ⁡
            
              (
              
                
                  t
                  wd
                
                |
                
                  λ
                  w
                
              
              )
            
          
        
      
    
    
      
        (
        15
        )
      
    
  
  
    
      
        
          t
          wd
        
        =
        
          
            x
            wd
          
          ⁢
          
            log
            ⁡
            
              (
              
                1
                +
                
                  c
                  ⁢
                  
                    avgl
                    l
                  
                
              
              )
            
          
        
      
    
    
      
        (
        16
        )
      
    
  
  
    
      
        c
        =
        
          e
          -
          
            1
            ⁢
            
              (
              iedefaultvalueofc
              )
            
          
        
      
    
    
      
        (
        17
        )
      
    
  
  
    
      
        
          P
          ⁡
          
            (
            
              J
              =
              
                
                  t
                  wd
                
                |
                
                  λ
                  wd
                
              
            
            )
          
        
        =
        
          
            
              λ
              w
            
            
              
                λ
                w
              
              +
              
                t
                wd
              
            
          
          ⁢
          
            (
            
              ielog
              -
              logisticdistribution
            
            )
          
        
      
    
    
      
        (
        18
        )
      
    
  




e−1 can be seen as a default value of c since the occurrences of document of average length are not renormalized (i.e. the normalization factor is equal to 1).

FIG. 3 show the Mean Average Precision for the dataset queries once the SVD has been performed for several latent dimensions. This Figure shows that the generalized informative with η=1.2 outperform the two other baselines in most cases. More particularly, it shows on the y-axis a performance measure, against a parameter of the SVD method. Performance improved with the subject embodiment.
Overall, this shows that the proposal is also adequate for computing similarities between documents as better performances are obtained. Many clustering algorithms rely on distance functions between documents. So, this suggests that the subject method would be beneficial for document clustering tasks.
The subject embodiments also can result in improved text classification. The table below illustrates an application to text classification. A logistic regression is trained with L2 regularization with different embedding of term frequencies. For each dataset, the best value of η is kept among {0.5, 0.75, 1, 1.2, 1, 5} and the performance is compared against several TF-IDF weightings and a standard log function. A default value is chosen for c=e−1 and the regularization parameter is chosen on the validation set among {0.0001, 0.01, 0.1, 1, 5, 10, 50, 100}. The Table shows the mean accuracy for 3 standards test collections.














Weighting 






Model
φ(d)
20NewsGroup
Sector
WebKB







t fidf L2 norm




  
    
      x
      w
    
    ⁢
    
      idf
      ⁡
      
        (
        w
        )
      
    
  
  
    
      
        ∑
        w
      
      ⁢
      
        
          (
          
            
              x
              w
            
            ⁢
            
              idf
              ⁡
              
                (
                w
                )
              
            
          
          )
        
        2
      
    
  




87.9
87.0
81.1


 


{square root over (tfidf)} L2 norm




  
    
      
        x
        w
      
      ⁢
      
        idf
        ⁡
        
          (
          w
          )
        
      
    
  
  
    
      
        ∑
        w
      
      ⁢
      
        (
        
          
            x
            w
          
          ⁢
          
            idf
            ⁡
            
              (
              w
              )
            
          
        
        )
      
    
  




88.8
87.2
85.9


 


Battacharya t f




  
    
      x
      w
    
    
      
        ∑
        w
      
      ⁢
      
        x
        w
      
    
  




86.0
84.4
88.6


 


log, ie η = 1
−log P(Tw = tw|λw)
88.4
87.9
87.2


Best η
−logη P(Tw = tw|λw)
89.0
89.5
88.9









The Best η is seen at the bottom row.

With reference to FIG. 1, a flowchart showing steps of a preferred embodiment is illustrated. Initially, for a plurality of words in a document collection, a probability distribution is associated 10 for them in the collection. A weighting model is then formed 12 of word importance to the collection from the probability distribution. A distribution of a selected word in a particular document in the collection is then determined 14. A deviation of distribution of the select word in the document from the probability distribution of the word in the collection is computed 16 wherein the deviation distribution is weighted in accordance with a concavity function. Lastly, a greater importance of the select word to the informative content of the document can be assigned by the greater the computed deviation 18.
It will be appreciated that variants of the above-disclosed and other features and functions, or alternatives thereof, may be combined into many other different systems or applications. Various presently unforeseen or unanticipated alternatives, modifications, variations or improvements therein may be subsequently made by those skilled in the art which are also intended to be encompassed by the following claims.

## Claims

1. A processing system for representing documents relative to importance of words in the document, including:
a processor comprising a weighting model of word importance of a word w in a document d in a collection relative to an importance of the word w in other documents in the collection by computing a deviation of distribution of the word w from a probability distribution of the word w in other documents in the collection, wherein the deviation distribution is weighted in accordance with a concavity function comprising a selectively variable concavity control parameter η for setting a curvature of a logarithm of the concavity function and wherein the concavity control parameter η is effected relative to a probable frequency of the word w in the document d according to −lnηP(Tw≧twd|λw) where Tw is a continuous random variable modeling normalized term frequencies for a probability distribution parameterized by a set of parameters λw and twd represents frequency of the word w in the document d.

2. The system of claim 1 wherein the weighting model is represented as:




  
    R
    ⁢
    
      
    
    ⁢
    S
    ⁢
    
      
    
    ⁢
    
      V
      ⁡
      
        (
        
          q
          ,
          d
        
        )
      
    
  
  =
  
    
      ∑
      
        w
        ∈
        
          q
          ⋂
          d
        
      
    
    ⁢
    
      
        -
        
          q
          w
        
      
      ⁢
      
        ln
        η
      
      ⁢
      
        P
        ⁡
        
          (
          
            
              
                T
                w
              
              ≥
              
                t
                
                  w
                  ⁢
                  
                    
                  
                  ⁢
                  d
                
              
            
            |
            
              λ
              w
            
          
          )
        
      
    
  



wherein parameter c normalizes word frequencies for determining the importance of the word wherein





  
    
      t
      
        w
        ⁢
        
          
        
        ⁢
        d
      
    
    =
    
      
        x
        
          w
          ⁢
          
            
          
          ⁢
          d
        
      
      ⁢
      
        log
        ⁡
        
          (
          
            1
            +
            
              c
              ⁢
              
                
                  avg
                  ⁢
                  
                    
                  
                  ⁢
                  l
                
                
                  
                    
                  
                  ⁢
                  ld
                
              
            
          
          )
        
      
    
  
  ,



and parameter η sets curvature of the logarithm; and,
q represents a query;
RSV(q, d) represents a ranking function representing retrieval status value of document d for query q;
xwd represents number of occurrences of word w in document d;
P(w|C) represents Probability of the word in the collection; and
qw represents a query for a word.

3. The system of claim 1, wherein the concavity control parameter η is varied in accordance with predetermined standards to better effect text classification or latent semantic indexing.

4. A method for document representation by measuring informative content of words, comprising:
associating a probability distribution P(w|C) for a plurality of words in a document collection C;
forming a weighting model of word importance to the collection from the probability distribution therein;
determining a distribution twd of a selected word w in a particular document d in the collection;
computing a deviation of the distribution of the selected word w in the document d from the probability distribution P(w|C) of the word w in the collection C in accordance with a concavity function −lnηP(Tw≧twd|λw) comprising a selectively variable concavity control parameter η for setting a curvature of a logarithm of the concavity function −lnηP(Tw≧twd−λw) in which the concavity control parameter η is effected relative to a probable frequency of the word w in the document d; and
assigning a greater importance of the selected word w to the informative content of the document d by the greater than computed deviation in accordance with a concavity function −lnηP(Tw≧twd−λw) whereby the document d can be represented relative to the collection by the assigned importance of a plurality of selected words.

5. The method of claim 4 wherein the concavity control parameter is selectively variable.

6. The method of claim 4 wherein the computing is effected in accordance with:




  
    R
    ⁢
    
      
    
    ⁢
    S
    ⁢
    
      
    
    ⁢
    
      V
      ⁡
      
        (
        
          q
          ,
          d
        
        )
      
    
  
  =
  
    
      ∑
      
        w
        ∈
        
          q
          ⋂
          d
        
      
    
    ⁢
    
      
        -
        
          q
          w
        
      
      ⁢
      
        ln
        η
      
      ⁢
      
        P
        ⁡
        
          (
          
            
              
                T
                w
              
              ≥
              
                t
                
                  w
                  ⁢
                  
                    
                  
                  ⁢
                  d
                
              
            
            |
            
              λ
              w
            
          
          )
        
      
    
  



wherein





  
    t
    
      w
      ⁢
      
        
      
      ⁢
      d
    
  
  =
  
    
      x
      
        w
        ⁢
        
          
        
        ⁢
        d
      
    
    ⁢
    
      log
      ⁡
      
        (
        
          1
          +
          
            c
            ⁢
            
              
                avg
                ⁢
                
                  
                
                ⁢
                l
              
              
                
                  
                
                ⁢
                ld
              
            
          
        
        )
      
    
  



parameter c normalizes word frequencies for determining the importance of the word, and parameter η sets curvature of the logarithm and,
q represents a query;
RSV(q, d) represents a ranking function representing a retrieval status value of document d for query q;
xwd represents number of occurrences of word w in document d;
Tw represents Continuous Random Variable for normalized occurrences;
qw represents a query for a word; and
λw represents a set of parameters of a preselected probability distribution.

7. The method of claim 4 wherein the concavity control parameter η is varied in accordance with predetermined standards to better effect text classification or latent semantic indexing.

8. A processing system for representing documents relative to importance of words in the document, including:
a processor comprising a weighting model of word importance in a document in a collection relative to an importance of the word in other documents in the collection by computing a deviation of distribution of the word from a probability distribution of the word in other documents in the collection, wherein the deviation distribution is weighted in accordance with a concavity function comprising a selectively variable concavity control parameter η for setting a curvature of an η-logarithm





  
    
      ln
      η
    
    ⁡
    
      (
      t
      )
    
  
  =
  
    
      1
      
        1
        -
        η
      
    
    ⁢
    
      (
      
        
          t
          
            1
            -
            η
          
        
        -
        1
      
      )
    
  




of the concavity function and wherein the control parameter is effected relative to a probable frequency of the word in the document.