Growing Transformers: Modular Composition and Layer-wise Expansion on a Frozen Substrate

A. Bochkov
7/8/2025
cs.LGcs.CL

No official code found. Best implementation: AVBochkov/Embeddings (2 stars, Apache-2.0, last commit 2025-10-20).

Abstract

The prevailing paradigm for scaling large language models (LLMs) involves monolithic, end-to-end training, a resource-intensive process that lacks flexibility. This paper explores an alternative, constructive scaling paradigm, enabled by the principle of emergent semantics in Transformers with frozen, non-semantic input embeddings. We posit that because high-level meaning is a compositional property of a Transformer's deep layers, not its input vectors, the embedding layer and trained lower layers can serve as a fixed foundation. This liberates backpropagation to focus solely on newly added components, making incremental growth viable. We operationalize this with a layer-wise constructive methodology that combines strict layer freezing in early stages with efficient, holistic fine-tuning of the entire model stack via low-rank adaptation (LoRA) as complexity increases. This method not only demonstrates stable convergence but also reveals a direct correlation between model depth and the emergence of complex reasoning abilities, such as those required for SQuAD, which are absent in shallower models. In a controlled study, our constructively grown model rivals the performance of a monolithically trained baseline of the same size, validating the efficiency and efficacy of the approach. Our findings suggest a path towards a paradigm shift from monolithic optimization towards a more biological or constructive model of AI development. This opens a path for more resource-efficient scaling, continual learning, and a more modular approach to building powerful AI systems. We release all code and models to facilitate further research.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Constructing Transformer language models in which the token embedding layer is entirely frozen and derived not from data-driven optimization, but from the visual structure of Unicode glyphs and token-level n-gram renderings

21Python, Jupyter NotebookJun 27, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{bochkov2025growing,
  title  = {Growing Transformers: Modular Composition and Layer-wise Expansion on a Frozen Substrate},
  author = {A. Bochkov},
  year   = {2025},
  eprint = {2507.07129},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.07129v2}
}

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/2507.07129.svg)](https://codeofpaper.com/paper/2507.07129)

Discussion