Greedy Coverage

There is only so much room in a vocabulary. Instead of choosing the most frequent pair to merge, we can ask which new piece covers the most text that our earlier choices have not already covered.

14 sections · 15 questions · 3 coding challenges

1 / 14

Which Addition Gives Us the Most New Coverage?

BOTIE

Suppose we have room for only a few vocabulary additions. Two candidate pieces may each cover many occurrences, but much of their coverage may overlap. Selecting both on their standalone counts can spend the second slot on information the first already supplied.

This is related to a broader optimisation problem studied by Nemhauser, Wolsey and Fisher in 1978: choosing a limited set of items when each new item's benefit can diminish as the selected set grows. Their results explain why greedy selection can be useful under specific assumptions about the objective.

We select a candidate, mark what it covers, and recalculate what each remaining candidate would add. The next decision uses new coverage, not the original total. Applying that principle to vocabulary selection requires an explicit definition of the units being covered. A guarantee for a coverage objective does not automatically guarantee shorter token sequences or a better language model.

Sources for this history