让前沿模型生成一份幻灯片演示文稿,你会得到一份不错的作品。但如果要求生成十份,它们就开始变得千篇一律:同样的雅致默认设置、同样的品牌风格、以及一种隐约的“AI生成演示文稿”的感觉。这原本没问题,直到你希望演示文稿看起来符合你的模板为止。前沿模型拥有自己的品牌风格,无论怎么提示,都无法阻止它们回归到那种风格。而且,有时内容涉及机密,根本不能离开你的系统。
这两点都指向一个由你拥有的模型:开放权重、运行在你自己的基础设施上、基于你自己的设计语言训练。问题在于,小型开源模型(也就是你真正能够自托管的那种)在这方面表现不佳。它们的演示文稿往往支离破碎:标题消失在背景中、文字溢出幻灯片边缘、形状相互堆叠。
Palette 押注于一种可能性:一个在合成数据上按照你的设计语言进行训练、并通过工具链进行检查的小型开源模型,能够在保持你对结果所有权的同时,与前沿系统竞争。我们对一个20B参数的模型进行了微调,以模拟人类制作演示文稿的方式:设计师规划演示文稿的结构,程序员绘制每一张幻灯片。其训练数据遵循 IBM 设计语言(IBM Design Language),在 PresentBench 基准测试中,在我们测量的三个领域中有两个排名第一。本文介绍我们如何合成数据、训练模型并围绕其构建工具链。
为什么小型模型难以制作演示文稿
幻灯片演示文稿看起来很简单,但制作它要求模型完成三项小型模型不擅长的事情。
它在看不见幻灯片的情况下进行布局。模型并不直接绘制幻灯片,而是编写代码,将每个元素放置在特定的 x 坐标、y 坐标、宽度和字体大小处。75个字符的标题在56磅字号下是否能分两行显示,是模型在脑海中进行的算术运算,直到代码渲染后它才发现自己错了。小型模型经常在此出错,这也是形状重叠和文字溢出幻灯片的原因所在。
它同时做出两种类型的决策。决定每张幻灯片的内容以及如何展示(是图表还是表格?删减什么?)属于编辑判断。精确放置则属于几何问题。单次生成过程必须跨越10到20张幻灯片完成这两项任务,同时保持调色板、字体和布局的一致性。
缺乏关于演示文稿制作过程的数据。虽然有很多现成的演示文稿,但背后缺乏设计选择的理由或生成它们的代码。
像人类一样构建:设计师与程序员
没有人能一次性完成演示文稿的制作。你先决定故事线(多少张幻灯片、每张说什么、哪些用图表、哪些用表格),然后再逐张构建幻灯片。Palette 以相同的方式拆分工作,由单个 LoRA 适配器服务于两个角色:
设计师阅读计划并编写结构化的 JSON 简报:包括调色板、字体系统,以及每张幻灯片的布局、确切内容和简短的设计理由。
程序员从简报中获取一张幻灯片的规格说明,并编写用于绘制该幻灯片的 pptxgenjs JavaScript 代码,并在代码前附上推理过程。
现在每个角色只做出一种类型的决策:设计师处理编辑判断,程序员处理几何问题。它们之间的简报是可读且可编辑的,因此人或代理可以更改单张幻灯片的布局而无需重新生成整个演示文稿。而且,由于在编写任何代码之前每张幻灯片的上下文都已固定,程序员可以并行运行代码,每张幻灯片一个实例,这使得编码阶段的速度提高了约6到7倍。
我们使用 LoRA 而非全量微调来训练适配器:它在具备能力的基础模型之上教授一种格式和技能,而不干扰基础模型已有的知识,并且使每次实验成本更低。其中一个教训是:程序员示例的长度大约是设计师示例的5倍,因此简单的混合会导致设计师欠拟合,直到我们将设计师的示例过采样5倍为止。
合成演示文稿及其推理过程
由于没有公开的包含计划、设计决策和幻灯片代码的语料库,我们利用一个大型开放教师模型生成了这样一个语料库。每张演示文稿都始于一个设定其类型、长度、布局以及任何用户指令的配方,因此我们可以控制数据覆盖的范围。这些计划从整洁的大纲到原始的内容转储不等,从而使模型学会如何裁剪和精简内容。我们生成了大约 1000 张演示文稿,涵盖约 10,000 张幻灯片。
每个示例都附带其背后的推理过程,以反事实的形式书写:该追踪记录权衡了一个替代方案并说明为何被拒绝,从而使模型学习选择背后的规则,而不仅仅是选择本身。设计师对内容和形式进行推理。例如:
“四个季度的收入,呈现一个清晰的上升趋势。我考虑过使用表格,但这张幻灯片的重点是趋势而非确切数字,因此柱状图能让人一目了然。”
编码者对几何布局进行推理:
“标题有 62 个字符。如果字体大小为 44pt,它将换行成三行并延伸到下方的图表中,因此我将其设置为 36pt,这样正好占两行,并为图表上方留出空间。”
仅靠教师模型本身并不能使数据变得优秀;围绕它的循环机制才是关键。每张合成的演示文稿都会被渲染,并由与推理阶段使用的检测程序相同的检查器检查重叠和溢出情况。损坏的幻灯片会被修复,其推理过程会重写为同类的反事实形式,涵盖原始布局的错误之处以及修复方案为何有效。检查器捕获的每一个错误都成为了更好的训练示例。
最难的问题是忠实度。最糟糕的情况是幻灯片包含了输入中不存在的事实,而我们发现提示规则无法防止这种情况发生。如果简报要求一个六乘五的表格,但只提供了三个要点,编码者就必须补全其余部分。
解决这个问题的方法是参考演示文稿,而非规则:修复参考演示文稿能可靠地改变教师模型的输出,而添加规则则很少能做到这一点。教师模型在提示中看到几个参考演示文稿后,会更多地模仿它们,而不是遵循指令。
用自然英语引导演示文稿
用户通常希望对特定的设计选择进行更细粒度的控制:例如使用图表而非表格、特定的颜色或更深的封面色调。Palette 允许用户通过指令来实现这些需求,这些指令是直接写在计划中并用 [[ ]] 包裹的简短说明:
设计师将每个指令融入简报中,编码者在绘制幻灯片时遵循这些指令。如果没有该指令,模型合理地会将这些里程碑显示为表格;有了该指令,模型则会绘制成时间线。
模型之所以遵循指令,是因为它在训练中被教导要这样做。数据配方中包含来自 12 个类别的指令,其中几个如下所示,每个类别都通过几种不同的方式表述,从而使模型学习意图而非固定的短语。
类别
示例指令
布局
[[将其制作成时间线]]
语气
[[直言不讳,不加粉饰]]
受众
[[这是给董事会看的]]
顺序
[[以诉求为开头]]
省略
[[不包含定价信息]]
强调
[[突出显示关键数字]]
图 1. 同一计划在没有(左)和有(右)[[将其制作成时间线]] 指令时的插图。
构建检查与修复机制
即使训练良好的模型有时也会生成损坏的幻灯片:例如标题颜色与背景相同,或者两个框重叠堆叠。因此,Palette 不会直接返回模型的输出;每张演示文稿都要先经过一个处理框架。
图 2. 设计师起草简报,编码者并行编写每张幻灯片的代码,处理框架在返回演示文稿之前检查并修复每张幻灯片。
首先,简单的规则可以修复已知的错误,例如会导致每张幻灯片都变成黑色的格式错误的颜色代码。然后,系统会对每张幻灯片进行渲染和测量:几何检查器会标记重叠、被裁剪或超出幻灯片边界的文本。被标记的幻灯片会被送往一个单独的编辑模型,由该模型重写该幻灯片的代码。
关键规则是,只有当检查器确认幻灯片得到改善时,才会保留重写结果;否则保留原始版本。这使得该工具集可以安全地应用于每一份演示文稿。它可以修复一张幻灯片,但绝不会使其变得更糟。
图 3. 修复过程的示意图。如生成所示(左侧),每张卡片的标题堆叠在其描述之上;工具集检测到重叠后,将卡片重新排列为 2×2 网格(右侧)。
为了衡量其效果,我们生成了 PresentBench 中的每一份演示文稿,并分别在启用和未启用工具集的情况下进行评分。在 131 份演示文稿中,工具集平均增加了 3.5 分。
评估
我们在 PresentBench 上进行评估,该基准根据五项标准对生成的演示文稿进行评分:基础、视觉设计、完整性、正确性和保真度。PresentBench 提供的是源文档而非计划,因此对于这些运行,一个独立的领先模型从源文档中起草了计划,而 Palette 则基于该计划构建演示文稿。我们报告了三个领域的数据;基线数字来自 PresentBench 论文。
图 4. 按领域划分的 PresentBench 评分。Palette(蓝色)与 NotebookLM、Manus 1.6 及其他五个系统(灰色)的对比。Palette 在经济学和教育学领域排名第一,在演讲领域排名第三,在三领域平均值中排名第二。
Palette 在结构化内容和数值准确性决定分数的领域中表现最佳,在经济学和教育学领域均排名第一。在演讲领域,演示文稿以叙事和演讲驱动为主,两个闭源系统的得分更高,Palette 位列第三。在三领域的综合排名中,它位居第二,落后于 NotebookLM(59.7 对 60.8),但领先于其他所有系统,且 Palette 仅是一个拥有 20B 参数的开源权重模型。
PresentBench 衡量的是演示文稿是否优秀,而非其是否遵循特定的设计语言。我们尚未发现能实现这一点的基准,这是我们希望帮助填补的空白。
下一步
该工具集已经计算了廉价且可验证的信号:幻灯片是否渲染成功、是否有重叠或溢出、每个事实是否都能追溯至简报。目前,我们使用这些信号在生成后修复输出。接下来,我们希望将这些检查作为强化学习的奖励,从而使模型从一开始就避免犯这些错误。由于代码编写器一次处理一张幻灯片,每张幻灯片都是一个简短且可独立检查的 rollout(展开过程),这非常适合 GRPO 风格的训练。
我们还希望通过在源文档中提取图表(例如使用 Docling)并利用工具集放置它们,来缩小在图表密集型演示文稿方面的差距。此外,我们正在探索一种更轻量级的方式来引入自定义模板:通过重新设计一个或两个现有 .pptx 文件的外观来实现,而无需重新训练。
我们的经验教训
构建 Palette 让我们学到了一些有效的方法,这些方法可以自然地扩展到输出具有代码可检查结构的其他任务,从图表和示意图到 UI 布局:
将推理过程融入数据中。训练模型了解做出某种选择的原因,包括被拒绝的选项,比仅训练其了解最终选择本身更具教育意义。
在添加规则之前先修复示例。当教师模型出错时,我们的第一反应是在其提示词中添加规则,但这很少有帮助。教师模型对其参考演示文稿的模仿远多于对指令的遵循,因此修复参考文档才是真正改变其输出的关键。
使修复默认安全。只有当修复措施能带来可衡量的帮助时才予以保留,这样的修复可以应用于每一份输出。
先构建检查器。它是确保数据可信和输出安全发布的关键。
Ask a frontier model for a slide deck and you'll get a good one. Ask for ten and they start to look alike: the same tasteful defaults, the same house style, a faint "AI-generated deck" look. That's fine until you want the deck to look like your template. Frontier models have their own house style, and no amount of prompting stops them drifting back to it. And sometimes the content is confidential and can't leave your systems at all.
Both of those point to a model you own: open weights, running on your own infrastructure, trained on your own design language. The catch is that small open models, the kind you'd actually self-host, are bad at this. Their decks come out broken: titles that vanish into the background, text running off the slide, shapes stacked on top of each other.
Palette tests one bet: that a small open-weight model, trained on synthetic data in your design language and checked by a harness, can compete with frontier systems while you keep ownership of the result. We fine-tuned a 20B model to build decks the way people do: a designer plans the deck and a coder draws each slide. Its training data follows the IBM Design Language , and on PresentBench it ranks first on two of the three domains we measured. This post covers how we synthesized the data, trained the model and built a harness around it.
Why decks are hard for small models
A slide deck looks simple, but making one asks a model to do three things small models are bad at.
It lays out the slide without seeing it. The model doesn't draw slides; it writes code that places every element at an x, y, width and font size. Whether a 75-character title fits on two lines at 56pt is arithmetic the model does in its head, and it only finds out it was wrong after the code renders. Small models get this wrong often, which is where overlapping shapes and text running off the slide come from.
It makes two kinds of decisions at once. Deciding what each slide says and how to show it (a chart or a table? what to cut?) is editorial judgment. Placing it precisely is geometry. A single pass has to do both across 10–20 slides, while keeping the palette, type and layout consistent.
There's no data showing how decks get made. Plenty of finished decks exist, but not the rationale behind the design choices or the code that produced them.
Build it like a human: a designer and a coder
Nobody makes a deck in one pass. You decide the story first (how many slides, what each one says, which gets a chart and which gets a table) and only then build each slide. Palette splits the work the same way, into two roles served by a single LoRA adapter:
The designer reads the plan and writes a structured JSON brief: the palette, the type system, and for each slide its layout, its exact content and a short design rationale.
The coder takes one slide's spec from the brief and writes the pptxgenjs JavaScript that draws it, preceded by its reasoning.
Each role now makes one kind of decision: the designer handles the editorial judgment, and the coder handles the geometry. The brief between them is readable and editable, so a person or an agent can change one slide's layout without regenerating the deck. And because every slide's context is fixed before any code is written, the coder calls run in parallel, one per slide, which makes the coding stage about 6–7× faster.
We trained the adapter with LoRA rather than full fine-tuning: it teaches a format and a skill on top of a capable base without disturbing what the base already knows, and it made each experiment cheap. One lesson: coder examples are about 5× longer than designer examples, so a naive mix undertrained the designer until we oversampled its examples 5×.
Synthesizing decks and their reasoning
There's no public corpus of plans, design decisions and slide code, so we generated one with a large open teacher. Each deck starts from a recipe that sets its genre, length, layouts and any user directives, so we control what the data covers. Plans range from tidy outlines to raw content dumps, so the model learns to cut and condense. We generated around 1000 decks covering roughly 10,000 slides.
Every example also carries the reasoning behind it, written as a counterfactual: the trace weighs an alternative and says why it was rejected, so the model learns the rule behind a choice, not just the choice. The designer reasons about content and form. For example:
"Revenue for four quarters, with one clear upward trend. I considered a table, but the point of this slide is the trend, not the exact figures, so a bar chart makes it visible at a glance."
The coder reasons about geometry:
"The title is 62 characters. At 44pt it would wrap to three lines and run into the chart below, so I set it at 36pt, which fits on two lines and leaves room above the chart."
The teacher alone doesn't make the data good; the loop around it does. Every synthesized deck is rendered and checked for overlaps and overflow by the same checker the harness uses at inference. Broken slides are repaired, and their reasoning is rewritten as the same kind of counterfactual, covering what the original layout got wrong and why the fix works. Each mistake the checker catches becomes a better training example.
The hardest problem was faithfulness. The worst failure is a slide with facts that weren't in the input, and we found that a prompt rule can't prevent it. If a brief asks for a six-by-five table but carries only three bullets, the coder has to invent the rest.
What fixed it was reference decks, not the rules: fixing a reference reliably changed the teacher's output, while adding a rule rarely did. The teacher sees a few reference decks in its prompt and copies them far more than it follows instructions.
Steering a deck in plain English
Users often want finer-grained control over specific design choices: a chart instead of a table, a particular color, a darker cover. Palette lets them ask for these with directives , short instructions written directly in the plan and wrapped in [[ ]] :
The designer builds each directive into the brief, and the coder follows it when drawing the slide. Without the directive, the model would reasonably show these milestones as a table; with it, the model draws a timeline instead.
The model follows directives because it was trained to. The data recipes include directives from 12 categories, a few of which are shown below, each phrased several different ways, so the model learns the intent rather than a fixed phrase.
Category
Example directive
Layout
[[make this a timeline]]
Tone
[[be candid, no spin]]
Audience
[[this is for the board]]
Order
[[lead with the ask]]
Leaving out
[[no pricing]]
Emphasis
[[highlight the headline number]]
Figure 1. An illustration of the same plan without (left) and with (right) the [[make this a timeline]] directive.
Building a check-and-repair harness
Even a well-trained model sometimes produces a broken slide: a title in the same color as the background, or two boxes stacked on top of each other. So Palette doesn't return the model's output directly; every deck goes through a harness first.
Figure 2. The designer drafts the brief, the coder writes each slide's code in parallel, and the harness checks and repairs every slide before the deck is returned.
First, simple rules fix known mistakes, such as a malformed color code that would otherwise turn every slide black. Then each slide is rendered and measured: a geometry checker flags text that overlaps, gets clipped or runs off the slide. Flagged slides go to a separate editor model, which rewrites that slide's code.
The key rule is that a rewrite is kept only if the checker confirms the slide improved; otherwise the original stays. That makes the harness safe to run on every deck. It can fix a slide, but it can't make one worse.
Figure 3. An illustration of a repair. As generated (left), each card's title is stacked on top of its description; the harness detects the overlaps and reflows the cards into a 2×2 grid (right).
To measure its effect, we generated each PresentBench deck once and scored it with and without the harness. Across 131 decks, the harness adds 3.5 points on average.
Evaluation
We evaluate on PresentBench , which scores generated decks on five criteria: fundamentals, visual design, completeness, correctness and fidelity. PresentBench provides a source document rather than a plan, so for these runs a separate frontier model drafted each plan from its document, and Palette built the deck from that plan. We report three domains; baseline numbers are from the PresentBench paper.
Figure 4. PresentBench scores by domain. Palette (blue) against NotebookLM, Manus 1.6 and five other systems (gray). Palette ranks first on Economics and Education, third on Talk, and second on the three-domain mean.
Palette does best where structured content and numeric accuracy decide the score, ranking first on Economics and Education. On Talk, where decks are narrative and speech-driven, two closed systems score higher and Palette places third. Across the three domains it places second, 1.1 points behind NotebookLM (59.7 vs 60.8) and ahead of the rest of the field, as a single 20B open-weight model.
PresentBench measures whether a deck is good, but not whether it follows a specific design language. We're not aware of a benchmark that does, and it's a gap we hope to help close.
What's next
The harness already computes cheap, verifiable signals: does the slide render, does anything overlap or overflow, does every fact trace back to the brief. Today we use them to repair output after generation. Next, we want to use the same checks as rewards for reinforcement learning, so the model stops making these mistakes in the first place. Because the coder works one slide at a time, each slide is a short, independently checkable rollout, a natural fit for GRPO-style training.
We also want to close the gap on figure-heavy decks by extracting figures from source documents (e.g. with Docling ) and placing them with the harness. And we're exploring a lighter way to bring your own templates: re-skinning output from one or two of your existing .pptx files, without retraining.
What we learned
Building Palette taught us a few effective methods that extend naturally to other tasks whose output has a structure you can check in code, from charts and diagrams to UI layouts:
Put the reasoning in the data. Training on why a choice was made, including what was rejected, teaches more than the choice alone.
Fix the examples before adding a rule. When the teacher got something wrong, our first instinct was to add a rule to its prompt, and that rarely helped. The teacher copied its reference decks far more than it followed instructions, so fixing the reference was what actually changed its output.
Make repairs safe by default. A fix that's kept only when it measurably helps can run on every output.
Build the checker first. It's what makes the data trustworthy and the outputs safe to ship.
首次收录 · 2026-11-04 · 10.68 分