跳到正文
Hacker News· andrespi·· 6 天前AI 评分22

384 维 MiniLM 嵌入压缩到 32 维后还能保留多少语义结构?

How much semantic structure survives in a 32-dimensional sketch?

AI 导读

一项公开实验用 1000 条文本、4 个主题测试 MiniLM 的 384 维嵌入压缩效果:完整向量同主题邻居识别率约 93%,压缩到 32 维后约 74%,随机基线为 25%,内存降低约 92%。结果表明大部分有用语义信息在激进降维后仍能保留,可用于语义搜索、端侧 AI、RAG 检索等场景。

正文 · 原文

Published September 7, 2026 | Version v1

Description

Semantic search systems represent every text as a long list of numbers called an embedding. These vectors can consume substantial memory and become expensive to store and search, especially on phones, edge devices, and large servers.

This paper shows that embeddings can be compressed to just a few dozen dimensions while still preserving a substantial ability to determine whether two texts belong to the same topic.

Public experiment: 1,000 texts, 4 topics, using MiniLM embeddings with 384 dimensions.

  • Full vector (384 dimensions): ~93% same-topic neighbors
  • Compressed vector (32 dimensions): ~74%
  • Memory reduction: ~92%
  • Random chance: 25%

The full embedding is still better—the compression is not magic. The important result is that a large fraction of the useful semantic information survives aggressive dimensionality reduction, at a fraction of the original memory cost.

This could be useful for faster semantic search, smaller vector indexes, on-device AI, edge applications, RAG retrieval, and lower-cost text-matching systems.

Files

Pirolo_2026_Paper10_SentenceEmbedding_Sketches_v1.pdf

Files (1.7 MB)

Name Size

Pirolo_2026_Paper10_SentenceEmbedding_Sketches_pkg_v1.zip

md5:1c2335d10f6f9d1178c00f703478d2db
998.4 kB Preview Download

Pirolo_2026_Paper10_SentenceEmbedding_Sketches_v1.pdf

md5:aae692adeacc9ae3a8b8572d1af76732
724.0 kB Preview Download

Additional details

Sub-Dimensional Semantic Search with 90%+ Memory Compression

来源:Hacker News · zenodo.org