用双层结构提取与映射实现无需训练的长文本风格迁移
Implementing Long Text Style Transfer with LLMs through Dual-Layered Sentence and Paragraph Structure Extraction and Mapping
- 分句与段落双层级提取风格模板,动态构建上下文感知转换库
- 在三维度评测中得分6.90,优于直接提示的6.70,保持内容与逻辑一致
- 适合无平行语料场景下的长文本风格迁移,无需微调模型
本文针对大语言模型(LLMs)在零样本学习下进行长文本风格迁移的挑战,提出一种分层框架,结合句级风格适应与段落级结构连贯性。我们主张,在有效实现段落风格迁移时,为保持原始句法与语义信息的一致性,必须同时在句级和段落级进行风格迁移,并确保句子间逻辑关系的连贯。所提出的框架ZeroStylus分为两个阶段:从参考文本中获取分层模板,以及基于模板引导的多粒度匹配生成。该框架动态构建句级与段落级模板库,支持上下文感知的风格转换,同时保留句间逻辑关系。实验表明,结构化重写在三轴评估中平均得分为6.90,优于直接提示方法的6.70,显著提升风格一致性、内容保真度与表达质量。消融实验验证了双层级模板的必要性,段落级结构编码在内容保真度上优于仅句级方法,而句级模式提取与匹配也超越直接提示法。结果确立了无需并行语料或模型微调的连贯长文本风格迁移新能力。
原文摘要 · Abstract (English)
This paper addresses the challenge in long-text style transfer using zero-shot learning of large language models (LLMs), proposing a hierarchical framework that combines sentence-level stylistic adaptation with paragraph-level structural coherence. We argue that in the process of effective paragraph-style transfer, to preserve the consistency of original syntactic and semantic information, it is essential to perform style transfer not only at the sentence level but also to incorporate paragraph-level semantic considerations, while ensuring structural coherence across inter-sentential relationships. Our proposed framework, ZeroStylus, operates through two systematic phases: hierarchical template acquisition from reference texts and template-guided generation with multi-granular matching. The framework dynamically constructs sentence and paragraph template repositories, enabling context-aware transformations while preserving inter-sentence logical relationships. Experimental evaluations demonstrate significant improvements over baseline methods, with structured rewriting achieving 6.90 average score compared to 6.70 for direct prompting approaches in tri-axial metrics assessing style consistency, content preservation, and expression quality. Ablation studies validate the necessity of both template hierarchies during style transfer, showing higher content preservation win rate against sentence-only approaches through paragraph-level structural encoding, as well as direct prompting method through sentence-level pattern extraction and matching. The results establish new capabilities for coherent long-text style transfer without requiring parallel corpora or LLM fine-tuning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。