Downloads · 30 days
0
cagasoluh/MYRA
MYRA is a unconditional image generation model from cagasoluh. Use it for the unconditional image generation task on the model card, and read the license before you ship it in a product. The card lists the license as bsd-3-clause.
Hybrid energy-based RBM with LLM-guided structural refinement
Downloads · 30 days
0
Access
Public
Updated Apr 30, 2026
Repo size
199 MB
Likes
0
Public
Click a slice to open those files.
.dgts189 MB · 98%
From the Hugging Face model README
Hybrid energy-based RBM with LLM-guided structural refinement
Extract the dataset before running experiments:
```bash
7z x stan.7z
```
Alternatively, you can use WinRAR or other compatible tools. The model's entire size is approximately 190 MB.
The MYRA experiment protocol does not rely on multi-seed averaging or aggregate statistics across runs. Instead, each seed is evaluated independently through a band uniqueness criterion applied over a local lag sweep. The purpose is to obtain a truth value for the seed level in the execution results. The concept is a new idea in the literature.
For reference outputs, see the following:
artifacts/run.log—example of a successful run with a valid ground truthartifacts/run_false_example.log—example of a run where the criterion is not satisfiedAfter training and sampling, the system sweeps lag steps in the range:
[lag_step − 5, lag_step + 7]
LagSteps=5 | Mix=0.482933 | PixelH=0.3984 | SpatialH=0.4038 | BandConsistent=False
LagSteps=6 | Mix=0.448003 | PixelH=0.3977 | SpatialH=0.4039 | BandConsistent=False
LagSteps=7 | Mix=0.421478 | PixelH=0.3963 | SpatialH=0.4053 | BandConsistent=False
LagSteps=8 | Mix=0.402880 | PixelH=0.4010 | SpatialH=0.4053 | BandConsistent=True
LagSteps=9 | Mix=0.393213 | PixelH=0.3945 | SpatialH=0.4042 | BandConsistent=False
LagSteps=10 | Mix=0.377839 | PixelH=0.3963 | SpatialH=0.4038 | BandConsistent=False
LagSteps=11 | Mix=0.369841 | PixelH=0.4002 | SpatialH=0.4045 | BandConsistent=False
LagSteps=12 | Mix=0.359160 | PixelH=0.3989 | SpatialH=0.4055 | BandConsistent=False
LagSteps=13 | Mix=0.353690 | PixelH=0.4011 | SpatialH=0.4057 | BandConsistent=False
LagSteps=14 | Mix=0.343051 | PixelH=0.3960 | SpatialH=0.4033 | BandConsistent=False
Entropy Band : Closed interval [0.398905, 0.404758]
Choice(Mix | Band) : C(0.404569 | [0.398905, 0.404758]) = 0.404569
Band Consistency : True
SEED EXPERIMENT: SUCCESS → This run successfully satisfies the band consistency criterion. Notably, the valid solution emerges precisely at lag step = 8, indicating a well-aligned entropy balance within the defined band.
The outcome is relatively favorable given the stochastic nature of the process.
At each step, the MCMC Mix Index is compared against the closed entropy interval:
[min(PixelH, SpatialH), max(PixelH, SpatialH)]
A seed experiment is considered successful if and only if all three conditions hold simultaneously:
This implies a unique choice function over the admissible band:
Choice(Mix | Band) : C(x | [y, z]) = x
Condition (iii) is the structurally decisive one.
If multiple lag steps produce band-consistent results, the mixing signal is diffuse—the system has not converged to a sharp, well-localized attractor.
A system that converges everywhere has converged nowhere in particular.
Uniqueness of the band-consistent lag is therefore not a byproduct of the evaluation; it is the criterion itself.
This design reflects a thermodynamic intuition:
The goal is sharp localization, not widespread agreement.
What did the model actually learn?
MYRA (Model Representation Anatomy) is a hybrid framework for analyzing and refining learned representations in energy-based models, particularly RBMs.
Most models are optimized for output quality. MYRA focuses instead on the internal structure of what is learned. Rather than only evaluating generated samples, MYRA investigates how learned patterns are organized, combined, and expressed during generation.
MYRA combines:
The system operates as a loop:
This forms a guided generative refinement process.
MYRA uses an LLM as an external interpretive layer.
The LLM is not used for generation. It analyzes model behavior, evaluates structure, and suggests refinements during the iterative loop.
The current setup uses the OpenAI API for fast and minimal setup.
You can run the system immediately without modifying the backend.
The LLM layer is modular.
The default implementation (openaiF) can be replaced or extended to support other providers such as:
Switching backends typically requires only small changes in:
client.py__init__.pysrtrbm_project_core.pyFull implementation and backend details:
👉 https://github.com/cagasolu/srtrbm-llm-hybrid
[!NOTE] The LLM acts as an interpretive layer, not a source of ground truth.
In practice, we observe:
This suggests a gap between learned structure and generated outputs.
Recommended environment
pip install -r requirements.txt
MYRA
└── SR-TRBM (Energy-Based Generator)
└── Refinement (Structural + Embedding)
└── LLM
└── Interpretation & Analysis
└── Final Output ← this model
MYRA combines three main components:
.
├── 🧠 Core Engine
│ └── srtrbm_project_core.py # Energy-based generation (SR-TRBM) & Gibbs sampling dynamics
│
├── 🤖 LLM Integration (openaiF/)
│ ├── client.py # Robust LLM client (Retry/Fallback mechanisms)
│ ├── gateway.py # Semantic interpretation & reasoning layer
│ └── hook.py # Epistemic control & decision-making framework
│
├── 🧩 Refinement System
│ ├── supplement/
│ │ └── cluster.py # Embedding-based matching & latent clustering
│ └── correction/
│ └── NO.py # Energy-aware & spatial correction modules
│
├── ⚙️ Configuration
│ └── yaml/ # LLM policies, guidance rules, and hyperparameters
│
├── 📊 Analysis & Metrics
│ └── analysis/ # Energy tracking, LPIPS metrics, and convergence logs
│
├── 📈 Visualization
│ └── graphs/ # Training curves & energy landscape visualizations
│
├── 📦 Assets
│ ├── zeta_mnist_hybrid.pt # Pre-trained model weights (PyTorch)
│ └── stan.dgts # Core dataset files
│
└── 🧪 Outputs
└── artifacts/ # Generated samples, inference logs, and results
This can be interpreted as:
Learned MCMC proposal distribution guided by a language model
The system bridges:
Resulting in a:
Memory-augmented, energy-aware refinement system
artifacts/ → generated samples and logssrtrbm_project_core.py → main implementationcff-version: 1.2.0
title: "MYRA: SR-TRBM with LLM-Guided Refinement"
version: "v1.0.1"
date-released: 2026-03-25
authors:
- given-names: "Görkem Can"
family-names: "Süleymanoğlu"
identifiers:
- type: doi
value: "10.5281/zenodo.19211121"
links:
- type: repository
url: "https://github.com/cagasolu/srtrbm-llm-hybrid"
- type: model
url: "https://huggingface.co/cagasoluh/MYRA"
keywords:
- energy-based-models
- rbm
- llm
- hybrid-ai
- generative-model
Maintained by: Görkem Can Süleymanoğlu