|国家预印本平台
首页|From Plain Text to Poetic Form: Generating Metrically-Constrained Sanskrit Verses

From Plain Text to Poetic Form: Generating Metrically-Constrained Sanskrit Verses

From Plain Text to Poetic Form: Generating Metrically-Constrained Sanskrit Verses

来源:Arxiv_logoArxiv
英文摘要

Recent advances in large language models (LLMs) have significantly improved natural language generation, including creative tasks like poetry composition. However, most progress remains concentrated in high-resource languages. This raises an important question: Can LLMs be adapted for structured poetic generation in a low-resource, morphologically rich language such as Sanskrit? In this work, we introduce a dataset designed for translating English prose into structured Sanskrit verse, with strict adherence to classical metrical patterns, particularly the Anushtub meter. We evaluate a range of generative models-both open-source and proprietary-under multiple settings. Specifically, we explore constrained decoding strategies and instruction-based fine-tuning tailored to metrical and semantic fidelity. Our decoding approach achieves over 99% accuracy in producing syntactically valid poetic forms, substantially outperforming general-purpose models in meter conformity. Meanwhile, instruction-tuned variants show improved alignment with source meaning and poetic style, as supported by human assessments, albeit with marginal trade-offs in metrical precision.

Manoj Balaji Jagadeeshan、Samarth Bhatia、Pretam Ray、Harshul Raj Surana、Akhil Rajeev P、Priya Mishra、Annarao Kulkarni、Ganesh Ramakrishnan、Prathosh AP、Pawan Goyal

南亚语系(澳斯特罗-亚细亚语系)语言学

Manoj Balaji Jagadeeshan,Samarth Bhatia,Pretam Ray,Harshul Raj Surana,Akhil Rajeev P,Priya Mishra,Annarao Kulkarni,Ganesh Ramakrishnan,Prathosh AP,Pawan Goyal.From Plain Text to Poetic Form: Generating Metrically-Constrained Sanskrit Verses[EB/OL].(2025-05-31)[2025-06-21].https://arxiv.org/abs/2506.00815.点此复制

评论