arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.13475cs.CL
收藏

元素级语言表示

Elementwise Language Representation

Pohang University of Science and Technology(浦项科技大学)

Dunam Kim, Jeeeun Kim

摘要:

我们提出了一种新的技术,计算语言表示称为elementwise嵌入,其中的材料(语义单元)被抽象成一个水平的串联的低维元素(字符)嵌入。虽然元素总是字符,但材料是任意级别的语义单位,因此它可以推广到任何类型的标记化。为了只关注重要的字母,每个语义单元的$n^{th}$拼写在$n^{th}$注意头中对齐,然后连接回原始形式,创建唯一的嵌入表示;它们被联合投影,从而确定自己的上下文重要性。从技术上讲,该框架是通过将一系列材料传递到具有$h=v$注意头的Transformer来实现的,每个材料由$v$元素组成。作为一种纯嵌入技术,逐元素嵌入用$256$ $c$维元素(每个元素对应于UTF-8字节之一)替换Transformer模型的$w$维嵌入表,其中$c=w/v$ .使用这种新的方法,我们表明,标准的Transformer架构可以重用的语言表示的所有级别,并能够处理更长的序列在相同的时间复杂度没有“任何”架构修改和额外的开销。BERT训练与elementwise嵌入优于其子字等价(原始实现)在多标签专利文件分类表现出优越的鲁棒性域特异性和数据不平衡,尽管使用$0.005\%$的嵌入参数。实验证明了所提出的方法的通用性,成功地将这些增强功能转移到不同架构的Transformers CANINE和ALBERT。

英文摘要:

We propose a new technique for computational language representation called elementwise embedding, in which a material (semantic unit) is abstracted into a horizontal concatenation of lower-dimensional element (character) embeddings. While elements are always characters, materials are arbitrary levels of semantic units so it generalizes to any type of tokenization. To focus only on the important letters, the $n^{th}$ spellings of each semantic unit are aligned in $n^{th}$ attention heads, then concatenated back into original forms creating unique embedding representations; they are jointly projected thereby determining own contextual importance. Technically, this framework is achieved by passing a sequence of materials, each consists of $v$ elements, to a transformer having $h=v$ attention heads. As a pure embedding technique, elementwise embedding replaces the $w$-dimensional embedding table of a transformer model with $256$ $c$-dimensional elements (each corresponding to one of UTF-8 bytes) where $c=w/v$. Using this novel approach, we show that the standard transformer architecture can be reused for all levels of language representations and be able to process much longer sequences at the same time-complexity without "any" architectural modification and additional overhead. BERT trained with elementwise embedding outperforms its subword equivalence (original implementation) in multilabel patent document classification exhibiting superior robustness to domain-specificity and data imbalance, despite using $0.005\%$ of embedding parameters. Experiments demonstrate the generalizability of the proposed method by successfully transferring these enhancements to differently architected transformers CANINE and ALBERT.

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

↑