We propose a novel framework to understand the text by converting sentences or articles into video-like 3-dimensional tensors. Each frame, corresponding to a slice of the tensor, is a word image that is rendered by the word's shape. The length of the tensor equals to the number of words in the sentence or article. The proposed transformation from the text to a 3-dimensional tensor makes it very convenient to implement an $n$-gram model with convolutional neural networks for text analysis. Concretely, we impose a 3-dimensional convolutional kernel on the 3-dimensional text tensor. The first two dimensions of the convolutional kernel size equal the size of the word image and the last dimension of the kernel size is $n$. That is, every time when we slide the 3-dimensional kernel over a word sequence, the convolution covers $n$ word images and outputs a scalar. By iterating this process continuously for each $n$-gram along with the sentence or article with multiple kernels, we obtain a 2-dimensional feature map. A subsequent 1-dimensional max-over-time pooling is applied to this feature map, and three fully-connected layers are used for conducting text classification finally. Experiments of several text classification datasets demonstrate surprisingly superior performances using the proposed model in comparison with existing methods.
On the Design Fundamentals of Pixel Text Representation Learning
The Chinese University of Hong Kong(香港中文大学);DAMO Academy, Alibaba Group(阿里巴巴达摩院);Fudan University(复旦大学);Aberystwyth University(阿伯里斯特威斯大学);University of Macau(澳门大学);Shanghai University of Finance and Economics(上海财经大学)
Enhancing Robustness of Autoregressive Language Models against Orthographic Attacks via Pixel-based Approach
LMU Munich(慕尼黑大学);GESIS - Leibniz Institute for the Social Sciences(莱比锡社会科学院);Center for Information and Language Processing(信息与语言处理中心);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)
PTE: Predictive Text Embedding through Large-scale Heterogeneous Text Networks
Microsoft Research Asia(微软亚洲研究院);Peking University(北京大学);University of Michigan(密歇根大学)
无监督文本嵌入方法,如Skip-gram和Paragraph Vector,由于其简单性,可扩展性和有效性而受到越来越多的关注。然而,与复杂的深度学习架构(如卷积神经网络)相比,这些方法在应用于特定的机器学习任务时通常会产生较差的结果。一个可能的原因是,这些文本嵌入方法以完全无监督的方式学习文本的表示,而不利用可用于任务的标记信息。虽然学习的低维表示适用于许多不同的任务,但它们并不特别适合任何任务。在本文中,我们填补了这一空白,提出了一个半监督表示学习方法的文本数据,我们称之为\textit{predictive text embedding}(PTE)。预测文本嵌入利用标记和未标记的数据来学习文本的嵌入。首先将标注信息和不同层次的词共现信息表示为一个大规模的异构文本网络,然后通过一种有原则的高效算法将其嵌入到低维空间中。这种低维嵌入不仅保持了单词和文档的语义接近性,而且对特定任务具有很强的预测能力。与最近基于卷积神经网络的监督方法相比,预测文本嵌入相当或更有效,效率更高,并且需要调整的参数更少。
University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Georgia Institute of Technology(佐治亚理工学院);Google Research(谷歌研究院);U.S. Army Research Laboratory(美国陆军研究实验室)
RichSpace: Enriching Text-to-Video Prompt Space via Text Embedding Interpolation
Zhejiang University(浙江大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);University of New South Wales(新南威尔士大学);The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Tsinghua University(清华大学);Simons Institute for the Theory of Computing, University of California, Berkeley(加州大学伯克利分校西蒙斯理论计算研究所)