skills/skillxiv-v0.0.2-claude-opus-4.6/emergent-temporal-abstraction/SKILL.md
Discover hierarchical temporal abstractions within autoregressive models via internal RL, enabling efficient exploration of sparse-reward tasks. Metacontroller learns abstract action sequences modifying residual streams, switching gates enable quasi-binary patterns, and abstract-space RL achieves many orders-of-magnitude speedup over token-level learning.
npx skillsauth add ADu2021/skillXiv emergent-temporal-abstractionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This technique enables autoregressive models to learn hierarchical behaviors through discovery of temporal abstractions, dramatically accelerating learning on sparse-reward tasks.
Internal RL with Discovered Abstractions:
class HierarchicalARModel:
def __init__(self):
self.base_ar_model = PretrainedAutoregressive()
self.metacontroller = MetacontrollerPolicy()
self.abstract_controllers = nn.ModuleList()
def forward_hierarchical(self, state):
# Metacontroller generates abstract action sequence
abstract_actions = self.metacontroller.sample_actions(state)
# Each abstract action is a sequence of residual stream modifications
output = self.base_ar_model.initial_forward(state)
for t, abstract_action in enumerate(abstract_actions):
# Apply abstract action via residual stream modification
controller_output = self.abstract_controllers[abstract_action](output)
output = output + controller_output # Residual addition
# Check switching condition
if self.should_switch(output, t):
break # Move to next abstract action
return output
Switching Gates and Temporal Patterns:
def switching_gate_mechanism(features, temperature=1.0):
"""
Binary switching via gating, creating sparse temporal patterns.
"""
gate_logits = nn.Linear(hidden_dim, 1)(features)
gate_prob = sigmoid(gate_logits / temperature)
# Gumbel-softmax for differentiable sampling
gate_sample = gumbel_softmax(gate_prob)
return gate_sample
RL in Abstract Space:
def abstract_space_rl(model, env):
for episode in range(num_episodes):
state = env.reset()
abstract_actions = model.metacontroller.sample_actions(state)
# Accumulate token-level transitions
tokens = []
for abstract_action in abstract_actions:
token_sequence = model.forward_with_controller(abstract_action, state)
tokens.extend(token_sequence)
state = env.step(tokens)
# RL update on abstract actions, not tokens
reward = env.get_reward()
log_prob = model.metacontroller.log_prob(abstract_actions)
loss = -reward * log_prob
loss.backward()
Use when: Sparse-reward tasks, token-level RL too slow, hierarchical structure evident.
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.