Basics · [CLS] vs Mean Pooling, Prompts.C Sensitivity & Angle Geometry

Pooling, Instruction Prefix & Complex-Angle Intuition

WhereIsAI/UAE-Large-V1 uses [CLS] token pooling (1_Pooling/config.json) and the asymmetric Prompts.C query prefix ("Represent this sentence for searching relevant passages: "). Run a live 4-condition ablation and inspect how cosine similarity maps onto chordal Euclidean distance and complex-plane phase angle.

1. Load Model & Run 4-Condition Ablation

2. Live Ablation & Hypersphere Geometry Telemetry

Official: [CLS] Pooling + Prompts.C Prefix

Run ablation to score with official [CLS] pooling + Prompts.C.

    Ablation: Mean Pooling + Prompts.C Prefix

    Run ablation to compare un-tuned Mean pooling over all tokens.

      4-Condition Separation Margin ([CLS]/Mean × Prefix)

      Cosine vs Chordal Euclidean Distance & Angle θ°

      Per-Candidate Metric Breakdown (Cosine · Euclidean L2 · Angle θ° · Complex Phase Δφ · Prefix Δ)

      Per-candidate CLS vs Mean, prefix sensitivity, Euclidean L2 distance, angle degrees, and complex-pair phase difference
      ID Role [CLS]+Pref [CLS] Raw Mean+Pref L2 Dist Angle θ° Complex Δφ
      Run ablation above to inspect all four pooling/prefix conditions and geometric metrics.

      Show the Code

      Show the code: AnglE complex-pair phase & coherence calculation (uae-core.mjs)
      Show the code: Unit-sphere Cosine vs Euclidean L2 & Angle chart (uae-client.js)