首页 > AI前沿 > Generating Schema-Aligned Synthetic Dialogues and Measuring Their Diversity

Generating Schema-Aligned Synthetic Dialogues and Measuring Their Diversity

arXiv自然语言 2026-11-24 21:52 3 阅读 查看原文
用户现在需要把给定的新闻正文排版成语义化的HTML片段,规则要遵守,不能有文档级标签,段落用p,重要的用strong,不能增删改内容。首先先通读原文,整个是一个学术类的新闻正文对吧?首先第一句是讲训练评估模型需要配对数据,然后说成本高难获取,所以反过来构建,然后说朴素提示的问题,加的配置,然后度量变化,两个语料库的情况,下游测试的效果,最后说发布内容。 首先,整个内容没有需要分h2h3的?不对,等下看,是不是整个是一段?不对,原文是几个自然段?不对,原文的正文是连续的?不对,等下看原文的内容:首先第一部分是讲配对数据的难点,然后提出反向构建的方法,然后说朴素提示的问题,加的机制,然后度量变化的结果,然后语料库的情况,然后下游测试的效果,最后发布内容。哦不对,原文是一个连续的段落?不对,等下看用户给的正文,是一段吗?不对,再仔细看: 哦用户给的正文是: Training or evaluating a model that turns a conversation into a structured record requires paired data, meaning a transcript together with the exact record it should be converted into. Such pairs are expensive to annotate, and in sensitive domains they are also difficult to obtain at all. We therefore build them in the opposite order by sampling a schema-valid record first, then writing a dialogue from it, and optionally synthesizing speech from the dialogue, so the label exists before the text and we need no annotation step. Naively prompting a language model for such dialogues yields small variations of a single conversation, so we add a sampled variation configuration, personas, and a topic plan that orders the fields of the record as explicit mechanisms for variation. We measure the variation that reaches the output through embedding space, where the embedding variance spreads over about two and a half times as many independent directions with our full configuration compared to without (participation ratio 23.3 against 9.2). Two corpora of medical dialogue give values of the same order, with sample size, text length and language being additional factors there. We also show the positive effect of our method in a downstream test, where an 8B extraction model reaches 64.8% field accuracy when fine-tuned on dialogues from our method, against 57.5% from naive generation. We release the generation library and the generated corpus of German clinical dialogues with aligned records. 哦原来整个是一段?不对,不对,有没有可以拆分的?不对,规则说每个自然段落用p包裹,那如果原文是多个自然段?不对,用户给的正文是连续的一段吗?等下看,用户的正文是一整段,但是里面有重要的内容可以加strong对吧?比如关键的结论,比如方法的效果,还有核心的方法?不对,要注意不能增删改内容,只是加标签,语义化。 等下,首先,有没有需要分小节的?比如,是不是可以分几个部分?不对,原文是连续的论述,没有明显的小节标题,所以不用h2h3?不对,等下,看内容,第一部分是问题的提出,第二是方法,第三是评估,第四是发布?不对,但是不能自己加标题内容啊!规则说h2/h3划分小节,但是不能增删改内容,所以如果没有现成的小标题,就不能随便加对吧?哦对,不能增内容,所以h2/h3是如果有小节内容的话用,但是原文里没有小标题,所以不用?不对,再仔细看规则:“长文用

/

划分小节”,但是不能增删改内容,所以原文里没有小标题的话,就不用加h标签,因为加了就属于新增内容了对吧?对,因为不能增内容,所以不能自己编小标题。 那现在,把原文的每个自然段用p包裹,原文是一整段?不对,等下再数,用户给的正文是一段吗?是的,从头到尾是一个段落?不对,等下,我再看:哦,不对,用户给的正文是连续的,没有换行的分段?那如果是一段的话,就用一个p?但是里面的重要句子可以加strong。那哪些是重要的?比如核心的方法:“We therefore build them in the opposite order by sampling a schema-valid record first, then writing a dialogue from it, and optionally synthesizing speech from the dialogue, so the label exists before the text and we need no annotation step.” 这个是核心方法,可以加strong?然后关键的度量结果:“where the embedding variance spreads over about two and a half times as many independent directions with our full configuration compared to without (participation ratio 23.3 against 9.2)” 还有下游测试的结果:“where an 8B extraction model reaches 64.8% field accuracy when fine-tuned on dialogues from our method, against 57.5% from naive generation.” 还有最后发布的部分?不对,要合理,不能乱加。 等下,不对,有没有可能原文可以拆分成几个自然段?哦,用户给的原文是一整段,但是排版的时候是不是可以按照逻辑拆分?不对,规则说“保留原文所有信息,不得增删改内容”,拆分段落属于排版,不算改内容对吧?不对,等下,原文的自然段落,用户给的正文里的自然段,用户给的是一段,那是不是就用一个p?不对,再仔细看用户的要求:“每个自然段落用

包裹”,也就是原文里的自然段落,用户给的正文是一个自然段,所以就用一个p?但是这样会不会太单调?不对,再看内容,有没有列表?没有。引用?没有。代码?没有。那只有p和strong? 不对,等下再仔细读原文,逻辑是: 1. 训练/评估对话转结构化记录的模型需要配对数据,这类数据标注贵,敏感领域难获取。 2. 所以采用反向构建:先采样schema合法的记录,再写对话,可选合成语音,标签先于文本,无需标注。 3. 朴素提示得到的对话变化小,所以加入采样变化配置、角色、字段排序的话题规划作为显式变化机制。 4. 通过嵌入空间度量输出的变化,完整配置下嵌入方差分布的独立方向是未使用的2.5倍(参与比23.3 vs 9.2)。 5. 两个医疗对话语料库的数值同量级,样本量、文本长度、语言是额外影响因素。 6. 下游测试显示方法的正向效果:用我们方法生成的对话微调8B抽取模型,字段准确率64.8%,朴素生成的是57.5%。 7. 我们发布了生成库和带对齐记录的德语临床对话生成语料库。 哦,不对,用户给的原文是一整段,但是排版的时候是不是可以按照逻辑拆分成多个p?因为自然段落的划分,如果是排版的话,是不是可以把长段落拆成逻辑段?不对,规则说“每个自然段落用

包裹”,也就是原文的自然段落,用户给的原文是一个自然段,所以应该用一个p?不对,不对,用户给的正文是“正文如下:”然后下面是一段,那就是一个自然段,所以用一个

包裹,里面的重点加。 等下,那重点加哪些?比如: - paired data, meaning a transcript together with the exact record it should be converted into?不对,或者核心的方法:We therefore build them in the opposite order by sampling a schema-valid record first, then writing a dialogue from it, and optionally synthesizing speech from the dialogue, so the label exists before the text and we need no annotation step。然后结果部分:where the embedding variance spreads over about two and a half times as many independent directions with our full configuration compared to without (participation ratio 23.3 against 9.2),还有下游的效果:where an 8B extraction model reaches 64.8% field accuracy when fine-tuned on dialogues from our method, against 57.5% from naive generation。还有最后发布的?We release the generation library and the generated corpus of German clinical dialogues with aligned records.? 不对,但是不能乱加,要合理的重点。等下,再确认规则:重要句子可用,所以可以加,但是不能改内容。 哦,不对,有没有可能用户给的原文其实是可以分成几个自然段?比如,第一句到“no annotation step.”是一段,然后“Naively prompting... variation.”是一段,然后“We measure... there.”是一段,然后“We also show... generation.”是一段,然后最后一句是一段?这样是不是更符合排版?因为长文的话,拆分段落更清晰,而且不增删内容,只是划分段落,对吧?因为原文的内容没有改,只是把长段落拆成几个逻辑上的句子组,每个用p包裹,这样是不是可以? 等下,规则说“每个自然段落用

包裹”,那原文的自然段落,如果用户给的是一整段,但是排版的时候按照语义拆分,算不算违反?不对,再仔细看用户的要求,是“