LLM Braces: Straightening Out LLM Predictions with Relevant Sub-Updates

Ying Shen, Lifu Huang · DOI

Abstract

Large Language Models (LLMs) often struggle with factual hallucinations and stylistic inconsistencies due to the noisy aggregation of internal knowledge during inference. We present LLM Braces, a parameter-efficient framework that dynamically modulates the "sub-updates" within a Transformer's feed-forward network (FFN) layers. By projecting hidden states into a shared subspace to calculate relevance scores, LLM Braces amplifies contextually pertinent internal concepts while suppressing irrelevant noise. Our results demonstrate that LLM Braces outperforms LoRA in zero-shot tasks—improving performance by up to 29.7% on Llama3-8B—while utilizing 75% fewer trainable parameters. Furthermore, the method provides a scalable mechanism for attribute steering, such as toxicity reduction and sentiment control, through a single inference-time scalar.

Introduction

Despite the remarkable capabilities of Large Language Models, their internal decision-making processes remain largely opaque. Recent interpretability research has identified the Feed-Forward Network (FFN) layers as the primary repository for a model's factual knowledge. These layers function essentially as a key-value memory: "keys" detect specific patterns in the input sequence, while "values" represent distributions over the output vocabulary.

However, during a standard forward pass, the FFN aggregates a vast number of these "sub-updates" (weighted value vectors) simultaneously. This indiscriminate aggregation often introduces noise from irrelevant internal concepts, leading to factual errors or a lack of stylistic control. We introduce LLM Braces, a method designed to "straighten" these predictions—much like dental braces align teeth—by ensuring the model prioritizes the internal neurons most relevant to the current context.

The LLM Braces Framework

LLM Braces operates by modulating the contribution of FFN sub-updates through a learnable relevance mechanism. The framework consists of four primary components:

1. FFN Decomposition

The FFN output is viewed as a weighted sum of value vectors. Each vector often corresponds to a human-interpretable concept or a specific linguistic pattern. By treating these as discrete sub-updates, we can intervene in the model's internal logic at a granular level.

2. The Relevance Module

To determine which sub-updates are necessary for a given prompt, we introduce a module that projects the model's hidden states and the FFN's value vectors into a shared, low-dimensional subspace. This module utilizes a low-rank projection with orthonormal rows, a design choice that preserves the geometric structure of high-dimensional data while maintaining extreme computational efficiency.

3. Dynamic Augmentation

Rather than replacing the original FFN weights, LLM Braces computes a "relevance score" for each sub-update. This score is integrated into the original weight via a learnable gating mechanism. This additive approach allows the model to "boost" relevant concepts and "dampen" irrelevant ones without losing the foundational knowledge stored in the pre-trained weights.

4. Task-Specific Steering

For applications requiring specific stylistic or safety constraints, the system computes a "conditional relevance score." This measures how well internal value vectors align with specific attribute tokens (e.g., "joyful" for positive sentiment or "safe" for toxicity suppression), allowing for precise steering of the model's output.

Experimental Setup and Datasets

We evaluated LLM Braces across a diverse array of benchmarks to test reasoning, factual accuracy, and controllability:

  • Supervised Fine-tuning: Tested on Commonsense170K, a collection of eight reasoning datasets including BoolQ, PIQA, and HellaSwag.
  • Zero-Shot Generalization: Models were tuned on the Dolly instruction-following dataset and evaluated on factual knowledge tasks (PopQA, TriviaQA, NQ), trustworthiness (TruthfulQA), and general capabilities (AGI Eval).
  • Conditional Generation: Evaluated using SST5 for sentiment steering and Jigsaw for toxicity suppression.
  • Style Control: We introduced StyleDataset, a new benchmark of 10,000 sentence-attribute pairs with descriptive style words generated by Llama3.1-8B to facilitate zero-shot style modulation.

Key Insights

Knowledge Activation vs. Acquisition

A central finding of this work is that LLMs often already possess the necessary knowledge or stylistic capabilities required for a task; the primary challenge is activation. LLM Braces does not necessarily teach the model new facts but rather helps it "find" and prioritize the correct internal neurons for a specific prompt.

Efficiency and Flexibility

By leveraging existing value vectors rather than learning entirely new weight matrices (as seen in methods like LoRA), LLM Braces is remarkably lean. In our experiments, it achieved superior results to LoRA while training up to 75% fewer parameters. Additionally, the choice of additive adjustment over multiplicative filtering provides the model with the flexibility to handle cases where the original contribution was negative, leading to more robust performance.

Results and Impact

Performance Gains

LLM Braces demonstrated significant improvements in zero-shot settings compared to LoRA:

  • Qwen2.5-1.5B: 13.9% improvement.
  • Llama2-7B: 19.6% improvement.
  • Llama3-8B: 29.7% improvement.

Factual Accuracy and Safety

The method excelled in knowledge-intensive tasks like TriviaQA and PopQA, suggesting that "bracing" the FFN layers effectively reduces the noise that leads to factual hallucinations. In toxicity reduction tasks, LLM Braces reduced toxic language by 15.8%, outperforming baselines like DExperts and GeDi while maintaining higher fluency and vocabulary diversity.

Inference-Time Control

One of the most practical features of LLM Braces is the ability to adjust a single scalar parameter ($s$) during inference. This allows users to manually dial the "intensity" of a specific sentiment or style up or down without the need for retraining or multiple model checkpoints.

Conclusion and Future Work

LLM Braces offers a powerful, parameter-efficient alternative to standard fine-tuning by focusing on the relevance of internal FFN sub-updates. While currently limited to text-based LLMs, the success of this relevance-based modulation suggests potential applications in multimodal architectures, such as image generation models, to improve visual consistency. Future research will focus on further demystifying the internal states of these models to enhance the interpretability of the relevance scores.

Summary updated

BibTeX
@inproceedings{shen2025llm,
  author = {Ying Shen and Lifu Huang},
  title = {{LLM Braces: Straightening Out LLM Predictions with Relevant Sub-Updates}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure