OngoingGenerative AI & LLMs

Paraphrase Geometry for Embedding Enhancement

An ongoing training-free, model-agnostic method that refines sentence embeddings at inference time using paraphrase geometry.

Paraphrase-geometry embedding refinement
Visual story

Meaning beyond word overlap

Scroll to watch it unfold. Each beat is one documented step of the project.

  1. 01

    Sentence

    Start from one sentence's embedding.

  2. 02

    Paraphrases

    Generate paraphrases of the sentence.

  3. 03

    Local geometry

    They trace the local shape of its meaning.

  4. 04

    Closed-form projection

    A closed-form projection refines the embedding.

  5. 05

    Retrieval

    The refined embedding is used for search.

  6. 06

    Outcome

    Better embeddings at inference time, with no fine-tuning.

An illustration of how the system works, drawn from the write-up below. It is not recorded output.

The idea

Sentence embeddings power semantic search, retrieval-augmented generation and clustering — but even strong encoders often confuse surface-form overlap with true meaning. This ongoing project treats a sentence's paraphrases as samples of a local, meaning-preserving manifold, and uses the geometry those paraphrases trace out to refine the embedding.

Why it matters

It all happens at inference time — no labels, no extra training, and compatible with any frozen encoder — aiming for the kind of gains contrastive fine-tuning gives, but without the training cost or the loss of generality, which matters in privacy-, latency- or IP-constrained deployments. (Method details are held back while the work is under submission.)

Tech stack & key skills

Core tools, methods and skills demonstrated in this project:

Sentence embeddingsPEGASUS paraphrasingLinear-algebra projectionsZero-shot inferenceRetrieval / RAGNumPy