Papers › From Language Modeling to Instruction Following: Understanding the Behavior Shift in...

From Language Modeling to Instruction Following: Understanding the Behavior Shift in LLMs after Instruction Tuning

30 Sep 2023arXiv:2310.00492archive 2025-07-28

Xuansheng Wu, Wenlin Yao, Jianshu Chen, Xiaoman Pan, Xiaoyang Wang, Ninghao Liu, Dong Yu

Large Language Models (LLMs) have achieved remarkable success, where instruction tuning is the critical step in aligning LLMs with user intentions. In this work, we investigate how the instruction tuning adjusts pre-trained models with a focus on intrinsic changes. Specifically, we first develop several local and global explanation methods, including a gradient-based method for input-output attribution, and techniques for interpreting patterns and concepts in self-attention and feed-forward layers. The impact of instruction tuning is then studied by comparing the explanations derived from the pre-trained and instruction-tuned models. This approach provides an internal perspective of the model shifts on a human-comprehensible level. Our findings reveal three significant impacts of instruction tuning: 1) It empowers LLMs to recognize the instruction parts of user prompts, and promotes the response generation constantly conditioned on the instructions. 2) It encourages the self-attention heads to capture more word-word relationships about instruction verbs. 3) It encourages the feed-forward networks to rotate their pre-trained knowledge toward user-oriented tasks. These insights contribute to a more comprehensive understanding of instruction tuning and lay the groundwork for future work that aims at explaining and optimizing LLMs for various applications. Our code and data are publicly available at https://github.com/JacksonWuxs/Interpret_Instruction_Tuning_LLMs.

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="2310.00492")

Code

Syntology Ran 5 of 8 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 5 ran with no contract checked.

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

jacksonwuxs/interpret_instruction_tuning_llms officialmentioned in papermentioned on GitHubGPL-3.0 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

8 samples harvested; 5 ran; 0 honoured the contract we drafted; 3 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.

5ran
3unverified

Licence: 8 of the 8 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 jacksonwuxs/interpret_instruction_tuning_llms. “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.

KMPSearch jacksonwuxs/interpret_instruction_tuning_llms/src/utils.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · f805a9f405e9f2b0 · report
common_substrings jacksonwuxs/interpret_instruction_tuning_llms/src/analysis_linear_interpret.py official repository ran GPL-3.0 (copyleft) · pointer only · 199ce04f205abafb · report
decode jacksonwuxs/interpret_instruction_tuning_llms/src/utils.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · c29b6a708dc39670 · report
encode jacksonwuxs/interpret_instruction_tuning_llms/src/utils.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · f964e2b69396a7c1 · report
format_llama_weight jacksonwuxs/interpret_instruction_tuning_llms/src/generator.py official repository ran GPL-3.0 (copyleft) · pointer only · f543931abc30db2a · report
ConceptInterpretor jacksonwuxs/interpret_instruction_tuning_llms/src/run_chatgpt_annotate.py official repository unverified GPL-3.0 (copyleft) · pointer only · 932c3df6bd43ba46 · report
NeuronInterpretor jacksonwuxs/interpret_instruction_tuning_llms/src/run_chatgpt_annotate.py official repository unverified GPL-3.0 (copyleft) · pointer only · 1f54fa0d9daacae5 · report
TaskInterpretor jacksonwuxs/interpret_instruction_tuning_llms/src/run_chatgpt_annotate.py official repository unverified GPL-3.0 (copyleft) · pointer only · 8badb3485e88a7b1 · report

Tasks

Instruction FollowingLanguage ModelingLanguage ModellingResponse Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNFocus

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