gradients

Tag

Cards List
#gradients

Automatic Differentiation from Scratch: How PyTorch Computes Gradients in Physics-Informed Neural Networks

arXiv cs.LG · 2026-07-16 Cached

This paper traces step-by-step how PyTorch's automatic differentiation engine computes gradients for Physics-Informed Neural Network training, including the two levels of differentiation needed for physics residuals and parameter gradients, using a simple MLP and ODE example.

0 favorites 0 likes
#gradients

Directional Alignment Mitigates Reward Hacking in Reinforcement Learning for Language Models

Hugging Face Daily Papers · 2026-05-24 Cached

This paper studies reward hacking in reinforcement learning for language models through the geometry of updates, identifying optimization drift as a key factor. It proposes trusted-direction projection to constrain gradients within a clean reference subspace, delaying shortcut exploitation and preserving task performance.

0 favorites 0 likes
← Back to home

Submit Feedback