When fine-tuning or modifying a deep neural network, our natural instinct is often symmetrical: if a network has 24 layers, we should probably add our new parameters or modules uniformly across all 24 layers. This uniform strategy underpins early implementations of parameter-efficient fine-tuning (PEFT), where bottleneck adapters or low-rank adaptation (LoRA) matrices were inserted identically into every transformer block.
However, recent research reveals that neural network architectures are highly sensitive to the exact positioning of these auxiliary modules. Where you place a module matters just as much as what that module does. Treating a network as a uniform stack ignores its inherent functional hierarchy. By strategically optimizing module placement, we can achieve better performance, faster training convergence, and significantly lower computational overhead.
The Macro View: Layer Depth and Semantic Hierarchy
To understand why placement matters, we must look at how representation changes as data flows through a deep network. Early layers typically extract general, low-level features (such as edges in an image or basic syntax in text). Higher layers compose these primitives into complex, task-specific semantics.
Placing modular components uniformly across this gradient creates a fundamental mismatch:
- Early layers need stability. Forcing adaptation or token reduction too early can disrupt the extraction of foundational features. For instance, Michael S Ryoo et al. demonstrate in TokenLearner: Adaptive Space-Time Tokenization for Videos that while adaptive token reduction slashes computational costs, its success depends heavily on maintaining dense, low-level features in early layers before aggressively mining tokens later in the network.
- Higher layers capture task semantics. Because high-level task features are best captured near the output stages, focusing adaptation on later layers is often more effective. Shaoxiong Feng et al. leverage this in Hierarchical Inductive Transfer for Continual Dialogue Learning, showing that higher-layer placement yields superior performance for task-specific steering. Similarly, Haoxing Chen et al. show in Efficient Transfer Learning for Video-language Foundation Models that placing adapters closer to the output allows the model to leverage the general feature extraction of lower layers while specializing high-level representations.
This asymmetry means we can often drop adapters from early layers entirely. Using automated search configurations, Han Zhou et al. demonstrate in AutoPEFT: Automatic Configuration Search for Parameter-Efficient Fine-Tuning that concentrating parameter-efficient modules in the middle and late layers—while disabling them early on—maintains downstream performance while drastically reducing the parameter footprint.
However, this does not mean early layers should always be ignored. The optimal depth depends entirely on the module's mechanism. For example, Jikun Kang et al. find in LM2: Large Memory Models for Long Context Reasoning that incorporating a dedicated memory module solely in early layers can actually hinder training convergence, requiring a more distributed integration strategy across the architecture.
The Micro View: Component-Level Targeting
Zooming into an individual network block—such as a Transformer layer—reveals another dimension of placement sensitivity: the choice between the Multi-Head Attention (MHA) component and the Feed-Forward Network (FFN) component.
Uniform Placement (Suboptimal) Strategic Placement (Optimal)
[ Transformer Block ] [ Transformer Block ]
├── Attention + Adapter ├── Attention + LoRA
└── FFN + Adapter └── FFN + LoRA / Bottleneck
Different adaptation mechanisms interact uniquely with these internal components:
- LoRA vs. Bottleneck Adapters: In LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models, Lei Wang et al. show that sequential and parallel bottleneck adapters yield the best results when integrated directly into or near FFN blocks. Conversely, Low-Rank Adaptation (LoRA) performs most effectively when applied to both the attention and FFN components simultaneously. This pattern is reinforced by Xiongtao Zhou et al. in An Empirical Study on Parameter-Efficient Fine-Tuning for MultiModal Large Language Models, confirming that bottleneck adapters achieve peak performance when focused exclusively on FFN components.
- Conditional Computation and MoEs: When replacing standard layers with conditional computation, like Mixture-of-Experts (MoE), internal positioning dictates information flow. Bo Li et al. show in Mixture-of-Expert Conformer for Streaming Multilingual ASR that replacing the terminal FFN in a multi-stage block is significantly more effective than replacing the initial one, proving that the structural position of conditional layers is a critical design choice.
Structural Routing: Encoders, Decoders, and Stacking
When working with multi-module architectures—such as encoder-decoder networks, multi-modal pipelines, or stacked sequential adapters—the placement problem expands to macro-structural routing.
Encoder vs. Decoder Boundaries
In sequence-to-sequence tasks, the choice of whether to adapt the encoder or the decoder can dictate whether a model trains at all. In Multilingual Generation in Abstractive Summarization: A Comparative Study, Jinpeng Li et al. discover that positioning modular adapters at the end of the encoder yields superior results, whereas placing them at the start of the decoder can completely impede the training process and prevent convergence.
Similarly, when applying modular components to vision-language pipelines or medical segmentation models, Yujin Oh et al. note in Distribution-aware Fairness Learning in Medical Image Segmentation From A Control-Theoretic Perspective that there is no universal heuristic; the optimal positioning of fairness or expert modules varies drastically between encoders and decoders, as well as between convolutional and transformer backbones.
Sequential Stacking Order
When multiple specialized modules are layered within the same block, their relative order creates an implicit pipeline. For example, Anne Lauscher et al. demonstrate in Fair and Argumentative Language Modeling for Computational Argumentation that when stacking a debiasing adapter and a task-specific adapter, placing the debiasing layer closer to the input than the task-specific layer significantly alters the effectiveness of both bias removal and downstream task performance.
Beyond Heuristics: Automated Placement Search
Historically, finding these optimal insertion points has been a "black art" relying on empirical trial and error, as noted by Minchul Kim et al. and Qibo Qiu et al.. To move past manual heuristics, modern architectures increasingly rely on automated search frameworks to discover optimal placement topologies.
Manual Trial-and-Error Automated Search (NAS / Bayesian)
[Layer 1] -> Try Adapter? [Search Space] -> Multi-Objective Evaluation
[Layer 2] -> Try Adapter? │ (Accuracy vs. Parameter Count)
[Layer 3] -> Try Adapter? ▼
[Optimal Topology Discovered]
For instance, Xiaojie Jin et al. introduce Neural Architecture Search for Lightweight Non-Local Networks (AutoNL), utilizing a differentiable neural architecture search to automate the placement of expensive non-local attention blocks. By letting the framework optimize where these blocks are inserted, they successfully balance global feature integration with a strict mobile computational budget.
Similarly, the aforementioned AutoPEFT framework by Han Zhou et al. uses multi-objective Bayesian Optimization to navigate the massive combinatorial space of module types, sizes, and layer placements.
Ultimately, these automated methods confirm what the empirical evidence suggests: the internal landscape of a deep neural network is highly non-uniform. Maximizing the power of parameter-efficient fine-tuning requires us to abandon uniform placement in favor of strategic, structural targeting.
Key Foundational Work
Lightweight Adapter Tuning for Multilingual Speech Translation (2021) — contributed 2 concept elements to this direction.
Speaker Representation Learning Using Global Context Guided Channel and Time-Frequency Transformations (2020) — contributed 1 concept elements to this direction.
Learning Visual Context by Comparison (2020) — contributed 1 concept elements to this direction.