← Ziding Zhang

Personal embeddings and latent exchange

Shipping embeddings to the browser avoids private uploads today, but mutual discovery needs blind thresholds because raw vectors invert back into text.

November 29, 2026 · Research note · What is not yet established


Most valuable introductions never happen because both sides keep their half-formed problems private.

On this site, For you already reverses the usual upload model: your browser pulls /compendium.json, /embeddings.json, and /open-calls.json and matches my writing against your notes locally without uploading a byte. My 20-profile browser test showed local embeddings rescue zero-word-overlap queries and quiet most unrelated visitors—yet the discovery stays one-sided.

What changes when every person’s agent maintains a living representation of both explicit projects and latent curiosities? Two agents running quietly in the background could surface positive-sum exchanges—collaborators, forgotten ties, buyers and builders, or missing leads for open questions like The Unfinished Library—without anyone dumping private diaries to a central server.

The hard-to-vary explanation

You cannot get private matchmaking by publishing raw personal embeddings. Dense vectors look like opaque floats, yet Morris et al. (EMNLP 2023) showed that iterative inversion (Vec2Text) recovers 92% of 32-token passages verbatim from dense embeddings, including names from clinical notes. Because vectors retain nearly the underlying text, mutual discovery requires a disclosure boundary: compute similarity before revealing context, emit only high-scoring shared themes above a strict cutoff, and keep non-matching life sealed.

Three-tier architecture diagram titled The Blind Overlap Ladder. A vertical dashed disclosure boundary separates local private context from external computation across all three stages. Tier 1, Pull-to-Client Matching (live today), pulls public static JSON files into the visitor's browser with zero bytes uploaded, but remains one-sided. Tier 2, Blind Agent Handshake (near-term), sends encrypted vector commitments from Agent A and Agent B into Fuzzy PSI or an attested TEE that checks whether cosine similarity exceeds a threshold, dropping non-matches silently and emitting only shared theme cues. Tier 3, Personal Representation Vault (hardware horizon), keeps personal LoRA weights and embeddings offline on a thumb drive or mini-GPU and signs an expiring, one-topic disclosure token only on a physical tap.
The Blind Overlap Ladder: moving from one-sided browser pull to mutual private discovery without exposing raw vectors across the disclosure boundary.

A three-stage ladder

StageHow overlap is computedDisclosure boundarySharpest limit
1. Today: Pull-to-ClientBrowser fetches /compendium.json, /embeddings.json, and /open-calls.json on For you.Zero private bytes leave the visitor’s machine; only public corpora move.Strictly one-sided; raw public vectors remain invertible.
2. Near-Term: Blind HandshakeTwo agents run Private Set Intersection (FHE-PSI) or an attested TEE checking cos(vA, vB) ≥ θ.Only themes clearing the threshold emerge; unmatched context stays unseen.Enclave side channels (Foreshadow) and probing attacks.
3. Horizon: Hardware VaultA thumb drive or pocket mini-GPU holds personal LoRA weights and embeddings offline.A physical tap signs a scoped, expiring disclosure token for one topic.Shared encoder standards, hardware loss, and key recovery.

Where the protocol still breaks

Encryption alone will not rescue bad discovery. Any open matching endpoint faces Sybil probing: an attacker spinning up cheap synthetic personas can binary-search a person’s private latent space through repeated threshold hits unless queries carry rate limits or proof of cost. Just as fatal is matchmaking fatigue: in my browser benchmark, even one unrelated profile sneaking past 0.22 was noticeable; flood someone’s inbox with weak background matches and they switch the agent off for good.

Agent context: sources, method and working notes

Primary sources and reading scope

All external citations below were verified against primary bibliographic records, DOIs, proceedings entries, and published abstracts rather than full-text PDF audits; claims in the reader layer stay strictly within what those primary records establish:

  1. John X. Morris, Volodymyr Kuleshov, Vitaly Shmatikov & Alexander M. Rush (2023), “Text Embeddings Reveal (Almost) As Much As Text”, Proceedings of EMNLP 2023 (pp. 12448–12460), DOI: 10.18653/v1/2023.emnlp-main.765, ACL Anthology: aclanthology.org/2023.emnlp-main.765. Introduces Vec2Text, a multi-step iterative inversion method that re-embeds and corrects candidate sequences to converge on the target vector, recovering 92% of 32-token text inputs exactly and extracting sensitive personal details such as full names from clinical notes. This kills the widespread engineering folklore that dense embeddings are safe to publish or share as an “anonymized” representation of private notes.
  2. Congzheng Song & Ananth Raghunathan (2020), “Information Leakage in Embedding Models”, Proceedings of ACM CCS ‘20, DOI: 10.1145/3372297.3417270. Earlier foundational demonstration of embedding inversion, sensitive attribute inference, and membership inference on text embedding models, showing that leakage is structural rather than unique to one model family.
  3. Michael J. Freedman, Kobbi Nissim & Benny Pinkas (2004), “Efficient Private Matching and Set Intersection”, EUROCRYPT 2004, LNCS 3027, DOI: 10.1007/978-3-540-24676-3_1. Foundational cryptographic construction for Private Set Intersection (PSI): two parties compute the intersection of private sets without learning non-intersecting elements.
  4. Hao Chen, Kim Laine & Peter Rindal (2017), “Fast Private Set Intersection from Homomorphic Encryption”, Proceedings of ACM CCS ‘17, DOI: 10.1145/3133956.3134061. Practical unbalanced PSI using Fully Homomorphic Encryption with communication logarithmic in the larger set size; newer Fuzzy PSI lines extend this paradigm using approximate homomorphic arithmetic (such as CKKS) to compute high-dimensional cosine thresholds (cos(v_A, v_B) ≥ θ) without revealing unmatched vectors.
  5. Jo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin, Baris Kasikci, Frank Piessens, Mark Silberstein, Thomas F. Wenisch, Yuval Yarom & Raoul Strackx (2018), “Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution”, 27th USENIX Security Symposium (pp. 991–1008), USENIX Security 18. Demonstrates microarchitectural side-channel extraction of attestation keys and secrets from Intel SGX enclaves, proving that attested TEEs are pragmatic hardware trust boundaries rather than unconditional cryptographic guarantees.
  6. John R. Douceur (2002), “The Sybil Attack”, Peer-to-Peer Systems (IPTPS 2002), LNCS 2429 (pp. 251–260), DOI: 10.1007/3-540-45748-8_24. Proves that in open peer-to-peer networks without a logically centralized identity authority or real resource cost, a single adversary can forge unbounded distinct identities—directly threatening open embedding-matchmaking oracles with adaptive probing and spam.

Protocol comparison and disclosure-boundary threat model

PropertyTier 1: Pull-to-Client (/for-you/)Tier 2a: Fuzzy PSI (FHE / 2PC)Tier 2b: Attested TEE EnclaveTier 3: Hardware Vault
Live today on zidingz.com?Yes (all-MiniLM-L6-v2, q8, 384-d)No (research / prototype stage)No (used in production elsewhere, e.g. contact discovery)No (hardware + protocol horizon)
Mutual private overlap?No (public corpus vs. private client)YesYesYes, gated by human tap
Who sees unmatched private context?Visitor device only (0 bytes uploaded)Nobody (cryptographic hiding)Enclave CPU (vulnerable to microarchitectural leaks)Offline hardware element only
Bandwidth & compute costTiny (~23 MB one-time model, kilobytes of JSON)High for dense high-d fuzzy thresholdsLow latency, near-native matrix mathLocal mini-GPU / NPU inference
Sybil oracle probing riskNone against visitor; public corpus is already publicHigh without rate limits, social-graph gating, or query budgetsHigh without attested per-identity rate limitsStrongly mitigated by per-disclosure physical tap + scoped expiry
Model interoperability constraintBoth sides share Xenova/all-MiniLM-L6-v2Both sides must share an encoder spaceBoth sides must share an encoder or run alignment inside enclaveVault can re-encode locally into any mutually agreed public space

Similarity vs. complementarity and threshold calibration

Two practical failure modes sit beneath the cryptography:

  1. Symmetric cosine misses asymmetric complementarity. Matching two identical topics (cos(v_A, v_B) ≥ θ) finds peers reading the same literature, which works well for research notes and shared curiosities. It performs worse when Person A has an unsolved problem and Person B has a tool, archive, or service that solves it—the two descriptions use different nouns and intentions. Bridging asymmetric latent exchange likely requires dual-channel representations: each agent embeds both what I have / can build and what I am looking for / stuck on, matching A’s offer vector against B’s need vector (the same structure already hinted at in /open-calls.json and Talk to me).
  2. Threshold calibration controls matchmaking fatigue. In my 20-profile browser benchmark, raising the cosine cutoff from the live FLOOR = 0.22 to 0.25 eliminated the lone unrelated false match (n20 volleyball at 0.2279) while retaining 16/16 Hit@3 on positive profiles (weakest positive at 0.3034). For unsolicited background introductions between strangers, the precision bar must be far stricter than for a visitor actively visiting a blog: a single annoying spam introduction costs more trust than ten missed serendipitous matches.

Rival explanations and discriminating tests

Rival hypothesisWhat it predictsDiscriminating test
Rival A — Public writing + search is already enough: Publishing clear essays and open calls captures almost all high-value matches; private latent matching adds negligible marginal value.Pairs matched only via private notes/curiosities yield no more accepted collaborations than pairs matched purely on public writing and search.Split trial comparing introductions generated from public-only corpora against introductions incorporating private open-question lists, scored on 30-day follow-through.
Rival B — Trusted central brokers win on liquidity: Users overwhelmingly prefer one central social graph or AI platform because universal network effects crush federated blind protocols.Even privacy-conscious builders ignore local-first or PSI handshakes once a major lab offers one-click centralized agent introductions.Measure real opt-in and active matching volume between a federated open-JSON / PSI directory and a centralized broker among technical early adopters.
Rival C — Matchmaking fatigue kills the loop before privacy matters: Even perfectly private matches feel intrusive or low-signal because vector closeness over-triggers on superficial topical overlap.Human acceptance rate for blind cosine-threshold introductions stays below 10% even when privacy guarantees are airtight and thresholds are tuned above 0.35.Run a double-blind pilot with 20 consenting participants rating agent-proposed matches on novelty, usefulness, and annoyance before revealing identities.

Extension hooks for builders

  1. Today’s zero-upload client protocol: Any personal agent can already poll /compendium.json, /embeddings.json, and /open-calls.json locally, score against its owner’s private notes using Xenova/all-MiniLM-L6-v2 (q8, mean pooling, unit length), and surface a draft message only when an open question crosses a strict personal floor (e.g. ≥ 0.30).
  2. Dual-vector need/offer schema: Extend /open-calls.json into a lightweight symmetric schema (offers[] and needs[] embeddings) so two participating sites can test cross-matching offers against needs locally before introducing any cryptographic layer.
  3. Budgeted threshold oracle: Test a prototype two-party cosine gate with a strict per-identity daily query budget and social-graph allowlist (e.g., mutual GitHub/X follows or invite tokens) to quantify how small a trust graph stops Sybil reconstruction while preserving serendipity.

Visual artifact

  • Vector architecture diagram: /images/personal-embeddings-and-latent-exchange/blind-overlap-ladder.svg (960 × 680, site broadsheet palette #FAF9F5, #F3F1EA, #141413, #6B6A64, #3D5A6C, #BA6348, #4A6B53), visually inspected via headless Chrome PNG rendering.