首页 > AI前沿 > Where Self-Hosted Fine-Tuning Overtakes Frontier In-Context Learning: A Measured Crossover on a Bounded Classification Task

Where Self-Hosted Fine-Tuning Overtakes Frontier In-Context Learning: A Measured Crossover on a Bounded Classification Task

arXiv机器学习 2026-12-02 21:01 15 阅读 查看原文
用户要求我作为专业的新闻排版工程师,将一段纯文本新闻正文排版成语义化的HTML片段。需要遵守几个关键规则: 1. 只输出HTML片段本身,不能有Markdown围栏、不能有解释 2. 每个自然段落用`

`包裹,长文用`

`/`

`划分小节 3. 列表内容用`
  • `,引用用`
    `,代码用`
    `,重要句子可用``
    4. 保留原文所有信息,不得增删改内容
    5. 不要输出``/``/``等文档级标签
    
    正文是关于一个技术研究:自托管微调模型与前沿API的成本对比。内容是一个连续的技术说明,没有明显的自然段落划分。我需要合理地划分段落和小节,同时保持所有信息完整。
    
    让我分析正文内容,看看如何组织:
    - 第一句是核心问题:"When does a self-hosted fine-tuned model become cheaper than a frontier API at comparable task accuracy?"
    - 第二句讲测试方法:"We measured classification accuracy, training and serving costs, latency, and prompt-cache behavior on a bounded OpenOrca workload."
    - 接下来讲LoRA适配器的训练成本和表现:"A Llama-3.1-8B LoRA adapter trained on an owned laptop in 6.1 hours using 191 Wh of CPU and GPU package energy."
    - 然后是准确率对比:"It answered 814 of 949 classification items correctly, compared with 805 for Claude Sonnet 5.5 given a 4k reference manual (paired difference +0.9 percentage points, 95% bootstrap interval -1.4 to +3.3)."
    - 继续对比:"The frontier model answered 746 correctly without the manual and 765 with its seven formatting rules alone; the rules-only prefix fell below the provider's caching minimum and so cost more per request than the warm-cached manual."
    - 成本回收:"At the study's full-utilization laptop allocation, the adapter recovered its fixed machine cost after 4,255 queries against the cached manual and 7,333 against the no-document comparator. A dedicated server at 1% utilization had no finite crossover against the cached manual."
    - 手动规模影响:"Increasing the manual from 4k to 64k produced no aggregate classification gain on 200 matched items while cached cost rose 7.6-fold."
    - 延迟和更新行为:"Median time to first token was 0.38 s for the adapter and 1.44 s for the frontier arm; when labels changed after deployment, the adapter kept the old answers on 83 to 88 percent of changed records while the frontier arm followed an updated manual."
    - 最后是发布声明:"We release the test inputs, per-record predictions, cost calculations, and offline scoring code."
    
    我可以将核心问题作为一个小节标题,然后按逻辑划分段落。由于这是技术内容,我可以用`

    `来划分几个主题:研究问题、训练与性能对比、成本回收、延迟与行为、数据发布。 但用户说"每个自然段落用`

    `包裹,长文用`

    `/`

    `划分小节"。原文看起来是一个连续的段落,但为了排版清晰,我需要合理划分。 让我设计结构: - `

    `:核心问题(作为引言或第一部分) - 然后几个`

    `分别讲述不同方面 考虑到不能增删内容,我只能重新组织呈现方式,不能添加原文没有的标题文字。但用户说"用`

    `/`

    `划分小节",这意味着我可以用标题来划分,但标题内容应该来自原文或合理概括?用户说"保留原文所有信息,不得增删改内容",但标题本身是排版结构,不算正文内容。不过为了安全,我可以使用原文中的句子作为标题,或者只用结构标签而不添加新文字。 更稳妥的做法:用原文中的关键句子作为`

    `标题。比如核心问题"When does a self-hosted fine-tuned model become cheaper than a frontier API at comparable task accuracy?"可以作为`

    `。 但用户说"长文用`

    `/`

    `划分小节",这意味着标题是结构元素。我可以将原文的一些关键主题句作为标题。 让我设计:

    When does a self-hosted fine-tuned model become cheaper than a frontier API at comparable task accuracy?

    We measured classification accuracy, training and serving costs, latency, and prompt-cache behavior on a bounded OpenOrca workload. A Llama-3.1-8B LoRA adapter trained on an owned laptop in 6.1 hours using 191 Wh of CPU and GPU package energy.

    It answered 814 of 949 classification items correctly, compared with 805 for Claude Sonnet 5.5 given a 4k reference manual (paired difference +0.9 percentage points, 95% bootstrap interval -1.4 to +3.3). The frontier model answered 746 correctly without the manual and 765 with its seven formatting rules alone; the rules-only prefix fell below the provider's caching minimum and so cost more per request than the warm-cached manual.

    Cost recovery and scaling

    — 但这是添加的文字,不行。我需要用原文内容。 也许我可以不用那么多标题,只是合理划分段落。用户说"长文用`

    `/`

    `划分小节",但也可以少用标题。 让我重新考虑:原文是一段技术报告摘要,信息密度高。我可以这样组织:

    Study question and methodology

    — 添加了文字,不符合"不得增删改内容"。 所以,标题必须来自原文。我可以将原文的第一句作为`

    `,然后其余内容用`

    `。 方案:

    When does a self-hosted fine-tuned model become cheaper than a frontier API at comparable task accuracy?

    We measured classification accuracy, training and serving costs, latency, and prompt-cache behavior on a bounded OpenOrca workload. A Llama-3.1-8B LoRA adapter trained on an owned laptop in 6.1 hours using 191 Wh of CPU and GPU package energy.

    It answered 814 of 949 classification items correctly, compared with 805 for Claude Sonnet 5.5 given a 4k reference manual (paired difference +0.9 percentage points, 95% bootstrap interval -1.4 to +3.3). The frontier model answered 746 correctly without the manual and 765 with its seven formatting rules alone; the rules-only prefix fell below the provider's caching minimum and so cost more per request than the warm-cached manual.

    At the study's full-utilization laptop allocation, the adapter recovered its fixed machine cost after 4,255 queries against the cached manual and 7,333 against the no-document comparator. A dedicated server at 1% utilization had no finite crossover against the cached manual.

    Increasing the manual from 4k to 64k produced no aggregate classification gain on 200 matched items while cached cost rose 7.6-fold.

    Median time to first token was 0.38 s for the adapter and 1.44 s for the frontier arm; when labels changed after deployment, the adapter kept the old answers on 83 to 88 percent of changed records while the frontier arm followed an updated manual.

    We release the test inputs, per-record predictions, cost calculations, and offline scoring code.

    这样划分了6个段落,加上一个`

    `标题。我可以把一些重要句子用``标记。比如核心问题已经在`

    `里了。可以给关键数据或结论加``,但用户说"重要句子可用``",这是可选的。我可以适度使用。 比如:"A Llama-3.1-8B LoRA adapter trained on an owned laptop in 6.1 hours using 191 Wh of CPU and GPU package energy." 可以标记训练成本。"It answered 81