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

MathSpeech:利用小型语言模型实现数学语音到公式的精确转换

MathSpeech: Leveraging Small LMs for Accurate Conversion in Mathematical Speech-to-Formula

Seoul National University(首尔大学);Chung-Ang University(中央大学);NVIDIA(英伟达)

Sieun Hyeon, Kyudan Jung, Jaehee Won, Nam-Joon Kim, Hyun Gon Ryu, Hyuk-Jae Lee, Jaeyoung Do

AI总结:

MathSpeech 提出一种结合 ASR 与小型语言模型的流程,用于纠正数学语音识别错误并生成 LaTeX,以 120M 参数实现优于 GPT-4o 的转换性能。

摘要:

在各种学术和专业场景中,例如数学讲座或研究报告中,经常需要口头传达数学表达式。然而,在没有伴随视觉材料的情况下朗读数学表达式会显著妨碍理解,尤其是对于听力受损者或因语言障碍而依赖字幕的人。例如,当演讲者朗读欧拉公式时,当前的自动语音识别(ASR)模型通常会产生冗长且容易出错的文本描述(例如,e to the power of i x equals cosine of x plus i side of x),而不是简洁的 LaTeX 格式(即 $ e^{ix} = \cos(x) + i\sin(x) $),这妨碍了清晰的理解和交流。为了解决这一问题,我们提出了 MathSpeech,这是一种新颖的流程,它将 ASR 模型与小型语言模型(sLMs)相结合,以纠正数学表达式中的错误,并将口语表达准确转换为结构化的 LaTeX 表示。在一个源自讲座录音的新数据集上进行评估后,MathSpeech 展示了与领先的商业大型语言模型(LLMs)相当的 LaTeX 生成能力,同时仅利用经过微调的 120M 参数小型语言模型。具体而言,在 LaTeX 翻译的 CER、BLEU 和 ROUGE 分数方面,MathSpeech 展示了显著优于 GPT-4o 的能力。我们观察到 CER 从 0.390 降低到 0.298,并且与 GPT-4o 相比获得了更高的 ROUGE/BLEU 分数。

英文摘要:

In various academic and professional settings, such as mathematics lectures or research presentations, it is often necessary to convey mathematical expressions orally. However, reading mathematical expressions aloud without accompanying visuals can significantly hinder comprehension, especially for those who are hearing-impaired or rely on subtitles due to language barriers. For instance, when a presenter reads Euler's Formula, current Automatic Speech Recognition (ASR) models often produce a verbose and error-prone textual description (e.g., e to the power of i x equals cosine of x plus i $\textit{side}$ of x), instead of the concise $\LaTeX{}$ format (i.e., $ e^{ix} = \cos(x) + i\sin(x) $), which hampers clear understanding and communication. To address this issue, we introduce MathSpeech, a novel pipeline that integrates ASR models with small Language Models (sLMs) to correct errors in mathematical expressions and accurately convert spoken expressions into structured $\LaTeX{}$ representations. Evaluated on a new dataset derived from lecture recordings, MathSpeech demonstrates $\LaTeX{}$ generation capabilities comparable to leading commercial Large Language Models (LLMs), while leveraging fine-tuned small language models of only 120M parameters. Specifically, in terms of CER, BLEU, and ROUGE scores for $\LaTeX{}$ translation, MathSpeech demonstrated significantly superior capabilities compared to GPT-4o. We observed a decrease in CER from 0.390 to 0.298, and higher ROUGE/BLEU scores compared to GPT-4o.

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

↑