MARC-train / README.md
ivaavi-ehlabs's picture
r4_refresh config (round-4 continuation set; existing rows, candidates reordered)
c3d1b69 verified
|
Raw History Blame Contribute Delete
8.09 kB
---
license: other
license_name: mixed-per-row
license_link: https://github.com/ivaavimusic/halo/blob/main/marc/THIRD_PARTY_NOTICES.md
language:
- en
pretty_name: MARC train (multi-protocol agentic service decisions)
task_categories:
- text-generation
tags:
- agents
- tool-selection
- service-selection
- x402
- mcp
- decision-model
- white-circle-halo-competition
size_categories:
- 10K<n<100K
configs:
- config_name: default
data_files:
- split: train
path: data/train.jsonl
- config_name: marc
data_files:
- split: train
path: subsets/marc/train.jsonl
- config_name: warmup_tool_decision
data_files:
- split: train
path: subsets/warmup_tool_decision/train.jsonl
- config_name: general_instruction
data_files:
- split: train
path: subsets/general_instruction/train.jsonl
- config_name: marc_workflow_abstain
data_files:
- split: train
path: subsets/marc_workflow_abstain/train.jsonl
- config_name: typed_decisions
data_files:
- split: train
path: subsets/typed_decisions/train.jsonl
- config_name: warmup_tool_decision_extra
data_files:
- split: train
path: subsets/warmup_tool_decision_extra/train.jsonl
- config_name: r4_refresh
data_files:
- split: train
path: subsets/r4_refresh/train.jsonl
---
# MARC train
**Built for the White Circle Halo Competition** (`ft-hf` track) to post-train
[`singularity-layer/Singularity-MARC-0.8B`](https://huggingface.co/singularity-layer/Singularity-MARC-0.8B) from
`Qwen/Qwen3.5-0.8B` with [Halo](https://github.com/whitecircle/halo). Held-out evaluation set:
[`singularity-layer/MARC-eval-unseen`](https://huggingface.co/datasets/singularity-layer/MARC-eval-unseen).
MARC is a fast decision model for software agents. Given a request (intent, natural-language and structured
constraints, budget, context) and a set of candidate services from any protocol (REST, MCP, x402 pay-per-request,
GraphQL, CLI, cloud, workflow nodes) with real-world evidence, it returns one JSON decision: a **single** pick, a
**workflow** DAG, **abstain** (nothing satisfies the hard constraints) or **clarify** (the answer depends on a fact the
request leaves out).
## Contents (14772 rows)
| Subset (config) | Rows | Source | License |
|---|---|---|---|
| `marc` | 9999 | generated for this project (below) | Apache-2.0 |
| `warmup_tool_decision` | 3000 | MaziyarPanahi/AgentToolDecisions-180K (train split; upstream NVIDIA When2Call, Nemotron-SFT-Agentic-v2) | CC BY 4.0 (per-row `license`) |
| `general_instruction` | 1773 | OpenAssistant/oasst2, human-written, top-ranked replies | Apache-2.0 |
`default` is all three, shuffled: the SFT mix. `marc_workflow_abstain` (3,437 rows) repeats the MARC workflow and
abstain rows of `marc`, without the 296 rows Halo holds out of `default` (`test_size: 0.02`, seed 42); the round-2
recipe lists it beside `default` to train those two modes twice. It adds no new data.
Two more configs were added for the round-3 recipe (`marc/configs/sft_qwen35_0.8b_r3.yaml`, listed beside
`default`; built by `marc/r3_data.py`):
| Config | Rows | Source | License |
|---|---|---|---|
| `typed_decisions` | 5860 | [LocalLLaMA/typed-decisions](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) `train` split only (revision `93e940ed`), one row per question, answer = the gold label | Apache-2.0 |
| `warmup_tool_decision_extra` | 2788 | more AgentToolDecisions-180K train rows, same builder and seed as `warmup_tool_decision`, no row id or decision group shared with it | CC BY 4.0 (per-row `license`) |
Both were checked row by row against the typed-decisions **test** split (400 cases) and `MARC-eval-unseen`
(1,000 rows): exact matches and near-duplicates (word 8-gram containment >= 0.6) are dropped. That removed 140
typed-decisions rows (28 train cases close to a test case) and nothing else.
`r4_refresh` (12,131 rows, built by `marc/r4_data.py`) is the round-4 continuation set: every MARC single row and half of
the other MARC rows with their candidates in a new order (same label), plus replay of 2,000 `typed_decisions`, 1,000
warm-up and all general-instruction rows. It repeats existing rows only and leaves out the 192 MARC rows Halo held out
of `default` in round 1. Licenses follow each row's source. Every row has `messages` (system/user/assistant) plus `license`,
`source`, and for MARC rows the full `request_json`, `expected_decision_json`, hidden `label_meta_json` (the
formalised natural-language constraints and the checks behind the label) and `provenance_json` (author and grader
model, provider, model revision, prompt template id, validator version).
MARC mix: single 50.0%, workflow 20.0%, abstain 15.0%, clarify 15.0%. Workflow shapes: linear 745, diamond 627, fan_in 463, fan_out 110, parallel 35, mixed 20.
## How MARC rows were made
1. **Catalog**: 6,250 services from 21 public registries (public-apis, APIs.guru, Zapier, n8n, Pipedream,
MCP directories, Coinbase x402 Bazaar, cloud price lists, OpenRouter, ...). 2,028 services carry
grounded real-world evidence gathered with Firecrawl search, public statuspage.io JSON and HN Algolia: review
scores with platform, scale, count and date; pricing excerpts; status pages; reported issues. A number is kept
only if it appears verbatim, in the right form, in the snippet it cites. Missing evidence is recorded as missing.
2. **Brand-level split**: services are grouped by brand and provider; a group goes wholly to train or to eval.
3. **Authoring**: an open-weight model (gpt-oss-120b, DeepSeek-V4-Flash-0731, GLM-5.3-Flash) writes one scenario
around 2-4 real seed services (their evidence untouched) plus fictional competitors, the gold decision and hidden
label metadata. Ids are replaced by opaque ids and candidates are shuffled.
4. **Code validator**: hard constraints (structured and formalised natural-language), budget, DAG validity and
per-step capabilities, abstain only when nothing is feasible, clarify only when two readings give different
answers, a price role per single pick (the answer is the cheapest candidate at chance rate), no claims that a
real service is malicious, no generation vocabulary in visible text; one repair round with the errors.
5. **Blind grader** from a different model family (GLM-5.3-Flash or Mistral Large 3) decides the same request; the
row is kept only if it reaches the same decision (same services and DAG edges) and rates it realistic and
clear-cut.
6. **Selection**: mode quotas; single picks chosen so cheapest / top-rated / first-listed rates sit at chance;
theme caps (region clarify <= 25%, payment-rule abstain <= 40%).
## Quality checks (from the build report)
| Check | Result |
|---|---|
| Mix (single / workflow / abstain / clarify) | 50.0% / 20.0% / 15.0% / 15.0% |
| Single-pick shortcuts vs chance | cheapest 0.202, top-rated 0.238, first-listed 0.196, chance 0.196 |
| Accepted / attempted (three-way validation) | 12,057 / 23,283 (51.8%) |
| Exact / near duplicates vs eval (MinHash, Jaccard >= 0.6) | 0 / 0 |
| White Circle policy screen (harmful request, harmful assistance, planted-instruction following) | 15,772 of 15,772 rows screened (train + eval); 1 flagged, reviewed by hand (see `marc/reports/screen_review.json`); 1 harmful-intent row removed earlier by manual review |
## Limitations
- Scenarios are synthetic; real seed services are real but competitors are fictional.
- Evidence extraction can keep a non-complaint snippet as a "reported issue".
- Payment-rule wording is frequent in workflow rows (71.4%).
- Labels come from LLM agreement plus code checks; they are not human-verified.
## Models and attribution
Authors: `openai/gpt-oss-120b` (Apache-2.0), `deepseek-ai/DeepSeek-V4-Flash-0731` (MIT), `zai-org/GLM-5.3-Flash`
(MIT). Graders: the same plus `mistral-large-2512` (Mistral Large 3, Apache-2.0). Evidence extraction:
`Qwen/Qwen3-30B-A3B-Instruct-2507` (Apache-2.0). Inference via Nebius Token Factory, Baseten and Mistral; search via
Firecrawl. Third-party data: see `THIRD_PARTY_NOTICES.md` in the code repository.
Team lead: @ivaavimusic