Abstract
Large language and vision models (LLVMs) have been driven by the generalization power of large language models (LLMs) and the advent of visual instruction tuning. Along with scaling them up directly, these models enable LLVMs to showcase powerful vision language (VL) performances by covering diverse tasks via natural language instructions. However, existing open-source LLVMs that perform comparably to closed-source LLVMs such as GPT-4V are often considered too large (e.g., 26B, 34B, and 110B parameters), having a larger number of layers. These large models demand costly, high-end resources for both training and inference. To address this issue, we present a new efficient LLVM family with 1.8B, 3.8B, and 7B LLM model sizes, Traversal of Layers (TroL), which enables the reuse of layers in a token-wise manner. This layer traversing technique simulates the effect of looking back and retracing the answering stream while increasing the number of forward propagation layers without physically adding more layers. We demonstrate that TroL employs a simple layer traversing approach yet efficiently outperforms the open-source LLVMs with larger model sizes and rivals the performances of the closed-source LLVMs with substantial sizes.
Introduction
The current landscape of Large Language and Vision Models (LLVMs) is dominated by a scaling paradigm where performance gains are primarily sought through increasing parameter counts. State-of-the-art models often reach sizes of 26B to 110B parameters, making them computationally expensive and difficult to deploy on consumer hardware. While smaller models exist, they frequently struggle with the complex reasoning required for high-level visual understanding. TroL (Traversal of Layers) addresses this by rethinking model depth, proposing that computational depth can be achieved through the reuse of existing parameters rather than the physical addition of new layers.
Methodology: The TroL Architecture
The core innovation of TroL is the TroL-Layer, which implements a token-wise layer traversal mechanism. In a standard transformer architecture, a token $x$ passes through a layer $L$ once. In contrast, the TroL-Layer allows the model to perform a second forward pass through the same physical layer, effectively computing $L(L(x))$.
To manage this process, the authors introduce the TroL-Mixer, a lightweight gating mechanism. The TroL-Mixer evaluates the output of the first pass and determines the appropriate weighting for the second "re-examined" pass. The final output is a weighted combination of both passes:
$Output = (1-w) \odot L(x) + w \odot L(L(x))$
This approach allows the model to "re-read" or refine its internal representations dynamically. The additional parameter overhead is minimal—only 131K parameters for the 7B model—while providing the functional benefits of a much deeper network.
Training and Evaluation
TroL models (1.8B, 3.8B, and 7B) were trained on a comprehensive dataset of 2.3 million visual instruction tuning samples. This dataset covers general vision, document reasoning, and mathematical tasks. The training followed a two-stage process: initial alignment of the vision projector and TroL-Mixers, followed by full-system instruction tuning using Q-LoRA.
Evaluation was performed across several rigorous benchmarks, including MMBench (MMB) and MME, to test the models' reasoning and recognition capabilities against both open-source and proprietary giants.
Results and Discussion
TroL demonstrates exceptional efficiency, consistently outperforming models with significantly higher parameter counts. TroL-7B, for instance, surpasses open-source models like LLaVA-NeXT-34B and InternVL-1.5-26B.
Key findings include:
- Efficiency: TroL-7B rivals the performance of closed-source models such as GPT-4V and Gemini-Pro on MMB and MME benchmarks.
- Scalability: Even the 1.8B parameter version of TroL outperforms many 7B and 13B models using standard architectures.
- Dynamic Depth: Analysis of the gating mechanism reveals that layer traversal is most utilized in the shallower layers of the model, where initial feature extraction and alignment occur, and becomes less frequent as features mature in deeper layers.
Conclusion
TroL presents a compelling alternative to traditional model scaling. By traversing layers instead of adding them, TroL achieves high-tier performance with a fraction of the parameters. This "re-thinking" approach suggests that future LLVM development can focus on smarter computation paths rather than just larger physical architectures, paving the way for more accessible and efficient high-performance AI.
Summary updated