跳到正文
Skillpedia
机器学习51k · #3425

arbor

它能做什么

Arbor 可以通过多轮自动试错来改进已有的项目或代码。它会整理每次尝试的过程,确保学到的经验不会丢失,并保证改进是真实有效的,而不是靠运气。

适用场景

  • ✓当你需要反复改进某段代码或某个模型时。
  • ✓当你要优化一个可以自动测试的系统时。
  • ✓当你需要高效地组织大量研究实验时。

技能链接

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/arbor/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/arbor/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“Arbor,请优化这个机器学习模型,使用测试数据集 A 来减少处理时间。”

每周 5 个新技能,1 分钟读完。

工作原理

Arbor 会创建一棵假设树来整理改进思路。它会让多个“智能体”在项目的独立副本上分别验证每个想法。一个专门的“合并闸门”确保只有经过验证的改进才会被采纳,防止系统“钻测试的空子”。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Arbor — Autonomous Optimization via Hypothesis Tree Refinement

Overview

This skill runs an Autonomous Optimization (AO) loop: starting from an existing artifact and a measurable objective, improve it through many rounds of experiment and evaluation — without step-by-step human supervision, while checking for overfitting to the development signal. It's the right tool when the bottleneck isn't writing one good change, but organizing dozens of trials so that lessons accumulate instead of evaporating.

It implements Hypothesis Tree Refinement (HTR) from Arbor (Jin et al., 2026). The key idea: keep the research state in a persistent hypothesis tree rather than in conversation history. Each node binds a hypothesis, the distilled insight it produced, and a pointer to the artifact version that realizes it. You play the long-lived coordinator that owns this tree and decides where to search; short-lived executor subagents test one hypothesis each in isolated git worktrees and report back. A held-out merge gate admits a change only when it improves on a test evaluator executors do not optimize against. This is what turns trial-and-error into cumulative, auditable research.

Use the scripts/tree.py state manager for all the bookkeeping (creating nodes, writing evidence, propagating insights, pruning, the merge gate, the Observe projection). It records scores and decisions; it does not run evaluators, create worktrees, verify Git refs, or merge Git branches. Only the coordinator writes shared state, serially; executors return evidence. The helper has no multi-writer locking. Its JSON schema is separate from upstream Arbor checkpoints.

When to use this skill

Reach for Arbor when the task is iterative improvement of a concrete artifact under an evaluator:

  • Model training: optimizer/architecture/recipe changes to lower loss or hit a target in fewer steps.
  • Harness/agent engineering: raising pass rate or accuracy of an agent loop, search harness, or tool-use scaffold.
  • Data synthesis: improving a generation/filtering pipeline judged by downstream model behavior.
  • Benchmark optimization: MLE-bench / Kaggle-style "improve the submission" tasks.
  • Prompt/system optimization where you can score outputs automatically.

The distinguishing signals: there's an artifact you can modify, an objective, a way to score candidates, and you expect to run many experiments. If the user only wants a single fix or a one-shot answer, this is overkill — just do the work directly. If they want open-ended ideation with no evaluator, use hypothesis-generation or scientific-brainstorming instead.

The AO setup — pin this down first

Before any experiments, establish the task tuple (M_0, O, E_dev, E_test). Record the resolved setup, using the user's existing instructions; clarify only missing decisions:

  • M_0 — initial material: the artifact to improve (a repo, a script, a config, a prompt). Make sure it's under git and currently runs.
  • O — objective: the natural-language goal and the metric direction (maximize accuracy? minimize loss/steps?).
  • E_dev — development evaluator: a command you can run freely during search to score a candidate. Fast, repeatable.
  • E_test — held-out test evaluator: a separate evaluation protocol (held-out examples or predeclared independent seeds) used only at the merge gate. It must not be used as a search oracle — that's the whole point.

Freeze the evaluator, dataset split, and metric before search, and record their versions with each score. Repeated merge decisions on the same held-out set can still adapt the search to that set; a fresh worktree prevents file contamination, not statistical leakage. Keep a final untouched evaluation set for the final claim, or disclose that the reported result was selected using repeated gate feedback.

If the user hasn't given you a clean dev/test split, construct one and say so. The dev/test separation is the mechanism that catches overfitting: a candidate that wins on dev but not on test isn't a success, it's a warning that you're exploiting the feedback signal. A larger run on the same examples is not an independent holdout. If no defensible holdout exists, label results as development-only.

…

常见问题

什么是“工件”(artifact)?

工件是你想要改进的任何东西,比如代码、机器学习模型、数据集或提示词。

“无需人工逐步监督”是什么意思?

意思是 Arbor 可以自行完成多轮测试和评估,不需要你在每一步都告诉它具体该怎么做。

为什么要把测试分为“dev”和“test”?

这一点至关重要,可以防止“过拟合”。“dev”测试集用于指导改进,而“test”测试集在优化过程中对系统保持不可见,用来确认改进是否真正有效,而不是只为了通过 dev 测试而耍的小把戏。

详情

作者的原始描述

Applies Arbor Hypothesis Tree Refinement to research artifacts with repeatable evaluators, including model training, agent harnesses, data synthesis and benchmark optimization. Uses persistent hypotheses, isolated experiments, evidence propagation and held-out candidate comparison for multi-experiment research runs. Includes a standard-library state manager and guidance for the RUC-NLPIR Arbor CLI

repo: K-Dense-AI/scientific-agent-skills

热度

GitHub 星标
51k
排名
#3425
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能