A graph-based analysis of semantic types and coercion in contextualized word embeddings
This paper proposes a graph-based analysis using Neighbor Type Probability and Entropy metrics on BERT and sense-enhanced embeddings to demonstrate that semantic type information and coercion phenomena are better captured in sense-enhanced models, enabling the distinction between matching and mismatching noun-context pairs.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a giant, invisible library where every book represents a single word used in a sentence. In this library, books are grouped together on shelves based on how similar they feel to one another. This paper is like a map-making expedition into that library to see how well the shelves are organized.
The researchers wanted to answer a specific question: Do these digital "shelves" (called word embeddings) know the difference between what a word is and what a word is doing in a specific sentence?
Here is a breakdown of their journey using simple analogies:
1. The Problem: The "Pizza" Paradox
Think of the word "pizza."
- What it is (Lexical Type): It's food. It belongs in the "Food" section of the library.
- What it's doing (Contextual Type):
- In the sentence "I am eating a delicious pizza," the pizza is acting like food. This is a Match.
- In the sentence "I finished the pizza," the word "finished" usually expects an activity (like a race or a movie), not a slice of cheese. Here, the pizza is being forced to act like an activity. This is called Coercion. It's like asking a fish to climb a tree; the fish is still a fish, but the context is treating it like a climber.
The researchers wanted to see if the computer's "library" could tell the difference between a normal pizza sentence and a "coerced" pizza sentence just by looking at which other books were sitting on the same shelf.
2. The Experiment: Building Two Maps
To test this, they took 10 different categories of words (like animal, food, human, location) and found 20 sentences for each. They then built two different "maps" (graphs) of these sentences:
- Map A (The Standard Map): Built using a standard AI model called BERT. This model is like a general librarian who knows a lot about words but might get distracted by how often words appear together (e.g., "student" and "school" appear together a lot, even if they aren't the same type of thing).
- Map B (The Enhanced Map): Built using a Sense-Enhanced model. This is like a librarian who has a special dictionary (WordNet) that explicitly tells them the "job title" or "category" of every word.
They also created a trick: they covered the main word in the sentence with a "mask" (like a blank space) to see if the map could figure out the word's role just from the surrounding context, ignoring what the word actually is.
3. The Tools: Measuring the Neighborhood
Once the maps were built, they used two rulers to measure the shelves:
- Ruler 1: The "Neighbor Match" (NTP): If you pick a word, how many of its neighbors on the shelf are from the same category?
- Example: If you pick "dog," do most of its neighbors also say "cat" or "horse" (Animal)? Or do they say "leash" or "park" (Location)?
- Ruler 2: The "Chaos Meter" (NTE): How mixed up is the shelf?
- Low Chaos: The shelf is full of only "Animals."
- High Chaos: The shelf has "Animals," "Cars," "Clouds," and "Shoes" all mixed together.
4. What They Found
The results were like discovering that one librarian was much better at organizing the library than the other.
The Enhanced Map (Sense-Enhanced) was the best organizer.
When they looked at the "Match" sentences (where the word fits perfectly), the Enhanced Map put words with the same type right next to each other. For example, "students" were surrounded by other "humans," not by "classrooms." The standard map (BERT) got confused by how often words appeared together, mixing types up.The "Coercion" Mystery:
When they looked at the "Coercion" sentences (where the word is forced into a new role, like the "stadium" roaring like a "human"):- On the Enhanced Map, the word "stadium" still sat mostly with other "locations." It didn't magically jump to the "human" shelf. This suggests the computer still knows what the word is, even when the sentence treats it differently.
- However, when they used the Masked version (hiding the word), the map started to show the contextual role. The neighbors became more diverse, showing that the system could sense the "activity" the context was demanding, even if it wasn't perfect.
The "Unrestricted" Sentences:
For sentences where the context didn't care what the word was (e.g., "You need a [linguist]" could be replaced by almost anything), the "Chaos Meter" (NTE) went way up. The shelves were a mess of different types, which is exactly what you'd expect if the context doesn't restrict the word.
5. The Bottom Line
The paper concludes that:
- Specialized Librarians Win: The "Sense-Enhanced" model organizes words by their true semantic type much better than the standard model.
- Context Leaves a Trace: Even when a word is "coerced" into a new role, the graph shows a mix. The word keeps its original identity (it stays on the "Location" shelf), but the context adds a layer of diversity to its neighbors.
- Detecting the Weirdness: By measuring how "mixed up" the neighbors are (Entropy), you can tell if a sentence is a normal match, a weird coercion, or a vague sentence.
In short, the researchers built a map of word relationships and proved that with the right tools, we can see exactly how computers understand the difference between what a word is and what a sentence wants it to be.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.