Skip to content

Variable bit allocation per dimension (future, format v1.4) #29

Closed as not planned

Description

@ajianaz

Context

Quantization Beyond Uniform Bit Allocation: allocate more bits to high-variance dims, fewer to low-variance ones, at the same total budget. For rotated Gaussian-ish dims (post-RHDH) the variance is uniform by construction — so this likely matters only in combination with #24 (Matryoshka truncation leaves non-uniform effective variance) or un-rotated variants.

Why parked

Acceptance (when picked up)

  • Simulation showing expected recall gain on our data before any format work
  • Format v1.3 design RFC

Dependencies

Evidence-gated on #25. Future.

Activity

  1. changed the title [-]Variable bit allocation per dimension (future, format v1.3)[/-] [+]Variable bit allocation per dimension (future, format v1.4)[/+] on Aug 28, 2026
  2. ajianaz commented on Aug 29, 2026

    @ajianaz
    ContributorAuthor

    Closing: premise is largely invalidated by the RHDH design

    Per-dimension bit allocation only pays when per-dimension reconstruction error dominates. But vecq's pipeline deliberately equalizes per-dimension variance: the seeded RHDH rotation + FWHT spreads every vector's energy so rotated coordinates are approximately N(0,1) — that is the flatness property the whole quantizer relies on (README "How it works" step 1). Allocating more bits to "high-variance" rotated dimensions would chase noise the rotation just manufactured.

    Where a coarse version of this idea does make sense, it already shipped:

    Adding per-dim allocation today would cost: per-dim variance estimation (a training pass — against the project thesis), a format change (v1.6 layout + migration), and non-uniform packing that breaks the fixed-position view-friendly layout (#25) — for expected gains near zero on rotated dims.

    Reopen with data if a workload shows rotated-dim variance skew ≥ ~2x after RHDH — that would falsify this analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions