artificial intelligence

Hidden APIs in Language Models: Discovering Reusable Causal Interfaces from Forked Futures

arXiv:2607.27617

summary

The paper introduces a technique called forked futures that samples future operations after a prefix state to compare hidden states of language models, enabling the discovery of reusable causal interfaces without predefined latent labels. Experiments on Qwen2.5-1.5B and Llama-3-8B show that a shared interface reduces description length and improves target correctness.

Abstract

Identical language-model answers can arise from hidden states that support different future computations, so current-answer probes do not establish a reusable internal interface. We introduce forked futures: future operations are sampled only after a prefix state has formed, and states are compared through the response distributions induced by those operations. This yields an empirical causal quotient over hidden states without requiring researcher-specified latent labels. Shared, Local, Mixture, and Distributed interfaces then compete under prequential causal description length subject to future-signature fidelity and matched capacity constraints. In the two detailed model evaluations, Shared has the lowest held-out description length, with gains of 0.216 nats on Qwen2.5-1.5B and 0.294 nats on Llama-3-8B, while maintaining tightly clustered mean future-signature distortion; a five-backbone sweep preserves the positive direction of Sharedness Gain. The figure-aligned transplantation analysis gives Shared the strongest joint target-correctness, locality, copy-preservation, and composite profile, and API-aligned paths mediate 0.749 of the target effect versus 0.150 for matched null paths. In the blind four-class model-organism test, 14/16 architectures are recovered, with one observed non-Shared to Shared error among 12 non-Shared organisms. These results support an economical reusable causal interface within the tested operation banks, while keeping the claim explicitly conditional on the candidate architectures, interventions, and held-out futures.

Topics & keywords

#language models#causal inference#hidden state analysis#model interpretability#forked futuresforked futuresprequential causal description lengthshared interfacelatent state probingQwen2.5Llama-3