paper-with-me

Papers

Efficient Ternary Weight Embedding Model: Bridging Scalability and Performance

2024-11-23 · Jiayi Chen, Chen Wu, ShaoQun Zhang, Nan Li, Liangjie Zhang, Qi Zhang

Embedding models have become essential tools in both natural language processing and computer vision, enabling efficient semantic search, recommendation, clustering, and more. However, the high memory and computational demands of full-precision embeddings pose challenges for deployment in resource-constrained environments, such as real-time recommendation systems. In this work, we propose a novel finetuning framework to ternary-weight embedding models, which reduces memory and computational overhead while maintaining high performance. To apply ternarization to pre-trained embedding models, we introduce self-taught knowledge distillation to finalize the ternary-weights of the linear layers. With extensive experiments on public text and vision datasets, we demonstrated that without sacrificing effectiveness, the ternarized model consumes low memory usage and has low latency in the inference stage with great efficiency. In practical implementations, embedding models are typically integrated with Approximate Nearest Neighbor (ANN) search. Our experiments combining ternary embedding with ANN search yielded impressive improvement in both accuracy and computational efficiency. The repository is available at here.

📄 PDF Abstract BibTeX arXiv:2411.15438

Code (1)

dataparameters/Ternary-Embedding-Models 공식 구현 pytorch

Tasks

Computational EfficiencyKnowledge DistillationRecommendation Systems

Methods 이 논문이 사용한 방법론

Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…

Similar Papers 제목 키워드 기반

FTerViT: Fully Ternary Vision Transformer

2026-05-20 · Szymon Ruciński, Pietro Bonazzi, Engin Türetken, Simon Narduzzi 외 arxiv

Ternary Vision Transformers offer substantial model compression, however state-of-the-art methods only ternarize the encoder layers, leaving patch embeddings, LayerNorm parameters, and classifier heads in full precision.…

Knowledge DistillationModel Compression

Sparsity-Control Ternary Weight Networks

2020-11-01 · Xiang Deng, Zhongfei Zhang

Deep neural networks (DNNs) have been widely and successfully applied to various applications, but they require large amounts of memory and computational power. This severely restricts their deployment on resource-limite…

TL-nvSRAM-CIM: Ultra-High-Density Three-Level ReRAM-Assisted Computing-in-nvSRAM with DC-Power Free Restore and Ternary MAC Operations

2023-07-06 · Dengfeng Wang, Liukai Xu, Songyuan Liu, Zhi Li 외

Accommodating all the weights on-chip for large-scale NNs remains a great challenge for SRAM based computing-in-memory (SRAM-CIM) with limited on-chip capacity. Previous non-volatile SRAM-CIM (nvSRAM-CIM) addresses this …

Ternary Feature Masks: zero-forgetting for task-incremental learning

2020-01-23 · Marc Masana, Tinne Tuytelaars, Joost Van de Weijer

We propose an approach without any forgetting to continual learning for the task-aware regime, where at inference the task-label is known. By using ternary masks we can upgrade a model to new tasks, reusing knowledge fro…

Continual LearningIncremental Learning

TiM-DNN: Ternary in-Memory accelerator for Deep Neural Networks

2019-09-15 · Shubham Jain, Sumeet Kumar Gupta, Anand Raghunathan

The use of lower precision has emerged as a popular technique to optimize the compute and storage requirements of complex Deep Neural Networks (DNNs). In the quest for lower precision, recent studies have shown that tern…

GPUImage ClassificationLanguage Modelling