---
library: "bootstrap"
slug: "Gradient"
name: "Gradient"
ref: "Gradient#ecfc"
hash: "sema:Gradient#mh:SHA-256:ecfc2cd2d9eb95778ef04ede8a7e872c33822f174a9e3273fa7bba92b3a30e36"
type: "Primitives"
layer: "Physics"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Gradient"
---

# Gradient

The directional rate of change of a scalar field — substrate for hill-climbing, attention flow, and credit assignment

Physics · Primitives

## Mechanism

The directional rate of change of a scalar field across a differentiable space. For any sufficiently smooth field f over a differentiable space, the gradient ∇f at a point is the vector whose direction is the one of steepest ascent of f and whose magnitude is the rate of increase in that direction. Substrate property: gradients exist wherever fields exist, whether or not anyone measures them. Specific cases include [Entropy](https://semahash.org/vocabularies/bootstrap/patterns/Entropy.md) gradients (the direction of maximum disorder increase), attention gradients, credibility gradients, information-density gradients. Higher patterns use gradients for hill-climbing search, attention allocation, credit assignment, and flow routing.

## Invariants

- Existence: every sufficiently smooth field on a differentiable space has a gradient defined at every interior point.
- Direction: ∇f points in the direction of steepest ascent of f.
- Magnitude: |∇f| is the rate of change in the direction of steepest ascent.

## Where this came from

—

## Builds on

- [Entropy](https://semahash.org/vocabularies/bootstrap/patterns/Entropy.md) (references)

## Used by

- [Judge](https://semahash.org/vocabularies/bootstrap/patterns/Judge.md) (references)
- [MemeticSeed](https://semahash.org/vocabularies/bootstrap/patterns/MemeticSeed.md) (references)
- [Optimize](https://semahash.org/vocabularies/bootstrap/patterns/Optimize.md) (references)
- [SurprisalUpdate](https://semahash.org/vocabularies/bootstrap/patterns/SurprisalUpdate.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Gradient#ecfc
- Hash: sema:Gradient#mh:SHA-256:ecfc2cd2d9eb95778ef04ede8a7e872c33822f174a9e3273fa7bba92b3a30e36

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Gradient
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Gradient.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
