Stagewise and interpretable emergence of inside-outside computation in Transformer-based language models
Read the original on arXiv Computation and Language →The paper investigates how Transformer-based language models learn inside‑outside parsing algorithms by training on synthetic context‑free grammars with variable parse tree topologies. It shows that the learning process unfolds in clear, analytically tractable stages, each linked to the representation of a hidden latent tree variable that resolves ambiguity and leverages broader context. Probing the model’s representations reveals a gradual emergence of inside‑outside computation: early layers capture local bigram/trigram patterns, while deeper layers develop an encoder‑decoder structure that encodes abstract latent information in the middle and refines token predictions in the later layers, mirroring patterns seen in real‑world LLMs.
Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Computation and Language.