---
title: "Trajectories That Segment Themselves: Agent-Declared Boundaries as a Training Unit"
source: "arXiv AI/CL/LG（论文）"
source_tier: "t2"
url: "https://arxiv.org/abs/2608.02302v1"
permalink: "https://feed.astralor.com/items/itm_b804fa0df6cd006fe7434389"
published: "2026-08-03T14:27:58.000Z"
score: 78
channel: "ai"
tags: ["DPO","Agent","Training Data","Semantic Self-segmentation","Long-horizon Trajectory"]
---

# Trajectories That Segment Themselves: Agent-Declared Boundaries as a Training Unit

## AI commentary

> This paper deserves attention for proposing an external-label-free trajectory segmentation method, valuable for researchers in agent training and reinforcement learning. It turns data construction into a process of agent self-declaration, an idea worth borrowing.

## At a glance

Long-horizon coding-agent trajectories are poorly matched to training credit units: single actions lack stable value, episode labels mix effective exploration with abandoned directions, and fixed windows cut arbitrarily. This paper introduces collection-time semantic self-segmentation, where a declarative contract makes the agent declare its own boundaries during trajectory generation. With falsifiable causal hypotheses, these segments are variable-length semantic phases, requiring no gold patches or retrospective segmenters. Because the agent names its conjecture, reviewers can negate it by name, producing wrong-cause-then-correction transitions. Experiments show that given cut points without hypotheses, models attribute action blocks to governing hypotheses at over twice chance, beating equal-length blocks. A code-blind annotator matches 24 of 40 boundaries versus random 11.5, while mechanical rules fail. Downstream, DPO on 2,551 phase-boundary pairs changes no decision on 91 adversarial items, but four of 60 matched items change from wrong to right, with no changes in controls. Boundary-based training is coherent and not cheaply reproducible.

## Key points

- Proposes collection-time semantic self-segmentation, where agents declare boundaries during trajectory generation, avoiding fixed windows or retrospective segmentation.
- Experiments show model attribution to hypotheses beats chance significantly, and boundaries are not reproducible by mechanical rules.
- DPO with boundary pairs corrects errors on matched-construction items but not adversarial ones, suggesting corpus diversity is the next key lever.

## Full text

Long-horizon coding-agent trajectories are poorly matched to the credit units available to train on: a single action has no stable value, an episode label merges productive exploration with abandoned directions, and a fixed window cuts where the logging mechanics fall. We introduce collection-time semantic self-segmentation, in which a declarative contract has the acting agent expose its own boundaries while the trajectory is generated. Instantiated with falsifiable causal hypotheses, successive adoptions expose variable-length semantic phases, and no milestone vocabulary, gold patch, environment replay, teacher logits, or retrospective segmenter places a boundary. Because the agent names its conjecture, a reviewer can negate it by name, which lets our protocol manufacture wrong-cause-then-correction transitions that recorded work rarely contains; one collection then yields four supervised targets, including audit supervision from exactly the failed regions an episode label discards. We then ask what survives deleting the declaration. Given the cut points but not the hypothesis, a model attributes action blocks to their governing hypothesis at over twice chance, beating equal-length blocks over the same trajectories (paired sign test $p = 0.0002$), surviving a lexical control and collapsing under label permutation. Asked instead to place boundaries, a code-blind annotator matches 24 of 40 where random placement matches 11.5, while a mechanical test-event rule beats chance at neither end of a strict-to-permissive sweep. The segments are therefore coherent and not cheaply reproducible. Downstream, DPO on 2,551 phase-boundary pairs changes no decision on 91 adversarial held-out items, while four of 60 change on matched-construction items, all wrong to right, where two controls change none: with 1,825 pairs from one generator, the variable to vary next is corpus diversity, not the boundary.

---

Verify against the original before citing; curated by Astral Feed: https://feed.astralor.com/items/itm_b804fa0df6cd006fe7434389
