Abstract
Large Language Models (LLMs) have achieved remarkable success across diverse tasks, yet the relationship between their internal parameters and specific functional behaviors remains largely opaque. While models with similar architectures often exhibit vast performance disparities, the underlying structural patterns governing these differences are poorly understood. This study introduces a mutagenesis screen approach—inspired by biological genetics—to systematically map the functional architecture of Llama2-7b and Zephyr. By mutating parameter blocks to their extreme values, we identified fine-grained structural patterns, including axis-aligned sensitivity and "writer" mutations that surgically alter output style. Our findings demonstrate that mutagenesis screening is a powerful tool for deciphering the complexities of LLMs and identifying novel pathways for model optimization.
Introduction
Despite the ubiquity of Large Language Models, they are frequently characterized as "black boxes." We understand the mathematical operations that drive them, but we lack a functional map connecting specific weight matrices to specific cognitive or linguistic behaviors. Traditional interpretability methods often focus on local feature attribution, such as identifying which input tokens influence a specific prediction. However, these methods fail to provide a global structural understanding of the model's "genome."
To address this, we adapted the biological concept of mutagenesis screening. In genetics, researchers systematically mutate genes to observe resulting changes in an organism's physical traits (phenotypes). By applying this logic to LLMs, we treat parameter matrices as genetic sequences and observe how extreme perturbations affect the model's performance and output style.
Methodology: The Mutagenesis Approach
Our research focused on two models: Llama2-7b and its fine-tuned counterpart, Zephyr. We introduced a novel experimental framework consisting of three core components:
- Extreme Mutations: Unlike standard pruning techniques that set weights to zero—often resulting in "silent" changes—we replaced 64x64 blocks of weights with the maximum or minimum values found within that specific matrix. This approach tests the functional boundaries of the parameter space.
- Phenotype Mapping: We defined a "phenotype" as any observable change in the model's output compared to the original. A "Non-Silent Mutation" (NSM) occurs when a parameter change successfully alters the model's response, whether by degrading performance or shifting its style.
- Structural Analysis (COPA): We developed Correlative Complementary Patterns (COPA) to identify symmetries in matrix responses. By rearranging rows and columns based on mutation sensitivity, we revealed hidden functional clusters within the architecture.
Experimental Results and Functional Mapping
Axis-Aligned Sensitivity and Failure Localization
Our screening revealed that model sensitivity is not randomly distributed. Instead, mutations that produce severe performance drops (malignant mutations) tend to cluster heavily along specific axes within the matrices. In Zephyr, over 90% of severe mutations were localized within just four specific matrices. Furthermore, we observed a "localization of failure" in Zephyr’s MMLU testing; more than one-third of the matrices were completely "silent" or immune to mutation, particularly in the later layers (post-layer 16).
The Discovery of "Writer" Mutations
One of the most significant findings was the identification of "writer" mutations. In Zephyr, rare mutations—primarily located in the "Down" matrices of layers 1 and 30—did not break the model's logic but instead transformed its "personality." These mutations caused the model to respond to scientific prompts (e.g., explaining Newton’s laws) through poetry or dramatic dialogue while maintaining high factual relevance.
Interestingly, these mutations exhibited "coordinate conservation." Even when located in different matrices or layers, writer mutations often shared the same row coordinates. This suggests a consistent structural signature for stylistic control embedded throughout the model's architecture.
Model Stability and Alignment
Comparing Llama2-7b and Zephyr provided insights into how fine-tuning affects model robustness. Zephyr showed significantly fewer NSMs in the MMLU task than Llama2. This suggests that the alignment process (such as RLHF) stabilizes the model's knowledge base, making it more robust to parameter interference and "locking in" specific functional pathways.
Discussion and Future Directions
The success of the mutagenesis screen suggests that the boundaries of the parameter space (maximum and minimum values) hold more functional information than the mere presence or absence of weights. The discovery of specific stylistic "switches" opens the door for surgical model editing—flipping a few targeted parameters to adjust a model's persona or mitigate bias without the need for expensive retraining.
Future research will focus on increasing the granularity of the screen to element-wise mutations and expanding the scope to larger architectures, such as 70B parameter models and Mixture-of-Experts (MoE) systems. By refining these biological analogies, we can move closer to a complete functional map of artificial intelligence.
Summary updated