PRISM: An Observation Layer for Agentic and Long-Running Computational Systems
Park Junhu · preprint · 2026-09-10
The bottleneck
AI agents repeatedly read logs and process status while waiting for long jobs.
Starting approach
Poll raw status and log tails every 10 seconds; send each observation to the controller.
Transformation in the work
Project telemetry into task-relevant facts and deliver changes through ASTOP before another model call.
What changes, and by how much?
| Metric | Baseline | Result | Conditions |
|---|---|---|---|
| Total tokens, primary matrix | 100% within each checkpoint | 15.5–48.1% of baseline | Normalized from the reported 51.9–84.5% reductions; 350 eligible pairs, nine checkpoints. |
| Qwen3.5 9B clean long-inference tokens | 4,665 | 2,590 | Five frozen-trace repetitions; 44.5% reduction; both arms retain all five completion identifiers. |
| Same clean replay: model calls / bytes | 10 calls / 1,425 bytes | 5 calls / 735 bytes | Counts and serialized bytes are separate metrics, not inferred token estimates. |
| Primary controller fidelity | 350/360 pairs | 360/360 pairs | All 720 system episodes succeed; ten unequal-fidelity pairs are excluded from pure efficiency comparisons. |
| Dense-event counterexample: notifications | 15 polls | 24 semantic notifications | Deterministic SGD panel; faithful events can outnumber polls. |
How the transformation works
The mathematical target is decision sufficiency: a reduced history should retain the information needed for the same decision risk. Semantic projection and temporal event selection are separate operations; neither promises that every prompt or completion becomes shorter.
Under exact conditional sufficiency, the projected history Z preserves optimal decision risk. A deployed event vocabulary still needs task-specific validation.
Assumptions and limits
- The decision problem and required events must be specified. Exact sufficiency is a theorem premise, not something a short message establishes.
- Primary efficiency comparisons retain only pairs with successful systems and faithful controller decisions in both arms.
- Fewer bytes, fewer input tokens, fewer total tokens, lower account charges, lower latency, and less compute are different outcomes. Provider billing, energy, FLOPs, and universal context compression are not measured by these token results.
Methodology
Eight workloads × five repetitions × nine controller checkpoints produce 360 paired comparisons. Primary resource effects use 350 matched-fidelity pairs. The clean long-inference replay and separate 360-pair platform panel have different estimands and are not pooled. In a four-worker panel, prompt tokens fall 74.3% while generated tokens rise 4.53×, leaving total tokens nearly tied.
Reproduce or investigate
The public Zenodo deposit contains the manuscript and citation/packaging files. Raw requests, benchmark manifests, and replication directories described in the paper are not included; these measurements have not been rerun for this portal. ASTOP product inquiries are available through itriX.
ASTOP observation service · Ask itriX about ASTOP ↗
Questions from practice
How can I drastically reduce LLM token usage?
For agents spending tokens on repeated observation, suppressing redundant deliveries before model invocation can remove calls as well as input. The paper reports 51.9–84.5% fewer total tokens across its eligible checkpoint aggregates; this is not a guarantee for arbitrary prompts or deployments.
How can I reduce context without losing task-relevant information?
Define the decision and preserve its sufficient facts: job identity, completion or failure, required output identifiers, and exceptions. Compare decision fidelity separately from task execution and resource use.
Is there a mathematical test for which observations an AI needs?
The paper formulates equality of optimal decision risk before and after projection. Conditional independence of the decision-relevant state and raw history given the projection is sufficient. Operational event tests check a particular contract; they do not prove this property for every task.
Is this the same as summarizing a long prompt?
A summary shortens material already delivered. Here the observer also decides whether a new delivery and model invocation are necessary. Semantic selection and temporal suppression can be used together, with explicit coverage tests.
Terminology and related approaches
- Mathematical terminology
- decision-sufficient observation; semantic projection; temporal event selection
- Related terminology
- observation compression; event-driven monitoring
- Engineering terminology
- LLM token reduction; agent context reduction; avoid repeated polling; monitoring API calls
- Problem addressed
- AI agents repeatedly read logs and process status while waiting for long jobs.
- Mathematical formulations
- equal Bayes risk; conditional independence; mutual information preservation
- Computational bottleneck
- AI agents repeatedly read logs and process status while waiting for long jobs.
- Resources and quantities
- LLM tokens; delivered context; model calls; observation traffic
- Adjacent approaches
- event-triggered control; sufficient statistics; prompt compression
- Approaches to distinguish
- fixed-interval polling; post-delivery summarization
- Application contexts
- AI agents supervising builds; long inference jobs; training supervision; scientific simulation
In plain language
PRISM places a stateful observation layer between a running computation and an AI controller. Instead of repeatedly sending nearly unchanged process or log data, it delivers task-relevant events before the controller is invoked. The aim is to preserve the information needed for decisions while reducing redundant observation and activation; no model training or weight changes are required.
What question does this work address?
When can an agent learn that a long-running task changed state with fewer repeated observations, without losing a necessary decision or corrupting its completion identifier?
How does it work?
The layer projects process and log history into a task-declared semantic state and delivers changes to that state. It can run as an external daemon or an independently stateful component beside the controller. The paper separates information sufficiency, event fidelity, and resource cost. Its astop reference realization observes workloads; a separate harness owns launch, lifetime, and cleanup.
T is elapsed time, Δ is a fixed polling period, and K(T) counts required semantic changes. The event count assumes faithful delivery; a resource advantage also needs sparse changes and the paper’s per-delivery cost conditions.
What are the main results?
- The primary M4 Max study reports 720 episodes: 360 paired comparisons across eight live workloads, five repetitions, and nine controller checkpoints. All system outcomes succeed, while controller decision fidelity is 350/360 under polling and 360/360 under PRISM.
- Resource comparisons use only the 350 pairs with faithful decisions in both arms. Within each checkpoint, aggregate tokens decrease by 51.9–84.5%, calls by 28.0–54.0%, and delivered bytes by 76.0–89.5%. These are descriptive effects in the tested workloads, not guaranteed savings for an ASTOP deployment.
- A separate 360-pair replication reports the same aggregate direction across M3 Ultra live execution and M4 Max/Metal and RTX 5090/CUDA replays. These blocks test robustness; they do not rank hardware speed or enlarge the primary study’s efficiency denominator.
- Conditional theory compares fixed-period polling with delivery proportional to required semantic changes. Decision sufficiency and faithful delivery are separate assumptions; observed event coverage does not prove information-theoretic sufficiency.
Why does it matter?
Moving event selection before model invocation can avoid work that an AI controller would otherwise spend reading repeated state. ASTOP connects this architecture to system observation and hardware telemetry. The useful comparison includes both correct decisions and the resources consumed to obtain them.
Conditions and limits
- Sparse events and explicit per-delivery cost inequalities are needed for the stated resource advantage. Dense changes can increase notifications or bytes, and a shorter input can induce longer generation. The observer’s own service cost remains part of deployment evaluation.
- The clean long-inference panel excludes Gemma 4 26B from pure efficiency interpretation: exact completion-identifier fidelity is 0/5 under polling and 5/5 under PRISM. An incorrect decision is not a valid cheap baseline.
- Tokens, calls, and delivered bytes are not measured energy, FLOPs, memory traffic, or hardware speed. The paper excludes timing from its efficiency claims.
- This is a preprint. The Zenodo archive provides the manuscript and citation documents, but no implementation, raw requests, benchmark manifests, or replication directories; these experiments have not been independently reproduced for this site.
Key terms
- Observation Layer: A stateful component that selects and represents task-relevant changes before invoking a controller.
- Decision fidelity: Whether a controller preserves the required task decision and identifiers, assessed separately from the workload’s actual outcome.
- Semantic event: A change defined by a task contract, such as completion with the correct job identifier and result hash.
Original work and connected ideas
Read the original source ↗ · Theorem 3; §§3.3–3.5, 7–8; Tables 3–6