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

使用Siamese Neural Networks对Embedding Layers和Similarity Scores的分析

An Analysis of Embedding Layers and Similarity Scores using Siamese Neural Networks

Columbia University(哥伦比亚大学)

Yash Bingi, Yiqiao Yin

AI总结:

本研究分析了OpenAI、PaLM和BERT等模型的embedding算法在医疗数据上的相似度得分,通过引入Siamese Neural Networks增强模型,并比较了各算法的准确度与碳排放量。

摘要:

大型语言模型(LLMs)在各种用例中越来越受欢迎,从语言理解和写作到应用程序开发辅助。LLMs实现最佳功能的最重要方面之一是embedding layers。词嵌入是连续向量空间中词的分布式表示。在LLMs的背景下,输入文本中的词或token使用模型特有的算法被转换为高维向量。我们的研究考察了行业领先公司的embedding算法,如OpenAI、Google的PaLM和BERT。使用医疗数据,我们分析了每个embedding layer的similarity scores,观察各算法之间的性能差异。为了增强每个模型并提供额外的编码层,我们还实现了Siamese Neural Networks。在观察到添加该模型后性能的变化,我们测量了每个训练epoch的碳排放量。与大型语言模型相关的碳足迹是一个重要问题,在为各种用例选择算法时应予以考虑。总体而言,我们的研究比较了不同的、领先的embedding算法的准确度及其碳排放量,从而对每种embedding算法进行了全面评估。

英文摘要:

Large Lanugage Models (LLMs) are gaining increasing popularity in a variety of use cases, from language understanding and writing to assistance in application development. One of the most important aspects for optimal funcionality of LLMs is embedding layers. Word embeddings are distributed representations of words in a continuous vector space. In the context of LLMs, words or tokens from the input text are transformed into high-dimensional vectors using unique algorithms specific to the model. Our research examines the embedding algorithms from leading companies in the industry, such as OpenAI, Google's PaLM, and BERT. Using medical data, we have analyzed similarity scores of each embedding layer, observing differences in performance among each algorithm. To enhance each model and provide an additional encoding layer, we also implemented Siamese Neural Networks. After observing changes in performance with the addition of the model, we measured the carbon footage per epoch of training. The carbon footprint associated with large language models (LLMs) is a significant concern, and should be taken into consideration when selecting algorithms for a variety of use cases. Overall, our research compared the accuracy different, leading embedding algorithms and their carbon footage, allowing for a holistic review of each embedding algorithm.

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

↑