arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.28208cs.ARcs.ET
收藏

基于HZO铁电电容的非易失性电荷域注意力机制:从器件到系统的仿真评估

FCDC: Nonvolatile Charge-Domain Attention with HZO Ferroelectric Capacitors

Faculty of Engineering, Mansoura University(曼苏拉大学工程学院)

Fares Abouagor

AI总结:

提出铁电电荷域计算单元(FCDC),利用HZO忆电容器实现非易失性模拟存储和电荷域向量矩阵乘法,用于Transformer注意力机制,通过器件到系统仿真评估两种部署模式,在多种大语言模型上验证了低功耗和精度保持。

摘要:

Transformer解码受到注意力计算和KV缓存移动的双重限制。本文提出了铁电电荷域计算单元(FCDC),这是一种带有访问器件的铪锆氧化物(HZO)忆电容器,能够非易失性地存储模拟状态并执行电荷域向量矩阵乘法(VMM)用于注意力机制。全程评估了两种部署模式:全衬底模式,在FCDC上运行q、k、v、o投影和两个注意力矩阵乘法;以及KV协处理器模式,仅存储KV并执行两个注意力矩阵乘法;投影噪声预算限制了协处理器模式。器件到系统模型在ngspice、CrossSim、FiPy和NeuroSim上交叉验证,并基于近期晶圆级10 nm HZO测量结果。在12个预训练大语言模型(1.1-32 B密集模型,以及k=75%的部分层Mixtral-8x22B 141 B-MoE压力测试和128k上下文密集Mistral复制)上,全层噪声替换仅在Qwen3-32B上增加+2.62% WikiText-2困惑度,在Mistral-7B-v0.3上增加+2.90% ± 0.33%(五种子均值)。端到端模拟注意力在TinyLlama-1.1B上最多增加+1.68个百分点,在≥7 B模型上缩小到±1个百分点以下。Mistral-7B在HellaSwag、ARC、LAMBADA和GSM8K上的下游准确率保持在数字基线的5%以内(MMLU -1.6个百分点)。主要的能量优势在于非易失性、无需刷新和KV缓存驻留。基于测量的INT4解码能量的工作负载级模拟器显示,在RAG和智能体循环中,针对单用户INT4 GPU基线,每服务令牌能量降低18-35倍;针对优化的GPU服务(批处理vLLM、CPU+NVMe停放、电源门控),稳健优势缩小到1.36-4.69倍,在具有数小时驻留的停放会话中仍保持≥41倍。

英文摘要:

Transformer decoding is increasingly constrained by the key-value (KV) cache it must keep resident and re-read across a long session. We present the Ferroelectric Charge-Domain Compute Cell (FCDC), a hafnium-zirconium-oxide (HZO) memcapacitor that stores analog weights as nonvolatile remanent polarization and performs charge-domain vector-matrix multiplication for attention. A full-substrate mode (all q,k,v,o projections and both attention matmuls on FCDC) provides the harder noise test and upper-bounds a narrower KV-coprocessor serving mode. The evaluation is simulation-based (no FCDC device is fabricated), cross-checked across four simulators, and anchored to wafer-scale 10nm-HZO measurements. Across 12 pretrained LLMs (dense to Qwen3-32B fully substituted, plus a 141B Mixtral-8x22B stress test), all-layer noise substitution adds +2.6% WikiText-2 perplexity on Qwen3-32B and +2.9% (five-seed mean) on Mistral-7B-v0.3; five downstream tasks stay within 5% of digital, the deltas hold to 128k context, and the serving mode costs under 0.5% at 7-8B. Analog-input fragility localizes to the value projection, and periphery-side input dithering recovers the worst-case PWM-nonlinearity collapse to near-baseline without retraining. The advantage is not raw multiply-accumulate energy, where the FCDC tile merely matches switched-capacitor SRAM compute-in-memory. It is nonvolatility, no refresh, and KV-cache residency. On measured INT4 decode energy, a workload simulator projects 18-35x lower per-served-token energy on retrieval-augmented generation and agent loops than a single-user GPU, narrowing to 1.4-4.7x against optimized serving baselines (batched vLLM, offload, power-gating) but exceeding 40x on multi-hour parked sessions. Long-residency, persistent-KV serving is the regime where a nonvolatile charge-domain substrate holds a durable advantage over an optimized GPU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑