How kickereb/poiesis-ansh works
Poiesis Ansh is a research experiment suite for measuring prompt, model-prior, and seed contributions to generated images. Its principal workflow is to generate or model an image, compute attribution measures, and record experiment results. The repository also contains robustness, spectral, architecture-prior, and real Stable Diffusion studies. The graph emphasizes documented entry points and sampled call relationships; connections for unsampled implementations are omitted rather than inferred.
Main entry points: model_utils.py Model Loading and Generation · experiment.py Exact Toy Experiment · weight_tools.py Low-Rank Weight Tools · run_seed_robustness.py Seed Robustness Study
Components 20
Toy Attribution
- Exact Toy Experiment
experiment.py - Learned Scene Prior
experiment.py - MI and Shapley
experiment.py - Attention Probe
experiment.py
Attribution Studies
- Robustness Checks
robustness.py - Gaussian Spectral Benchmark
spectral_theory.py - Architecture Prior Pilot
architecture_prior.py
Stable Diffusion Studies
- Real Model Experiments
real_model/README.md - Baseline Generation
real_model/run_baseline.py - Activation Patching Study
real_model/run_activation_patching.py - Activation Recorder and Patcher
real_model/activation_tools.py - Seed Robustness Study
real_model/run_seed_robustness.py - Weight Direction Study
real_model/run_weight_directions.py - Gradient-Aligned LoRA
real_model/run_gradient_svd_lora.py - Output Weight Gradients
real_model/run_output_weight_gradients.py - Trained LoRA Study
real_model/run_trained_lora.py - Low-Rank Weight Tools
real_model/weight_tools.py
Real Model Runtime
- Model Loading and Generation
real_model/model_utils.py
Other components
- Researcher
- Stable Diffusion Checkpoint
Connections 27
- Researcher → Exact Toy Experiment: runs
README.md - Exact Toy Experiment → Learned Scene Prior: learns prior
experiment.py - Exact Toy Experiment → MI and Shapley: computes attribution
experiment.py - Exact Toy Experiment → Attention Probe: probes routing
experiment.py - Researcher → Robustness Checks: runs checks
README.md - Robustness Checks → Exact Toy Experiment: uses core
robustness.py - Researcher → Gaussian Spectral Benchmark: runs benchmark
README.md - Researcher → Architecture Prior Pilot: runs pilot
README.md - Architecture Prior Pilot → Gaussian Spectral Benchmark: uses benchmark
architecture_prior.py - Researcher → Real Model Experiments: runs studies
README.md - Real Model Experiments → Baseline Generation: documents experiment
README.md - Baseline Generation → Model Loading and Generation: loads and generates
real_model/run_baseline.py - Activation Patching Study → Model Loading and Generation: loads and generates
real_model/run_activation_patching.py - Activation Patching Study → Activation Recorder and Patcher: uses hooks
real_model/run_activation_patching.py - Seed Robustness Study → Model Loading and Generation: loads and generates
real_model/run_seed_robustness.py - Seed Robustness Study → Activation Recorder and Patcher: patches activations
real_model/run_seed_robustness.py - Seed Robustness Study → Low-Rank Weight Tools: uses directions
real_model/run_seed_robustness.py - Weight Direction Study → Model Loading and Generation: loads and generates
real_model/run_weight_directions.py - Weight Direction Study → Low-Rank Weight Tools: builds directions
real_model/run_weight_directions.py - Gradient-Aligned LoRA → Model Loading and Generation: loads and generates
real_model/run_gradient_svd_lora.py - Gradient-Aligned LoRA → Low-Rank Weight Tools: uses low-rank tools
real_model/run_gradient_svd_lora.py - Output Weight Gradients → Model Loading and Generation: loads model
real_model/run_output_weight_gradients.py - Output Weight Gradients → Low-Rank Weight Tools: approximates gradients
real_model/run_output_weight_gradients.py - Output Weight Gradients → Gradient-Aligned LoRA: reuses helpers
real_model/run_output_weight_gradients.py - Trained LoRA Study → Model Loading and Generation: loads and generates
real_model/run_trained_lora.py - Trained LoRA Study → Low-Rank Weight Tools: trains adapter
real_model/run_trained_lora.py - Model Loading and Generation → Stable Diffusion Checkpoint: loads snapshot
real_model/model_utils.py