mlsanityData to 7 Oct 2026

Do LLMs "know" internally when they follow instructions?

arXiv 2410.14516 ↗First posted 18 Oct 2024cs.AI cs.CLcited by 25

Not on the map. Why?

Abstract (arXiv)

Instruction-following is crucial for building AI agents with large language models (LLMs), as these models must adhere strictly to user-provided constraints and guidelines. However, LLMs often fail to follow even simple and clear instructions. To improve instruction-following behavior and prevent undesirable outputs, a deeper understanding of how LLMs' internal states relate to these outcomes is required. In this work, we investigate whether LLMs encode information in their representations that correlate with instruction-following success - a property we term knowing internally. Our analysis identifies a direction in the input embedding space, termed the instruction-following dimension, that predicts whether a response will comply with a given instruction. We find that this dimension generalizes well across unseen tasks but not across unseen instruction types. We demonstrate that modifying representations along this dimension improves instruction-following success rates compared to random changes, without compromising response quality. Further investigation reveals that this dimension is more closely related to the phrasing of prompts rather than the inherent difficulty of the task or instructions. This work provides insight into the internal workings of LLMs' instruction-following, paving the way for reliable LLM agents.

Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 35 of its 43 references that are in the map. First posted on arXiv 18 Oct 2024.

Builds on

35 of 43 references.

References · 35

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2023Mistral 7Bcited by 3,065
  3. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  4. 2016Understanding intermediate layers using linear classifier probescited by 1,279
  5. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
  6. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
  7. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  8. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
  9. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  10. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
  11. 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
  12. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
23 more
  1. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
  2. 2023The Internal State of an LLM Knows When It's Lyingcited by 644
  3. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
  4. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
  5. 2023Function Vectors in Large Language Modelscited by 292
  6. 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 257
  7. 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
  8. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
  9. 2023Unlearn What You Want to Forget: Efficient Unlearning for LLMscited by 211
  10. 2023Linear Representations of Sentiment in Large Language Modelscited by 157
  11. 2024InFoBench: Evaluating Instruction Following Ability in Large Language Modelscited by 128
  12. 2023Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMscited by 82
  13. 2024Towards Conversational Diagnostic AIcited by 79
  14. 2024FOFO: A Benchmark to Evaluate LLMs' Format-Following Capabilitycited by 79
  15. 2023Cue-CoT: Chain-of-thought Prompting for Responding to In-depth Dialogue Questions with LLMscited by 62
  16. 2024Do LLMs Know about Hallucination? An Empirical Investigation of LLM's Hidden Statescited by 50
  17. 2024Distinguishing the Knowable from the Unknowable with Language Modelscited by 45
  18. 2023How are Prompts Different in Terms of Sensitivity?cited by 34
  19. 2024From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Modelscited by 27
  20. 2024Conifer: Improving Complex Constrained Instruction-Following Ability of Large Language Modelscited by 26
  21. 2024PaCE: Parsimonious Concept Engineering for Large Language Modelscited by 19
  22. 2024RefuteBench: Evaluating Refuting Instruction-Following for Large Language Modelscited by 10
  23. 2024Evalverse: Unified and Accessible Library for Large Language Model Evaluationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 15; 2026: 10.

25 papers.

Sort:

By area:

  1. 2025When Thinking Fails: The Pitfalls of Reasoning for Instruction-Following in LLMscited by 51
  2. 2025Spotlight Your Instructions: Instruction-following with Dynamic Attention Steeringcited by 18
  3. 2025Emergent Response Planning in LLMscited by 17
  4. 2025ReasonIF: Large Reasoning Models Fail to Follow Instructions During Reasoningcited by 12
  5. 2026OpenDecoder: Open Large Language Model Decoding to Incorporate Document Quality in RAGcited by 11
  6. 2025When Truthful Representations Flip Under Deceptive Instructions?cited by 9
  7. 2025Revisiting the Reliability of Language Models in Instruction-Followingcited by 6
  8. 2025When Instructions Multiply: Measuring and Estimating LLM Capabilities of Multiple Instructions Followingcited by 4
  9. 2025Bridging the Knowledge-Prediction Gap in LLMs on Multiple-Choice Questionscited by 4
  10. 2025From Directions to Cones: Exploring Multidimensional Representations of Propositional Facts in LLMscited by 3
  11. 2025Rethinking the Use of Vision Transformers for AI-Generated Image Detectioncited by 2
  12. 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMscited by 2
13 more
  1. 2025I'm Sorry Dave: How the old world of personnel security can inform the new world of AI insider riskcited by 1
  2. 2025Linearly Decoding Refused Knowledge in Aligned Language Modelscited by 1
  3. 2025Ambiguity Resolution with Human Feedback for Code Writing Taskscited by 1
  4. 2025Illusions of reflection: open-ended task reveals systematic failures in Large Language Models' reflective reasoningcited by 1
  5. 2026Enhancing LLM Instruction Following: An Evaluation-Driven Multi-Agentic Workflow for Prompt Instructions Optimizationcited by 1
  6. 2026Probing for Knowledge Attribution in Large Language Modelscited by 1
  7. 2026UCAgent: An End-to-End Agent for Block-Level Functional Verificationcited by 1
  8. 2026When Bigger Isn't Better: A Comprehensive Fairness Evaluation of Political Bias in Multi-News Summarisationcited by 1
  9. 2026Instructions Shape Production of Language, not Processingcited by 1
  10. 2025Evaluating Online Moderation Via LLM-Powered Counterfactual Simulationscited by 0
  11. 2026How LLMs Follow Instructions: Skillful Coordination, Not a Universal Mechanismcited by 0
  12. 2026Quantifying Aleatoric Uncertainty of In-Context Learning for Robust Measure of LLM Prediction Confidencecited by 0
  13. 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steeringcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs
  2. 2025Unveiling Instruction-Specific Neurons & Experts: An Analytical Framework for LLM's Instruction-Following Capabilities
  3. 2024Instructional Text Across Disciplines: A Survey of Representations, Downstream Tasks, and Open Challenges Toward Capable AI Agents
  4. 2025The Instruction Gap: LLMs get lost in Following Instruction
  5. 2026PRISM: Recovering Instruction Sets from Language Model Activations
  6. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMs
  7. 2025Training with Pseudo-Code for Instruction Following
  8. 2023FollowEval: A Multi-Dimensional Benchmark for Assessing the Instruction-Following Capability of Large Language Models