---
library: "bootstrap"
slug: "NoiseInjection"
name: "NoiseInjection"
ref: "NoiseInjection#9958"
hash: "sema:NoiseInjection#mh:SHA-256:99582fc78556fdadc8df343c9a670df7abb87c0030f668f30d6252a182cef083"
type: "Strategy"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/NoiseInjection"
---

# NoiseInjection

Breaking local optima

Mind · Strategy

## Mechanism

If the [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) detects it is looping or repeating text, it deliberately injects high-temperature [Noise](https://semahash.org/vocabularies/bootstrap/patterns/Noise.md) or a random oblique [Strategy](https://semahash.org/vocabularies/bootstrap/patterns/Strategy.md) [Card](https://semahash.org/vocabularies/bootstrap/patterns/Card.md) into its [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) to force a trajectory change.

## Invariants

- Fires on a detected loop or repetition, not as a standing perturbation.
- Injects at most `temperature` worth of [Noise](https://semahash.org/vocabularies/bootstrap/patterns/Noise.md), leaving the [Signal](https://semahash.org/vocabularies/bootstrap/patterns/Signal.md) recoverable.
- Returns to a coherent trajectory after the injection.
- Waits `cooldown` before injecting again.

## Parameters

- temperature: type=Ratio, range=(0.0, 1.0], description=Magnitude of the injected noise, as a share of full randomness.
- detection_threshold: type=Ratio, range=(0.0, 1.0), description=Similarity between successive outputs that counts as looping.
- cooldown: type=Duration, range=unspecified, description=Minimum interval between injections, so noise does not become the trajectory.

## Preconditions

- Clean signal/process
- Need for exploration/robustness

## Postconditions

- Perturbed output

## Failure modes

- Derailment into nonsense: the injection is large enough that the [Signal](https://semahash.org/vocabularies/bootstrap/patterns/Signal.md) does not return.
- False positive: legitimate repetition is read as a loop, and a working trajectory is perturbed.

## Where this came from

—

## Builds on

- [Card](https://semahash.org/vocabularies/bootstrap/patterns/Card.md) (references)
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [Noise](https://semahash.org/vocabularies/bootstrap/patterns/Noise.md) (references)
- [Strategy](https://semahash.org/vocabularies/bootstrap/patterns/Strategy.md) (references)
- [Signal](https://semahash.org/vocabularies/bootstrap/patterns/Signal.md) (references)
- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: NoiseInjection#9958
- Hash: sema:NoiseInjection#mh:SHA-256:99582fc78556fdadc8df343c9a670df7abb87c0030f668f30d6252a182cef083

## Links

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