Palette: Teaching a Small Model to Build Decks in Your Design Language
IBM Research introduced Palette, an open-weight approach that uses a 20B model and an automated harness to generate custom slide decks.
IBM Research introduced Palette, a method for training a 20B open-weight model to generate presentation decks that follow a specific corporate design language, according to a Hugging Face blog post.
How It Works
According to the source, small open-weight models often struggle with layout geometry, spatial arithmetic, and maintaining consistent styles. Palette addresses this by splitting generation into two distinct roles using a single LoRA adapter:
- The Designer: Reads an input plan and writes a structured JSON brief that includes palettes, typography, layout, exact content, and design rationale.
- The Coder: Takes individual slide specs from the brief and writes
pptxgenjsJavaScript code to draw each slide.
Because the designer brief establishes context upfront, the coder stage can execute in parallel—one call per slide—making the coding process roughly 6 to 7 times faster, according to the source.
To generate training data, researchers used a large open teacher model to create roughly 1,000 decks containing about 10,000 slides. Because coder training examples were about five times longer than designer examples, the team oversampled designer examples 5× to prevent undertraining. To ensure factual grounding, the team found that providing reference decks in the prompt was necessary, as the teacher model copied references far more reliably than it followed abstract instructions.
The Check-and-Repair Harness
To manage errors such as overlapping text or elements running off the slide, Palette passes every generated deck through an automated harness. The harness applies basic rule fixes, renders slides to measure geometry, and sends flagged slides to an editor model for code rewrites. Rewrites are kept only if an automated checker confirms an improvement. Across 131 evaluated decks, the harness added an average of 3.5 points.
In evaluations on PresentBench, the source states that Palette ranked first on the Economics and Education domains, third on Talk, and second overall across the three measured domains.
Why Developers Might Care
- Self-Hosted Control: Developers can run open-weight models on local infrastructure to keep confidential data secure while enforcing a strict corporate house style without style drift.
- Safe Automated Fallbacks: The check-and-repair harness pattern provides a reliable architecture for code-generation tasks where output can be validated programmatically and corrected safely.
- Natural Language Steering: Users can insert plain-English directives (such as
[[make this a timeline]]) into source plans to steer model output without rigid template hardcoding.
Limitations
- Layout Arithmetic: Small models struggle natively with layout math, such as estimating whether a long title will fit at a specific point size, requiring external geometry checks.
- Missing Benchmarks: The source notes that while PresentBench measures general deck quality, there are no existing public benchmarks that explicitly score adherence to a specific proprietary design language.
- Figure-Heavy Content: The system currently struggles with figure-heavy documents, requiring future integration with external tools like Docling to properly extract and place figures.