Dynamic Shaping: Acquiring Interfaces and Constructing Execution over Frozen Pretrained Components

Nathaniel OharXiv 2026 · arXiv

TL;DR

Dynamic Shaping is a new framework for building functional neural controllers by assembling frozen, pretrained components like Lego blocks. Instead of fine-tuning a model's weights, the method learns how to "wire" these existing parts together to solve new tasks, achieving a 98% success rate in a ViZDoom navigation task using only 110 learned parameters.

What Problem Does This Paper Address?

In modern AI, we usually "fine-tune" pretrained models by slightly adjusting millions of weights to fit a new task. But what if we treated a pretrained model not as a single block to be molded, but as a library of specialized functions?

The authors tackle the challenge of autonomous construction: how can a system take a "bank" of frozen, pretrained neural components and figure out—on its own—which ones to use and how to connect them to solve a specific problem? This is particularly difficult when there is no "teacher" to imitate and no existing reference implementation to copy. The goal is to move from monolithic fine-tuning toward a more modular, "plug-and-play" approach to neural execution.

Methods

The authors introduce a procedure called Dynamic Shaping, which operates over a fixed inventory of scalar neural components (specifically, SwiGLU gates extracted from a Qwen3-0.6B model). The process follows a four-step loop:

  1. Profile: The system measures the local response and sensitivity (partial derivatives) of all available components at the states the agent actually visits.
  2. Rebind: It uses "task-gradient alignment" to rank which unused components might better serve the current task compared to the ones currently "plugged in."
  3. Transport: This is the mathematical heart of the paper. When swapping component A for component B, the system calculates an affine transport—a way to adjust the input/output interfaces so that B mimics A’s behavior and sensitivity as closely as possible. This prevents the "shock" of a discrete swap from breaking the policy.
  4. Retain: The system evaluates the new arrangement in the environment. If it performs better, the change is kept; otherwise, it rolls back.

While the core components remain frozen, the system learns a tiny set of "interface" parameters (only 110 real values) using Proximal Policy Optimization (PPO) to bridge the gap between raw pixels and the action outputs.

Datasets

The method was evaluated using ViZDoom Basic, a classic reinforcement learning benchmark where an agent must move and shoot a target in a 3D environment.

  • Observations: Raw 160x120 RGB pixels.
  • Evaluation: 300 controller/episode pairs across 100 shared held-out game seeds.
  • Source Material: 24 scalar components derived from the Qwen3-0.6B language model.

Key Insights and Ideas

  • The Transport Identity: The authors derived an exact mathematical identity that relates the error in "transporting" a component to the resulting change in the agent's action probabilities. This allows the system to swap parts with predictable effects on the agent's "sensitivity" to its environment.
  • Pretrained Models as Function Banks: The paper demonstrates that you don't need the original transformer's attention graph or its massive weight matrix to do useful work. You can "harvest" specific activation functions and repurpose them for a completely different modality (pixels-to-actions).
  • Interface vs. Structure: Interestingly, the study found that just tuning the interfaces (the wiring) was often as effective as changing the bindings (the parts themselves) for this specific task. However, the "rebinding" mechanism provides a path for structural evolution that simple gradient descent cannot reach.
  • Auditable Reproducibility: The authors include a "cost ledger" and ensure that all 1,200 recorded outcomes replay exactly, addressing the often-criticized "reproducibility crisis" in reinforcement learning.

Key Results

  • Reliability Boost: Initial random arrangements of components succeeded in only 86 out of 300 trials (~28%). After Dynamic Shaping, the success rate jumped to 295 out of 300 (~98%).
  • Extreme Parameter Efficiency: The entire controller was managed by just 110 learned parameters. For context, most modern "small" models have millions.
  • Zero-Reference Acquisition: The system achieved these results without any human demonstrations, target coordinates, or pre-existing successful controllers to learn from. It learned purely through environmental feedback (rewards).

Limitations and Future Work

  • Task Complexity: ViZDoom Basic is a relatively simple "move-and-shoot" task. It remains to be seen if this modular assembly can scale to complex reasoning or long-horizon planning.
  • Causal Benefit of Pretraining: The paper does not explicitly compare these pretrained components against random weights. While the components work, the "causal benefit" of them being pretrained on language is not the focus of this specific study.
  • The "Second Task" Challenge: The authors note that the next big question is "continuing acquisition"—can the system learn a second, different task while retaining the interfaces and components it learned for the first? This would be a major step toward true lifelong learning.

Summary updated

Abstract

We introduce Dynamic Shaping, a method for constructing executable neural arrangements through acquired response and partial-derivative interfaces over frozen pretrained components. The method learns local descriptions of available computation, ranks component rebindings using task-gradient alignment, transports the current interface across a rebinding, and retains changes through behavioral feedback. Continuous interface acquisition uses proximal policy optimization; the source coefficients remain fixed. We derive an exact identity relating transport error in component responses and partials to changes in action logits and their sensitivities. A pixels-only ViZDoom Basic study evaluates first task acquisition without a competent reference controller, demonstrations or intact response targets. Across three initializations and 100 shared held-out game seeds, initial arrangements succeed on 86/300 controller/episode pairs; joint interface-and-binding construction succeeds on 295/300. Fixed-binding interface acquisition also reaches 295/300. Each policy executes four source fragments, with 110 acquired interface values and fixed random visual and action projections. The artifact includes all candidate trials, interventions and costs; all 1,200 recorded initial/retained outcomes replay exactly. The contribution is an explicit profile, rebind, transport and retain procedure and a reproducible reference-free acquisition case over frozen pretrained computation.
BibTeX
@misc{oh2026dynamic,
  author = {Nathaniel Oh},
  title = {{Dynamic Shaping: Acquiring Interfaces and Constructing Execution over Frozen Pretrained Components}},
  year = {2026},
  eprint = {2611.20573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20573},
}
Figure