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

基于PCA的词嵌入训练维选择

Single Training Dimension Selection for Word Embedding with PCA

Apple(苹果公司)

Yu Wang

摘要:

本文提出了一种基于主成分分析的快速可靠的词嵌入维数选择方法。首先,我们训练一个具有较大上限(例如1,000)的嵌入。然后,我们使用PCA对嵌入进行变换,并在记录嵌入在语言任务上的表现的同时,一次一个地递增地去除较小的维度。最后,我们在平衡模型大小和准确性的同时选择维度数量。使用各种数据集和语言任务的实验表明,我们能够训练训练10倍的嵌入集,同时保持最佳性能。对于那些有兴趣为下游任务(如情感分析、问答和上位词提取)训练性能最佳的嵌入的研究人员,以及那些对嵌入压缩感兴趣的研究人员,应该会发现这种方法很有帮助。

英文摘要:

In this paper, we present a fast and reliable method based on PCA to select the number of dimensions for word embeddings. First, we train one embedding with a generous upper bound (e.g. 1,000) of dimensions. Then we transform the embeddings using PCA and incrementally remove the lesser dimensions one at a time while recording the embeddings' performance on language tasks. Lastly, we select the number of dimensions while balancing model size and accuracy. Experiments using various datasets and language tasks demonstrate that we are able to train 10 times fewer sets of embeddings while retaining optimal performance. Researchers interested in training the best-performing embeddings for downstream tasks, such as sentiment analysis, question answering and hypernym extraction, as well as those interested in embedding compression should find the method helpful.

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

↑