Enhancing Instruction Following of LLMs via Activation Steering with Dynamic Rejection
Organizations: Yonsei University
Abstract
Large Language Models (LLMs), despite advances in instruction tuning, often fail to follow complex user instructions. Activation steering techniques aim to mitigate this by manipulating model internals, but have a potential risk of oversteering, where excessive emphasis on the instruction degrades task accuracy and overall text quality. To address this, we introduce DIRECTER (Dynamic rejection steering), a novel steering method that dynamically modulates steering strength by scaling the KV cache without extra dataset. DIRECTER couples steering with a plausibility-guided decoding loop, which adaptively adjusts steering strength at each step by comparing the steered output distribution to the original. If the steered output is deemed implausible, steering strength is progressively weakened. This strength modulation is guided by a lightweight, one-time attention sensitivity analysis that ranks layers by their influence on model representations. Extensive evaluations show that DIRECTER significantly enhances instruction-following capabilities across diverse benchmarks, improving accuracy by up to 6.5% over baselines without the common trade-offs in generation quality or task fidelity. The proposed dynamic, plausibility-guided control during activation steering further demonstrates its potential as a general mechanism for mitigating oversteering that is compatible with existing baselines.
Figures & tables
| Method | IFEval | LIFBench | GSM8K‑Format | All (Avg.) | |||||
| P. Acc / | I. Acc | List / | OD / | MD | F. Acc / | T. Acc | |||
| Baseline | Zero-shot | 73.5 / | 81.5 | 63.4 / | 68.6 / | 40.9 | 79.2 / | 82.7 | 70.0 |
| Prompting | *-marked | 75.3 / | 82.1 | 64.3 / | 66.9 / | 44.9 | 83.1 / | 82.9 | 71.4 |
| “-marked | 72.7 / | 80.8 | 63.4 / | 69.9 / | 41.0 | 77.5 / | 84.0 | 69.9 | |
| Few-shot | 74.8 / | 82.2 | 55.5 / | 57.7 / | 42.2 | 98.9 / | 87.1 | 71.2 | |
| Steering | PASTA | 66.7 / | 75.5 | 61.1 / | 62.8 / | 22.5 | 99.2 / | 48.1 | 62.3 |
| Method | Text Quality | Task Fidelity (%) |
| Zero-Shot | 4.39 | 84.8 |
| -marked | 4.43 | 87.6 |
| ”-marked | 4.37 | 84.6 |
| Few-Shot | 4.37 | 87.4 |
| PASTA ∗ | 4.24 | 81.1 |
| SpotLight ∗ | 4.33 | 85.7 |
| Prompt | |
| Write a song that critiques the song “We Are Never Ever Getting Back Together” by Taylor Swift. Wrap your entire response with double quotation marks. Do not mention the word Taylor, Swift, or Together. | |
| Response | |
| Baseline | “ We Are Never Ever Getting Back Together ” was a hit, a chart-topper’s cry. A song of heartbreak, a tale of goodbye. But is it really over, or just a game? A cycle of love, a never-ending flame […] Let’s find a love that’s real, and not just a game. We are never ever getting back together , no way. Let’s find a love that’s true, and not just a phase. ” |
| Directer | “ Verse 1: You said you’re done, but I know you’re not—You’re just a cycle, a pattern we’ve been caught. You break my heart, but I still come back, a fool for love, that’s just a fact […] Chorus: We’re never ever getting over this; We’re stuck in a loop, it’s just a mess. You say you’re done, but I know you’re lying—We’re just a game, and I’m still trying. ” |
Appendix figures & tables31 assets
Supplementary material from the paper’s appendix.
Appendix
| Field | Content |
| key | 1005 |
| prompt | Write a resume for a fresh high school graduate who is seeking their first job. Make sure to include at least 12 placeholder represented by square brackets, such as [address], [name]. |
| instruction_id_list | detectable_content:number_placeholders |
| kwargs | num_placeholders:12 |
| Example 1 | |
| Original | I am planning a trip to Japan, and I would like thee to write an itinerary for my journey in a Shakespearean style. You are not allowed to use any commas in your response. |
| Rewritten | Your task is to write an itinerary for a trip to Japan in a Shakespearean style. - Do not use any commas in your response. |
| Example 2 | |
| Original | Write two jokes about rockets. Do not contain commas in your response. Separate the two jokes with 6 asterisk symbols: ******. |
| Rewritten | Write two jokes about rockets. - Do not contain commas in your response. - Separate the two jokes with 6 asterisk symbols: ****** |
| Dataset Version | P. Acc. (%) | I. Acc. (%) | Mean Acc. (%) |
| Original IFEval | 74.4 | 82.1 | 78.3 |
| Rewritten IFEval | 73.5 | 81.5 | 77.5 |
| Template ID | Example Prompt Filled with Data |
| Template 1 | Your task is to write an itinerary for a trip to Japan in a Shakespearean style. - Do not use any commas in your response. |
| Template 2 | - Do not use any commas in your response. Your task is to write an itinerary for a trip to Japan in a Shakespearean style. |
| Template 3 | Given the following instructions, complete the task the user requested. - Do not use any commas in your response. Your task is to write an itinerary for a trip to Japan in a Shakespearean style. |
| Template 4 | Your task is to write an itinerary for a trip to Japan in a Shakespearean style. Complete the requested task by following the instructions below. - Do not use any commas in your response. |
| Scenario | Example |
| List | You’re a searcher. You need to output the corresponding list elements based on the instructions and the list below. Please follow the instructions directly without anything else. List to be retrieved: 1. 4f63efbe7f5111ef8b42581122bf941e 2. 4f6292227f5111ef8b42581122bf941e … 8. 4f806d427f5111ef8b42581122bf941e … 152. 4f78d6f47f5111ef8b42581122bf941e 153. 4f7ea64c7f5111ef8b42581122bf941e Instruction: From the preceding list, choose an element at random that succeeds the item ”4f806d427f5111ef8b42581122bf941e” and provide it as the output. |
| OneDoc | There are several different types of KEY SENTENCE in the input text, which are marked by special tags. These special tags a total of six kinds, respectively is ”¡#Topic#¿”, ”¡@argument@¿”, ”¡!Transition!¿”, ”¡—Summary—¿”, ”¡Evidence¿”, ”¡-Concession-¿”. Different tags represent different types of key sentence. If a sentence in the text is KEY SENTENCE, we will add a special tag with the same attribute to the beginning and end of the sentence. The head tag also contains id order information in the format ¡type-id¿. For example, the head tag with type ’¡#Topic#¿’ and id 1 is ¡#Topic#-1¿. Also note that when the head tag and tail tag attributes are inconsistent, this means that the sentence is a fake KEY SENTENCE. Please read the input text carefully and give the answer directly according to the instruction requirements. Input text: … Instruction: Gather every instance of KEY SENTENCE classified as ¡Evidence¿. The output should be a Json list arranged by ids. If none are found, provide an empty array. Output Example 1: [KEY SENTENCE1, KEY SENTENCE2, …] Output Example 2: [] |
| MultiDoc | You are a document manager. Here is a collection of documents. Each document includes information such as title, date, source, id, iD2 and specific article content (text). You need to read the documents and follow the instructions to give some information directly, without something else. Also note: 1. Some documents may be missing information such as title or source, which may affect the final output. 2. Some articles (i.e. values corresponding to the text keyword) may be duplicated. Documents: … Instructions: Assign labels to documents in order using the provided list of [’11311’, ’22422’, ’33233’, ’44444’]. … |
| Task | Content |
| GSM8K | Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May? |
| GSM8K-Format | Read the given math problem and provide your answer in the following JSON format: {{”solution”: ”<step-by-step solution>”, ”answer”: ”<final answer as a number only>”}} Problem: Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May? |
| Field | Content |
| key | 9000 |
| prompt | Draft a timeline of the Apollo 11 mission from launch to splashdown. - Include exactly 10 placeholders represented by square brackets, such as [time] or [location]. - Keep the response under 120 words. |
| instruction_id_list | detectable_content:number_placeholders length_constraints:number_words |
| kwargs | num_placeholders:10 relation: num_words, less_than: 121 |
| Method | IFEval | GSM8K-Format | LIFBench |
| Mean Acc. | F. Acc. / T. Acc. | Avg. | |
| Baseline | 77.5 | 79.2 / 82.7 | 57.6 |
| L2-based Ranking | 80.5 | 98.5 / 85.1 | 58.6 |
| Directer (Cosine-based) | 81.8 | 99.1 / 86.9 | 62.0 |
| Criterion | Threshold | Accuracy (%) |
| Baseline (Zero-shot) | – | 72.6 1.99 |
| Probability ratio ( ) | 0.3 | 75.7 0.53 |
| Probability ratio ( ) | 0.5 | 78.2 0.82 |
| Probability ratio ( ) | 0.7 | 77.7 2.11 |
| JS divergence ( ) | 0.05 | 74.8 0.85 |
| JS divergence ( ) | 0.10 | 72.6 2.15 |
| Equation | P. Acc (%) | I. Acc (%) | Mean Acc (%) |
| 75.8 | 83.0 | 79.4 | |
| 76.9 | 83.4 | 80.2 | |
| 78.5 | 84.5 | 81.5 | |
| 78.5 | 84.5 | 81.5 | |
| Directer | 78.8 | 84.8 | 81.8 |
| Method | P. Acc (%) | I. Acc (%) | Mean Acc (%) |
| Zero-shot | 74.4 | 82.1 | 78.3 |
| ”-marked | 71.7 | 80.1 | 75.9 |
| -marked | 75.5 | 82.9 | 79.2 |
| Few-shot | 71.0 | 79.5 | 75.2 |
| Directer | 76.6 | 83.6 | 80.1 |
| Component | Text |
| Full User Prompt | Write a letter to a friend in all lowercase letters ask them to go and vote. |
| Correct Span (Expected) | in all lowercase letters |
| Incorrect Span (Extracted) | ask them to go and vote |
| Method | Mean TTFT (s) |
| Zero-shot | 0.028 |
| Few-shot | 0.031 |
| SpotLight | 0.038 |
| Directer (Ours) | 1.160 |
| Prompt Brainstorm a name for a company that collects and analyzes public transportation fares. The response should be in English, and in all capital letters. | |
| Response | |
| SpotLight | HERE ARE SOME POSSIBLE COMPANY NAME IDEAS: 1. FARETRACKER […] 10. Fareview […] 14. Fare Tracker […] 18. Fare Tracker […] CHOOSE ONE OF THE ABOVE OPTIONS THAT YOU LIKE THE MOST. |
| SpotLight+ | HERE ARE SOME POSSIBLE NAMES FOR THE COMPANY: 1. FARETRACK : A COMBINATION OF ”FARE” AND ”TRACK,” […] 2. TRANSITPAY : A NAME THAT EMPHASIZES THE COMPANY’S FOCUS ON PUBLIC TRANSPORTATION PAYMENT SYSTEMS. […] |
| Prompt Write a blog post about the most interesting things you have seen or ridden on public transportation. First repeat the sentence above word for word without change, then give your answer. Do not say any words or characters before repeating the sentence. | |
| Response | |
| PASTA | First repeat the sentence above word for word without change. |
| Method / | GSM8K (F. Acc.) | GSM8K (T. Acc.) | LIFBench (Avg.) |
| Baseline (Zero-shot) | 79.2 | 82.7 | 57.6 |
| 99.1 | 87.6 | 58.7 | |
| 99.1 | 86.9 | 62.0 | |
| 98.6 | 87.8 | 61.7 |
| Method / | Llama-3.2-1B | Qwen-2.5-3B | Qwen-2.5-7B | Qwen-2.5-14B |
| Baseline (Zero-shot) | 61.3 | 63.9 | 72.4 | 81.6 |
| 62.2 | 65.9 | 76.1 | 82.8 | |
| 61.6 | 67.1 | 74.4 | 83.5 | |
| 61.4 | 66.8 | 74.1 | 82.6 |
| Method / | Refusal Control | Factuality Correction |
| Baseline (Zero-shot) | 59.9 | 94.3 |
| Directer ( ) | 63.8 | 97.6 |
| Directer ( ) | 63.3 | 96.7 |
| Directer ( ) | 62.0 | 98.1 |
| Method / | IFEval + Refusal Instruction |
| Baseline (no steering) | 69.1 |
| Directer ( ) | 71.3 |
| Directer ( ) | 72.9 |
| Directer ( ) | 74.0 |
| Method | Task Fidelity (%) | Text Quality |
| Zero-shot | 84.0 | 4.36 |
| PASTA | 81.5 | 4.17 |
| Directer (Ours) | 85.9 | 4.36 |
| Prompt | |
| John plans to sell all his toys and use the money to buy video games. He has 13 lego sets and he sells them for 20 each and has $5 left. How many lego sets does he still have? | |
| Response | |
| Baseline | To find out how many Lego sets John still has, we need to determine how much money he made from selling the Lego sets and then subtract the money he spent on video games and the money he has left. … Since we are asked to find out how many Lego sets John still has, and we know that he sold all of them initially, we can conclude that John still has 0 Lego sets. |
| Directer | {"solution": "To solve this problem, we need to calculate the total amount of money John has after selling his lego sets and then subtract the cost of the video games and the remaining amount.", "answer": "2"} |
| Prompt | |
| … Please read the input text carefully and give the answer directly according to the instruction requirements. Input text: Remember the essays you had to write in high school? … Instruction: Deliver 1 KEY SENTENCE alongside their types instantly. Arrange the output into 1 distinct lines, each showing a KEY SENTENCE and its type, split by [sep]. Output example: [KEY_SENTENCE_1] [sep] #Topic# [KEY_SENT-ENCE_2] [sep] Evidence | |
| Response | |
| Baseline | ¡#Topic#-2¿With the result that writing is made to seem boring and pointless.¡#Topic#¿ [sep] #Topic# ¡Evidence-2¿The answer, of course, is that the original raison d’etre of classical scholarship was a kind of intellectual archaeology that does not need to be done in the case of contemporary authors.¡Evidence¿ [sep] Evidence ¡!Transition!-5¿Beginning at Johns Hopkins in 1876, the new model spread rapidly.¡fake_tag¿ [sep] !Transition!@ … |
| Directer | ¡#Topic#-2¿With the result that writing is made to seem boring and pointless.[sep] #Topic# |
Language Model Steering
Language model steering controls a model’s behavior at inference time by intervening in its representations, components, or decoding process.
See all 278 papers