ablate 0 0 0

mayank-dubey-ai/retro-icon-rl

published by @mayank-dubey-ai

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.3K
Last 30 days
588
Likes
-
Size
637.1 MB
Created on HF
2026-08-24
Age
1 months ago

Description

RetroIcon-RL: 32x32 Retro Pixel-Art Icon Generation with Deterministic Verification

This repository implements RetroIcon-RL — training and evaluating small code models with Reinforcement Learning (RL) and programmatic verification to generate consistent, crisp retro pixel-art icon packs from natural language prompts using sharp SVG block geometry.

🎯 Phase 1 — The 32x32 Task Specification

Canvas: Exactly $32 \times 32$ integer grid (viewBox="0 0 32 32").… See the full description on the dataset page: https://huggingface.co/datasets/mayank-dubey-ai/retro-icon-rl.

Tags

task_categories:text-to-imagetask_categories:reinforcement-learninglicense:mitmodality:imageregion:usretro-pixel-artsvgreinforcement-learningrepresentation-engineeringqwen3pixel-art

README current version from Hugging Face


license: mit
task_categories:

  • text-to-image
  • reinforcement-learning
    tags:
  • retro-pixel-art
  • svg
  • reinforcement-learning
  • representation-engineering
  • qwen3
  • pixel-art

RetroIcon-RL: 32x32 Retro Pixel-Art Icon Generation with Deterministic Verification

This repository implements RetroIcon-RL — training and evaluating small code models with Reinforcement Learning (RL) and programmatic verification to generate consistent, crisp retro pixel-art icon packs from natural language prompts using sharp SVG block geometry.

Master V2 Showcase


🎯 Phase 1 — The 32x32 Task Specification

  • Canvas: Exactly $32 \times 32$ integer grid (viewBox="0 0 32 32").
  • Palette: Fixed 8-Color Retro Palette:
    • BLACK: #000000 | DARK_GRAY: #2B2D42 | WHITE: #FFFFFF | CYAN: #00E5FF
    • PURPLE: #9D4EDD | GREEN: #00E676 | YELLOW: #FFD600 | RED: #FF1744
  • Geometry Rules: Strict integer <rect> pixel blocks. No bezier <path>, no <circle>, no gradients, no anti-aliasing.

🛠️ Phase 2 — Deterministic Rule-Based Validator & Pure-Python Renderer

The pipeline prompt ➔ model ➔ structured SVG ➔ validator ➔ pixel-perfect PNG enforces 6 automated checks:

  1. XML/SVG parse tree well-formedness.
  2. Exact $32 \times 32$ dimensions.
  3. 100% adherence to the fixed 8-color palette.
  4. All coordinates within $[0, 32]$.
  5. Integer-only rectangular geometry without bezier smoothing.
  6. Minimum icon density (>= 3 distinct geometry blocks).

🚀 The Master V2 Pipeline (SFT + GRPO)

We implemented Surya Narreddi's Pairwise RL methodology to train Qwen3-8B on an NVIDIA H100.

1. SFT Warm-Start (120 Gold Experts)

We synthesized 120 canonical 32x32 pixel-art icons using Gemini 2.5 Flash (data/expert_expanded_100.jsonl). Fine-tuning on this dataset gave the base model the 2D spatial coordinate grammar needed to place pixels accurately.

2. Surya-Style Pairwise GRPO Training

Using the SuryaRewardEngine, we abandoned absolute 1-to-10 scoring. For every generation step, Qwen generated $G=4$ rollouts. The engine pitted them in blind 1v1 matchups against the Gold Reference pool, judged by Gemini 2.5 Flash on silhouette clarity and aesthetic polish.

$$R(x) = \text{validity_gate}(x) \times \Big( 0.05 \times \text{efficiency_bonus}(x) + 0.95 \times \text{pairwise_win_rate}(x, \text{Pool}) \Big)$$

Results

The final policy achieved 100% syntactic validity and beat or tied the Gemini 2.5 Flash Gold standard on highly complex visual metaphors (e.g. mushroom fungi, spell book, hard drive, pocket compass, dynamite fuse, store storefront, camera photo).


🎨 Experiment 2: Paint-with-Code (Qwen2.5-Coder-1.5B)

We also ran a pure Direct RL (GRPO) experiment on Qwen2.5-Coder-1.5B to draw watercolor hibiscus flowers using Python matplotlib.patches.

  • Result: The model learned 100% executable Python syntax in just 10 steps. However, without an SFT warm-start, it hit an aesthetic plateau, generating structurally valid but visually crude geometric blobs, proving that RL requires a strong structural prior for complex creative tasks.

🚀 Reproduction

# 1. Clone repository
git clone https://huggingface.co/datasets/mayank-dubey-ai/retro-icon-rl
cd retro-icon-rl

# 2. Run the full Master V2 Pipeline (SFT + GRPO + Showcase)
python3 train_master_v2.py

README history 20 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-08-25Upload 1.5B model showcase53cec9b3.5 KB
    Loading...
  2. 2026-08-25Upload detailed spatial prompting comparison2f5e1913.5 KB
    Loading...
  3. 2026-08-25Update README with Master V2 pipeline results and Paint-with-Code experimentd34600b3.5 KB
    Loading...
  4. 2026-08-25Upload Master V2 Training Scriptf4afea92.7 KB
    Loading...
  5. 2026-08-25Upload 1.5B Paint-with-code Gold Reference187cdd52.7 KB
    Loading...
  6. 2026-08-25Upload 1.5B Paint-with-code RL results and logs910ddda2.7 KB
    Loading...
  7. 2026-08-25Upload final Master V2 GRPO and SFT checkpoints4fd4c302.7 KB
    Loading...
  8. 2026-08-25Upload Master V2 outputs and logs (part 3)04b39fe2.7 KB
    Loading...
  9. 2026-08-25Upload Master V2 outputs and logs (part 2)5e0b13e2.7 KB
    Loading...
  10. 2026-08-25Upload Master V2 outputs and logs5a453ed2.7 KB
    Loading...
  11. 2026-08-25Upload final Master V2 showcasing and visualizations63168d72.7 KB
    Loading...
  12. 2026-08-25Complete Post-SFT GRPO training run, upload trained adapter, and final showca...4426d402.7 KB
    Loading...
  13. 2026-08-25Complete Post-SFT GRPO training run, upload trained adapter, and final showca...24a52262.7 KB
    Loading...
  14. 2026-08-25Complete Post-SFT GRPO training run, upload trained adapter, and final showca...2c523932.7 KB
    Loading...
  15. 2026-08-25Complete Post-SFT GRPO training run, upload trained adapter, and final showca...fbcea572.7 KB
    Loading...
  16. 2026-08-25Add Zero-Shot Generalization Benchmark (10 unseen concepts) on SFT policy and...9c164142.7 KB
    Loading...
  17. 2026-08-25Add Zero-Shot Generalization Benchmark (10 unseen concepts) on SFT policy and...b19296c2.7 KB
    Loading...
  18. 2026-08-25Upload SFT Warm-Start trained adapter, reward diagnostic trends graphic, and ...02b384b2.7 KB
    Loading...
  19. 2026-08-25Upload SFT Warm-Start trained adapter, reward diagnostic trends graphic, and ...798cac72.7 KB
    Loading...
  20. 2026-08-25Upload SFT Warm-Start trained adapter, reward diagnostic trends graphic, and ...8d000572.7 KB
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Related datasets same stage · ablate

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("mayank-dubey-ai/retro-icon-rl")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="mayank-dubey-ai/retro-icon-rl", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/mayank-dubey-ai/retro-icon-rl
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration