GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - infinition/LSTN: LSTN is an experimental text generation engine that models language not as static probabilities, but as a dynamic and "liquid" neural network. Each trigram (3-character sequence) acts as an individual neuron within a continuous temporal dynamic system.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
test.txt
test.txt
 
 

Repository files navigation

LSTN icon

LSTN (Liquid Spiking Trigram Network)

License Rust Buy Me a Coffee

An experimental text generation engine in Rust that models language as a spiking neural network. Each trigram (3-character sequence) is a neuron. Instead of computing a probability distribution, the engine simulates energy flowing between neurons: neurons fire, propagate energy to their neighbors based on learned synaptic weights, then enter a refractory period before they can fire again.


Core concept

Standard character-level models pick the next character from a static probability table. LSTN treats each trigram as a live node in a network whose state changes at every generation step.

Key dynamics:

  • Firing: a neuron whose voltage exceeds FIRE_THRESHOLD emits its output character, propagates energy to connected neurons, and resets to zero.
  • Refractory period: after firing, a neuron is silenced for REFRACTORY_TIME steps, preventing immediate re-activation and discouraging repetition.
  • Decay: all active neurons lose voltage each step (V(t+1) = V(t) * DECAY_RATE), creating natural temporal forgetting.
  • Defibrillator: if no neuron reaches the firing threshold (the network dies), a universal energy pulse is injected into all neurons with outgoing connections to restart generation.

Training

The corpus is split into sliding windows of 4 characters. For each window [c1, c2, c3, c4], a synaptic link from (c1,c2,c3) to (c2,c3,c4) is reinforced by LEARNING_RATE. After corpus ingestion, each neuron's weights are locally normalized.


Hyperparameters (src/main.rs)

Constant Default Description
DECAY_RATE 0.92 Voltage decay per step (closer to 1 = broader activation)
FIRE_THRESHOLD 1.0 Minimum voltage to emit a character
REFRACTORY_TIME 2 Steps a fired neuron stays silent
LEARNING_RATE 1.0 Synaptic weight increment per training example

Building

# Run
cargo run --bin lstn

# Release build
cargo build --release --bin lstn

Star History

Star History Chart

License

MIT.

About

LSTN is an experimental text generation engine that models language not as static probabilities, but as a dynamic and "liquid" neural network. Each trigram (3-character sequence) acts as an individual neuron within a continuous temporal dynamic system.

infinition.github.io/LSTN/

Topics

liquid-neural-networknatural-language-processingneuromorphicrustspiking-neural-networksynaptic-plasticitytemporal-dynamicstext-generationtrigram-model

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.