首页 > AI前沿 > Decomposing Prompts into Reusable Scaffolds and Task-Specific Residuals

Decomposing Prompts into Reusable Scaffolds and Task-Specific Residuals

arXiv自然语言 2026-12-02 13:00 2 阅读 查看原文
用户要求我作为专业的新闻排版工程师,将给定的纯文本新闻正文排版成语义化的HTML片段。 规则如下: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 2. 每个自然段落用`

`包裹,长文用`

`/`

`划分小节。 3. 列表内容用`
  • `,引用用`
    `,代码用`
    `,重要句子可用``。
    4. 保留原文所有信息,不得增删改内容。
    5. 不要输出``/``/``等文档级标签。
    
    给定的正文:
    "Automatic prompt optimization typically treats each prompt as a monolithic text string, requiring task-specific search from scratch and limiting reuse across related tasks. We study a more structured view in which a prompt is decomposed into two components: a reusable Instructional Scaffold that captures shared domain-level instructions, and a concise Task-specific Residual that introduces task-level refinements. Based on this view, we propose DiSR (Discovering instructional Scaffolds and Residuals), a two-stage framework motivated by the intuition that related tasks may share a compact instructional core while differing in a small amount of task-specific information. DiSR first discovers a scaffold from source tasks within a coherent domain and then adapts it to a target task by learning a residual. Across multiple benchmarks, DiSR provides a stronger starting point than manual instructions and monolithic prompt optimization, yielding competitive or improved task performance and often better-calibrated confidence estimates. Additional analyses examine scaffold generalization, residual sparsity, and cross-domain portability, supporting the view that prompt reuse can be studied through scaffold-residual decomposition. Overall, the results suggest a practical and analyzable alternative to optimizing each prompt independently."
    
    分析正文结构:
    这是一段学术摘要/新闻正文,没有明显的列表、引用或代码。它是一段连续的文本,可以分成几个自然段,或者作为一个长段落加上小标题。
    为了符合“长文用

    /

    划分小节”和“每个自然段落用

    包裹”,我可以将其合理分段,并加上适当的小标题(虽然原文没有小标题,但规则说“长文用

    /

    划分小节”,如果不加小标题也可以,只要分段。不过为了体现排版,可以加一些概括性的小标题,但规则4要求“不得增删改内容”。加小标题算不算增删改内容?“保留原文所有信息,不得增删改内容”,加小标题可能会被视为增加内容。因此,最好不加小标题,或者将原有的句子分组为段落,不加额外的标题。或者,把第一句话作为引言,但不加标题。 仔细看规则2:“长文用

    /

    划分小节”。如果原文没有小节,就不需要强行加,否则违反规则4。这里原文就是一个自然段。我可以把它分成几个段落,用`

    `包裹。 分段建议: 段落1:Automatic prompt optimization typically treats each prompt as a monolithic text string, requiring task-specific search from scratch and limiting reuse across related tasks. We study a more structured view in which a prompt is decomposed into two components: a reusable Instructional Scaffold that captures shared domain-level instructions, and a concise Task-specific Residual that introduces task-level refinements. 段落2:Based on this view, we propose DiSR (Discovering instructional Scaffolds and Residuals), a two-stage framework motivated by the intuition that related tasks may share a compact instructional core while differing in a small amount of task-specific information. DiSR first discovers a scaffold from source tasks within a coherent domain and then adapts it to a target task by learning a residual. 段落3:Across multiple benchmarks, DiSR provides a stronger starting point than manual instructions and monolithic prompt optimization, yielding competitive or improved task performance and often better-calibrated confidence estimates. 段落4:Additional analyses examine scaffold generalization, residual sparsity, and cross-domain portability, supporting the view that prompt reuse can be studied through scaffold-residual decomposition. Overall, the results suggest a practical and analyzable alternative to optimizing each prompt independently. 检查是否有重要句子可以用``。比如“we propose DiSR (Discovering instructional Scaffolds and Residuals)”或者“scaffold-residual decomposition”可以加粗,但不加也可以。为了体现规则3的“重要句子可用”,我可以把“DiSR (Discovering instructional Scaffolds and Residuals)”或者最后一句加粗。不过不强制使用所有标签,合理使用即可。 让我们再审视一下规则4:“保留原文所有信息,不得增删改内容”。如果我加了小标题,就增加了内容。所以我只使用`

    `标签分段,不使用`

    `或`

    `,因为原文并没有小节标题。或者,我可以把第一句作为背景,但这不需要标题。 段落1:

    Automatic prompt optimization typically treats each prompt as a monolithic text string, requiring task-specific search from scratch and limiting reuse across related tasks. We study a more structured view in which a prompt is decomposed into two components: a reusable Instructional Scaffold that captures shared domain-level instructions, and a concise Task-specific Residual that introduces task-level refinements.

    段落2:

    Based on this view, we propose DiSR (Discovering instructional Scaffolds and Residuals), a two-stage framework motivated by the intuition that related tasks may share a compact instructional core while differing in a small amount of task-specific information. DiSR first discovers a scaffold from source tasks within a coherent domain and then adapts it to a target task by learning a residual.

    段落3:

    Across multiple benchmarks, DiSR provides a stronger starting point than manual instructions and monolithic prompt optimization, yielding competitive or improved task performance and often better-calibrated confidence estimates.

    段落4:

    Additional analyses examine scaffold generalization, residual sparsity, and cross-domain portability, supporting the view that prompt reuse can be studied through scaffold-residual decomposition. Overall, the results suggest a practical and analyzable alternative to optimizing each prompt independently.

    这样完全保留了原文内容,没有增删改,使用了`

    `包裹自然段落,使用了``标记重要内容。没有使用``等文档级标签,没有Markdown围栏,没有解释。 再核对一遍原文,确保一字不差。 原文: Automatic prompt optimization typically treats each prompt as a monolithic text string, requiring task-specific search from scratch and limiting reuse across related tasks. We study a more structured view in which a prompt is decomposed into two components: a reusable Instructional Scaffold that captures shared domain-level instructions, and a concise Task-specific Residual that introduces task-level refinements. Based on this view, we propose DiSR (Discovering instructional Scaffolds and Residuals), a two-stage framework motivated by the intuition that related tasks may share a compact instructional core while differing in a small amount of task-specific information. DiSR first discovers a scaffold from source tasks within a coherent domain and then adapts it to a target task by learning a residual. Across multiple benchmarks, DiSR provides a stronger starting point than manual instructions and monolithic prompt optimization, yielding competitive or improved task performance and often better-calibrated confidence estimates. Additional analyses examine scaffold generalization, residual sparsity, and cross-domain portability, supporting the view that prompt reuse can be studied through scaffold-residual decomposition. Overall, the results suggest a practical and analyzable alternative to optimizing each prompt independently. 我的分段: 1: Automatic prompt optimization typically treats each prompt as a monolithic text string, requiring task-specific search from scratch and limiting reuse across related tasks. We study a more structured view in which a prompt is decomposed into two components: a reusable Instructional Scaffold that captures shared domain-level instructions, and a concise Task-specific Residual that introduces task-level refinements. 2: Based on this view, we propose DiSR (Discovering instructional Scaffolds and Residuals), a two-stage framework motivated by the intuition that related tasks may share