Sub topic 3
Surface likeness versus shared structure
This chapter assumes you can describe a problem in plain language and have met the idea of a source domain (where a solution already exists) and a target problem (the one you want to solve). The Python examples are optional, but they are short and you can run them as written.
Two kinds of similarity
Two things can look alike in two different ways.
- Surface similarity means they share visible features: the same objects, words, colors, materials, or setting. A bank "branch" and a tree "branch" share a word. A ship and a paper boat share a shape.
- Structural similarity means they share the same pattern of relationships. It does not matter which objects play the roles. What matters is how those objects act on each other.
Analogical thinking depends on the second kind. A solution works because of the relationships in the situation that produced it: what causes what, what limits what, what feeds back into what. If the relationships carry over, the solution may carry over. If only the surface matches, the solution has nothing to hold on to.
A classic illustration is the solar system and the atom. The sun is hot, yellow, and enormous. An atomic nucleus is none of these. The two still share a pattern: a heavy center attracts a lighter body, and the lighter body orbits the center. The color and temperature of the sun do not transfer, and they should not. The relations do.
Entities and relations
To separate the two kinds of similarity, break a situation into parts.
- Entities are the things in the situation: the sun, a planet, a customer, a server.
- Attributes are properties of a single entity: "is hot", "is yellow", "is large".
- Relations are links between entities: "attracts", "is more massive than", "depends on", "queues behind".
Surface similarity is mostly about entities and attributes. Structural similarity is mostly about relations, especially relations among relations, such as "the first relation causes the second".
| Feature | Example in the sun and planet | Transfers to the atom? |
|---|---|---|
| Attribute | The sun is yellow and hot | No |
| Attribute | The planet is rocky | No |
| Relation | The sun attracts the planet | Yes, as a candidate |
| Relation | The sun is more massive than the planet | Yes, as a candidate |
| Relation | The planet orbits the sun | Yes, as a candidate |
Notice the words "as a candidate". A matching relation is a hypothesis about the target, not a proof. The later chapters on inference transfer and evaluation cover how to check these claims.
Seeing the difference in code
The following code writes the sun and planet situation as a list of relations. It then rewrites each relation using a mapping from source entities to target entities. Attributes such as "yellow" are left out on purpose, because they are not part of the structure.
# Source domain: planets orbiting a sun (relations among entities)
source_relations = [
("attracts", "sun", "planet"),
("more_massive_than", "sun", "planet"),
("orbits", "planet", "sun"),
]
# Surface attributes. They describe single entities, so they are not mapped.
source_attributes = {
"sun": ["yellow", "hot"],
"planet": ["rocky"],
}
# Mapping between entities of the source and the target (the atom)
mapping = {"sun": "nucleus", "planet": "electron"}
def transfer(relations, entity_map):
"""Rewrite each source relation in terms of target entities."""
return [(rel, entity_map[a], entity_map[b]) for rel, a, b in relations]
candidates = transfer(source_relations, mapping)
for rel in candidates:
print(rel)
# ('attracts', 'nucleus', 'electron')
# ('more_massive_than', 'nucleus', 'electron')
# ('orbits', 'electron', 'nucleus')The output is a set of candidate claims about the atom. Whether they are true is a separate question, and for the atom some of them turn out to be misleading. Electrons do not follow neat planetary paths. That is why a mapping produces candidates that you must still test.
A worked contrast
Consider a target problem: a clinic has long waiting times because patients arrive in bursts, and staff cannot predict when. Compare two possible source domains.
Source A: a restaurant waiting room. It looks very similar. People wait, there is a front desk, and people sit in chairs. The surface match is strong. But suppose you ask what the restaurant solves: it solves seating, with tables that stay occupied for a long time and parties that vary in size. The relations (party size against table size) do not match the clinic's problem of bursty arrivals and unpredictable service time.
Source B: a highway on-ramp with a metering light. It looks nothing like a clinic. There are no chairs and no desk. But the structure matches. Items arrive in bursts, a downstream resource has limited capacity, and overflow causes delays that spread. The on-ramp solution is to release arrivals at a controlled rate to smooth the flow. That idea carries over: schedule appointment slots, or hold walk-ins in a short queue and release them at a steady pace.
The restaurant wins on surface and loses on structure. The on-ramp loses on surface and wins on structure. This pattern is common, and it is why an analogy that feels obvious can be less useful than one that feels strange.
Why surface similarity pulls so hard
People retrieve memories and examples by surface features first. Research on analogical retrieval consistently finds that when people are asked to recall a similar case, they recall cases that look alike, not cases that work alike. The structure only becomes visible after deliberate effort.
This has two consequences.
- Surface-similar sources come to mind easily. They feel relevant, so you rely on them even when they do not fit.
- Structurally similar sources from other fields rarely come to mind. You must go and look for them, which is the subject of the chapters on abstraction and source search.
Experts differ from novices here. Novices tend to sort problems by surface features, such as "this is a pulley problem". Experts tend to sort by underlying principle, such as "this is an energy conservation problem". Learning to see structure is a skill you can practice.
A test you can apply
When you have a candidate source, run these checks before you invest in it.
- List the relations, not the objects. Write the source and target each as a set of sentences of the form "X does something to Y".
- Cover the nouns. Replace each entity with a letter. If the two descriptions still read the same, the structure matches.
- Check the roles. For each relation, ask whether the same role is played in both domains, for example "the limited resource" or "the source of the flow".
- Look for the causal chain. The strongest matches share a chain of causes, not just a list of isolated facts. Isolated matching facts are weaker evidence than a connected system of relations.
- Count what is left over. Note the relations in the source that have no counterpart in the target. These are the places where the analogy may break.
The "cover the nouns" check is easy to try with a second code example. The next function compares two domains by their relations only, after mapping the entities.
def shared_structure(source_rels, target_rels, entity_map):
"""Return the source relations that appear in the target after mapping,
and the ones that have no counterpart."""
mapped = {(r, entity_map[a], entity_map[b]) for r, a, b in source_rels}
target = set(target_rels)
return mapped & target, mapped - target
source = [
("limits", "ramp_light", "cars"),
("delays", "cars", "highway"),
]
target = [
("limits", "slot_schedule", "patients"),
("delays", "patients", "clinic"),
("distracts", "patients", "staff"),
]
entity_map = {
"ramp_light": "slot_schedule",
"cars": "patients",
"highway": "clinic",
}
matched, unmatched = shared_structure(source, target, entity_map)
print("matched:", sorted(matched))
print("unmatched:", sorted(unmatched))
# matched: [('delays', 'patients', 'clinic'), ('limits', 'slot_schedule', 'patients')]
# unmatched: []All source relations survive the mapping. The target also contains a relation, "distracts", that the source never mentions. The function does not show this, because it only reports source relations. A fuller check would also list target relations with no source counterpart, since a target with many unmatched relations means the source explains only part of the problem.
Edge cases
- Structure that matches only partly. Most real analogies match some relations and not others. This is normal. The goal is to know which parts hold, not to find a perfect match.
- Surface features that matter. Sometimes an attribute is part of the structure. A metal's temperature is a surface feature of "metal" in general, but in the annealing analogy temperature is a central entity, because the cooling rate drives the outcome. Ask whether a feature plays a role in a relation. If it does, it belongs to the structure.
- One shared word, different meaning. Words such as "stress", "load", "flow", and "network" appear in many fields with different relations behind them. A shared word is a surface match until you have checked the relations.
- Misleading surface help. Occasionally a surface match is a useful hint, because similar-looking things often work alike. Treat it as a reason to look closer, not as evidence.
Summary of the distinction
- Surface similarity concerns entities and attributes. It is easy to see and weak evidence.
- Structural similarity concerns relations, especially causal ones. It is harder to see and strong evidence.
- A mapping aligns entities so that relations can be compared.
- Matching relations are candidates to be checked, never conclusions.
Exercise
A city wants to reduce traffic jams on a ring road. A planner proposes borrowing from a river dam because both involve "flow", while a colleague proposes borrowing from how a computer network drops or delays packets when a link is overloaded. Using entities and relations, explain which source is more likely to be structurally similar, and name one relation you would check before trusting the mapping.
Show answer
The answer depends on the relations, not on the shared word "flow". A dam controls a continuous fluid with no individual decisions and no feedback from the fluid, so the matching is mostly on the word. A congested network link has discrete units (packets and cars) that queue, a limited capacity, and delays that spread backward to the senders, which resembles a ring road where jams propagate backward. The network source is more likely to match structurally. Before trusting the mapping, check a relation such as "overload at one point causes delay upstream" and whether units can be dropped. Cars cannot be dropped like packets, so that relation would break and you would need to adapt the idea, for example by delaying entry rather than discarding.
Exercise
In the clinic example, the code reported no unmatched source relations but the target had an extra relation, "distracts". Write a change to shared_structure so it also returns target relations that have no counterpart in the source. What does a long list of these tell you?
Show answer
Return a third value, target - mapped, for example return mapped & target, mapped - target, target - mapped. A long list of target relations with no source counterpart means the source explains only a small part of the target problem. The analogy may still help with that part, but you would need other sources or other ideas for the rest.