Papers for

large language model trainers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Gradient method finds training data causing large language model safety risks

Follow the Gradient: Tracing Safety Degradation Back to Training Data

Abstract: Fine-tuning Large Language Models (LLMs) on instruction data can quietly erode their safety, even when no training example looks harmful. Because this safety-degrading data looks benign, standard content filters struggle to catch it. We tackle this problem by developing SimpleLoRIF, a scalable gradient embedding method that identifies fine-tuning examples whose gradients align with unsafe behavior. By simplifying a low-rank attribution method and restricting backpropagation to the final four transformer blocks, SimpleLoRIF can embed datasets on the order of a million examples, boosting gradient attribution from a small-scale analysis tool into a practical filter for full post-training datasets. We first validate it on emergent misalignment, where we find that gradients can connect insecure-code training data to the broadly harmful behaviors that appear after fine-tuning, with AUC as high as 0.865 in the gradient space of misaligned models. We then use SimpleLoRIF to build SafeTulu, a version of Tulu 3 with the 20% of examples most gradient-aligned with unsafe responses removed. Training on SafeTulu reduces GCG attack success rate by up to 22% across Qwen, Llama, and Olmo, outperforming both LLM-as-a-judge and prior gradient-based filtering, while largely preserving or even improving capability. Finally, we analyzed the removed data and identify possibly under-studied sources of safety degradation, such as tool-execution failures and narrative arithmetic. We release SafeTulu along with a Hugging Face Space that lets researchers build their own customized versions of SafeTulu to fine-tune on, such as by changing the removal fraction or filtering only certain subsets.

Tue 27 OctMachine LearningArtificial IntelligenceComputation and Language
The gist
Instruction-tuning large language models can sometimes unintentionally make them behave unsafely, even if the training examples themselves look harmless. The authors created SimpleLoRIF, a technique that uses model gradients to find which training examples are linked to unsafe behavior. They showed this method can identify problematic data in large datasets and remove it, leading to safer models without losing performance. They also made a safer dataset called SafeTulu and shared tools for others to customize data filtering based on this method.
Open → 2610.37481v1

Momentum helps speed reinforcement learning with verified rewards

When Does Momentum Help in Reinforcement Learning with Verifiable Rewards?

Abstract: Momentum is a classical tool for accelerating convex optimization and a standard component of modern large language model training. Yet recent empirical work has questioned the usefulness of first-moment momentum in reinforcement learning with verifiable rewards (RLVR). We study this question through a bandit formulation of RLVR with bias-corrected exponential moving average (EMA) momentum, where the EMA coefficient $β$ controls how quickly the weights on past gradients decay. When policy gradients are evaluated exactly, we prove that increasing $β$ within a range that prevents overshoot strictly accelerates optimization. When gradients are estimated from sampled responses, a positive expected gain can be obscured by sampling fluctuations. We show that as the learning rate $η$ decreases, the expected gain with fixed $β$ vanishes faster than these fluctuations, whereas increasing $β$ to keep $η/(1-β)$ within the safe regime preserves a nonvanishing gain that eventually dominates them. Bandit simulations quantitatively validate these predictions. RLVR experiments on Qwen3-4B-Base using SGD with EMA and AdamW support our principle of choosing larger coefficients in practical LLM post-training. On Qwen2.5-32B with AdamW, simply increasing $β_1$ improves mean validation accuracy by nearly $2$ percentage points over the conventional choice, demonstrating the principle's effectiveness at a larger model scale.

Wed 14 OctMachine LearningArtificial Intelligence
The gist
Momentum is a technique used to speed up learning in computers by smoothing out updates. The paper studies when using momentum actually helps in reinforcement learning tasks where the rewards can be verified. The authors show that increasing a specific momentum parameter can make learning faster if you avoid certain mistakes. They confirm their math with experiments on simulated tasks and large language model training, even improving accuracy in bigger models by adjusting momentum settings.
Open → 2610.20413v1

Model safety depends on hidden internal signals not just outputs

From Latent Space to Jacobian Space: Measuring, Evading, and Training Against Safety-Content Accessibility

Abstract: Output-only safety monitoring sees only the end of a model's computation, yet the model computes its answer before emitting it: what it is internally poised to say is safety-critical. Jacobian-space (J-space) readouts, linear maps from hidden states to the output vocabulary via the model's input-output Jacobian, have been proposed as a window on behaviorally accessible internal content, and a first safety protocol (JADR) showed that danger recognition is readable there. What remains unknown is how this accessible content relates to the latent-space safety geometry studied by representation engineering, and how safety training shapes it. We introduce two quantitative bridges: (i) a transport-amplification profile $A_\ell$, measuring how strongly a latent safety direction is carried toward output space by each layer's Jacobian, and (ii) a paired base-vs-tuned protocol that attributes accessibility to training provenance. Across four small model pairs (135M to 1.5B, three lens-fit seeds), tuned checkpoints concentrate recognition in upper-middle layers, and at 0.5B DPO installs refusal while J-space recognition drops to chance: training can widen the accessibility gap exactly where behavioral safety looks best. A deployment audit closes the loop: monitor-aware GCG-style suffixes suppress the prompt-side monitor at zero behavioral cost at every scale; only a learned monitor rung resists its own adaptive re-attack; the training-time defense fails its re-attack at every penalty weight; steering shows the amplification profile is descriptive, not causal; and continuous-prefix optimization fails where discrete search succeeds. Safety monitoring, training, and evaluation must operate on accessibility itself, not on outputs alone.

Sat 3 OctArtificial IntelligenceComputation and Language
The gist
Detecting unsafe content from AI models just by watching their final replies can miss important warning signs hidden inside. The authors studied how internal signals that predict unsafe outputs are connected to what the model is ready to say. They developed new ways to measure how safety-related thoughts inside the model become visible at different layers and how training changes this. Their findings suggest that monitoring and improving AI safety is better done by looking inside the model’s hidden computations rather than only checking its final answers.
Open → 2610.04316v1