arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2207.12188cs.ARcs.ET
收藏

COSIME:基于FeFET的关联存储器的内存余弦相似性搜索

COSIME: FeFET based Associative Memory for In-Memory Cosine Similarity Search

Che-Kai Liu, Haobang Chen, Mohsen Imani, Kai Ni, Arman Kazemi, Ann Franchesca Laguna, Michael Niemier, Xiaobo Sharon Hu, Liang Zhao, Cheng Zhuo, Xunzhao Yin

摘要:

在许多机器学习模型中,在训练的类向量上搜索输入查询,以在余弦相似性度量中找到最接近的特征类向量。然而,在Von-Neumann机器中执行向量之间的余弦相似性涉及大量乘法、欧几里德归一化和除法运算,因此招致沉重的硬件能量和延迟开销。此外,由于在传统架构中存在的存储器墙问题,在类向量上的频繁的基于余弦相似性的搜索(CSS)需要大量的数据移动,限制了系统的吞吐量和效率。为了克服上述挑战,本文介绍了COSIME,一个通用的内存中的联想记忆(AM)引擎的基础上的铁电场效应管(FeFET)设备的高效CSS。通过利用FeFET器件的单晶体管“与”门功能、基于电流的跨导线性模拟电路和赢者全取(WTA)电路,COSIME可以在存储器块中的所有条目上实现并行的存储器内CSS,并在余弦相似度度量中输出与输入查询最接近的词。在阵列级的评估结果表明,所提出的COSIME设计实现333倍和90.5倍的延迟和能量的改善,分别实现更好的分类精度相比,AM设计实现近似CSS。建议的存内计算结构进行评估的HDC问题,展示了COSIME可以实现平均47.1倍和98.5倍的加速比和能源效率的改进相比,GPU的实现。

英文摘要:

In a number of machine learning models, an input query is searched across the trained class vectors to find the closest feature class vector in cosine similarity metric. However, performing the cosine similarities between the vectors in Von-Neumann machines involves a large number of multiplications, Euclidean normalizations and division operations, thus incurring heavy hardware energy and latency overheads. Moreover, due to the memory wall problem that presents in the conventional architecture, frequent cosine similarity-based searches (CSSs) over the class vectors requires a lot of data movements, limiting the throughput and efficiency of the system. To overcome the aforementioned challenges, this paper introduces COSIME, an general in-memory associative memory (AM) engine based on the ferroelectric FET (FeFET) device for efficient CSS. By leveraging the one-transistor AND gate function of FeFET devices, current-based translinear analog circuit and winner-take-all (WTA) circuitry, COSIME can realize parallel in-memory CSS across all the entries in a memory block, and output the closest word to the input query in cosine similarity metric. Evaluation results at the array level suggest that the proposed COSIME design achieves 333X and 90.5X latency and energy improvements, respectively, and realizes better classification accuracy when compared with an AM design implementing approximated CSS. The proposed in-memory computing fabric is evaluated for an HDC problem, showcasing that COSIME can achieve on average 47.1X and 98.5X speedup and energy efficiency improvements compared with an GPU implementation.

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

↑