Multimodal Instruction-Tuning Alters LLM Identity Encoding.

Jorge A. Castillo, Marco Torres Y\'evenes, Juan Carlos Lanas· July 14, 2026 View original

▶ The 2-minute explainer

Summary

This research reveals that multimodal instruction-tuning qualitatively reorganizes how large language models encode identity-specifying prompts, shifting the "fingerprint" from directional cues to magnitude in hidden states. This change is specific to multimodal tuning, not observed in other post-training regimes.

This study delves into how transformer language models geometrically encode identity-specifying system prompts within their hidden states. It compares four open-weight models across different post-training regimes: a base model, a multimodal RLHF model, an RL distillation model, and an SFT model. The researchers used various geometric metrics, primarily the 1-Wasserstein distance on Ollivier-Ricci curvature distributions, to analyze the hidden-state trajectories generated by different prompt conditions. A central finding is a significant qualitative shift in how identity is encoded after multimodal instruction-tuning. In the base model, the identity "fingerprint" is primarily direction-coded, meaning the distinctiveness comes from the orientation of the hidden state vectors. However, in the multimodal instruction-tuned model, this directional separation collapses, and the encoding migrates into the magnitude of the hidden states. This means the identity is distinguished more by the "strength" or "size" of the vector rather than its specific direction. Crucially, this "direction-to-magnitude" reorganization is unique to the multimodal instruction-tuning regime and was not observed in models trained with RL distillation or standard supervised fine-tuning (SFT). The research also introduces the use of W_1 on edge-wise Ollivier-Ricci distributions on k-NN trajectory graphs as a novel methodological contribution for analyzing transformer internal states.

Why it matters

Understanding how LLMs encode identity and instructions is critical for developing more controllable, reliable, and safe AI systems. This research provides insights into the internal mechanisms of instruction-tuned models, which can inform future model design and prompt engineering strategies.

How to implement this in your domain

  1. 1Analyze the internal representations of your own instruction-tuned LLMs to understand how specific prompt types are encoded.
  2. 2Develop prompt engineering strategies that leverage the observed encoding mechanisms (e.g., focusing on magnitude for identity in multimodal models).
  3. 3Investigate if similar encoding shifts occur with different types of instruction tuning or model architectures.
  4. 4Use geometric analysis techniques, like the 1-Wasserstein distance on Ollivier-Ricci curvature, to debug and interpret model behavior.

Who benefits

AI DevelopmentSoftware EngineeringResearch & Academia

Key takeaways

  • Multimodal instruction-tuning fundamentally alters how LLMs encode identity prompts.
  • Identity encoding shifts from directional cues to magnitude in hidden states after multimodal tuning.
  • This "direction-to-magnitude" reorganization is specific to multimodal instruction-tuning.
  • Understanding these internal mechanisms can improve prompt engineering and model design.

Original post by Jorge A. Castillo, Marco Torres Y\'evenes, Juan Carlos Lanas

"arXiv:2607.09842v1 Announce Type: new Abstract: We investigate whether identity-specifying system prompts produce statistically distinguishable geometric fingerprints in the hidden-state trajectories of four open-weight transformer language models spanning four post-training regi…"

View on X

Originally posted by Jorge A. Castillo, Marco Torres Y\'evenes, Juan Carlos Lanas on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses