Background: Generating Frontier-Level Presentations with Small Models
When requesting slide deck creation from frontier models, plausible results emerge. However, after ten or twenty repetitions, they converge to the characteristic basic style of 'AI-generated decks'. To align with user organization templates or design languages, prompts alone have clear limitations. Moreover, if confidential content is included, external API calls are impossible. These two constraints necessitate an open weight model running on its own infrastructure.
The problem is that small open models are weak in presentation generation. Titles can get buried in background colors, text may spill out of slides, and overlapping shapes frequently cause layout breakage. IBM researchers defined this issue as a combination of 'three tasks that small models struggle with.'
- Layout calculation in an invisible state: The model specifies element positions with code (x, y, width, font size), but whether a 75-character title fits into two lines at 56pt can only be known after rendering.
- Simultaneous execution of editing judgment and geometric calculations in a single pass: Editing judgments like 'should it be a chart or a table' must be consistently maintained across 10 to 20 slides with pixel-level placement.
- Absence of production process data: While many completed decks exist, there is no paired data of design intent, design decision rationale, and generation code.
Architecture: Division of Roles Between Designers and Coders
The process is broken down into design → production in two stages, allowing a single LoRA adapter to perform both roles.
| Role | Input | Output | Core Responsibility |
|---|---|---|---|
| Designer | User plan (outline, raw content) | Structured JSON brief | Palette, type system, slide-specific layout, accurate content, design rationale |
| Coder | Slide spec from the brief | `pptxgenjs` JavaScript code + inference | Geometric calculations, element placement, overflow prevention |
This separation allows editing judgment (designer) and geometric calculations (coder) to be distinct, making the brief an intermediate output that can be read and modified by humans, thus eliminating the need for full regeneration with just one slide modification. Additionally, coder calls are executed in parallel per slide, resulting in a 6 to 7 times faster coding phase.
"A person can intervene between briefs to change just one slide layout, and since coder calls run in parallel, the speed gain is significant." — IBM Researchers
The reason for using the LoRA adapter is clear. It allows for injecting format and skills without touching base model knowledge, while also lowering experimental costs. However, the coder examples were about 5 times longer than the designer examples, leading to a problem of the designer lacking sufficient training in simple mixing, which was resolved by oversampling designer examples by 5 times.
Synthetic Data Pipeline: Learning Inference from 10,000 Slides
Since there is no public corpus with paired design intent, rationale, and code, it was synthesized with a large open teacher model. Each deck starts with a recipe (genre, length, layout, user directives) to control coverage. The plan was composed of a variety of structured outlines to raw content dumps, also training summarization and compression capabilities.
- Generation Scale: Approximately 1,000 decks, 10,000 slides
- Inference Format: Counterfactual inference — weighing alternatives and describing why they were rejected
- Designer Example: "There is a clear upward trend in Q4 sales. A table was considered, but the key is the trend, so it is shown at a glance with a bar chart."
- Coder Example: "Title is 62 characters. At 44pt, it wraps into three lines and overlaps with the chart below, so it is adjusted to 36pt to fit into two lines."
Using the teacher alone was insufficient for data quality, so a rendering and validation loop was implemented. Overlaps and overflows were checked with the same checker as the harness, and broken slides were repaired and rewritten with the modified inference. Each mistake caught by the checker became a better learning example.
The most challenging issue was the faithfulness problem — hallucinations inserting facts not present in the input into slides — which could not be prevented by prompt rules. If asked to draw a 6×5 table but only three bullets are present, the coder fabricates the rest. The solution was to present reference decks. By including several reference decks in the prompt, the teacher followed the reference much better than the directives.
Directive System: Controlling Design with Natural Language
A directive syntax was introduced to allow users to finely control aspects such as chart type, color, and cover tone for specific slides. By enclosing directives in double brackets like `[[make this a timeline]]`, designers can reflect them in the brief, and coders follow suit.
- 12 categories of directives included in the data recipe
- Learning multiple expressions for the same intent to avoid fixed phrase dependencies
- Intent-based control is possible, such as changing content that would be drawn as a table to a timeline if a directive is present
| Chart Type | 15 |
| Color Change | 12 |
| Layout | 18 |
| Cover Style | 8 |
| Font Adjustment | 10 |
| Animation | 5 |
| Icon Use | 7 |
| Data Emphasis | 11 |
| Margin Adjustment | 9 |
| Alignment Change | 6 |
| Dark Mode | 4 |
| Brand Application | 13 |
Validation and Repair Harness: Ensuring Quality Based on Rendering
Even well-trained models can produce errors such as title-background color matching and box overlaps. Palette does not return model outputs directly but goes through a harness.
- Designer Brief Draft
- Coder Parallel Code Generation
- Rendering and Validation (Overlap/Overflow)
- Repair and Rewrite Inference
- Final Deck Return
The harness operates similarly at the inference stage, providing runtime quality assurance. Errors caught by the checker are repaired and re-inferred in the same way as during data synthesis, forming a continuous improvement loop.
Evaluation Results and Implications: First Place on PresentBench, Practical Applicability
IBM researchers reported that they achieved first place in 2 out of 3 domains on their own benchmark PresentBench. The key point is achieving practical quality with a self-hostable 20B model while simultaneously solving the fixed problem of frontier model 'house style' and confidentiality constraints.
| Metric | Value | Remarks |
|---|---|---|
| Model Size | 20B Parameters | Open weight, self-hostable |
| Training Data | ~1,000 decks / ~10,000 slides | Teacher model synthesis + harness validation |
| PresentBench Ranking | 1st in 2 out of 3 domains | Proven competitiveness against frontier models |
| Coder Parallelization Speedup | 6 to 7× | Independent execution per slide |
| LoRA Adapter | Dual-purpose designer and coder with a single adapter | Preserves base model knowledge, reduces experimental costs |
| Directive Categories | 12 types | Natural language control, multi-expression learning |
| Faithfulness Solution | Presentation of reference decks | More effective than prompt rules |
So What? The development team can build a presentation generation pipeline that internalizes their design system at the code level without concerns over frontier API costs, delays, or confidentiality leaks. By inserting briefs (JSON) as intermediate outputs in designer-developer collaboration workflows, they also secure points of human intervention. From a research perspective, the synthetic data → rendering validation → counterfactual inference rewriting loop demonstrated a generalizable pattern that enhances the structured generation capabilities of small models.