Analogy in AGISystem2 is geometric translation. If "king" is to "queen" as "man" is to "?", the answer comes from computing the offset between king and queen, then applying it to man. This transforms relational reasoning into vector arithmetic.
Analogy computes an offset from A to B, then applies the same offset to C to find D. In conceptual space, "king→queen" and "man→woman" share the same gender-direction offset. The answer is the concept nearest to the computed target point.
The Reasoner handles analogy queries in three steps:
This works because similar relations produce similar offsets across different concept pairs. The "male→female" offset is approximately the same whether applied to king/queen, man/woman, or actor/actress.
# Basic analogy ANALOGY king:queen :: man:? # → woman # With explicit relation ANALOGY Paris:France :: Berlin:? # → Germany (LOCATED_IN relation) # Multi-step ANALOGY doctor:hospital :: teacher:? # → school (WORKS_AT relation)
Analogies can use masks to focus on specific dimensions:
| Mask Type | Effect | Use Case |
|---|---|---|
| Full mask | All dimensions contribute | General analogies |
| Ontology only | Factual dimensions only | Scientific analogies |
| Custom domain | Specific dimension subset | Domain-specific transfer |
Analogy results include confidence scores based on: