Fractal Behavioral Grammar: A Hypothesis for Behavioral Compression in Local Large Language Models

This paper introduces Fractal Behavioral Grammar (FBG), a hypothesis for compressing behavioral interaction patterns in local large language models into compact, reusable rulesets without fine-tuning or cloud infrastructure. We propose that individual interaction patterns with LLMs exhibit fractal self-similarity across sessions — recurring at multiple scales of abstraction — and that these patterns can be extracted, compressed, and reinjected as structured behavioral context. We present a five-layer compression architecture combining MinHash LSH deduplication, hyperdimensional computing (HDC) encoding at D=10,000 dimensions, HDBSCAN clustering, fractal grammar extraction, and AssociativeMemory storage. Empirical stress testing demonstrates an 82:1 compression ratio versus raw conversation history, with AssociativeMemory footprint remaining flat at 39KB regardless of event count up to n=10,000. We further present fg-sync, a concrete CLI implementation integrating FBG extraction with Ollama via a thin HTTP proxy, configurable cron-based pipeline execution, and automatic system prompt injection. The full implementation is released as open source under Apache 2.0.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-06-28
DOI
https://doi.org/10.5281/zenodo.21020195
Primary Topic
Ferroelectric and Negative Capacitance Devices
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Fractal Behavioral Grammar: A Hypothesis for Behavioral Compression in Local Large Language Models

Ryan Moore
Zenodo (CERN European Organization for Nuclear Research)
Ferroelectric and Negative Capacitance Devices
preprint

Fractal Behavioral Grammar: A Hypothesis for Behavioral Compression in Local Large Language Models

Ryan Moore
preprint en

Abstract

This paper introduces Fractal Behavioral Grammar (FBG), a hypothesis for compressing behavioral interaction patterns in local large language models into compact, reusable rulesets without fine-tuning or cloud infrastructure. We propose that individual interaction patterns with LLMs exhibit fractal self-similarity across sessions — recurring at multiple scales of abstraction — and that these patterns can be extracted, compressed, and reinjected as structured behavioral context. We present a five-layer compression architecture combining MinHash LSH deduplication, hyperdimensional computing (HDC) encoding at D=10,000 dimensions, HDBSCAN clustering, fractal grammar extraction, and AssociativeMemory storage. Empirical stress testing demonstrates an 82:1 compression ratio versus raw conversation history, with AssociativeMemory footprint remaining flat at 39KB regardless of event count up to n=10,000. We further present fg-sync, a concrete CLI implementation integrating FBG extraction with Ollama via a thin HTTP proxy, configurable cron-based pipeline execution, and automatic system prompt injection. The full implementation is released as open source under Apache 2.0.

Zenodo (CERN European Organization for Nuclear Research)
Green Chemistry (PL)
Industry, innovation and infrastructure
Ferroelectric and Negative Capacitance Devices
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Fractal Behavioral Grammar: A Hypothesis for Behavioral Compression in Local Large Language Models — Ryan Moore · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS