ThoughtSeedVAE (services/thought_seed_net.py) is a Conditional Variational Autoencoder that lets Frank generate his own thought seeds — 5-8 concept words that the LLM then expands into full thoughts.
Architecture
- 433K parameters total
- 804-word vocabulary (learned from Frank's reflection corpus)
- 24-dimensional latent space
- BiGRU encoder/decoder (bidirectional GRU)
How It Works
- Current state (mood, energy, time, recent topics) conditions the latent space
- A sample from the latent distribution produces a seed: e.g.,
[architecture, coherence, reflection, growth, pattern] - The LLM receives the seed and expands it into a full thought
- Quality filters (Neural Conscience, Neural Reality Gate) gate the output
Why Not Just Prompt the LLM?
Because LLMs prompted with "think about something" produce generic output. The VAE biases toward topics that Frank's training corpus found meaningful, creating thought diversity that pure LLM sampling cannot achieve.