Papers › Analyzing Fine-tuning Representation Shift for Multimodal LLMs Steering alignment

Analyzing Fine-tuning Representation Shift for Multimodal LLMs Steering alignment

6 Jan 2025arXiv:2501.03012archive 2025-07-28

Pegah Khayatan, Mustafa Shukor, Jayneel Parekh, Matthieu Cord

Multimodal LLMs have reached remarkable levels of proficiency in understanding multimodal inputs, driving extensive research to develop increasingly powerful models. However, much less attention has been paid to understanding and explaining the underlying mechanisms of these models. Most existing explainability research examines these models only in their final states, overlooking the dynamic representational shifts that occur during training. In this work, we systematically analyze the evolution of hidden state representations to reveal how fine-tuning alters the internal structure of a model to specialize in new multimodal tasks. Using a concept-based approach, we map hidden states to interpretable visual and textual concepts, enabling us to trace changes in encoded concepts across modalities as training progresses. We also demonstrate the use of shift vectors to capture these concepts changes. These shift vectors allow us to recover fine-tuned concepts by shifting those in the original model. Finally, we explore the practical impact of our findings on model steering, showing that we can adjust multimodal LLMs behaviors without any training, such as modifying answer types, captions style, or biasing the model toward specific responses. Our work sheds light on how multimodal representations evolve through fine-tuning and offers a new perspective for interpreting model adaptation in multimodal tasks. The code for this project is publicly available at https://github.com/mshukor/xl-vlms.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.03012")

Code

Syntology Ran 11 of 21 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 3 ran · honoured contract; 2 ran · violated contract; 5 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 21 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mshukor/xl-vlms officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 11 ran; 3 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
2ran · violated contract
5ran · our draft was wrong
1ran · fixture could not drive it
10unverified

Licence: 0 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mshukor/xl-vlms. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

common_local_indices mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · our draft was wrong MIT (permissive) · f23b6db9cd4f073c · report
compute_mean_per_concept mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · honoured contract MIT (permissive) · b6646a299e4bee79 · report
compute_reference_clusters mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · fixture could not drive it MIT (permissive) · 6f4dfb20225ba3fa · report
concept_image_grounding mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · our draft was wrong MIT (permissive) · f6e5ae21703e74d4 · report
cosine_similarity mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · bcb8d066adb36735 · report
get_stopwords mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · our draft was wrong MIT (permissive) · dae6013ca8724453 · report
is_number mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · violated contract MIT (permissive) · 3b5feddb8481ce67 · report
l2_distance mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 00990ef5c064dcc2 · report
metric_recovery mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · honoured contract MIT (permissive) · 1cd7320229c7e6cf · report
process_shift_vectors mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · honoured contract MIT (permissive) · 8875caa93604d496 · report
valid_word mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository ran · violated contract fingerprinted MIT (permissive) · 3f6b7b65f18a9232 · report
analyse_clusters mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · b16fa7a71c74041f · report
comp_vis mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · 30cf485a5461b7d4 · report
compute_analysis_features mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · b067a9f69b4df21f · report
compute_shift_concepts mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · 99a205cfaa653c1b · report
compute_shift_grounding_words mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · 795bd0c515620e97 · report
concept_text_grounding mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · d7db242219335f6e · report
decompose_activations mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · 41c21b78be088fb8 · report
get_multimodal_grounding mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · e404019518020e3d · report
save_analysis_to_file mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · 9111c2c506ecd059 · report
visualize_concepts mshukor/xl-vlms/src/analysis/cluster_analysis.py official repository unverified MIT (permissive) · 28cc2345d5518533 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections