arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.02674cs.CLcs.AI
收藏

Wave Network:一种超小型语言模型

Wave Network: An Ultra-Small Language Model

Texas Tech University(德克萨斯理工大学)

Xin Zhang, Victor S. Sheng

AI总结:

提出超小型语言模型Wave Network,利用复向量表示token并编码全局与局部语义,在文本分类任务中以极低参数量和资源消耗达到接近BERT base的准确率。

摘要:

我们提出了一种用于新型超小型语言模型Wave network的创新token表示和更新方法。具体而言,我们使用复向量表示每个token,编码输入文本的全局和局部语义。复向量包含两个分量:表示输入文本全局语义的幅度向量,以及捕获各个token与全局语义之间关系的相位向量。在AG News文本分类任务上的实验表明,当从随机初始化的token embeddings生成复向量时,我们的单层Wave Network通过wave interference达到90.91%的准确率,通过wave modulation达到91.66%的准确率,分别比使用BERT预训练embeddings的单层Transformer高出19.23%和19.98%,并接近预训练且微调的BERT base模型的准确率(94.64%)。此外,与BERT base相比,Wave Network在wave modulation期间将显存使用和训练时间分别减少了77.34%和85.62%。总结来说,我们使用240万参数的小型语言模型在文本分类中实现了与1亿参数的BERT模型相当的准确率。

英文摘要:

We propose an innovative token representation and update method in a new ultra-small language model: the Wave network. Specifically, we use a complex vector to represent each token, encoding both global and local semantics of the input text. A complex vector consists of two components: a magnitude vector representing the global semantics of the input text, and a phase vector capturing the relationships between individual tokens and global semantics. Experiments on the AG News text classification task demonstrate that, when generating complex vectors from randomly initialized token embeddings, our single-layer Wave Network achieves 90.91% accuracy with wave interference and 91.66% with wave modulation - outperforming a single Transformer layer using BERT pre-trained embeddings by 19.23% and 19.98%, respectively, and approaching the accuracy of the pre-trained and fine-tuned BERT base model (94.64%). Additionally, compared to BERT base, the Wave Network reduces video memory usage and training time by 77.34% and 85.62% during wave modulation. In summary, we used a 2.4-million-parameter small language model to achieve accuracy comparable to a 100-million-parameter BERT model in text classification.

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

↑