# Humor Embeddings: Laughter from Inverted Memory — Bisociation in Computational Embedding Space: v4.1 → v4.2

From v4.1 (2 Jun) to v4.2 (2 Jun): 11,105 words to 11,943 words, 839 words in new or rewritten paragraphs and 1 taken out, 87 paragraphs changed.

## Change note of v4.2

**Abstract and architecture section added, with figures**

The paper gains a proper abstract and a short section placing the humor layer between a memory layer and a persona layer. Three figures are added: the architecture, a two-dimensional map of funny and unfunny pairs, and the bridge-search pipeline.

- The cultural-limits section now discusses an agent that serves a bilingual user.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

{+## Abstract+}

### Abstract

{+We present a formal computational framework for humor generation that operationalizes Koestler's (1964) bisociation theory as geometry in vector embedding spaces. The central claim is that humor and memory retrieval are dual operations on the same semantic machinery: memory retrieves what lies nearest to a query; humor searches for what lies at the right distance and can still be joined by an unexpectedly valid bridge. We formalize this *memory-humor correspondence* and define a computable humor potential function $h(A, B, \beta)$ grounded in Suls' (1972) two-stage incongruity-resolution model. We identify 12 humor-generating semantic patterns organized into five meta-categories, each defined as a specific embedding-space operation, and propose humor associations as a first-class relationship type in agent memory architectures. A preliminary computational pilot ($n = 15$ concept triplets) falsifies the initial formulation, revealing that naive coherence conflates semantic proximity with comedic validity. This negative result motivates a revised surprise-weighted formulation ($h_{\text{v2}}$) that decomposes bridge quality into independent validity and surprise components. We situate the framework within Attardo and Raskin's (1991) General Theory of Verbal Humor, McGraw and Warren's (2010) Benign Violation Theory, and Hurley, Dennett, and Adams' (2011) computational account of humor. We provide reproducible experimental protocols with power analysis ($N \geq 64$ raters, $\alpha = 0.05$, power $= 0.80$) for validation against human ratings. The framework is the affective layer of a larger agent architecture: it draws its concept neighborhoods from an episodic-retrieval system (HIPPOCAMPUS) and is gated by a persona layer (CORTEX) that decides when humor is appropriate—the computational counterpart of the limbic reward circuit that makes humor feel good in humans.+}

### 1. Introduction

[-#-] {+##+} 1. Introduction

### 1.1 Motivation

[-##-] {+###+} 1.1 Motivation

### 1.2 The Memory-Humor Correspondence

[-##-] {+###+} 1.2 The Memory-Humor Correspondence

### 1.3 Contributions

[-##-] {+###+} 1.3 Contributions

### 1.4 Historical Context

[-##-] {+###+} 1.4 Historical Context

### 1.5 Paper Organization

[-##-] {+###+} 1.5 Paper Organization

### 1.6 Architecture Context

{+### 1.6 Architecture Context+}

### 1.6 Architecture Context

{+This framework does not stand alone; it is the affective layer of a larger agent architecture, and its inputs and gating both come from other subsystems. Two connections matter throughout the paper. First, the concept neighborhoods that humor searches over are supplied by an episodic-retrieval system that clusters memories by topic using anchor keywords (HIPPOCAMPUS, Serra 2026c): those clusters are the raw material from which bridges between distant ideas are drawn. Second, whether a joke is attempted at all is decided not here but by a persona layer (CORTEX, Serra 2026b), which sets a context flag for whether humor is welcome before this framework is ever consulted. The humor potential function assumes humor is already permitted; the decision to permit it lives elsewhere. Together the three layers map onto a familiar division of labor in the human brain: a memory system that supplies associations, a control system that judges social appropriateness, and a reward circuit—the role this framework plays—that registers a surprising-but-coherent connection as funny.+}

### 1.6 Architecture Context

{+![The three-layer architecture. HIPPOCAMPUS supplies clustered concept neighborhoods; LIMBIC (this work) searches them for far-but-connected bridges and scores humor potential; CORTEX gates whether humor is attempted at all.](images/fig3-architecture.png){width=90%}+}

### 1.6 Architecture Context

{+_Figure 1: The agent architecture in which this framework operates. Retrieval (HIPPOCAMPUS) feeds candidate concepts to the humor layer (LIMBIC); persona gating (CORTEX) decides whether humor is attempted._+}

### 2. Related Work

[-#-] {+##+} 2. Related Work

### 2.1 Linguistic Humor Theories

[-##-] {+###+} 2.1 Linguistic Humor Theories

### 2.2 Computational Humor Recognition

[-##-] {+###+} 2.2 Computational Humor Recognition

### 2.3 Computational Humor Generation

[-##-] {+###+} 2.3 Computational Humor Generation

### 2.4 Humor Psychology

[-##-] {+###+} 2.4 Humor Psychology

### 2.5 Embedding Space Arithmetic and Creativity

[-##-] {+###+} 2.5 Embedding Space Arithmetic and Creativity

### 2.6 Positioning of Our Contribution

[-##-] {+###+} 2.6 Positioning of Our Contribution

### 3. The Humor Potential Function

[-#-] {+##+} 3. The Humor Potential Function

### 3.1 Core Formulation

[-##-] {+###+} 3.1 Core Formulation

### 3.2 Justification of the Multiplicative Form

[-##-] {+###+} 3.2 Justification of the Multiplicative Form

### 3.3 Formal Properties

[-##-] {+###+} 3.3 Formal Properties

### 3.4 Extended Formulation with Audience and Timing

[-##-] {+###+} 3.4 Extended Formulation with Audience and Timing

### 3.5 Callback Bonus with Temporal Decay

[-##-] {+###+} 3.5 Callback Bonus with Temporal Decay

### 3.6 The Distance Sweet Spot

[-##-] {+###+} 3.6 The Distance Sweet Spot

### 3.7 The Humor Zone

[-##-] {+###+} 3.7 The Humor Zone

### 3.7 The Humor Zone

_Figure [-1:-] {+2:+} Humor potential in embedding space. Under the naive $h_{\text{v1}}$, the unfunny example (cat–kitten) scores higher than the funny one (meeting–hostage). The revised $h_{\text{v2}}$ corrects this: the surprise component penalizes obvious bridges and rewards unexpected ones, producing a 40:1 ratio favoring the funny triplet.\_

### 3.7 The Humor Zone

{+The same geometry is visible when the embedding space is projected to two dimensions. Figure 3 shows a UMAP projection of concept embeddings around two pairs. The funny pair sits in distant clusters joined by a bridge that lies off the direct line between them—the underwater tunnel between two far islands. The unfunny pair sits inside one tight cluster, with its bridge directly between the two concepts: close, obvious, and not funny. The visual contrast is the whole claim of the paper in one picture: humor lives where distance is high but a coherent off-axis bridge still exists.+}

### 3.7 The Humor Zone

{+![A UMAP projection of concept embeddings. The funny pair (meeting, hostage) occupies two distant clusters joined by an off-axis bridge; the unfunny pair (cat, kitten) sits inside a single cluster with an on-axis bridge.](images/fig2-embedding-geometry.png){width=85%}+}

### 3.7 The Humor Zone

{+_Figure 3: Two-dimensional UMAP projection illustrating the distance sweet spot. Far-but-connected pairs generate humor; near-and-obvious pairs do not._+}

### 4. A Taxonomy of Humor-Generating Semantic Patterns

[-#-] {+##+} 4. A Taxonomy of Humor-Generating Semantic Patterns

### 4.1 Meta-Category I: Incongruity Exploitation

[-##-] {+###+} 4.1 Meta-Category I: Incongruity Exploitation

### 4.2 Meta-Category II: Frame Confusion

[-##-] {+###+} 4.2 Meta-Category II: Frame Confusion

### 4.3 Meta-Category III: Cross-Domain Transfer

[-##-] {+###+} 4.3 Meta-Category III: Cross-Domain Transfer

### 4.4 Meta-Category IV: Social and Status Dynamics

[-##-] {+###+} 4.4 Meta-Category IV: Social and Status Dynamics

### 4.5 Meta-Category V: Logical and Temporal Manipulation

[-##-] {+###+} 4.5 Meta-Category V: Logical and Temporal Manipulation

### 4.6 Pattern Interactions, Completeness, and Limitations

[-##-] {+###+} 4.6 Pattern Interactions, Completeness, and Limitations

### 5. Ethical Constraints: Sensitivity Filtering

[-#-] {+##+} 5. Ethical Constraints: Sensitivity Filtering

### 5.1 Motivation

[-##-] {+###+} 5.1 Motivation

### 5.2 Sensitivity Score

[-##-] {+###+} 5.2 Sensitivity Score

### 5.3 Integration

[-##-] {+###+} 5.3 Integration

### 5.4 Relationship to Benign Violation Theory

[-##-] {+###+} 5.4 Relationship to Benign Violation Theory

### 5.5 Limitations of the Sensitivity Gate

[-##-] {+###+} 5.5 Limitations of the Sensitivity Gate

### 6. Bridge Discovery Algorithms

[-#-] {+##+} 6. Bridge Discovery Algorithms

### 6.1 Bridge Quality

[-##-] {+###+} 6.1 Bridge Quality

### 6.2 Embedding Arithmetic

[-##-] {+###+} 6.2 Embedding Arithmetic

### 6.3 Orthogonal Search (Equilateral Triangle)

[-##-] {+###+} 6.3 Orthogonal Search (Equilateral Triangle)

### 6.4 Frame Injection

[-##-] {+###+} 6.4 Frame Injection

### 6.5 Generate-then-Score Pipeline

[-##-] {+###+} 6.5 Generate-then-Score Pipeline

### 6.6 Pre-computed Bridge Index

[-##-] {+###+} 6.6 Pre-computed Bridge Index

### 6.7 Hybrid Pipeline

[-##-] {+###+} 6.7 Hybrid Pipeline

### 6.7 Hybrid Pipeline

{+_Figure 4: The hybrid bridge-discovery pipeline. Fast methods run in parallel; the LLM fallback activates only when no candidate clears the minimum bridge-quality threshold._+}

### 7. Empirical Methodology and Pilot Results

[-#-] {+##+} 7. Empirical Methodology and Pilot Results

### 7.1 Preliminary Computational Pilot

[-##-] {+###+} 7.1 Preliminary Computational Pilot

### 7.1.1 Revised Formulation: Surprise-Weighted Humor Potential

[-###-] {+####+} 7.1.1 Revised Formulation: Surprise-Weighted Humor Potential

### 7.1.2 Worked Example: $h_{\text{v2}}$ on Pilot Triplets

[-###-] {+####+} 7.1.2 Worked Example: $h_{\text{v2}}$ on Pilot Triplets

### 7.1.3 Significance of the Negative Result

[-###-] {+####+} 7.1.3 Significance of the Negative Result

### 7.2 Proposed Full Validation Protocol

[-##-] {+###+} 7.2 Proposed Full Validation Protocol

### 7.2.1 Power Analysis

[-###-] {+####+} 7.2.1 Power Analysis

### 7.2.2 Inter-Rater Reliability

[-###-] {+####+} 7.2.2 Inter-Rater Reliability

### 7.2.3 Success Criteria

[-###-] {+####+} 7.2.3 Success Criteria

### 7.2.4 Controls and Ablations

[-###-] {+####+} 7.2.4 Controls and Ablations

### 7.3 Validation Against Existing Datasets

[-##-] {+###+} 7.3 Validation Against Existing Datasets

### 7.4 Embedding Model Ablation

[-##-] {+###+} 7.4 Embedding Model Ablation

### 7.5 Proposed Metrics

[-##-] {+###+} 7.5 Proposed Metrics

### 8. Humor Associations as Agent Memory

[-#-] {+##+} 8. Humor Associations as Agent Memory

### 8.1 Motivation

[-##-] {+###+} 8.1 Motivation

### 8.2 Relationship Types in Agent Memory

[-##-] {+###+} 8.2 Relationship Types in Agent Memory

### 8.3 Humor Association Schema

[-##-] {+###+} 8.3 Humor Association Schema

### 8.4 Belief Discrepancies as Humor Candidates

[-##-] {+###+} 8.4 Belief Discrepancies as Humor Candidates

### 8.5 Personalized Humor Calibration

[-##-] {+###+} 8.5 Personalized Humor Calibration

### 8.6 Feedback Loop

[-##-] {+###+} 8.6 Feedback Loop

### 8.7 Emergent Phenomena

[-##-] {+###+} 8.7 Emergent Phenomena

### 9. Limitations

[-#-] {+##+} 9. Limitations

### 9.1 Unvalidated Predictive Component

[-##-] {+###+} 9.1 Unvalidated Predictive Component

### 9.2 Embedding Model Dependence

[-##-] {+###+} 9.2 Embedding Model Dependence

### 9.3 Cultural Specificity

[-##-] {+###+} 9.3 Cultural Specificity

### 9.3 Cultural Specificity

{+A nearer case is the bilingual one. An agent serving a user who moves between two languages—Spanish and English, say—faces two distinct demands. Within a single language, a multilingual embedding model places translation-equivalent concepts close together, so distance and bridge computations transfer if the model's space is genuinely shared across languages rather than partitioned by language. Across languages, code-switching humor (a bridge whose surprise depends on hearing a word in one language against a frame from the other) is a frame collision the current formulation does not model: it treats concepts as language-neutral points, losing the language tag that carries part of the joke. Bilingual humor is therefore partly in scope (same-language jokes under a shared multilingual space) and partly out of scope (humor that turns on the switch itself), and the audience familiarity term $f(\alpha, X)$ would need a per-language component to capture which language a user finds a given frame funnier in.+}

### 9.4 The Delivery Gap

[-##-] {+###+} 9.4 The Delivery Gap

### 9.5 Computational Cost

[-##-] {+###+} 9.5 Computational Cost

### 9.6 Sensitivity Gate Limitations

[-##-] {+###+} 9.6 Sensitivity Gate Limitations

### 9.7 Pilot Scale

[-##-] {+###+} 9.7 Pilot Scale

### 9.8 GTVH Coverage

[-##-] {+###+} 9.8 GTVH Coverage

### 9.9 Scope of Multimodal Humor

[-##-] {+###+} 9.9 Scope of Multimodal Humor

### 10. Conclusion

[-#-] {+##+} 10. Conclusion

### References

[-#-] {+##+} References
