Layer-Level Control of Language Model Execution in Agent Frameworks

Ran Guan, Yiqi Lin, Xiangxi Tian, Yige Luo, Mi Zhou
11/22/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Agent frameworks typically orchestrate language models through prompt-and-response interfaces. We propose a harness design that exposes intermediate model states and layer-level execution controls to the agent runtime.

Show full abstract

By connecting state collection, policy fitting, and execution, the design enables policies to allocate computation within and across models based on intermediate states. We demonstrate the approach with a prototype that learns stitching bridges and state-conditioned execution policies from paired model states, then applies them during inference to select among continue, exit, and stitch. For dispatcher supervision, we select the least-computation action whose full-vocabulary next-token prediction matches the source model's full-depth prediction, using continue when neither early action matches. We train these components on a frozen proxy corpus of 5,000 typed-decision items authored using source texts sampled from WildChat conversations, then evaluate the prototype on JevBench measuring task accuracy, agreement with full-model predictions, and end-to-end latency including runtime overhead. Preliminary results show an approximately 15% reduction in mean latency while maintaining task accuracy comparable to full-model inference.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guan2026layerlevel,
  title  = {Layer-Level Control of Language Model Execution in Agent Frameworks},
  author = {Ran Guan and Yiqi Lin and Xiangxi Tian and Yige Luo and Mi Zhou},
  year   = {2026},
  eprint = {2611.29519},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.29519v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.29519.svg)](https://codeofpaper.com/paper/2611.29519)

Discussion