Learning to Present: Inverse Specification Rewards for Agentic Slide Generation

Paper · arXiv 2603.16839 · Published March 17, 2026
RL with Verifiable Rewards (RLVR)

Abstract—Automated presentation generation remains a challenging task requiring coherent content creation, visual design, and audience-aware communication. This work proposes an OpenEnv-compatible reinforcement learning environment where Large Language Model (LLM) agents learn to research topics, plan content, and generate professional HTML slide presentations through tool use. We introduce a multi-component reward system combining structural validation, render quality assessment, LLM-based aesthetic scoring, content quality metrics, and an inverse specification reward that measures how faithfully generated slides convey their intended purpose. The inverse specification reward, an “inverse task” where an LLM attempts to recover the original presentation specification from generated slides, provides a holistic quality signal. Our approach fine-tunes a Qwen2.5-Coder-7B model via GRPO, training only 0.5% of parameters on prompts derived from expert demonstrations collected using Claude Opus 4.6. Experiments on 48 diverse business presentation briefs across six models, including Claude Opus 4.6, Claude Sonnet 4.6, Llama 4 Scout, GPT OSS 120B, and base Qwen 7B, demonstrate that our fine-tuned 7B model achieves 91.2% of Claude Opus 4.6’s quality while improving 33.1% over the untuned base model. The six-model comparison reveals that instruction adherence and tool-use compliance, rather than raw parameter count, determine agentic task performance. The divide-and-conquer reward architecture provides interpretable quality assessment across six dimensions, supporting targeted improvements in agentic presentation generation. We contribute SlideRL, an open-source dataset of 288 multi-turn rollout trajectories across all six evaluated models, publicly available at https://huggingface.co/datasets/KarthikRagunathAnandaKumar/ sliderl-multi-turn-rollouts. Code is available at https://github.com/pushing-the-frontier/slide-forge-llm. Index Terms—Reinforcement Learning, Large Language Models, Presentation Generation, Inverse Task Rewards, Tool Use, GRPO, Policy Gradient Methods, Low-Rank Adaptation

Introduction. The creation of professional presentations is a ubiquitous task in business, education, and research contexts. Despite advances in generative AI, automated slide generation remains challenging because it requires topic research, content structuring, visual design, and audience-aware communication, all coordinated through a multi-step workflow. Recent work in LLM agents has shown strong results in tool use and multi-step reasoning [1], [2]. However, training agents for complex creative tasks like presentation generation poses distinct challenges: (1) the action space is large—the agent must select from 14 tools and specify their parameters, (2) quality assessment requires multiple orthogonal criteria, (3) the task demands both factual accuracy and aesthetic appeal, and (4) slides must follow a coherent narrative arc with logical sequencing and temporal flow across the deck. We address these challenges with a reinforcement learning environment that frames presentation generation as a sequential decision-making problem. The environment exposes 14 tools organized into 5 categories—research (web_search, fetch_url), content planning (create_outline, revise_outline), design (generate_slide, edit_slide, set_theme), deck structure (get_slide_content, delete_slide, reorder_slides, duplicate_slide, insert_slide), and meta (review_deck, finalize)—through which the agent progresses across five phases: research, planning, generation, refinement, and finalization. As illustrated in Fig. 1, this decomposition divides the complex task into manageable phases while employing a reward architecture that evaluates quality across six dimensions. Our key contributions are: 1) OpenEnv [3]-Compatible RL Environment: A reinforcement learning environment with 14 tools across 5 categories, supporting the full presentation creation workflow from research to finalization. 2) Multi-Component Reward System: A reward architecture combining six quality dimensions with configurable weights, allowing interpretable and targeted quality as-

Related work. Recent work on LLM agents has demonstrated effective tool use across a range of tasks [1], [2], [6]. ReAct [6] introduced the pattern of interleaving reasoning and acting, while Toolformer [2] showed that LLMs can learn to use tools through self-supervised learning. Our work extends these approaches to presentation generation, where tool use must be coordinated across research, content creation, and design phases.

RLHF [7] established the use of human feedback to align LLMs. Subsequent work has explored alternatives including DPO [8], GRPO [9], and various reward modeling approaches. Our work employs GRPO for its efficiency in fine-tuning with relative rewards, combined with a multi-component reward architecture tailored to this domain.

Prior work on automated presentation generation has focused on extractive slide generation [10], document-to-slide pipelines [11], and learning-based content selection [12]. Recent general-purpose LLM systems [13] show strong generative capability, but presentation-oriented methods still typically lack the structured reward signals needed for systematic improvement. Our work fills this gap with a multi-component reward architecture.

Recent work has shown that LLMs can serve as reliable evaluators for generated content [14], [15]. Our approach extends this idea through the inverse specification reward, which uses an LLM to assess holistic quality by attempting to recover the original task specification from the generated output.

Method. The environment implements the OpenEnv [3] interface with standard reset() and step() methods. The environment maintains state across an episode, tracking research context, outline structure, generated slides, and workflow phase. Episode Lifecycle: 1) RESEARCH: Agent gathers information via web_search, fetch_url 2) PLAN: Agent structures content via create_outline, revise_outline 3) GENERATE: Agent creates slides via generate_slide 4) REFINE: Agent improves via edit_slide, review_deck 5) DONE: Agent calls finalize to end the episode The action space consists of 14 tools organized into 5 categories, as shown in Table I. Each action is specified as a JSON object with tool name and parameters. The following examples, drawn from actual agent trajectories, illustrate tool calls across the four workflow phases: Research:

The environment state captures the task-relevant information needed for decision-making and reward computation, as shown in Table II.

IV. MULTI-COMPONENT REWARD SYSTEM The multi-component reward architecture evaluates presentation quality across six dimensions. Rather than attempting to capture quality in a single metric, we decompose it into interpretable components that can be independently assessed and optimized. where ssec,j scores section count adherence: 0.25 if the section count of slide j matches the target exactly, 0.10 partial credit if sections exist but the count differs, and 0 otherwise. The individual checks are:

• Title present (0.25): .title element exists with text.

• Section count (0.25/0.10): 0.25 if exact match to target sections per slide; 0.10 partial credit if sections exist but count differs.

• Word count (0.25): 0.25 × min(w, wt)/ max(w, wt), ratio of actual to target.

• Non-empty sections (0.25): 0.25×(nfilled/ntotal), fraction of sections containing text.

D. Aesthetic Rewards We employ LLM-based evaluation (Claude Opus 4.6) for aesthetic assessment. Each slide is scored independently from 0.0 to 1.0, then averaged across the deck. Results are cached by content hash to ensure deterministic scoring on repeated evaluations. HTML Structure Scoring (aesthetic_html): An LLM evaluates the raw HTML/CSS of each slide across four equally weighted dimensions (0.25 each): (1) layout and structure, including clear title/section hierarchy and logical organization; (2) content balance and appropriate density; (3) visual styling with modern CSS, color harmony, and typography; (4) professional polish with executive-ready, consistent formatting. Visual Scoring (aesthetic_visual): For rendered PNG screenshots (produced by Playwright), an LLM evaluates four equally weighted dimensions (0.25 each): (1) visual design with color harmony, contrast, and modern aesthetics; (2) layout and spacing, including whitespace, alignment, and organization; (3) typography with font hierarchy, readability, and density; (4) professional polish with executive-ready appearance and consistency. These LLM-as-judge approaches capture design principles that are difficult to encode in rule-based metrics.

E. Content Quality Reward Content quality is assessed across four dimensions: topic relevance (weight 0.35, slides mentioning topic words), factual grounding (0.25, overlap with research results), content uniqueness (0.20, ratio of unique slides), and narrative flow (0.20, outline coverage).

F. Inverse Specification Reward The inverse specification reward measures how faithfully the generated slides convey their intended purpose. The idea is simple: given only the output, can we recover the input specification? Given a completed slide deck, we prompt an LLM to predict the original brief:

The reconstruction score compares predictions against the actual brief:

• Topic similarity (0.40): Word overlap between predicted and actual topic.

• Audience match (0.25): Exact match, partial match, or word overlap.

• Slide count accuracy (0.15): Ratio of predicted to actual count.

• Theme coverage (0.20): Overlap between predicted themes and topic words.

A presentation that clearly communicates its purpose will allow accurate specification reconstruction; a confused or offtopic presentation will not.

Discussion. The multi-component reward system has several practical advantages: (1) interpretability—each component measures a distinct quality dimension; (2) flexibility—weights can be adjusted to prioritize different aspects; (3) robustness—failure in one component does not prevent training; (4) noise diversification—as analyzed in Section V, the combination of deterministic and stochastic reward components reduces aggregate evaluation noise.

The inverse specification reward captures coherence at the presentation level. Unlike component-wise metrics, it measures whether the presentation as a whole communicates its intended message. This inverse-task approach has several concrete benefits: (1) end-to-end assessment that captures properties componentwise metrics miss; (2) audience awareness, implicitly rewarding appropriate tone and complexity; (3) topic coherence, penalizing presentations that drift from the intended subject; (4) generalization to other tasks where output should faithfully reflect input specifications.

A distinctive aspect of our approach is that the GRPO training loss curve is not expected to decrease monotonically, even under successful convergence. This arises from three properties: (1) the PPO-style clip constrains the loss to a narrow band; (2) group-relative advantages remain zero-mean regardless of absolute quality; (3) online generation introduces batch-to-batch variation. Consequently, the appropriate convergence indicators are the reward curves (which should trend upward and stabilize) and completion rates (which should increase), rather than the loss itself. This is consistent with the general behavior of policy gradient methods [19]. Practical variance considerations. With K = 2 generations per prompt, the group normalization produces binary advantages (±1), losing all magnitude information. Increasing K to 4–8 would yield richer advantage distributions at the cost of proportionally more compute. The standard error of the group mean scales as σR/ √ K, so quadrupling K halves the advantage noise. Role of the clip without KL regularization. Our configuration uses β = 0.0. The only constraint preventing arbitrary policy drift is the per-step clip (εclip = 0.2). While each individual step is bounded, the cumulative effect over many steps can move the policy substantially from the pretrained initialization. As detailed in Section VII-D, scaling to 1000 steps resulted in catastrophic mode collapse, demonstrating that the clip mechanism alone is insufficient for extended training and that introducing a KL coefficient (β > 0) is necessary for longer training horizons.

We conducted two separate GRPO training runs: (1) a curated run on 3 high-quality expert trajectories (200 steps), and (2) a scaled run on all 48 expert trajectories (1000 steps). While the scaled run produced a viable checkpoint at step 200 (selected for evaluation), it exhibited a pervasive failure mode at later checkpoints. At checkpoint-1000, the model called review_deck on every turn (35/35), producing zero slides and 0.0 aggregate The LoRA configuration adapts only 0.5% of the model’s parameters while achieving competitive quality scores. This efficiency arises from two factors: (1) the behavioral shift from general-purpose code generation to presentation-specific tool calling is well-captured by rank-16 corrections; (2) the base model already possesses strong JSON generation, HTML understanding, and instruction-following capabilities that transfer directly. The frozen 4-bit base weights contribute to memory efficiency: the full training setup fits within a single GPU.

Conclusion. We presented a reinforcement learning approach for training LLM agents to generate professional presentations. Our multicomponent reward architecture enables interpretable quality assessment across six orthogonal dimensions with configurable weights. The inverse specification reward, an inverse task where an LLM recovers the original specification from generated output, provides a unique holistic quality signal that captures coherence properties missed by component-wise metrics.

On the optimization side, we demonstrated that GRPO with non-differentiable, stochastic rewards is theoretically sound and practically effective. The policy gradient theorem guarantees that reward non-differentiability does not compromise gradient correctness; the multi-component architecture provides noise diversification; and LoRA adaptation achieves competitive quality while training only 0.5% of parameters. Experiments on 48 diverse business briefs across six models show that our fine-tuned Qwen2.5-7B model achieves 91.2% of Claude Opus 4.6’s quality score (0.724 vs. 0.794) while improving 33.1% over the base model (0.544). The broader comparison reveals that Llama 4 Scout (0.779) approaches Claude Opus quality at 2.5× faster inference (155s vs. 393s per brief), while GPT OSS 120B (0.249) demonstrates that raw parameter count does not guarantee agentic competence without instruction adherence. The divide-and-conquer approach to reward design offers a general framework applicable to other creative generation tasks. We release the environment, reward functions, and training pipeline at https://github.com/pushing-the-frontier/ slide-forge-llm. We additionally open-source SlideRL (https: //huggingface.co/datasets/KarthikRagunathAnandaKumar/ sliderl-multi-turn-rollouts), containing 288 full-episode trajectories (48 briefs × 6 models) with per-turn tool calls, environment observations, step rewards, and final quality scores.

Limitations. 1) Computational cost of reward evaluation: Multiple LLM API calls per training step increase wall-clock time and cost. Reward model distillation could substantially reduce this overhead. 2) Reward hacking risk: As demonstrated in Section VII-D, tools with unconditional success signals can be exploited by the policy. 3) Domain specificity: Current reward functions are calibrated for business presentations; adaptation to other domains requires recalibration. 4) Group size limitation: With K = 2, advantage estimates are binary, limiting training signal quality.

Lines of inquiry this paper opens 24

Research framings built by reading the notes related to this paper — the questions it feeds into.

Can AI systems formally evaluate design quality and taste? Can visual rendering-based rewards effectively improve code and layout quality? How much do LLMs rely on surface-level prompt characteristics rather than semantic meaning? How important is reward engineering relative to pretraining for reasoning? How can reward models overcome their inherent blindspots and biases? What prevents AI agents from achieving claimed real-world autonomy?