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

From v4.6 (2 Jun) to v4.7 (2 Jun): 13,634 words to 12,586 words, 49 words in new or rewritten paragraphs and 1,097 taken out, 11 paragraphs changed.

## Change note of v4.7

**Inline diagrams replaced by image files**

Layout only. The diagrams drawn inside the paper in v4.5 are swapped back for image files with fuller captions, which removes about 1,000 words of drawing code. The argument does not change.

## Changed paragraphs

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

### 1.6 Architecture Context

[-```{=latex} \begin{figure}[H] \centering \resizebox{\linewidth}{!}{% \begin{tikzpicture}[ font=\sffamily\small, layer/.style={rectangle, rounded corners=4pt, draw=jsBorder, line width=0.8pt, fill=jsSurface, minimum width=4.0cm, minimum height=2.0cm, align=center, inner sep=6pt}, flow/.style={-{Latex[length=2.5mm]}, line width=1pt, draw=jsAccent}, lbl/.style={font=\sffamily\scriptsize\itshape, text=jsSection} ] \node[layer, draw=jsSection] (mem) at (0,0) {\textbf{\textcolor{jsSection}{Memory layer}}\\[2pt]semantic-memory index\\clusters concepts by topic\\\textcolor{jsSection}{\scriptsize supplies concept neighborhoods}}; \node[layer, draw=jsTitle] (hum) at (5.6,0) {\textbf{\textcolor{jsTitle}{Humor layer}} (this work)\\[2pt]searches for far-but-\\connected bridges;\\scores humor potential}; \node[layer, draw=jsAccent] (per) at (11.2,0) {\textbf{\textcolor{jsAccent}{Persona layer}}\\[2pt]context model gates\\whether humor is\\attempted at all}; \draw[flow] (mem.east) -- node[lbl, above]{candidate concepts} (hum.west); \draw[flow, draw=jsAccent] (per.south) .. controls +(0,-1.4) and +(0,-1.4) .. node[lbl, below]{\,humor-enabled flag\,} (hum.south); \node[align=center, font=\sffamily\scriptsize, text=gray] at (5.6,-2.9) {brain analogue: association store $\;\to\;$ reward circuit $\;\gets\;$ control / appropriateness}; \end{tikzpicture}% } \caption{The agent architecture in which this framework operates. The memory layer feeds candidate concepts to the humor layer; the persona layer sets a flag deciding whether humor is attempted.} \end{figure} ```-]

### 1.6 Architecture Context

{+![The agent architecture in which this framework operates. The memory layer feeds candidate concepts to the humor layer; the persona layer sets a flag deciding whether humor is attempted. The three layers mirror a familiar division of labor in the brain: an association store, a reward circuit, and a control system that judges appropriateness.](images/fig3-architecture.png)+}

### 3.7 The Humor Zone

[-```{=latex} \begin{figure}[H] \centering \resizebox{0.92\linewidth}{!}{% \begin{tikzpicture}[ font=\sffamily\small, cpt/.style={circle, draw=jsBorder, line width=0.8pt, fill=jsSurface, minimum size=1.5cm, align=center, inner sep=1pt}, br/.style={rectangle, rounded corners=3pt, draw=jsAccent, line width=0.8pt, fill=jsSurface, align=center, inner sep=4pt, font=\sffamily\scriptsize}, link/.style={dash pattern=on 2pt off 1.5pt, draw=jsBorder, line width=0.7pt}, vlink/.style={draw=jsAccent, line width=0.9pt} ] % --- FUNNY (top) --- \node[font=\sffamily\bfseries, text=jsSection] at (-3.6,1.4) {Funny: far + surprising bridge}; \node[cpt, draw=jsTitle] (A1) at (0,1) {concept\\$A$}; \node[cpt, draw=jsTitle] (B1) at (6,1) {concept\\$B$}; \node[br] (br1) at (3,2.5) {bridge\\valid {\&} surprising}; \draw[link] (A1) -- node[font=\sffamily\scriptsize, text=jsTitle, below]{high distance} (B1); \draw[vlink] (A1) -- (br1); \draw[vlink] (B1) -- (br1); \node[font=\sffamily\scriptsize, text=jsSection] at (8.8,1.7) {high humor};-]

### 3.7 The Humor Zone

[-% --- UNFUNNY (bottom) --- \node[font=\sffamily\bfseries, text=jsSection] at (-3.6,-2.0) {Unfunny: close + obvious bridge}; \node[cpt, draw=gray] (A2) at (2.2,-2.4) {concept\\$A$}; \node[cpt, draw=gray] (B2) at (3.8,-2.4) {concept\\$B$}; \node[br, draw=gray] (br2) at (3,-1.2) {bridge\\obvious}; \draw[link] (A2) -- node[font=\sffamily\scriptsize, text=gray, below]{low distance} (B2); \draw[vlink, draw=gray] (A2) -- (br2); \draw[vlink, draw=gray] (B2) -- (br2); \node[font=\sffamily\scriptsize, text=gray] at (8.8,-1.6) {low humor}; \end{tikzpicture}% } \caption{Humor-] {+![Humor+} potential in embedding space. A naive score that multiplies distance by raw bridge coherence ranks the close, obvious pair higher. A revised score separates bridge validity from bridge surprise: the surprise term penalizes obvious bridges and rewards unexpected ones, producing a large ratio in favor of the far-but-connected funny [-triplet.} \end{figure} ```-] {+triplet.](images/fig1-humor-zone.png)+}

### 3.7 The Humor Zone

[-```{=latex} \begin{figure}[H] \centering \resizebox{0.9\linewidth}{!}{% \begin{tikzpicture}[ font=\sffamily\small, clus/.style={ellipse, draw=jsBorder, line width=0.7pt, fill=jsSurface, minimum width=2.6cm, minimum height=1.8cm}, pt/.style={circle, fill=jsTitle, inner sep=1.7pt}, ptg/.style={circle, fill=gray, inner sep=1.7pt}, axis/.style={dash pattern=on 2pt off 2pt, draw=jsBorder, line width=0.7pt}, brl/.style={draw=jsAccent, line width=1pt} ] % distant clusters (funny) \node[clus] (c1) at (0,0) {}; \node[clus] (c2) at (8,0.6) {}; \node[pt, label={[font=\sffamily\scriptsize, text=jsTitle]below:$A$}] (A) at (0.4,-0.2) {}; \node[pt, label={[font=\sffamily\scriptsize, text=jsTitle]below:$B$}] (B) at (7.7,0.4) {}; \fill[jsTitle] (-0.5,0.3) circle (1.7pt); \fill[jsTitle] (0.1,0.5) circle (1.7pt); \fill[jsTitle] (8.4,1.1) circle (1.7pt); \fill[jsTitle] (8.5,0.1) circle (1.7pt); % off-axis bridge for funny pair \node[circle, draw=jsAccent, fill=jsSurface, line width=0.9pt, inner sep=1.5pt, label={[font=\sffamily\scriptsize, text=jsAccent]above:off-axis bridge}] (br) at (4,2.4) {}; \draw[axis] (A) -- node[font=\sffamily\scriptsize, text=jsTitle, below=1pt]{high distance (the leap)} (B); \draw[brl] (A) .. controls +(1.5,1.6) and +(-1.5,0.4) .. (br); \draw[brl] (B) .. controls +(-1.5,1.6) and +(1.5,0.4) .. (br);-]

### 3.7 The Humor Zone

[-% single tight cluster (unfunny) \node[clus, minimum width=2.0cm, minimum height=1.5cm] (c3) at (4,-2.6) {}; \node[ptg, label={[font=\sffamily\scriptsize, text=gray]left:$A'$}] (A2) at (3.6,-2.6) {}; \node[ptg, label={[font=\sffamily\scriptsize, text=gray]right:$B'$}] (B2) at (4.4,-2.6) {}; \node[circle, draw=gray, fill=jsSurface, line width=0.8pt, inner sep=1.4pt, label={[font=\sffamily\scriptsize, text=gray]below:on-axis bridge}] (br2) at (4,-3.4) {}; \draw[draw=gray, line width=0.8pt] (A2) -- (br2); \draw[draw=gray, line width=0.8pt] (B2) -- (br2); \node[font=\sffamily\scriptsize, text=gray] at (7,-2.6) {close + obvious}; \end{tikzpicture}% } \caption{A-] {+![A+} two-dimensional projection of concept embeddings illustrating the distance sweet spot. The funny pair sits in two distant clusters joined by a bridge that lies off the direct line between them; the unfunny pair sits inside one tight cluster with an on-axis bridge. Far-but-connected pairs generate humor; near-and-obvious pairs do [-not.} \end{figure} ```-] {+not.](images/fig2-embedding-geometry.png)+}

### 6.7 Hybrid Pipeline

[-```{=latex} \begin{figure}[H] \centering \resizebox{\linewidth}{!}{% \begin{tikzpicture}[ font=\sffamily\small, box/.style={rectangle, rounded corners=3pt, draw=jsBorder, line width=0.8pt, fill=jsSurface, align=center, inner sep=5pt, minimum height=1.0cm, text width=2.4cm}, stage/.style={rectangle, rounded corners=3pt, draw=jsSection, line width=1pt, fill=jsSurface, align=center, inner sep=5pt, minimum height=1.0cm}, fb/.style={rectangle, rounded corners=3pt, draw=jsAccent, line width=0.9pt, fill=jsSurface, align=center, inner sep=5pt, text width=2.4cm}, flow/.style={-{Latex[length=2.2mm]}, line width=1pt, draw=jsAccent} ] \node[box] (m1) at (0,1.7) {embedding\\arithmetic}; \node[box] (m2) at (0,0) {orthogonal\\search}; \node[box] (m3) at (0,-1.7) {pre-computed\\bridge index}; \node[font=\sffamily\scriptsize\itshape, text=jsSection] at (0,2.9) {fast methods (parallel)};-]

### 6.7 Hybrid Pipeline

[-\node[stage, text width=2.0cm] (pool) at (4.0,0) {candidate\\pool}; \node[stage, text width=2.2cm] (gate) at (7.6,0) {sensitivity\\gate}; \node[stage, text width=2.2cm] (score) at (11.0,0) {score by\\$h_{\text{v2}}$}; \node[stage, text width=2.0cm, draw=jsTitle] (rank) at (14.2,0) {rank\\top-$k$};-]

### 6.7 Hybrid Pipeline

[-\foreach \m in {m1,m2,m3} \draw[flow] (\m.east) -- (pool.west); \draw[flow] (pool) -- (gate); \draw[flow] (gate) -- node[font=\sffamily\scriptsize, above]{safe} (score); \draw[flow] (score) -- (rank);-]

### 6.7 Hybrid Pipeline

[-% fallback \node[fb] (llm) at (7.6,-2.6) {LLM fallback\\(slow path)}; \draw[flow, draw=jsAccent, dash pattern=on 3pt off 2pt] (score.south) .. controls +(0,-1.2) and +(2.2,0) .. node[font=\sffamily\scriptsize, text=jsAccent, below=2pt, pos=0.55]{no candidate clears $q_{\min}$} (llm.east); \draw[flow, draw=jsAccent, dash pattern=on 3pt off 2pt] (llm.west) .. controls +(-2.2,0) and +(0,-1.2) .. (pool.south); \end{tikzpicture}% } \caption{The hybrid bridge-discovery pipeline. Three fast methods run in parallel and feed a candidate pool; candidates pass a sensitivity gate, are scored, and ranked. The slower language-model fallback activates only when no candidate clears the minimum bridge-quality threshold.} \end{figure} ```-]

### 6.7 Hybrid Pipeline

{+![The hybrid bridge-discovery pipeline. Three fast methods (embedding arithmetic, orthogonal search, pre-computed bridge index) run in parallel and feed a candidate pool; candidates pass a sensitivity gate, are scored by the surprise-weighted humor potential, and ranked. The slower language-model fallback activates only when no candidate clears the minimum bridge-quality threshold.](images/fig2-hybrid-pipeline.png)+}
