The first is a simple maximum likelihood estimate, which enforces a preference for creating clusters of frames with the same context words.
head words in the same cluster will tend to share the same adjacent words.