[論文レビュー] CQ-CiM: Hardware-Aware Embedding Shaping for Robust CiM-Based Retrieval
CQ-CiM は埋め込みの適応、圧縮、低ビット量子化を共同で学習し CiM クロスバーに適合させ、ハードウェア変動下での on-device RAG 検索を改善する。
Deploying Retrieval-Augmented Generation (RAG) on edge devices is in high demand, but is hindered by the latency of massive data movement and computation on traditional architectures. Compute-in-Memory (CiM) architectures address this bottleneck by performing vector search directly within their crossbar structure. However, CiM's adoption for RAG is limited by a fundamental ``representation gap,'' as high-precision, high-dimension embeddings are incompatible with CiM's low-precision, low-dimension array constraints. This gap is compounded by the diversity of CiM implementations (e.g., SRAM, ReRAM, FeFET), each with unique designs (e.g., 2-bit cells, 512x512 arrays). Consequently, RAG data must be naively reshaped to fit each target implementation. Current data shaping methods handle dimension and precision disjointly, which degrades data fidelity. This not only negates the advantages of CiM for RAG but also confuses hardware designers, making it unclear if a failure is due to the circuit design or the degraded input data. As a result, CiM adoption remains limited. In this paper, we introduce CQ-CiM, a unified, hardware-aware data shaping framework that jointly learns Compression and Quantization to produce CiM-compatible low-bit embeddings for diverse CiM designs. To the best of our knowledge, this is the first work to shape data for comprehensive CiM usage on RAG.
研究の動機と目的
- 高精度・高次元の埋め込みと低ビット・固定サイズの CiM クロスバーとの表現ギャップを橋渡しする。
- 埋め込みを共同で適応させ、次元を圧縮し、CiM適合性のために値を量子化する統一のエンドツーエンドパイプラインを開発する。
- トレーニング時にハードウェアの非理想性とデバイス分散を組み込み、CiMベースの検索のロバスト性を高める。
- ラベルなしデータでの埋め込み整形の自己教師付き学習を可能にする。
- 複数の埋め込みモデルと CiM デバイスタイプ(SRAM、ReRAM、FeFET)間での一般化性を示す。
提案手法
- パラメータ効率的な埋め込み適応のための LoRA ベースアダプタ。
- CiM適合サイズまで次元を減らす密な射影圧縮ヘッド。
- トレーニング時にデバイスレベルの分散をシミュレートするノイズ注入モジュール。
- 圧縮埋め込みを低ビット CiM レベルへ写像する Nonuniform-to-Uniform Quantization (N2UQ) ヘッド。
- 自己監督化を通じてセマンティック空間を形作るコントラスト損失。
- エンドツーエンド訓練中の圧縮と量子化を安定させる再構成損失(MSE)。

実験結果
リサーチクエスチョン
- RQ1統一的でハードウェア認識のフレームワークは、多様な CiM クロスバーに適合するよう埋め込みを同時に圧縮・量子化できるか。
- RQ2ハードウェア認識ノイズを用いたエンドツーエンド訓練は、デバイス分散下で CiM ベースの検索のロバスト性を高めるか。
- RQ3CQ-CiM は CiM適合タスクでの最先端の次元削減・量子化ベースラインと比較してどうか。
- RQ4このアプローチは異なる埋め込みモデルや CiM デバイス技術(SRAM、ReRAM、FeFET)間で一般化可能か。
主な発見
- CQ-CiM は Aggressive な 1-bit および 2-bit 設定下で、5 データセットを通じて常に最高または競合的な検索性能を達成。
- LoRA適応、密な圧縮、学習された N2UQ 量子化の組み合わせが、アブレーションで最も大きな利益をもたらす。
- N2UQ は 固定 STE よりも絶対値で 3–7% 高く検索タスクを改善。
- 4つの埋め込みモデルとデバイスノイズ下でエンドツーエンド RAG に対して一般化性を示し robustness を維持。
- エンドツーエンド RAG の結果は、現実的なデバイス分散モデル下で安定した性能を示す。

この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。