arXiv:2507.17025cs.CLcs.AI2025-07

为NLP嵌入设计自适应二值化方法,提升存储效率与精度

Evolutionary Feature-wise Thresholding for Binary Representation of NLP Embeddings

  • 为每个特征独立优化阈值,替代传统全局固定阈值
  • 在多个NLP任务上显著优于传统二值化方法,性能更优
  • 适用于各类特征,可推广至通用机器学习场景

高效文本嵌入对大规模自然语言处理应用至关重要,存储与计算效率是核心挑战。本文探索使用二值表示(条形码)替代传统实值嵌入,针对BERT等模型生成的NLP嵌入进行二值化。传统方法常采用全局固定阈值,我们提出基于坐标搜索的优化框架,为每个特征单独寻找最优阈值,证明特征级阈值能显著提升二值编码性能。该方法确保二值表示兼具准确性与高效性,在多种特征上表现优异。我们在不同NLP任务和数据集上进行了大量实验与统计检验,结果表明:由本方法获得的最优条形码表示在准确率上超越传统二值化方法。该技术具有通用性,不仅限于NLP嵌入,可应用于任意特征的二值化,适用于广泛机器学习场景。

原文摘要 · Abstract (English)

Efficient text embedding is crucial for large-scale natural language processing (NLP) applications, where storage and computational efficiency are key concerns. In this paper, we explore how using binary representations (barcodes) instead of real-valued features can be used for NLP embeddings derived from machine learning models such as BERT. Thresholding is a common method for converting continuous embeddings into binary representations, often using a fixed threshold across all features. We propose a Coordinate Search-based optimization framework that instead identifies the optimal threshold for each feature, demonstrating that feature-specific thresholds lead to improved performance in binary encoding. This ensures that the binary representations are both accurate and efficient, enhancing performance across various features. Our optimal barcode representations have shown promising results in various NLP applications, demonstrating their potential to transform text representation. We conducted extensive experiments and statistical tests on different NLP tasks and datasets to evaluate our approach and compare it to other thresholding methods. Binary embeddings generated using using optimal thresholds found by our method outperform traditional binarization methods in accuracy. This technique for generating binary representations is versatile and can be applied to any features, not just limited to NLP embeddings, making it useful for a wide range of domains in machine learning applications.

二值化嵌入压缩NLP

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。