arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.11975cs.LGcs.AIcs.SDeess.AS
收藏

符号音乐的字节对编码

Byte Pair Encoding for Symbolic Music

Sorbonne University(索邦大学);CNRS(法国国家科学研究中心);LIP6(LIP6计算机科学实验室);Aubay(Aubay公司);University of Angers(昂热大学);LERIA(LERIA实验室);ESEO(ESEO工程师学院);ERIS(ERIS实验室)

Nathan Fradet, Nicolas Gutowski, Fabien Chhel, Jean-Pierre Briot

AI总结:

本文提出将字节对编码应用于符号音乐分词,通过增加词汇量显著缩短令牌序列,提升语言模型在生成与分类任务中的性能和推理速度,并已在MidiTok中实现。

摘要:

当与深度学习结合使用时,符号音乐模态通常与语言模型架构相耦合。为此,音乐需要被分词化,即转换为离散令牌的序列。这可以通过不同的方法实现,因为音乐可以由同时进行的音轨、具有多个属性的同时音符组成。迄今为止,提出的分词方法依赖于描述音符属性和时间事件的小型令牌词汇表,导致令牌序列相当长,并且对语言模型嵌入空间的使用不够理想。近期研究致力于通过合并嵌入或组合令牌来减少整体序列长度。在本文中,我们表明字节对编码(一种广泛用于自然语言的压缩技术)显著减少了序列长度,同时增加了词汇量大小。通过这样做,我们利用此类模型的嵌入能力,使用更具表现力的令牌,从而在生成和分类任务中获得更好的结果和更快的推理速度。源代码已在Github上共享,并附带一个配套网站。最后,BPE已直接实现在MidiTok中,使读者能够轻松受益于该方法。

英文摘要:

When used with deep learning, the symbolic music modality is often coupled with language model architectures. To do so, the music needs to be tokenized, i.e. converted into a sequence of discrete tokens. This can be achieved by different approaches, as music can be composed of simultaneous tracks, of simultaneous notes with several attributes. Until now, the proposed tokenizations rely on small vocabularies of tokens describing the note attributes and time events, resulting in fairly long token sequences, and a sub-optimal use of the embedding space of language models. Recent research has put efforts on reducing the overall sequence length by merging embeddings or combining tokens. In this paper, we show that Byte Pair Encoding, a compression technique widely used for natural language, significantly decreases the sequence length while increasing the vocabulary size. By doing so, we leverage the embedding capabilities of such models with more expressive tokens, resulting in both better results and faster inference in generation and classification tasks. The source code is shared on Github, along with a companion website. Finally, BPE is directly implemented in MidiTok, allowing the reader to easily benefit from this method.

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

↑