Building LLMs Like LEGO: Two-dimensional Architecture Reassembly of Large Language Models
Abstract
Pretrained large language models (LLMs) are typically reused as indivisible artifacts, adapted, merged, or ensembled as a whole.In this study, we show that LLMs can instead be structurally recomposed as modular building blocks to create new architectures without access to original training data.We introduce architecturelevel reassembly as a new reuse paradigm, in which Transformer blocks from heterogeneous models are treated as reusable components.This idea is formalized through a twodimensional reassembly space that supports both vertical recombination across depth and horizontal composition within layers.To make this space tractable, we propose a chromosomebased architectural encoding and perform a bilevel multi-objective evolutionary optimization over vertical structure and horizontal composition.To resolve representation incompatibility across heterogeneous blocks, we introduce lightweight glue layers trained via data-free knowledge distillation, enabling valid information flow without modifying pretrained parameters.Our results demonstrate that architecturelevel reassembly unlocks a new dimension of flexibility in model reuse, pointing toward a modular and evolutionary view of LLM design.
Fields of Study & Subjects
Natural Language Processing Techniques
Mathematics
Computing
and Information Processing
Model-Driven Software Engineering Techniques
Publication details
- Journal / source
- Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
- Publisher
- Association for Computational Linguistics
- Pages
- 44939–44956
- Publication date
- 1 January 2026