Docsity

Unsupervised Learning and Cluster Analysis: Techniques for Discovering Structures in Data , Study notes of Computer Science

Partial preview of the text

Download Unsupervised Learning and Cluster Analysis: Techniques for Discovering Structures in Data and more Study notes Computer Science in PDF only on Docsity!

CSE 591

Unsupervised learning;

Fall 2008

http://www.public.asu.edu/~jhakenbe/591/

Last week

• Supervised machine learning

- naive Bayes

- VSM-based: Rocchio, kNN, Support Vector Machines

- features for text/sentence classifiation

- implementation details (naive Bayes & SVM)

- multi-class classification (one-versus-all, one-versus-one)

Cluster analysis

• partitioning^ of a data set into subsets (clusters)

• elements in each cluster share some common trait

- check differences in traits between clusters

- e.g. , keywords that separate one cluster from others

• similarity defined through metrics

- cosine, Euclid, Jaccard, Dice, taxicab, …

- selection of^ similarity measure^ is an important step

• used in machine learning, pattern recognition, image

analysis, bioinformatics

• interpretation?

- examine cluster^ profiles^ ➠^ set of mean values

- enrich unlabeled data with some labeled data points

Types of clustering

• hierarchical clustering

- agglomerative versus divisive

• non-hiearchical clustering / partioning

• spectral clustering

• common:

- start with hierarchical clustering to generate clusters

- get centroids from these clusters, then

- non-hiearchical clustering to fine tune cluster memberships

Partitioning

• partitioning of the data sample

• usually starts with^ seed points^ ( e.g. ,^ “centroids”)

• assigns data points to these seed points by distance

• refinement of seed points; loop

• approaches:

- sequential threshold: loop through all data points, update seeds

afterwards

- parallel threshold: update seeds after each data point

- optimization: reassignment of points to clusters based on

optimization criterion

• representatives:^ k -means;^ fuzzy^ c -means^ ➠^ assigns

probability to data points to belong to the clusters

Spectral clustering

• makes use of the^ spectrum of the adjacency matrix

- other types of clustering use pairwise adjacency only

• information obtained from^ eigenvalues^ and

eigenvectors of the adjacency matrix

• solution of clustering by standard linear algebra

• often more efficient than k-means, single linkage

• origins in graph theory^ ➠^ spectral graph clustering

- edges between different groups have low weight (low

similarity)

- egdes within group have high weight (high similarity)

- cut low-weight edges with optimization criteria:

number of cuts, size of clusters

Semi-supervised learning

• use supervised strategies, but start with only^ few

labeled examples

- boot-strapping of a sample

• basic idea

1) train a model based on (few) labeled examples

2) apply it to many unlabeled examples ➠ predictions

3) find the most certain predictions

4) add these new examples as to the labeled examples

5) loop

Semi-supervised learning

Strategies:

• one learner/model, use certainty of predictions after

each step to find new examples

• multiple models^ (co-training)

- different views^ on data (independent features)

• example: web page content and content of web pages

pointing to it (or: it points to)

- different subsets^ of labeled data

• overlapping or disjoint subsets

- find new examples by:

• majority vote defines new examples

• each model gives its most certain predictions to the others

Yarowsky (1995) Unsupervised

  • two constraints: one-sense-per-discourse and one-

sense-per-collocation

  • exploits these in iterative bootstrapping
  • in a large, completely untagged corpus
  • average accuracy: 96%

ng

d ds d n d m that large, avoids by ex- guage: words sense e dis- f a tar- given o that ned by prop- or tar- cations uation: sense rs from parti- o rela- tion of juxta- sitional 2 O n e S e n s e P e r D i s c o u r s e The observation that words strongly tend to exhibit only one sense in a given discourse or document was stated and quantified in Gale, Church and Yarowsky (1992). Yet to date, the full power of this property has not been exploited for sense disambiguation. The work reported here is the first to take advan- tage of this regularity in conjunction with separate models of local context for each word. Importantly, I do not use one-sense-per-discourse as a hard con- straint; it affects the classification probabilistically and can be overridden when local evidence is strong. In this current work, the one-sense-per-discourse hypothesis was tested on a set of 37,232 examples (hand-tagged over a period of 3 years), the same data studied in the disambiguation experiments. For these words, the table below measures the claim's accuracy (when the word occurs more than once in a discourse, how often it takes on the majority sense for the discourse) and applicability (how often the word does occur more than once in a discourse). T h e o n e - s e n s e - p e r - d i s c o u r s e h y p o t h e s i s : Word plant tank poach palm axes sake bass space motion crane Senses living/factory vehicle/contnr steal/boil tree/hand grid/tools benefit/drink fish/music volume/outer legal/physical bird/machine A v e r a g e Accuracy 99.8 % 99.6 % 100.0 % 99.8 % I 00. 0 %

  1. 0 % 100.0 % 99.2 % 99.9 % 100.0 %

Applicblty

72.8 %

  1. 5 % 44.4 % 38.5 % 35.5 % 33.7 % 58.8 % 67.7 % 49.8 %
  2. 1 % 5 0. 1 % Clearly, the claim holds with very high reliability
Frequency as Frequency as

Collocation Aid Aide

foreign

federal western provide zovert appose future ~imilar presidential :hief longtime aids-infected deepy disaffected 718 297 146 88 26 13 9 6 0 0 0 0 0 0

1

e a a f s W b r d g d a s • l c u

Step 1)

• get collocations from untagged corpus, e.g., 7538

instances of the polysemous word plant :

s (including local m sequences, and The training pro- probability distri- nd orders them by

seAlColloeationi~x 5

seBlColloeationi~), tion and pruning. g the single most evidence that ap- t combining prob- h avoids the prob- tical dependencies the reasons for this y is statistical: two te corpus frequency the same discourse ot. This is particu- exhibit a "bursty" that human writers avoid mixing senses y, homograph pairs times less often than frequency. Regard- trong enough to be itional probabilistic continuous function word (the tendency Poisson distribution existing supervised classification algorithm without modification. ~ As shown empirically, it also exhibits considerable effectiveness. The algorithm will be illustrated by the disam- biguation of 7538 instances of the polysemous word plant in a previously untagged corpus. S T E P 1 : In a large corpus, identify all examples of the given polysemous word, storing their contexts as lines in an initially untagged training set. For example:

S e n s e

??????????????????????? T r a i n i n g E x a m p l e s ( K e y w o r d in C o n t e x t )

... c o m p a n y s a i d t h e plant is s t i l l o p e r a t i n g

A l t h o u g h t h o u s a n d s o f plant a n d a n i m a l s p e c i e s ... z o n a l d i s t r i b u t i o n o f plant life.... ... t o s t r a i n m i c r o s c o p i c plant life f r o m t h e ... v i n y l c h l o r i d e m o n o m e r plant, w h i c h is ... a n d G o l g i a p p a r a t u s o f plant a n d a n i m a l c e l l s ... c o m p u t e r d i s k d r i v e plant l o c a t e d in ... ... d i v i d e life i n t o plant a n d a n i m a l k i n g d o m ... c l o s e - u p s t u d i e s o f plant l i f e a n d n a t u r a l ... N i s s a n c a r a n d t r u c k plant in J a p a n is ...

... k e e p a m a n u f a c t u r i n g

... m o l e c u l e s f o u n d in ... u n i o n r e s p o n s e s t o ... a n i m a l r a t h e r t h a n

... m a n y d a n g e r s t o company manufacturing

... g r o w t h o f a q u a t i c

a u t o m a t e d m a n u f a c t u r i n g ... A n i m a l a n d d i s c o v e r e d a t a S t. L o u i s

plant p r o f i t a b l e w i t h o u t

plant a n d a n i m a l t i s s u e plant c l o s u r e s.... plant t i s s u e s c a n b e plant a n d a n i m a l life plant is i n O r l a n d o ... plant life i n w a t e r ... plant in F r e m o n t , plant life a r e d e l i c a t e l y plant m a n u f a c t u r i n g c o m p u t e r m a n u f a c t u r i n g plant a n d a d j a c e n t ... ... t h e p r o l i f e r a t i o n o f plant a n d a n i m a l life

Step 3a)

• train supervised algorithm

  • returns a probability (e.g., decision lists)
  • find more collocations in the training sample:
a n d a n i m a l l l f e ...

v i r u s l i f e c y c l e ... a n d a n i m a l k i n g d o m a n d a n i m a l l i f e ... l i f e a r e d e l i c a t e l y l i f e. R i v e r ... l i f e g r o w i n g o n ...

t, w h i c h is ...

a n d a n i m a l t i s s u e

in J a p a n is ...

t a n d a n i m a l celia ...

c l o s u r e s....

k i n g d o m a r e ... is s t i l l o p e r a t i n g ... a n d a n i m a l s p e c i e s

t t i s s u e s c a n b e ...

l o c a t e d in ...

..

in F r e m o n t ...

t a n d d i s t r i b u t i o n ...

t, p r o d u c i n g v i s c o s e

p r o f i t a b l e w i t h o u t

t a n d a d j a c e n t ...

m a n u f a c t u r i n g

f o u n d t h a t t h e y

t, f o r e x a m p l e ...

in A l p e n a ...

a t i t s D e w ...

t is in O r l a n d o ...

ocess of seed de- wing figure illus- ircled regions are n either an A or B ample points "?" [ Life ] = Set of training examples containing the collocation "life". S T E P 3 a: Train the supervised classification algorithm on the SENSE-A/SENSE-B seed sets. The decision-list al- gorithm used here (Yarowsky, 1994 ) identifies other collocations that reliably partition the seed training data, ranked by the purity of the distribution. Be- low is an abbreviated example of the decision list trained on the plant seed data. 9 I n i t i a l d e c i s i o n list f o r plant ( a b b r e v i a t e d ) LogL

  1. 10
  2. 58
  3. 39
  4. 20
  5. 27
  6. 70
  7. 39
  8. 30
  9. 10
  10. 52
  11. 48
  12. 45 Collocation Sense plant life =~ A m a n u f a c t u r i n g plant ~ B life (within 4-2-10 words) ~ A m a n u f a c t u r i n g (in 4-2-10 words) =~ B animal (within -I-2-10 words) =~ A equipment (within - 1 - 2 - 10 words) =¢, B employee (within 4-2-10 words) =~ B assembly plant ~ B plant closure =~ B plant species =~ A automate (within 4-2-10 words) ::~ B microscopic plant ~ A 9 Note that a given collocate such as life may appear multiple times in the list in different collocations1 re-

Steps 3b) and 3c)

b) classify all residual examples

  • add to A or B seed set if above a certain threshold c) augment seed sets with new instances: one-sense-per- discourse!
  • filter incorrect examples, also based on OSPD Repeat 3a) to c) until stop criterion; apply to new data

ifier to the entire sam- ers in the residual that r SENSE-B with proba- eshold, and add those seed sets. Using the e additions will contain that are reliably indica- d seed sets. The acquisi- ng collocations from co-

  • identified ones is illus-

of Figure 2.

  • per-discourse constraint

d augment this addition. re discussed in Section 7. of the polysemous word been assigned S E N S E - A , nded to all examples in ?? L/re - A ' " a " A A. '? ~?? 7 7?? ' '? (^)??? ? IrX'li'~A. ' ". ^ ^ ~ A t 2 2 ~ f ~ - - P. , , ~ : ~ ' l M l ~ o ~ w ~ o p i c I • 1 '? ' ~?? ,?? '? ; : , ???????? ??

,^~-*~'. ,/ 2 "~A=,I , ~ : ' - ; , , , , , , , ,

L ~ I I I? 3???? 2 '? ????? ' t " "? "?????? ? ~ 7 7 7 7? ' t?? ?? ~ ?r e - (^7 7)? (^7)? ??? ?????? (^)??? (^7 7)?? (^7 7)? , 7???? (^7)? ?? ?? :. :. :. ,. '....... :.... :...... '.: ? 2 7?^? ???^??^??^2?^?? 2 7????? ???????^?^?^? ??????? ?? ?? 7 " 7 7 1 Eouimr~nt I. - [ a ~ l ~ B u %~.~i,.lL.~ B - n ~ |

. ; ,? -? ~??????? '~. ~. f : ' l ~ , , , ~ / m , , = D B ~ h l? ?'~ B ~ -. I I

?????????? ' 7 '.,? examples to the growing seed sets. Using the decision-list algorithm, these additions will contain newly-learned collocations that are reliably indica- tive of the previously-trained seed sets. The acquisi- tion of additional partitioning collocations from co- occurrence with previously-identified ones is illus- trated in the lower portion of Figure 2. S T E P 3 c: Optionally, the one-sense-per-discourse constraint is then used both to filter and augment this addition. The details of this process are discussed in Section 7. In brief, if several instances of the polysemous word in a discourse have already been assigned S E N S E - A , this sense tag may be extended to all examples in the discourse, conditional on the relative numbers and the probabilities associated with the tagged ex- amples. L a b e l i n g p r e v i o u s l y u n t a g g e d c o n t e x t s using the one-sense-per-discourse p r o p e r t y C h a n g e D i s c. i n t a g N u m b. ~. - ~ A 7 2 4 A --* A 7 2 4 ? --* A 7 2 4 A --* A 3 4 8 A --* A 3 4 8 ? --* A i 3 4 8 ? --* A 3 4 8 T r a i n i n g E x a m p l e s ( f r o m s a m e d i s c o u r s e ) ... the existence of plant a n d a n i m a l life ... ... c l a s s i f i e d as either plant o r a n i m a l ... A l t h o u l ~ h b a c t e r i a l a n d plant cells a r e e n c l o s e d ... t h e life o f the plant, producing stem ... a n a s p e c t o f plant life , f o r e x a m p l e ... t i s s u e s ; because plant egg c e l l s h a v e p h o t o s y n t h e s i s , a n d s o plant g r o w t h is a t t u n e d This augmentation of the training data can often form a bridge to new collocations that may not oth- erwise co-occur in the same nearby context with pre- viously identified collocations. Such a bridge to the SENSE-A collocate "cell" is illustrated graphically in the upper half of Figure 2. Similarly, the one-sense-per-discourse constraint may also be used to correct erroneously labeled ex- amples. For example: E r r o r C o r r e c t i o n u s i n g t h e o n e - s e n s e - p e r - d i s c o u r s e p r o p e r t y C h a n g e D i s c. in t a g N u m b. A - --* A 5 2 5 A - --* A 5 2 5 A - --* A 5 2 5 B ~ A 5 2 5 "l~raining E x a m p l e s ( f r o m s a m e d i s c o u r s e ) c o n t a i n s a v a r i e d plant a n d a n i m a l life t h e m o s t c o m m o n plant life , t h e ... s l i g h t w i t h i n A r c t i c plant s p e c i e s ... are protected b y plant p a r t s r e m a i n i n g f r o m L ~ I I I? 3???? 2 '? ????? ' t " "? "?????? ? ~ 7 7 7 7? ' t?? ?? ~ ?r e - (^7 7)? (^7)???? ???? ????? (^7 7)?? (^7 7)? , 7???? (^7)? ?? ?? :. :. :. ,. '....... :.... :...... '.: ? 2 7?^? ???^??^??^2?^?? 2 7????? ???????^?^?^? ??????? ?? ?. (^) ; , ?? - (^)? ~? (^7)? " (^7)???? 7 1 E?o u'~im .r ~~ .n ft : (^) ' l ~ I, , ,. (^) ~- [ / (^) ma , ~, l= ~ DB (^) Bu ~% h ~l .~i,.?lL ?.~' (^) ~ BB - ~ n (^) - ~. | I I ?????????? ' 7 '.,? F i g u r e 2 : S a m p l e I n t e r m e d i a t e S t a t e (following Steps 3b and 3c) S T E P 4 : Stop. When the training parameters are held con- stant, the algorithm will converge on a stable resid- ual set. Note that most training examples will exhibit mul- tiple collocations indicative of the same sense (as il- lustrated in Figure 3). The decision list algorithm resolves any conflicts by using only the single most reliable piece of evidence, not a combination of all matching collocations. This circumvents many of the problemz associated with non-independent evi- dence sources. S T E P 3 d: Repeat Step 3 iteratively. The training sets (e.g. S E N S E - A seeds plus newly added examples) will tend to grow, while the residual will tend to shrink. Addi- tional details aimed at correcting and avoiding mis-