WITH A ,SPOON I N HAND THIS MUST
BE
THE EATINGFRAME
Eugene Char n i a kDepartment o f hmputer Science Yale U n l v e r s i t y
ABSTRACT
A language camprehension program using
"framestf
" s c r i p t s f ' , etc. must b e a b l e t o d e c i d e which framed are a p p r o p r i a t et o
the
text. Often t h e r e w i l l be e x p l i c i t i n d i c a t i o n ("Fred was p l a y i n g t e n n i s " s q p l e s t s t h eTENNIS
frame) but i t i s n o t a l q a y s so easy.('%+ woman way@ while-the man on t h e s t a g e sawed h e r i n h a l f " s w g e a t sMAGICIAN b u t how?) T h i s paper w i l l examine how a program might g o about determining t h e a p p r o p r i a t e frame in such c a s e s . A t a s u f f i c i e n t l y sag* l e v e l the model presented h e r e w i l l reaembge t h a t o f Minsky (1975) i n it's a s s m p t i o n c h a t one u s u a l l y h a s a v a i l a b l e o n e o r more c o n t e x t frames. Hence one o n l y needs worry i f i n f o r m a t i o n comes i n w h i c h d o e s n o t P i t them. A s opposed t o Minsky however t h e s u g g e s t i o n s f o r new c o n t e x t frames w i l X not come from t h e o l d o n e s , but r a t h e r from
t h e c o n f l i c t i n 8 information. The problem them becomes how p o t e n t i a l frames a r e indexed under t h e i n f o m a t ion which "suggestsw them.
Understanding e v e r y d a y d i s c o u r s e r e q u i r e s making i n f e r e n t e s from a v e r y large base of common s e n s e knowledge. To avoid d e a t h by c m b i n a t o r i a l explosion our computer must be h b l e t o ~ c c e s s t h e knowledqe i t n e d s without i r r e l e v a n t knowledse ~ e t t i n g i n i t s m y . A p l a u s i b l e c o n s t r a i n t on t h e knowledge we m i ~ h t use
a t
a %iven p o i n t i n a s t ~ r y o r c o n v e r s a t i o n ( I s h a l l h e n c e f o r t h simplyassme
we are d e a l i n g w i t ha
s t o r y ) is' t o =strict c o n s i d e r a t i o n to t h a t p o r t i o n o f our knowledge which is "&bout" t h i n g s which have been mentionedi n
t h e d i s c o u r s e . So i f we have a s t o r y which menttons t r a i n s and t r a i n s t a t i o n s , we w i l l not use our knowledge o f , s h y , circuees. T h i s r e q u i r e s , o f course. t h a t g i v e n a t o p i c , such a s t r a i n s , or e a t i n g . we must be a b l e to acCess i t s knowledge without going t h r o q h a v e r y t hing we know. Hence we a r e lead i n a natural way t o something approaching a n o t i o n of "frame" (Minsky1 9 f 5 ) : a c o l l e c t i o n o f knowledge about a s i n g l e s t e r e o t y p e d s t t u a t i o n .
I n t h e above discussion however I have made a r a t h e r important slight o f hand. Given s t o r y we only want t o c o n s i d e r those frames "about" t h i n g s t n the s t o r y . l b w L s i t that we d e c i d e which frames q u a l i t y ' I was a b l e t o g l o s s over t h i s because i n most s i t u a t i o n s t h e problca, a t l e a s t a t a s u r f a c e Iwel. does n o t appear a l l thst d i f f i c u l t . If t h e s t o r y i s abotlt: t r a i n s . i t will s u r e l ~ meqtion t r a i n s . So we see t h e word "train". and we assume t h a t t r a i n s ate r e l e v a n t .
What could be easier.
U n f o r t u n a t e l y ,
this
ease 1s d e c e p t i v e f o r t h e s t o r y may mentton many t o p i c s of which o n l y afew
a r e t r w l y important t o t h e s t o r y . For example.The
lawyer gooka
cabt o
*the r e s t a u r a n t n e a r the uni'(iereit.y.Here w? have "lawyer", "cab"
,
" r e s t a u r ~ n t " and " u n i v e r s i t ~ " a11 o f whichare
c a l l i n g f 6 r o u r a t t e n t i o n . Somehow on t h e b a s i s of latef l i n e s we must weed o u t t h o s ewhich
our o n l y incjidentak.
But a more immediate d i f f i c d g y
are
t h o e e s i t u a t i o n s where B s t o r ydealq
w i t h B-11
d e f i n e d t o p i c , y e t n e v e r e x p l i c i t l y mentioqs i t . So c o n s i d e r :The
mrdan m v e d 8s t h e man o n the stage sawed heriq
h a l f .lkre
w
lave no d i f f i c u l t y i n guesaing t b t thisIP
a magic t r i c k . a l t h o u g h n o t h i n g o f t h e s o r t h&s been mentioned. We a r e a b l e t o t a k e "lowlevel''
f a c t s concerning sawing, s t a g e s ,
e t c
and put them t o g e t h e r in a h i g h e rl w e l
"magician" h y p o t h e s i s . As s u c h , t h e phenomena i l l u s t r a t e dhere
*is e s s e n t i a l y bottom up.O f
course,
any t i m e wet r j
t o i n f e r r e l a t i v e l y g l o b a l p r o p e ~ t f e s from morelocal
evidence we may make mistakeo. ' h a t t h i s creates problem6 i n frame d e t e r m i n a t i b n i s Shown 4y the n i c e example o f C o l l i n s e t .a l e
( f o r t h c o m i n g ) .{To
p)et t h e f u l l tmport o f t h e example, t r y pausing b r i e f l y a f t e r each sentence.)He plunked down $5 at: &he wLndaw. She tried t o g i v e him $2.50 but he ltefused .to t&e i t . So when t h e y g o t i n s i d e she b o a h i t him m large bag of popcorn.
The f i r s t l i n e i s uniformly i n t e r p r e t e d a s
a
buying , a c t (most even going furtheq end a s s u a i n g somethirift l i k ea
b e t a t a r a c e t r a c k } -The
secorad l i n eis
t h e n seen a s areturn
o l c)lsnge, but t h e r e f u s a li s problematic.
The t h i r d t i n e r e s o l v e s a l l o f t h i s by s q g e s t i n g a d a t e tat t h e movies -.a
c o n s i d e r a b l e r e v i s i o n o f t h e I n i t i a l h y p o t h e s i s .To s m a t i z e , t h e l a s t few paragraphs, the problem o f frame determinatioin i n language comprehension $ n v ~ l v e s t h r e e sub-problms
.
1) s t o r i e s will t y p i c a l l y e I d d e t o many h i g h e r fraqks, any of which might serve as the
contax& for the incoming Iinee. Nnw d o we choose between them?
2 ) The words used i n a s t o r y may not directly i n d i c a t e t h e proper h i g h e r
frame.
l?uw d o wet d o t h e bottom up proc$?ssing t o f i n d i t ? 3) I f we a r e l e a d ~rrtrity i n t h e c o u r s e o f (2).how d o we c o r r e c t o u r s e l v e s
an
the b a s i s o f f u r t h e r evidence.In tbe paper which follows I w i l l be p r i m a r i l y c o n c e n t r a t e 3n ( 2 ) w i t h (3) b e i q mentfoned o c c a s i o n a l l y . I n
essence
my p o s i t i o n on ( 1 i a t h a t i t w i l l n o t be t o o much o f aproblem,
provided t h a t &he c o s t o f s e t t i n g up a c o n t e x t like " r w t a u r a n t " i~ small. f f i t ;i s
never
used then a s Fhe stary g o e s o n it w i l l teceeded l n t a the backgroundHow
t h i s "receed ing " takes p l a c eI shall, not s a y . a i n c e f o r one t h i n g i t
i s
4Concerning ( 2 ) and ( 3 ) , we w i l l be l e a d t o a p 0 8 i t i a h
similar
t o t h a t o f MLnsky (1975) and W l i n s e t . a 1 ( f o r t h c m m i n g ) i n t h a t a framewill
be s e l e c t e d on t h e b a s i s o f l o c a l e v i d e n c e , and c o r r e c t i o w w i l l be made i f i t p r o v e s rrecepsary.We
w i l l s e e however, t h a t t h e r e a t e s t i l l a l o t o f problema with t h i s * polpMion which d o not a t f i r s t g l a n c e me& t h e eye.'1 THE CLUE INTERSECTION METHOD
Rather t h a n immediately p r e s e n t i n g my scheme, l e t
me
s t a r t by showing the problems w i t h a n a l b r n a t i v e p o s s i b i l i t y , which I w i l l c a l l t h e "clue i n t e r s e c t i o n " metbod. T h i s a l t e r n a t i v e i s by no means a s t r a t s man a s one r e s e a r c h e r has i n f a c t e x p l i c i t l y suggested i t (Fahlman 1977) and If o r one f i n d i t a v e r y n a t u r a l way o f t h i n k i n g about t h e problem.
The i d e a behind t h i s mkghod i s t h a t we a r e g i v e n o e r g a i n c l u e s i n t h e istory about t h e n a t u r e o f t h e c o r r e c t Erame, and t o f i n d t h e frame we simply i n t e r s e c t t h e p o s s i b l e frames a s s o c i a t e d w i t h e a c h c l u a . To s& how t h i s might work l e t us Sake a c l o s e 1-k a t t h e following example
A s Jack waawd down t h e
a i s l e
he put a can o f t u n a f i s h i n h i s b a s k e t .The c l u e s h e r e a r e t h i n g s l i k e " a i s l e " , " t u n a f i s h ' e t c . Of c o u r s e , I d o not mean t o s a y t h a t i t i s t h e English w r d s which a r e t h e c l u e s , but r a t h e r the concepts which u n d e r l i e t h e words. I w t l l a s s u u e t h a t we go from one t o t h e o t h e r v i a a n independent? parsing algorithm. (However t h i s assumes t h a t t h e r e Is no v i c i o u s i n t e r a c t i o n b e t w e n f r b e d s e r m i n a t i o n and d lsambigua t i o n . Given t h a t d i e a d b i g u a t i o n depends W U p r i o r frame
d e t e r m i n a t i o p (see (Hayes 1977) f o r numerous examples) t h i s may be i n c o r r e c t . ) So t h e i n p u t t o t h e frame d e t e r m i n ~ r w i l l be something l i k e
ST-1 (WALK JACK-1 AISLE-1) ST-2 ( PERSON JAC K-1 )
ST-3 (EQUAL (NAME JACK-1 ) "JACK") S T 4 (EQUAL (SEX JACK-1 ) MALE) ST-5 (AISLE AISLE-1
ST06
(PUT
JACK-I TUNA-FISH<@-1 BASKET-1) ST97 (BASKET B&RET-I)The d e t a i l s of t h e r e p r e s e n t a t i o n d o not f i g u r e i n t h e p a p e r ,
and
t h o s e which d o a r e f a i r l y u n c o n t r o v e r s i a l . An exception h e r e i s the we o f s p e c i f i c p r e d i c a t e s l i k e BASKET o r AISLE.W
e
dl1 r e t u r n to this point f n t h e conclusion.Given t h i s r e p r e s e n t a t i o n we can imagine one method o f f i n d i n g t h e a p p r o p r i a t e frame. Our
clues a r e t h e v a r i o u s p r e d i c a t e 6 i n t h e i n p u t , such a s as
AISLE,
BASKET, etc. Index under e a c h csf them all be p o i n t e r s t o those p l a c e s where i tcanes up. Under AISLE we m i @ t find CHURCH,
THEATER,
and SUPERMARKET, w h i l e BASKET w i l l have LLTTU-RED-RID1 NG-HOOD, and SUPEWA&KET. The p o i n t i s t h a t none o f these e l m s w i l l be unambiguous, but when we t a k e t h e i n t e r s e c t i o n t h e qnly t h i n g which v i l l be l e f t i s SUPERMARKET.There
are,
however, problems w i t h t h i s v i e w o f t h i n g s . For one t h i n g i t i g n o r e s what I w i l l c a l l t h e "clue s e l e c t i o n " problem.Put
i n t h e p l a i n e s t f a s h i q n t h e d i f f i c u l t i y h e r e i s d e c i d i n g e x a c t l y what clues we w i l l hand over t o t h e c l u e r e s o l u t i o n component, and i n what o r d e r . Sr, i n t h e l a s t e%ample I s e l e c t e d some o f t h e c w t e n t o f t h e s e n t e n c e t o hand over to t h e c l u e r e s o l v e r , i n p a r t i c u l a r AISLE, and BASKET. T h i s seemed r e a s o n a b l e g i v e n t h a t t h e y d o tend t o s t g g e s t "supermarket", a s d e s i r e d . But there i s more i n f o r m a t i o n i n t h e s e n t e n c e . It was Jack who d i d a l l o f t h i s . Why n o t i n t e r s e c t what we know a b o u t Jack w i t h a l l of t h e r e s t , o r WALK? Or a g a i n - supgose something ever so s l i g h t l y odd h a m . such a s t h e b a s k e t h i t t i n g a qcrewdriver which i s on t h e Eloor. SCREWDRIVER w i l l have v a c i o u a t h i n g s indexed undqr i t , but more l i k e l y t h a n n o t t i n t e r k e c t i o n w i t h t h e rest o f t h e i t e m smentioned above w i l l g i v e us t h e n u l l set. For t h a t m a t t e r , i s t h e r e any r e a s o n
w
o n l y i n t e r s e c t t h i n g s i n t h e same s e n t e n c e ? The answer h e r e i s c l e a r l y n6, s i n c e t h e r e a r e many examples which r e q u i r e j u s t t h e o p p o s i t e .Jack was walking, down an a i s l e . )Be was
pushing h i s b a s k e t .
But i f we d o not s t o p a Bentence b o w d r i e s where do we s t o p ? It i s r i d i c u l o u s t o go t h r o q h t h e e n t i r e s t o r y col*lectinp; c l u e s and then d o a grand i n t e r s e e t i o n a t t & end
A r e a s o n a b l y n a t u r a l s o l u t i o n t o t h e clue s e l e c t i o n problem h u l d s t a r t with t h e o b s e r v a t i o n
that u s u a l l y we a l r e a d y have a g e n e r a l frame. When new clues come i n f ~ e s e e i f t h e y are
c m p a t i b l e w i t h what we a l r e a d y b e l i e v e . I f
so,
f i n e . I f n o t , we see i f t h e c l u e s y ~ g e s t s a d i f f e r e n t c o n t e x t frame. If n o t ( a s w i t h , Say, WALK which o c c u r e s so o f t e n a s t o be unsuggestive) t h e n nothlny: more need be done. Tf t h e r e a r e newljc suggested c o n t e x t frames t h e y shdyld be i n v e s t i g a t e d . T h i s w i l l be done f o r e v e r y p r e d i c a t e . Now t h e c l u e i n t e r s e c t i o n grkthod i s c o m p a t i b l e m t h t h i s i d e a , but i ndlts
broad o u t l i n e weare
moving c l o s e r t o what I have been c h a r a c t e r i z i n g a s t h e Minsky p r o p o s a l .Fur thermore
,
t h e r e a r e some problems w i t h t h e c l u e i n t x r s e c t i s n method which g o beyond t h e mere s w g e s t i v e . Consider t h e following exampleJ a c k t o o k a can o f t u n a f i s h from t h e s h e l f . Then he turned on a l i g h t .
A f t e r t h e f i r s t l i n e t h e i n t e r s e c t i o n method shoufi l e a v e
u s
undecided between KITCHEEJand SUPERMARKET. The n e x t l i n e should r e s o l v e t h e i s s u e , but howi s
i ttmt
i t d o e s so? It must have something t o do w i t h t h e f a c t t h a t n o r m a l l y a shopper a t a s t o r e would not be t h e petson to t u r n l i g h t s vn o r o f f , w h i l e i t would be p e r f e c t l y normal f o r J a c k t o do i t i n whaX presunably i s h i s own k i t c h e n . But t h i s s o r t o f r e a s o n i n g i s n o t e a s i l y modeled by c l * I n t e r s e c t i o n because i t m u l d seem t o depend on making i n f e r e n c e s which a r e themselves dependent o n havlng t h e c o n t e x t frames a v a i l a b l e . That i s t o s a y , b e f o r e we c a n rule o u t SUPhRMARKET, we need some p i e c e o f i n f o r m a t i o n from t h e SUPERMARaT frame which w i l lo n a l i g h t . g i v e n t h a t he is cast i n t h e r o l e o f SHOPPER i n t h a t frame-
I n t e r e s t i n g l y e n o w h , Fahlman (who I e a r l i e r noted i s a proponent o f t h e c l u e i n t e r s e c t i o n method) had a m a j o r role i n t h e e v o l u t i o n o f t h e Minsky p r o p o s a l whic4 I a d v o c a t e . As such i t behoves us t o c o n s i d e r why he t h e n r e j e c t e d t h e i d e a i n (Fahlman 1977). K i s primary r e a s o n i s h i s o b s e r v a t i o h that f r e q u e n t l y i n v i s i o n one d o e s n o t Rave q p l n g l e c l u e which c o u l d s e r v e a s t h e b a s i s f o r t h e f i r s t g u e s s a t t h e a p p r o p r i a t e frame. Rather i t would seem that one has a m u l t i t u t e o f v e r y vague f e a t u r e s , e a c h one o f which c o u l d belong t o a wide v a r i e t y o f o b j e c t s o r s c e n e s . To s e l e c t one o f them f o r a f i r s t g u e s s would be q u i t e a r b i t r a r y and would i n v o l v e one i n a n i n c r e d i b l e amount o f b a c k t r a c k . It would seem much more p l a u s i b l e t o s i h p l y d o an i n t e r s e c t i o n o n t h e c l u e s and i n t h i s way weed o u t t h e o b v i o u s i m p l a u s i b i l i t e s
.
While t h i s a n a a y s i s o f t h e s i t u a t i o n in v i s i o n i s q u i t e p l a u s i b i l e . I e s t i m a t e t h a t h i g h
l e v e l v i s i o n i s s t i l l i n a s u f f i c i e n t l y rudinrentar y s t a t e t h a t t h e s e c o n c l u s i o n s need not be t a k e n as a n y t h i n g m a r t h e f i n a l word. Furthermore, e v e n if i t were proved t h a t v i s i o n d o e s need a? i n t e r s e c t i o n t y p e p r o c e s s , I c a n e a s i l y b e l i e v e t h a t t h e p r o c e s s which g o e s o n i n v i s i o n i s n o t t h e aame a s t h a t which g o e s on i n langusqe. For one t h i n g ih v i s i o n t h e r e i s
a
n a t u r a l c u t - o f f for c l u e s e l e c t i o n-
the s i n g l e s c e n e . For a n o t h e r , w i t h i n t h e s c e n e t h e r e i s c i n a t u r a l metric on t h e l i k e l y n e s s o f t m f e a t u r e s belonging t o t h e same frame-
d i s t a n c e . Weithero r not thege i n f a c t m r k i n v i s i o n . t h e y d o s u g g e s t why someone p r i m a r i l y worried a b o u t t h e v i s i o n problem m u l d n o t s e e c l u e s e l e c t r o n a s t h e problem-it a p p e a r s t o be i n l a n g u a g e .
3 DII'FERENT KINDS OF
INDICES
A s I have a l r e a d y s a i d , t h e scheme I b e l i e v e :an surl'nodnt t h e d i f f i c u l i t i e s p r e s e n t e d i n t h e Last secticnr i s a v a r i a n t o n one proposed by Urrsky
,
and e l a b o r a t e d by Fahlman ( 1974) and Kuipers ( 1 9 7 5 ) . The b a s i c i d e a i s t h a t one m a j a r f e a t u r e o r c l u e is used t o s e l e c t a n i n i t i d lframe. Other facts a r e t h e n i n t e r p r e t e d i n l i g h t
3 f t h i s frame. If t h e y f i t , f i n e . I f ncat t h e n
a n o t h e r frame mur;t, b e found which e i t h e r complements o r r e p l a c e s t h e o r i g i n e l frame. In t h e p r e v i o u s p r o p o l s a l s t h e o r i g i n a l frame c o n t a i n e d i n f o r m a t i o n a b o u t a 1 te r n a t e f r a m e s t o b e t r i e d i n c a s e o f c e r t a i n types o f i n c o m p a t a b i l i t i e s . T h i s may o r may n o t work i n v i s f o n ( v h i c h was t h e primary c o n c e r n o f t h o s e mentioned e a r l i e r ) however I s h a l l d r o p t h i s p a r t o f t h e t h e o r y . I n dLscourse t h e r e a r e s i m p l y t o o many ways a frame c a n be i n a p p r o p r i a t e t o make t h i s f e a s i b l e . For example, i t s t r e t c h e s c r e d i b i l i t y t o b e l i e v e that: SUPIsRMARKEI' would
suggest l o o k i n g a t UTCHFN rn t h e c a s e t h e shgpper t u r n s o n t h e i i p ; h t s .
It
seems reaeonable: t o a s s m e t h a twe
guess e v e n b e f o r e t h e second s e n t e n c e t h a t J a c k w l l lmake
a
c a l l . Tb a n t i c i p a t e t h i s wr, must h a v e TELEF?iOWXNG
indexed under
TELEPHONE.
When wesee
t h e fir a t l i n e we first t r y t o ' i n t e g r a t e i t i n t o what m a l r e a d y know. S i n c e t h e r e w i l l be n o t h i n g theret o i n t e g r a t e i t i n q o , we try t o c o n s t r u c t something. To d o t h i s ' WL? l o o k t o see what we have indexed under
TELEPHO~&,
f i n dTELEPHONING,
and t r y t h a t o u t . Indeed i t # w i l l work q u i t e well, s i n c e o n e o f t h e t h i n g s under.TELEPHONINC i s t h a t t h e A a N C muat b e i n t h e p r d x i m i t y a f t h e phone, and J a c k j u s t accompliqhed t h a t . Hence we a r e a b l e t o i n t e g r a t e (AT JACK01 TEBPHONE-1) i n t o t h eTELEPHONIhG frame, and e v e r y t h i n g is f i n e .
Nothing 1s e v e r r e a l l y t h i s s i m p l e however, and even i n t h i s example, which h a s been s e l e c t e d
f o r i t s c o m p a r a t i v e s i a p l i c i t y , t h e r e a r e c o m p l i c a t i o n s .
I
s u s p e c t most p e o p l e have a s a m e d i n t h e c o u r s e o f t h i s example t h a t J a c k i s i n a room, and p e r h a p s have even gone so f a r as t o assume he is a t home- Nothing i n t h e s t o r y s a y s s o o f c o u r s e , and i f t h e n e x t l i n e went on t o s a yt t t J a c k put a dime i n t o t h e phone we would q u i c k l y r e v i s e o u r t h e o r y .
To a c c o u n t f b r o u r t e n d e n c y d t o p l a c e J a c k i n room, we must have a second index under TELEPHONE which p o i n t s t o p l a c e s where phones a r e t y p t c a l l y found. ( A n p o s s i b l e a l t e r n a t i v e i s t o have t h i s s t a t e d under TELEPHONING b u t t h i s would make i t d i f f i c u l t t o use t h e % n f o r m a t i o n i n c a s e s
where no c a l l i s a c t u a l l y b e i n g made, s o TELEPHONING. e v e n i f h y p o t h e s i z e d , would n o t s t a w around 3ong.) So tff w i l l h y p o t h e s i z e two k i n d s 0 4
i n d i c e s , a n ACTION index and a LOCATION index.
T h i s r d i s t i n c t i o n s h o u l d m i r r o r t h e i n t u i t i v e
d i f f e r e n c e between p l a c i n e and o b j e c t in a t y p i c a l l o c a l and p l a c i n g a n a c t i o n i n a t y p i c a l sequent#. Other d i s t i n c t i o n s o f t h i s sorg e x i s t and may w e L l l e a d t o t h e i n $ r o d u c t l o n o f o t h e r such i n d k t y p e s l o c a t i n g o b j e c t s and a c t i o n s i n t i m e fbr example. However I would a n t i c i p a t e t h a t t h e t o t a l number is s m a l l (under 10. s a y ) .
To i l l u s t r a t e how t h e s e i n d e x t y p e s might hook up t o
TELEPHONE
I w i l l use a s l i g h t l yex tended v e r s i o n o f t h e frame r e p r e s e n t a t i o n i n t r o d u c e d i n ( C h a r n i a k 1 9 7 7 ) and ( C h a r n i a k forthcornming). From t h e p o i n t o f v i e w o f t h i s paper n o t h i n g i s dependent o n t h i s c h o i c e . I t i s
s i m p l y t o g i v e us a s e p e c i f i c notat* M t h which t o work,
So l e t us c o n s i d e r a v e r y s i m p l e example.
(TELEPHONE (OBJECT) ;The frame d e s c r i b e s a n OBJECT ; (and not
,
s a y , a n e v e n t ).
VARS:(THING) ,I o n l y i n t r o d u c e one v a r i a b l e
. L o ;THING which i s bound t o t h e
; t o k e n i n t h e s t o r y r e p r e - , s e n t i n g t h e phone
&NATION: ( (ROOM (HOME-PHONE
.
THING) )(PUBLIC-LOC ( PAY-PHONE
.
THING) ) ); I f we i n s t a n t i a t e t h e ROOM frame t h e n t h e ;HOME-PHONE v a r i a b l e i n i t shquld be bound ; t o t h e . token which i s bound t o THING.
; S i m i l a r l y f o r PUBLIC-LOC and PAY-PHONE
.
ACTION: ( (TELEPHONING (PHONE
.
THING)) ).
..) ,Other p o r t i o n s o f t h e frame would ; d e s c r i b e i t s a p p e a r a n c e , e t c.
We w i l l n o t be a b l e t o integrate t h e f i r s t l i n e o f our s t o r y i n t o a n y o t h e r frame, s o we w i l lh y p o t h e s i z e t h e TEUPHONINC frame and e i t h e r t h e raom frame o r t h e p u b l i c p l a c e frame. Given my s u b j e c t d a t a on wh8t p e o p l e assume, t h e room frame i s p l a c e d , and hence t r i e d , f i r s t . T h i s
will
c a u s e t h e c r e a t i o n o f two new s t a t e m e n t s which s e r v e t o s p e c i f y t h e frames now a c t i v e , and t h e i r b i n d i n g s(TELEPHONING (PHONE
.
mLEPHONE-1)) [ROOM (ROOM.
ROOM-1 )( HOMELPHONE
.
T EPHONE- ~ 1 ) )The s y n t a x h e r e i 8 t h e name o f t h e frame followed by d o t t e d p a i r s (VARLABLE , BINDING). E a r l i e r I used a p l a c e n o t a t i o n f o r s i m p l i c i t y , e.g.,
In f a c t t h i s would be c o n v e r t e d i n t e r n a l l y t o t h e d o t t e d p a i r format:
(TELEPHONE (THING
.
TELEPHONE-1 ) )I might n o t e t h a t my v a r i a b l e s a r e what Minsky (1975) c a l l e s " s l o t s " . Th'ey a r e a l s o e q u i v a l e n t ( t o a f i r s t appruxirnation) t o KRL s l o t s such a s HONE-PHONE i n .
[ROOM-1 (UNIT)
<SELF ( a ROOM w i t h
HOME-PHONE TELEPHONE-1 )> ]
So,= a r e h y p o t h e s l z l n g 1 ) an i n s t a n c e o f t e l e p h o n i n g , where t h e o n l y t h i n g we know a b o u t i t
i s t h e t e l e p h o n e i n v o l v e d , and 2 ) a room (ROOM-1 ) which a t t h e moment i s o n l y f u r n i s h e d w i t h a t e l e p h o n e . Note Bkat t h i s assumes t h a t i n o u r room frame we have a n e x p l i c i t s l o t for a t e l e p h o n e . T h i s i s e q u i v a l e n t t o assuming t h a t rooms t y p i c a l l y have phones i n them.
We c a n now i n t e g r a t e t h e f a c t t h a t J a c k i s at; t h e phone i n t o t h e t e l e p h o n i n g frame, assuniq t h a t t h i s s t a t e i s e x p l i c i t l y mentioned t h e r e ( i . e . we h o w t h a t a s p a r t o f t e l e p h o n i n g t h e
A a m must be AT t h e TEUPHONE). With t h i s added
o w TELEPHONING s t a t e m e n t w i l l now be:
(TELEPHONING (AGENT
.
JACK-1 )(TELEPHONE
.
TELEPHONE-1))wnen cne secona Arne cumerr A I I 1 ~ e must see how t h i s
f i t s i n t o t h e TELEPHONING frame, b u t this i s a problem of i n t e g r a t i o n . The frame d e t e r m i n a t i o n problem i s o v e r f o r t h i s exam~le.
CONSTRAINTS ON THE HYPOTHESIS OF NEW FRAMES
E s r l y o n w e noted t h a t i t w a g o n l y n e c e s s a r y t o worry a b o u t a new frame i f we r e c e i v e d i n f o r m a t i o n which d i d n o t f i t i n t h e o l d ones. Then when w e i n t r o d u c e d t h e two k i n d s o f i n d e c r e s w e noted t h a t we wanted t o p l a c e e v e n t s i n
a
sequence o f e v e n t s , and o b j e c t s i n t h e i r mica1 l o c a l . q i s immediately s u g g e s t s t h a t whenw
get
a n unintecgratable a c t i o n we use t h e ACTION index on t h e predicate, w h i l e f o r o b j e c t s we would use t h e LOCATION index. However, t h i s i s not: g e n e r a l enough i n a t l e a s t two ways.For one t h i n g , o f t e n we w i l l have a
n o n - i n t e g r a t a b l e a c t i o n where i t i s n o t t h e a c t i o n frame, b u t r a t h e r t h e o b j e c t s i n m x v e d iii t h e a c t i o n which suggest t h e a p p r o p r i a t e frame. Our example o f someone going o v e r t o a phone i s a c a s e i n p o i n t . Here GO t e l l s us n o t h i n g , but TELEPHONE
i s q u i t e s u g g e s t i v e . To h a n d l e t h i s t h e s e a r c h f o r ACTION i n d i c e s must i n c l u d e t h o s e which a r e on OBJECT f r a m e s d e s c r i b i n g t h e t o k e n s i n v o l v e d i n the a c t i o n . So s i n c e J a c k i s going t o something which is a t e l e p h o n e , we l o o k o n t h e ACTION i n d e t a f TELEPHONE.
We must a l s o extend o m a n a l y s i s t o handle s t a t e s . Zf we a r e t o l d t h a t J a c k i s i n a r e s t a u r a n t we must a c t i v a t e RESTAURANTING. 1 T o u r c u r r q n t a n a l y s i s (RESTAURANT (THING
RESTAURANT-I))
w i l l n o t d o t h i s s i n c e i t i s a n OBJECT frame and hence w i l l o n l y b e l o o k i n g forLOCATIONS i n which t h e r e s t a u r a n t w i l l f i t . Hence i n t h i s c a s e t h e I N frame must a c t l i k e t h e GO frame i n l o o k i n g f o r ACTION i n d e c i e s i n which i t
might f i t . More g e n e r a l l y , a n y s t a t e which i s t y p i c a l l y modsffed by a n a c t i o n should c a u s e us t o l o o k f o r ACTION i n d i c i e s . So INorSTICKY-ON would d o s o , SOLID o r AGE would n o t . (But i f
ib
the c a s e a t hand we are t o l d t h a t something d i d change t h e SOLID s t a t u s t h e n we would treat i tLike an a c t i o n , a s i n " I n t h e morning t h e water i n t h e pond was s o l i d f t .
Up t o t h i s p o i n t t h e n t h e frame s e l e c t i o n p r o c e s s l o o k s l i k e t h i s :
1) When a s t a t e m e n t comes i n t r y t o i n t e g r a t e
i t i n t o t h e fxames which a r e a l r e a d y a c t i v e . I n g e n e r a l t h i s c a n r e q u i r e i n f e r e n c e and a major open problem i s 4ow much i n f e r e n c e one performs b e f o r e g i v i n g up. I f t h e i n t e g r a t i o n i,s s u c c e s s f u l , t h e n go on to t h e next stat em el^^.
2 ) I f - t h e s t a t e m e n t i s a d e s c r i p t i o n o f a n orbjeet ( i . e . a n OBJECT frame) t h e n ulae t h e LOCATSON index on t h e frame t o f i n d a "'frame which i n c o r p o r a t e s t h e s t a t e m e n t . Keep t r a c k of y e t u n t r i e d suggested LOCATION frames.
a c t i o n ( o r e t a t e ) and t h e n o n Lhe o b j e c t fqames d e s c r i b i n g t h e arguments o f t h e a c t i o n ( o r s t a t e )
.
Again, keep t r a c k af a n y remaining ones.4) There must be a complicated p r o c e s s by which we test frames f o r c o n s i s t a n c y @ith what we know about t h e s t o r y a l r e a d y . I f i t i s n o t c o n s i s t a n t we must i n v o l v e a n even more complicated p r o c e s s o f d e c i d i n g which i s more b e l i e v a b l e , p r e v i o u s h y p q t h e s i s a b o u t t h e s t o r y , o r t h e c u r r e n t frame. I have n o t h i n g t o s a y on t h i s a s p e c t o f t h e problem.
There i s however one t y p e o f example which r a i s e s some d o u b t s about t h e above a l g o r i t h m . These mention some o b j e c t rSith a s s o c i a t e d ACTION
f r a m e s , b u t o n l y i n c o n n e c t i o n w i t h s t a t e s which d-o not demand a n ACTION frame f o r t h e i r i n t e g r a t i o n . F o r example:
The c a r was g r e e n . J a c k had to b e home by t hrce
.
I n this example t h e above a l g o r i t h m w i l l n o t c o n s i d e r DRIVrNG because GREEN w i l l n o t demand t h a t we l o o k a t t h e a c t i o n index a s s o i c a t e d w i t h i t s arguments ( t h e c a r ) . (Even i f i t d i d n o t h i n g would happen because t h e f a c t that t h e c a r i s g r e e n would not i n t e g r a t e i n t o DRIVING.) However. much t p my s u r p r i s e , when
I
g a v e t h i s example t opeOople t h e y d i d not g e t t h e D R I V I N G frame e i t h e r . Hoyever, w i t h a modified example t h e y do.
The s t e e r i n g wheel was g r e e n . Jack had t o b e home by t h r e e .
This i s most m y s t e r i o u s . One s u g g e s t i o n (Lehnert p e r s o n a l communication) i s t h a t t o "see" t h e s t e e r i n g wheel t h e "viewer" must be i n t h e c a r . which i n t u r n s u g g e s t s d r i v i n g ( s i n c e I N would demand a c t i o n i n t e g r a t i o n ) . T h i s may indeed be c o r r e c t , b u t we must t%en ex p l a i n why i n t h e f i r
st
example t h e k c t t h a t t h e viewer must beNEAR
t h e car does n o t c a u s e t h e same t h i n g .In
any c a s e however, t h e s e examples a r e s u f f i c i e n t l y odd thati t seems i n a d v i s a b l e t o mold a t h e o r y around them.
5 MORE COMPLEX 1NDT.C ES
There i s one way i n which t h e t e l e p h o n e example makes t h e problem l o o k s i m p l g r t h a n i t i s . In t h e case o f TELEPHONE i t seems r e a s o n a b l e t o have a d i r e c t l i n k between the o b j e c t TELEPHONE and t h e c o n t e x t frame TELEPHONING. I n o t h e r c a s e s t h i s i s n o t s o c l e a r . For example, w e carrier c o n s i d e r t h e example:
The woman waved t h e man on t h e s t a g e sawed h e r i n h a l f .
Here i t would seem t h a t t h e n o t i o n o f sawing a p e r s o n i n h a l f $ 8 t h e c r u t ~ a l concept which l e a d s u s t o magic, a l t h o u g h t h e f a c t t h a t t h e woman d o e s n o t seem conc2rned. and t h e e n t i r e t h i n g i s happening on a s t a g e c e r t a i n l y h e l p r e - e n f o r c e t h i s i d e a . But p r e s u l a b l y t h e o u t p u t o f o u r p a r s e r w l l l simply s t a t e t h a t we have h e r e a n i n c i d e n t o f SAWING. Does t h i s mean t h a t we have* under SAWING a p o i n t e r t o MAGIC-PERFORMANCE' A t
f i r s t g l a n c e t h i s seems odd a t b e s t . Some o t h e r examples where t h e same p r o b l m a r i s e are:
The ground shook.
(EARTHQUAKE) (Example due t o J. DeJong)
There were t i n c a n s and streamers t i e d t o t h e c a r . ( WEDDXNG)
There were p i e c e s o f t h e f u s i l a g e s c a t t e r e d on t h e ground. (ALRPLANE ACCIDENT)
I n the f t n a l a n a l y s i s t h e r e a l problem h e r e i s one o f e f f i c i e n c y . I f , f o r example we a t t a c h EARTHQUAKE t o EARTH, then we w i l l be loolcing a t i t
i n many e i r c m s t a n c e s when i t
i s n o t a p p l i c a b l e .
(The a l t e r n a t i v e o f a t t a c h i n g i t t oSHAKE
i s l i t t l e b e t t e r , and p o s s i b l y worse s i n c e i t would n o t handle "Jack f e l t t h e e a r t h MOW3 b e n e a t h him"a s s u m i w t h e a v e r a g e person g e t s EARTHQUAKE o u t o f t h i s a l s o .)
One way t o c u t down t h e n m b e r o f f a l s e s u g g e s t i o n s i s t o c o m p l i c a t e t h e i n d i c e s we have on e a c h frame. So far t h e y have s i m p l y been l i s t s o f p o s s i b i l i t i e s . Suppose w e make them d i s c r i m i n a t i o n n e t s . So, under SAWING we would have v a r i o u s tests. On one b r a n c h would a p p e a r MAGIC-PERFORNANCE, b a t we would o n l y g e t t o i t
a f t e r many t e s t s , o n e o f which would s e e i f t h e t h i n g s a k d was a person. I n much t h e same way t h e d i s c r i m i n a t i o n n e t f o r EARTH cou3.d e n q u i r e a b o u t t h e a c t i o n o r s t a t e which caused
us
t o a c c e s s i t . If i t were a MOVE w i t h t h eEARTH
a s t h e t h i n g moved t h e nEARTHQUAKE.
Note however that i f t h e r e were few enough t h i n g s a t t a c h e d t o SAWING o u r n e t would not s a v e s i g n i f i c a n t t i m e . Even i f we were t o a c c e s s t h e
MAGIC-PERFORMANCE frame t h e f i r s t t h i n g we would
d o is check t h a t t h e t h i n g proposed f o r t h e
SAWED-PERSON v a r i a b l e was indeed a person. The n e t o n l y s a v e s t i m e when a s i n g l e t e s t i n t h e n e t rules o u t a number o f frames. A t t h e p r e s e n t t i m e
I have n o t t h o u g h t o f enough frames a s s o c i a t e d w i t h SAWING t o make t h i s worth while. But a s 3 1 s u s p e c t t h i s i s p r i m a r i l y d o t o l a c k o f work o n my p a r t . I w i l a assme t h a t d i s c r i m i n a t i o n n e t s w i l l be r e q u i r e d .
I f we a l l o w a d i s c r i m i n a t i o n n e t t o a s k a r b i t r a r y q u e s t i o n s t h e r e w i l l be the problem t h a t
i t may a s k q u e s t i o n s which a r e n o t y e t answered i n t h e s t o r y . Mowever a r e a s o n a b l e r e s t r i c t i o n which would prevent t h i s would g o a s f o l l o w s . Suppose s t a t e m e n t A c a u s e s us t o l o o k a t frames o n a n indac o f B. The d i s c r i m i n a t i o n n e t may o n l y e n q u i r e about t h e p r e d i c a t e o f A (EARTH l o o k s t o see i f A was a
MOVE:),
and what o b j e c t frames d e s c r i b e t h e arguments o f A o r B (SAW Itooks t o seei f t h e t h i n g s a t e d was a PERSON).
6 OTMR USES OF F W E DETERMINATION
J a c k went t o a restaurant;. The menu was i n Chinese. "What w i l l I do now", thought Jack.
Our rules h e r e w i l l g e t us t a RBSTAURANTING a f t e r t h e f i r s t l i n e . But if we
are
t o understand t h e s i g n i f i c a n c e o f t h e l a s t l i n e we mwt r e a l i z e t h e import o f l i n e two; J a c k c a n ' t read t h e menu. It would seem u n l i k e l y Lhat RESTAURANTING would a s k about t h e language o f t h e menu, hence s e n t e n c e tw cannot b e immediately i n t e g r a t e d i n t o RESTAURANTING. More r e a s o n a b l e would be t o know t h a t i f sowething i s i n a f o r e i g n language i t cannot b e r e a d , and one normally r e a d s t h e menu s o one c a n o r d e r . Only t h e second o f t h e s e c a n p l a u s i b l y be included i n RESTAURANTINC.Given: our a l g o r i t h m t h e following w i l l occur. The second l i n e w i l l become something l i k e
(IN-LANGUAGE MENU-1 CHINESE). Since t h e s t a t e m e n t i s n o t i n t e g r a t e d we l o o k t o see i f t h e r e i s a n ACTION p o i n t e r on IN-LANGUAGE. Indeed there i s , and i t will be t o t h e following r u l e .
(READ (MOTIVATIONAL-ACTIVITY) VARS:
. . .
EVENT:
(AND
(SEE READER READING-MATERIAL )
(IN-LANGUAGE READING-MATERIAL LANGUAGE) (KNOW READER LANGUAGE))
ENABLES
(KNOW-CONTENTS READER READING-MATERIAL))
I n effectdwe a r e saying h e r e t h a t t h e t y p i c a l s i g n f i c a n c e o f something being i n ,a c e r t a i n lailguage i s whether a person can read it o r n o t . 'Ph.fs w i l l , cause us t o a c t i v a t v e t h e READ frame. I n i t i a l l y t h e r e i s l i t t l e else we can do s i n c e a t this p o i n t t h e we do not even know who i s trymirig t o r e a d . However when we t r y t o i n t e g r a t e READ w e
w i l l b e s u c c e s s f u l , and we w i l l have f u r t h e r bound READER t o JACK-1. A t this p o i n t (and t h i s i s t h p m o d i f i c a t i o n r e q u i r e d ) we should r e t u r n t o READ and n o t e t h a t we can assume he does n o t know Chineese and hence w i l l not b e a b l e t o
reab,
t h e menu.7 CONCLUSION
There i s , o f c o u r s e , v h I have n o t covered, The most g l a r i n g ommision i s t h e l a c k o f a n y d i s c u s s i o n o f how one d e t e c t s a d i s c r e p e n c y between a suggested frame and what we a l r e a d y know -bf t h e s t o r y . The problem i s t h a t a frame cannot a f f o r d t o mention e v e r y t h i n g which
i s incompatable
w i t h i t-
t h e r e i s simply t o o much. And t h e same i s t r u e f o r everything, which i s compatable. Furthermore, what m u l d be enough t o s w i t c h t o a new frame under some circumstances w u l d not be s u f f i c i e n ta t
o t h e r times. So "Jack walked down the i s l e and picked up a can o f t u n a f i s h " t a k e s us from CHURCH t o SUPERMARKET. But i f we added "from a pew" t h i n g s a r e d i f f e r e n t . These a r e major problems and a s i d e from (McJkrmott 72) and ( C o l l i n s e t.
a l . forthcomming) they have h a r d l y been confronted, much less solved.E a r l y
on
I commented t h a t t h e o n l y c o n t r o v e r s i a l a s p e c t o f my r e p r e s e n t a t i o n was t h e uee o f v e r y s p e c i f i c p r e d i c a t e s (BASKET, AISU,T E B P H O ~ ,
e t c ) r a t h e r t h a n a b r e a k down i n t o more p r i m i t i v e c o n c e p t s . We m i g h t ,f o r
example, d e f i n e AISEL as a path which 2s bounded on each S i d e by t h i n g s whichare
considered p i e c e s o f f u r n i t u r e ( e .g.
,
d e l v e s o r c h a i r s).
The problem wiFh using a p r i m i t i v e r e p r e s e n t a t i o n h e r e i s t h a t &le i t i s somewhat p l a u s i b l e havingSUPERMARKET
andCHURCH
indexd underAISLE.
indexing them underPATH o r some o t h e r component o f the primitive; d e f i n i t i o n i s much l e s s p l a u s i b l e . However, we can circumvent t h i s problem by t h e use o f d i s c r i m i n a t i o n n e t s , j u s t as d i d t o g e t EARTHQUAKE from MOVE and W T H . But ; i t should b e noted t h a t by using t h i s method we a r e e l i m i n a t i n g one o f t h e b e n e f i t s o f a p r i m i t i v e a n a l y s i s
-
w ecan no l o n g e r assune that we can g e t our i n f o r m a t i o n i n a piecemeal f a s h i o n and come o u t w i t h t h e same a n a l y s i s . I n p a r t i h i l a r we must g e t " a i s l e " , o r else t ~ e must g e t a l l o f i t s components
a t t h e same time. I f we d o not t h e n t h e d i s c r i m i n a t i o n n e t w i l l f a i l t o n o t i c e t h a t we d o n o t have any o l d p a t h , we have an AISLE. Given t h i s r e s t r i c t i o n t h e p r i m i t i v e and non p r i m i t i v e a n a l y s e s come o u t p r e t t y much t h e same. A
p r i m i t i v e decomposition j u s t becomes a l o n g name f o r a higher l e v e l concept. Or t o t u r n t h i s around, the use o f h i g h l e v e l d i s c r i p t i o d s i s n o t s o c o n t r o v e r s i a l a f t e r a l l
-
i t i s simply a s h o r t name f o r a p r i m i t i v e decomposition.ACKNOWLEDGEMENTS
1 have b e n e f i t e d from c o n v e r s a t i o n s w l t n J.
C a r b o n e l l e , J. DeJong W. L e h n e r t , D. McDermott, and R. Milensky, a11 ;8f whom have been t h i n k i n g
about t h e s e problems f o t a long time. Many o f their i d e a a have gone i n t o t h i $ paper. T h i s r e s e a r c h was done a t t h e Yale A . 1 . 4 P r o j e c t which
i s funded i n p a r t by t h e k v a n c e d Research P r o j e c t s Agency o f t h e Department o f Defense and monitored under t h e O f f i c e o f Naval Research under c o n t r a c t N00014-754-1111.
REF ERENCES
Charniak, E., A framed PAINtING* on t h e r e p r e s e n t a t i o n o f a common sense knowledge
-
f r & m ~ n t . J o u r n a l-
o f w n i t i v e-
--
S c i e n c e , 1, 4, August 1977.C h a r n h k , E., On t h e use o f framed knowledge i n language comprehension, forthcomming
.
C o l l i n s , A, Brown, J. S., and I a r k i n ,
K.
M.,I n f e r e n c e i n text understanding, i n : R. J.
S p i r o . B. C. Bruce, and W. F. B r e e r ( i d s .) T h e o r e t i c a l i s s u e s i n r e a d i n g comprehension. H i l l s d a l e ,
N.
:J Lawrence E r l b a m A s s o c i a t e s , forthcomming -.
Fahlman, S. E A hypothesis-frame system f o r r e c o g n i t i o n problems, Working Paper 57, M.I.T. A r t i f i c i a l I n t e l l i g e n c e lab, 1974. Fahlman, S. E., A system f o r r e p r e s e n t i n g and
using r eal-world knowledge. Unpublished
Ph.D.
t h e s i e ,M.
I . T . , September 1977.TR25, U n i v e r s i t y o f Rochester Computer Science Department
,
June 197 7.Kuipers. B., A frame f o r frames, I n
D.
Bobrow and A. C o l l i n s (ads .) R e p r e s e n t a t i o n and-
understanding, New York, Academic 'Press,1975
McDermott
.
D.. A s s i m i l a t i o n o f new i n f o r m a t i o n by a n a t u r a l language u n d e t s t a n d i r q system,TR
291, M.
&.T
A r t i f i c i a l I n t e l l i g e n c e Lab, 1972.Minsky, M., A f r a m w r k f o r r e p r e s e n t i n g k n o w l e d ~ e