Trainable components are the specific, minimal set of parameters or modules within a neural network that are updated during a parameter-efficient fine-tuning (PEFT) process. This contrasts with full fine-tuning, where all model weights are trainable. In PEFT, the large frozen backbone of the pre-trained model is preserved, and adaptation is achieved solely by optimizing these small, strategically introduced components, such as adapters, prefixes, or low-rank matrices. This approach drastically reduces computational cost and memory footprint while mitigating catastrophic forgetting.
Glossary
Trainable Components

What are Trainable Components?
In parameter-efficient fine-tuning (PEFT), trainable components are the small, added modules or selected parameter subsets that are updated during training, while the vast majority of the pre-trained model remains frozen.
These components are the core delta—the learned change applied to the base model. Common types include Low-Rank Adaptation (LoRA) matrices, adapter modules inserted into transformer blocks, and continuous prompt embeddings for prefix tuning. The design and selection of trainable components define the PEFT method, balancing parameter efficiency, task performance, and inference latency. Their modular nature enables techniques like AdapterFusion for multi-task learning and supports efficient deployment in production and on edge devices.
Key Characteristics of Trainable Components
In parameter-efficient fine-tuning (PEFT), trainable components are the small, added modules or selected parameter subsets that are updated, while the vast majority of the pre-trained model remains frozen. Their design is central to achieving efficient adaptation.
Additive Parameterization
This is the foundational mathematical principle for delta tuning. Adapted weights (W') are represented as the sum of the original frozen weights (W₀) and a learned delta matrix (ΔW): W' = W₀ + ΔW. The trainable component is the delta ΔW, which is typically constrained to be low-rank or sparse to minimize parameters. This formulation ensures the pre-trained knowledge in W₀ is preserved as a stable foundation.
Low Dimensionality
Trainable components are designed to operate in a significantly reduced parameter space compared to the full model. For example:
- LoRA represents ΔW as the product of two low-rank matrices (A and B), where the rank
ris often less than 8. - Adapters use a bottleneck architecture, projecting activations down to a hidden dimension (e.g., 64) before projecting back up. This constraint is the primary source of efficiency, reducing memory footprint and speeding up training.
Sparsity & Selectivity
Many PEFT methods enforce sparsity in which parameters are updated. The trainable component is not a dense update to all weights, but a targeted change:
- Sparse Fine-Tuning / Diff Pruning: Learns a binary mask selecting a small percentage (<0.1%) of the original model's weights to update.
- BitFit: Updates only the bias terms within the transformer.
- Selective Fine-Tuning: Uses heuristics or saliency scores to identify and update only the most task-relevant layers or parameters.
Modularity & Composability
Trainable components like adapters are designed as self-contained, plug-and-play modules. This enables:
- Multi-Task Learning: Training separate, small adapters for different tasks on the same frozen backbone.
- Adapter Composition: Techniques like AdapterFusion learn to combine multiple pre-trained adapters for a new task.
- AdapterSoup: Averaging the parameters of multiple task-specific adapters at inference for robust multi-task performance without extra training.
Conditional Activation
In advanced architectures, trainable components are activated based on the input or task, a form of conditional computation. This maximizes efficiency by only using necessary compute for a given input.
- Mixture-of-Experts (MoE): A gating network routes each token to a sparse combination of expert layers (which can be considered large trainable components).
- Hypernetworks: A small auxiliary network generates the weights for the trainable component (e.g., an adapter) conditioned on a task vector, allowing dynamic specialization.
Preservation of Pre-Trained Features
A core design goal is to minimize interference with the base model's general knowledge. By freezing the backbone and constraining updates to small, additive, or modular components, catastrophic forgetting is largely avoided. The trainable component learns a task-specific deviation from the base model's behavior rather than overwriting its fundamental representations. This makes PEFT models more stable and suitable for continual learning scenarios.
How Trainable Components Work in PEFT
In Parameter-Efficient Fine-Tuning (PEFT), trainable components are the small, strategically inserted modules or parameter subsets that are updated during training, while the vast majority of the pre-trained model remains frozen.
Trainable components are the minimal set of parameters updated during parameter-efficient fine-tuning (PEFT), enabling task adaptation while the frozen backbone model's weights remain static. These components, such as low-rank matrices in LoRA, adapter modules, or prefix embeddings, represent a compact parameter delta learned for a specific task. Their design is governed by principles of additive parameterization and conditional computation, ensuring efficient training and inference.
The function of these components is to learn and apply a task vector—a directional update—to the model's forward pass. Methods like sparse fine-tuning (e.g., Diff Pruning) or modular adaptation (e.g., AdapterFusion) determine which parameters become trainable. This creates a delta-learning setup where the base model's knowledge is preserved and efficiently repurposed, forming the core engineering mechanism behind all PEFT techniques.
Common Examples of Trainable Components
In parameter-efficient fine-tuning (PEFT), only a small fraction of the model's total parameters are updated. These are the core, learnable components that enable task-specific adaptation while the vast 'frozen backbone' remains unchanged.
Adapter Modules
Adapter modules are small, bottleneck feed-forward neural networks inserted sequentially or in parallel within transformer blocks. They are the quintessential trainable component in modular adaptation.
- Structure: Typically consist of a down-projection, a non-linearity (e.g., ReLU), and an up-projection.
- Placement: Commonly inserted after the feed-forward network or the multi-head attention module within a transformer layer.
- Parameter Efficiency: A single adapter may add only 0.5-8% of the base model's parameters per task. For a 7B parameter model, this equates to 35-560 million trainable parameters, a massive reduction from full fine-tuning.
Low-Rank Matrices (LoRA)
In Low-Rank Adaptation (LoRA), the trainable components are pairs of low-rank matrices that approximate the full weight update. For a weight matrix W (of dimension d x k), LoRA represents the update as ΔW = B * A, where B is d x r, A is r x k, and the rank r is significantly smaller than d and k.
- Key Insight: The intrinsic rank of weight updates during adaptation is often very low (e.g., rank
r=4, 8, or 16). - Trainable Parameters: Only the matrices
AandBare updated. For query/value projections in attention layers of a large model, this can reduce trainable parameters by >10,000x compared to full fine-tuning. - Deployment: The low-rank matrices can be merged with the frozen weights for zero-inference-overhead deployment.
Prompt & Prefix Vectors
Prompt tuning and prefix tuning optimize continuous, task-specific embeddings prepended to the model's input or hidden states. These vectors are the sole trainable components.
- Soft Prompts: A small set of trainable token embeddings (e.g., 20-100 virtual tokens) prepended to the input sequence. The model's embedding table and all other weights remain frozen.
- Prefix Vectors: Trainable tensors prepended to the key and value caches of the transformer's attention mechanism at every layer, steering the model's contextual processing.
- Efficiency: For a model with a 4096-dimensional hidden size and 30 layers, a prefix of length 10 adds only ~1.2 million trainable parameters, a minuscule fraction of a multi-billion parameter model.
Scaling Vectors ((IA)^3)
The (IA)^3 method introduces trainable task-specific scaling vectors that modulate inner activations. These vectors are the only components updated during training.
- Mechanism: Learns three sets of vectors: one to scale the keys (K), one for the values (V) in attention, and one for the intermediate feed-forward network (FFN) activations.
- Parameter Count: Adds only three vectors per transformer layer, each with a dimension equal to the model's hidden size. For a 24-layer model with a 1024-dimensional hidden state, this is just 73,728 trainable parameters.
- Operation: The scaling is performed via element-wise multiplication, making it computationally lightweight during both training and inference.
Sparse Masks (Diff Pruning)
In sparse fine-tuning methods like Diff Pruning, the trainable component is a sparse binary mask (and sometimes accompanying small diff weights) applied to a subset of the pre-trained model's parameters.
- Function: The mask
Mselects which original parametersθreceive a small, learned deltaδ. The adapted weight isθ' = θ + M ⊙ δ. - Sparsity: The mask is highly sparse, often targeting <0.5% of the model's total parameters for update. In a 1B parameter model, this means <5 million parameters are trainable.
- Learning: The mask itself can be learned via a differentiable relaxation (e.g., the Hard Concrete distribution) or pre-determined by a saliency criterion.
Bias Terms (BitFit)
BitFit is an extreme PEFT method where the only trainable components are the bias terms within the transformer architecture. All weight matrices (e.g., in linear projections, attention, feed-forward networks) remain completely frozen.
- Scope: Updates only the bias parameters in layers like attention query/key/value projections, feed-forward networks, and layer norms.
- Extreme Efficiency: For many transformer models, biases constitute only ~0.1% of the total parameters. Fine-tuning a 110M parameter BERT model with BitFit updates only ~140,000 parameters.
- Performance: Surprisingly effective for many natural language understanding tasks, demonstrating that re-calibrating activation offsets via biases can be a powerful adaptation signal.
Trainable Components vs. Full Fine-Tuning
A comparison of the core adaptation strategies for large pre-trained models, contrasting the modular, efficient approach of updating only specific components with the traditional method of updating all parameters.
| Feature / Metric | Trainable Components (PEFT) | Full Fine-Tuning |
|---|---|---|
Core Adaptation Mechanism | Updates small, added modules (e.g., adapters, LoRA matrices) or a sparse parameter subset. | Updates all parameters of the pre-trained model. |
Trainable Parameter Count | Typically 0.1% - 10% of total model parameters. | 100% of model parameters. |
Memory Footprint (Training) | Low. Stores gradients/optimizer states only for the small trainable subset. | Very High. Requires gradients/optimizer states for the entire model. |
Compute Cost (Training) | Dramatically reduced. Enables fine-tuning on consumer-grade GPUs. | Prohibitively high for large models, often requiring multi-GPU/TPU clusters. |
Storage per Adapted Model | Small (e.g., 1-100 MB). Only the delta (e.g., adapter weights) must be saved. | Large (e.g., full model size, 10s-100s of GB). The entire adapted model must be saved. |
Risk of Catastrophic Forgetting | Very Low. The frozen backbone retains its original knowledge. | High. The model can overwrite pre-trained knowledge relevant to other tasks. |
Task Switching / Multi-Task Inference | Efficient. Multiple small deltas can be swapped in/out dynamically. | Inefficient. Requires loading separate, full-sized model checkpoints. |
Modularity & Composability | High. Components (e.g., adapters) can be mixed, matched, or ensembled (e.g., AdapterSoup). | Low. Each model is a monolithic, task-specific artifact. |
Typical Use Case | Rapid, cost-effective domain adaptation, multi-task learning, and edge deployment. | Training a model from scratch on a new, massive dataset or when maximum performance on a single, primary task is critical. |
Frequently Asked Questions
In parameter-efficient fine-tuning (PEFT), the vast majority of a pre-trained model's parameters are frozen. Trainable components are the small, strategically added modules or selected parameter subsets that are updated to adapt the model to a new task.
Trainable components are the small, added neural modules or selected parameter subsets within a parameter-efficient fine-tuning (PEFT) setup that are updated during training, while the rest of the frozen backbone model remains fixed. They represent the minimal parameter change, or delta, required for task adaptation. Examples include adapters, prefixes, low-rank matrices (as in LoRA), scaling vectors (as in (IA)^3), or selectively updated parameters like biases (as in BitFit). Their core function is to modify the forward pass of the base model to produce new, task-specific behaviors without altering the foundational knowledge encoded in the billions of frozen parameters.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Trainable components are the small, added modules or selected parameter subsets within a PEFT setup that are updated during training. The following terms define specific types and mechanisms of these components.
Delta Weights
Delta weights are the learned parameter updates, or the difference (ΔW), applied to the frozen weights of a pre-trained model during delta tuning to achieve task-specific adaptation. They represent the core trainable component in methods like LoRA, where the full weight update is constrained to a low-rank factorization.
- Core Concept: The additive change ΔW such that the adapted weights are W_adapted = W_base + ΔW.
- Efficiency: The parameters of ΔW are the only ones updated, constituting a tiny fraction of the full model.
- Example: In LoRA, ΔW is decomposed into two low-rank matrices A and B, where ΔW = BA.
Additive Parameterization
Additive parameterization is a method of representing a model's adapted weights as the sum of the original frozen weights and a learned delta matrix. This is the foundational mathematical principle behind delta tuning techniques, explicitly separating the stable base knowledge from the new, adaptable component.
- Formula: W' = W₀ + Δ(W).
- Advantage: Prevents catastrophic forgetting by preserving W₀ and isolates new learning to Δ(W).
- Implementation: Used directly in LoRA, (IA)³, and is the conceptual basis for adapter modules that add residuals to activations.
Residual Adapter
A residual adapter is a small module inserted into a neural network that operates on the residual stream, typically applying a bottleneck feed-forward network whose output is added back to the hidden states. It is a canonical example of a trainable component in modular adaptation.
- Architecture: Consists of a down-projection, a non-linearity, and an up-projection, creating a bottleneck (e.g., reducing dimension to 64).
- Insertion Point: Placed sequentially after the feed-forward network or attention module in a transformer block.
- Mechanism: Computes an adaptation Δh that is added to the layer's output: h' = h + FeedForward_Bottleneck(h).
Parallel Adapter
A parallel adapter is an adapter module whose computation runs in parallel with the original layer's feed-forward network, with its output added to the main residual stream. This contrasts with sequential adapters and can reduce inference latency.
- Design: Takes the same input as the layer's feed-forward network (FFN), computes its bottleneck transformation, and adds the result to the FFN's output.
- Benefit: Avoids extending the critical path depth of the network, as it doesn't add sequential computation.
- Relation: A specific architectural variant of the broader residual adapter concept.
Hypernetwork
A hypernetwork is a secondary neural network that generates the weights or parameters for a primary (main) model. In PEFT, it is used to dynamically produce the parameters of trainable components (like adapters) conditioned on a task, enabling efficient multi-task learning.
- Function: Maps a task embedding or condition to the full set of adapter weights.
- Efficiency: The hypernetwork itself is small; it generates the adapter parameters on-demand, avoiding storage of separate adapters for every task.
- Use Case: Central to methods that learn intrinsic task vectors, which are fed into the hypernetwork to generate task-specific deltas.
Sparse Fine-Tuning
Sparse fine-tuning is a parameter-efficient method that updates only a strategically selected, sparse subset of a model's parameters, leaving the vast majority untouched. The trainable component here is not an added module, but a selected subset of the model's native weights.
- Mechanisms: Includes Diff Pruning (learning a sparse binary mask) and BitFit (updating only bias terms).
- Selection: The sparsity pattern can be learned or predetermined based on saliency metrics.
- Advantage: Maintains the original model architecture perfectly, with zero inference overhead. The 'component' is the set of active, tunable parameters.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us