arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.00290cs.ITcs.AIcs.LGmath.IT
收藏

通过小语言模型预测实现语义文本传输:成本-相似度权衡

Semantic Text Transmission via Prediction with Small Language Models: Cost-Similarity Trade-off

Indian Institute of Technology Dharwad(达尔瓦德印度理工学院);Linköping University(林雪平大学)

Bhavani A Madhabhavi, Gangadhar Karevvanavar, Rajshekhar V Bhat, Nikolaos Pappas

AI总结:

本文研究自然语言语义传输中的成本与相似度权衡,提出基于神经或马尔可夫 SLM 的阈值与周期预测调度,并评估 Huffman 编码及字符擦除信道影响。

摘要:

我们考虑在无噪声信道和字符擦除信道上,将自然语言文本从源端传输到目的端。我们利用语言固有的相关性和可预测性,通过允许目的端预测或补全可能与源端文本存在差异的词语,来约束传输成本。具体而言,我们的目标是获得可实现的 $(\ar{c}, \ar{s})$ 对,其中 $\ar{c}$ 是源端的平均传输成本,$\ar{s}$ 是通过源端词语与目的端预测/补全词语的向量嵌入之间的余弦相似度衡量的平均语义相似度。我们针对用于预测的神经语言模型和基于一阶马尔可夫链的小语言模型(SLM)获得 $(\ar{c}, \ar{s})$ 对,同时采用两种策略:一种是阈值策略,当某词语与目的端预测/补全词语的余弦相似度低于阈值时传输该词语;另一种是周期策略,即按特定间隔传输词语,并在目的端预测/补全间隔之间的词语。我们采用一个 SLM 进行词语补全。我们证明,当通信通过无噪声信道进行时,对于给定的 $\ar{c}$,阈值策略比周期策略获得更高的 $\ar{s}$;并且在相同 $\ar{c}$ 下,神经 SLM 获得的 $\ar{s}$ 大于或等于基于马尔可夫链算法获得的 $\ar{s}$。性能提升伴随着时间和计算需求方面更高的复杂度。然而,当通信通过字符擦除信道进行时,所有预测算法和调度策略的表现都很差。此外,如果使用字符级 Huffman 编码,达到给定 $\ar{s}$ 所需的 $\ar{c}$ 会降低,但上述结论仍然成立。

英文摘要:

We consider the communication of natural language text from a source to a destination over noiseless and character-erasure channels. We exploit language's inherent correlations and predictability to constrain transmission costs by allowing the destination to predict or complete words with potential dissimilarity with the source text. Concretely, our objective is to obtain achievable $(\bar{c}, \bar{s})$ pairs, where $\bar{c}$ is the average transmission cost at the source and $\bar{s}$ is the average semantic similarity measured via cosine similarity between vector embedding of words at the source and those predicted/completed at the destination. We obtain $(\bar{c}, \bar{s})$ pairs for neural language and first-order Markov chain-based small language models (SLM) for prediction, using both a threshold policy that transmits a word if its cosine similarity with that predicted/completed at the destination is below a threshold, and a periodic policy, which transmits words after a specific interval and predicts/completes the words in between, at the destination. We adopt an SLM for word completion. We demonstrate that, when communication occurs over a noiseless channel, the threshold policy achieves a higher $\bar{s}$ for a given $\bar{c}$ than the periodic policy and that the $\bar{s}$ achieved with the neural SLM is greater than or equal to that of the Markov chain-based algorithm for the same $\bar{c}$. The improved performance comes with a higher complexity in terms of time and computing requirements. However, when communication occurs over a character-erasure channel, all prediction algorithms and scheduling policies perform poorly. Furthermore, if character-level Huffman coding is used, the required $\bar{c}$ to achieve a given $\bar{s}$ is reduced, but the above observations still apply.

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

↑