Sub topic 11
Pitfalls: Surface Bias and Over-Extended Analogies
This chapter assumes you can already build a mapping between a source domain and a target problem. It also assumes you know the difference between surface similarity (shared looks, words, or objects) and structural similarity (shared relations between parts). Here you will learn how analogies fail in practice, how to recognize each failure, and what to do about it.
An analogy is a source of hypotheses, not a proof. Every failure below comes from treating a candidate claim as a fact.
Why Analogies Fail
Analogical reasoning has three steps: retrieve a source, map it onto the target, and transfer inferences. Each step has its own typical error.
| Step | Typical failure | Symptom |
|---|---|---|
| Retrieve | Surface bias | You pick a source because it looks or sounds like the target |
| Map | Wrong or partial alignment | Entities line up, but the relations between them do not |
| Transfer | Over-extension | You carry over claims the evidence never supported |
| Evaluate | Confirmation bias | You count only the places where the analogy holds |
Surface Bias
Surface bias is the tendency to retrieve sources that resemble the target in appearance, vocabulary, or domain, instead of in structure. Memory search favors surface features because they are easy to notice. Research on analogical retrieval has repeatedly found that people recall superficially similar cases much more readily than structurally similar ones from a different field.
How it shows up
- A team building a "pipeline" for data processing copies practices from oil pipelines. The word matches, but the structure does not. Data can be copied, and oil cannot. Oil leaks, and data does not.
- A manager sees a startup that is "like a family" and borrows family-conflict advice. People in a family cannot be hired or fired, and employees can.
- A developer reads that a bug is "like a virus" and starts looking for quarantine procedures, when the real cause is a race condition.
In each case the shared word or image did the work. Nobody checked whether the relations match.
A quick test
Ask: "If I replaced the names of the entities with neutral labels like A, B, and C, would I still pick this source?" If the answer is no, the source was probably chosen for its surface.
A second test is to list the relations you plan to use. If you cannot name at least two relations that hold in both domains, you have a resemblance and not an analogy.
Wrong or Partial Alignment
Even with a good source, you can map the wrong entities. This happens when two entities in the source play similar roles and you swap them, or when one target entity has no counterpart at all.
Two rules help you catch this:
- One-to-one. Each source entity should map to at most one target entity, and the reverse.
- Parallel connectivity. If two source entities are linked by a relation, their counterparts in the target must be linked by the same relation.
You can check both rules in code. The function below flags mappings that break one-to-one alignment, and relations whose transferred form has no counterpart in a list of target facts you have observed.
def check_mapping(mapping, source_relations, target_facts):
"""Report alignment problems and unverified transferred claims."""
problems = []
# Rule 1: one-to-one. No two source entities may share a target entity.
seen = {}
for src, tgt in mapping.items():
if tgt in seen:
problems.append(f"not one-to-one: {src} and {seen[tgt]} both map to {tgt}")
seen[tgt] = src
# Rule 2: every relation must be transferable, and checked against evidence.
for rel, a, b in source_relations:
if a not in mapping or b not in mapping:
problems.append(f"unmapped entity in relation {(rel, a, b)}")
continue
claim = (rel, mapping[a], mapping[b])
status = "supported" if claim in target_facts else "UNVERIFIED"
problems.append(f"{status}: {claim}")
return problems
source_relations = [
("attracts", "sun", "planet"),
("orbits", "planet", "sun"),
("radiates_light", "sun", "planet"),
]
mapping = {"sun": "nucleus", "planet": "electron"}
target_facts = {("attracts", "nucleus", "electron")}
for line in check_mapping(mapping, source_relations, target_facts):
print(line)Running it prints:
supported: ('attracts', 'nucleus', 'electron')
UNVERIFIED: ('orbits', 'electron', 'nucleus')
UNVERIFIED: ('radiates_light', 'nucleus', 'electron')The first claim has evidence. The second is the classic planetary model of the atom, which turned out to be wrong in important ways: electrons do not follow fixed orbits. The third is simply false for this target. The code does not decide which is which. It only forces you to see that two of the three claims have no support yet.
Over-Extended Analogies
An analogy is over-extended when you keep pushing it past the point where it holds. Every analogy has a region of validity. Inside it, relations carry over. Outside it, they do not, and the more details you transfer, the more likely one of them falls outside.
Common forms
- Carrying over a relation that depends on a source-only property. The heart-as-pump analogy supports reasoning about flow and pressure. It does not support the claim that the heart can be repaired like a mechanical pump by swapping parts, because tissue heals and adapts.
- Treating the metaphor as the mechanism. "The market is an invisible hand" helps explain coordination. It does not tell you the market has any agent with intentions.
- Mismatched scale. Behavior of a few items often differs from behavior of millions. Fluid analogies for traffic work for dense flow and fail for sparse, individually decided driving.
- Mismatched time. A source that settles in seconds may map onto a target that changes over years.
Finding the boundary
Before you rely on a transferred claim, ask what the source's behavior depends on. If it depends on something the target lacks, the claim does not transfer. For each relation, record:
- What causes this relation in the source?
- Is that cause present in the target?
- What evidence in the target would confirm or refute it?
Confirmation Bias in Evaluation
After you have chosen an analogy, you will tend to notice the matches and overlook the mismatches. Counter this by forcing a two-column record.
| Relation | Holds in target? | Evidence |
|---|---|---|
| Heat lets a system escape local traps | Yes, in search spaces | Accepting worse moves finds better optima |
| Cooling must be gradual | Yes | Fast cooling gets stuck in poor minima |
| Physical atoms have bonds that break | No | A search state has no bonds |
The third row matters as much as the first two. A mismatch you have written down can no longer surprise you later.
An Example of Productive Use
Simulated annealing shows an analogy that was kept within its boundary. The source is a metal cooling slowly. Temperature maps to willingness to accept worse moves, and the cooling schedule maps to a falling acceptance rate. Nothing else about metal was imported: no crystal lattice, no atoms, no physical energy units. The analogy supplied one mechanism, and the borrowers stopped there.
The code below shows the discipline in miniature. It uses only the borrowed relation and tests its effect by comparing the cooling schedule against no cooling at all, instead of assuming it helps.
import math
import random
def anneal(cost, neighbor, x, temp=1.0, cooling=0.995, steps=5000):
best = x
for _ in range(steps):
candidate = neighbor(x)
delta = cost(candidate) - cost(x)
if delta <= 0 or random.random() < math.exp(-delta / temp):
x = candidate
if cost(x) < cost(best):
best = x
temp *= cooling
return best
def bumpy(x):
return (x - 3) ** 2 + 2 * math.sin(5 * x)
def mean_cost(cooling, trials=30):
total = 0.0
for _ in range(trials):
result = anneal(
bumpy,
lambda v: v + random.uniform(-0.5, 0.5),
x=-5.0,
temp=2.0,
cooling=cooling,
)
total += bumpy(result)
return total / trials
random.seed(1)
print("with cooling :", round(mean_cost(0.995), 2))
print("without cooling:", round(mean_cost(1.0), 2))With cooling the mean cost is typically lower, because the search settles into a good minimum after exploring. Without cooling it keeps accepting bad moves and ends at an arbitrary point. The exact numbers depend on the random seed and your Python version. What matters is the habit: the transferred idea gets measured in the target, and it is not trusted because the source story is appealing.
A Checklist for Catching Pitfalls
Apply this list before acting on any analogy.
- State the structure without domain words. If you cannot, you may be relying on surface.
- Find a second, different source. If another source gives the opposite advice, the first is not decisive.
- List relations that hold and relations that break. Fill both columns.
- Mark every transferred claim as a hypothesis. Attach the test that would confirm or refute it.
- Set a stopping rule. Decide in advance which part of the source you will not import.
- Test in the target. A small experiment is worth more than a persuasive comparison.
Summary of Failure Modes
- Surface bias picks the wrong source. Fix it by restating the problem in abstract terms and comparing relations.
- Partial alignment maps the wrong parts. Fix it with one-to-one and parallel-connectivity checks.
- Over-extension imports claims the target cannot support. Fix it by finding what each relation depends on.
- Confirmation bias hides mismatches. Fix it by writing them down.
Exercise
A hospital team compares its emergency room to an airport because both have "queues, triage, and gates". They propose copying the airport's fixed schedule for arrivals. Name the failure mode, and give one relation that does not transfer.
Show answer
This is surface bias followed by over-extension. The shared vocabulary (queues, gates) made the airport look relevant, but the key relation in the source is that arrivals follow a known schedule. Emergency patients arrive unpredictably, so a fixed arrival schedule has no counterpart in the target. A better approach is to look for sources where demand is also random and capacity must be held in reserve, such as call centers or power grids, and then check the relations explicitly.
Exercise
In the mapping {"sun": "nucleus", "planet": "electron"}, suppose someone adds {"moon": "electron"}. Which rule from this chapter does this break, and what would check_mapping report?
Show answer
It breaks the one-to-one rule, because two source entities (planet and moon) now map to the same target entity (electron). check_mapping would report "not one-to-one: moon and planet both map to electron". The order of the names depends on dictionary order.