Alignment in Time: Peak-Aware Orchestration for Long-Horizon Agentic Systems
Organizations: Lehigh University, Bethlehem, Pennsylvania, USA
Abstract
Traditional AI alignment primarily focuses on individual model outputs; however, autonomous agents in long-horizon workflows require sustained reliability across entire interaction trajectories. We introduce APEMO (Affect-aware Peak-End Modulation for Orchestration), a runtime scheduling layer that optimizes computational allocation under fixed budgets by operationalizing temporal-affective signals. Instead of modifying model weights, APEMO detects trajectory instability through behavioral proxies and targets repairs at critical segments, such as peak moments and endings. Evaluation across multi-agent simulations and LLM-based planner--executor flows demonstrates that APEMO consistently enhances trajectory-level quality and reuse probability over structural orchestrators. Our results reframe alignment as a temporal control problem, offering a resilient engineering pathway for the development of long-horizon agentic systems.
Figures & tables
| Block | Models | Turns | Episodes | Runs (n) | Policies | no_fallback_rate |
|---|---|---|---|---|---|---|
| Strict Long-Horizon | qwen2.5:1.5b, gemma2:2b | 8 | 2 | 20 | task_affect, task_peak_end, apemo | 1.0 |
| Short-Horizon Boundary | llama3.2:1b, qwen2.5:1.5b, gemma2:2b | 2 | 2 | 21 | task_affect, task_peak_end, apemo | 1.0 |
| Trap Recovery (strict) | gemma2:2b | 8 | 1 | 20 | task_peak_end, apemo | 1.0 |
| Multi-Agent Flow | qwen2.5:1.5b, gemma2:2b | 8 | 1 | 16 | flow_plain, flow_temporal, apemo | 1.0 |
| L3 Plan-Execute-Class | llama3.2:1b, qwen2.5:1.5b, gemma2:2b | 2 | 2 | 30 | plan_execute, plan_execute_reflect, task_peak_end, apemo | 1.0 |
| L3 Plan-Execute-Class (Long-Horizon) | llama3.2:1b, qwen2.5:1.5b, gemma2:2b | 8 | 1 | 18 | plan_execute, plan_execute_reflect, task_peak_end, apemo | 1.0 |
| Baseline | Mean Quality | Reuse Prob. | Avg. Frust. |
|---|---|---|---|
| task_peak_end | [0.0525, 0.1055] | [0.0383, 0.0826] | [-0.0306, -0.0071] |
| task_affect | [0.1596, 0.2159] | [0.0861, 0.1433] | [-0.0805, -0.0356] |
| Setting | Quality Gain | Cost Increase |
|---|---|---|
| Long-Horizon ( , vs peak-end) | ||
| Long-Horizon ( , vs affect) | ||
| Short-Horizon ( , vs peak-end) | ||
| Trap Endpoint (vs peak-end) | ||
| Multi-Agent (vs flow_plain) |
Long-Horizon LLM Agents
Long-horizon large language model agents plan, use tools, and preserve task state across extended, multi-step interactions.
See all 446 papers