PINGALA:面向梵文诗歌生成的声调感知解码
Pingala: Prosody-Aware Decoding for Sanskrit Poetry Generation
AI总结:
本文提出PINGALA解码方法,通过将诗歌分段提升语义连贯性10%,并利用SLP1转写提高音律对齐46%,同时引入参考无关评估方法。
摘要:
梵文诗歌生成通常要求诗句在语义上连贯且符合严格的声调规则。在梵文声调中,每句通常是一个固定长度的音节序列,遵循预设的二进制音节重量模式。我们观察到,将诗句视为分组行而非单一序列,可提升语义连贯性10%,同时保持音律的符合。具体而言,PINGALA是我们提出的解码方法,旨在鼓励每行都有良好形成的词语,我们的token选择偏倚模型使其倾向于选择更长的token。梵文书写遵循音素正字法,因此使用音感-aware的转写方案SLP1,使音律对齐提高了46%,同时保持语义相似性,适用于如Phi-4等指令微调的大语言模型。我们还引入了一种新的参考无关评估方法,使用交叉编码器,实现了与真正诗歌实例更好的对齐。
英文摘要:
Poetry generation in Sanskrit typically requires the verse to be semantically coherent and adhere to strict prosodic rules. In Sanskrit prosody, every line of a verse is typically a fixed length sequence of syllables adhering to prescribed binary patterns of syllable weights. We observe that instead of treating a verse as a monolithic sequence, segmenting them as grouped-lines leads to significant improvement in semantic coherence by 10\% with comparable metrical adherence. Specifically, Pingala, our proposed decoding approach is designed to encourage every line to have well-formed words and our token selection biases the model towards it by preferring longer tokens. Writing in Sanskrit follows phonemic orthography, hence using a phonetically aware transliteration scheme, SLP1, increased the metrical alignment by 46\% with comparable semantic similarity, for a instruction fine-tuned large language models like Phi-4. We also introduce a new approach for reference-free evaluation using cross-encoders which achieved better alignment with true poetry instances.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。