IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generation

Senyu Han,Lu Chen,Li-Min Lin,Zhengshan Xu,Kai Yu
2024-07-01
Abstract:Large language models have demonstrated their capabilities in storyline creation and human-like character role-playing. Current language model agents mainly focus on reasonable behaviors from the level of individuals, and their behaviors might be hard to constraint on the level of the whole storyline. In this paper we introduce IBSEN, a director-actor coordinate agent framework that generates drama scripts and makes the plot played by agents more controllable. The director agent writes plot outlines that the user desires to see, instructs the actor agents to role-play their characters, and reschedules the plot when human players participate in the scenario to ensure the plot is progressing towards the objective. To evaluate the framework, we create a novel drama plot that involves several actor agents and check the interactions between them under the instruction of the director agent. Evaluation results show that our framework could generate complete, diverse drama scripts from only a rough outline of plot objectives, meanwhile maintaining the characteristics of characters in the drama. Our codes and prompts are available at <a class="link-external link-https" href="https://github.com/OpenDFM/ibsen" rel="external noopener nofollow">this https URL</a>.
Computation and Language,Artificial Intelligence,Multiagent Systems
What problem does this paper attempt to address?
This paper aims to address the problem of generating controllable and interactive theatrical scripts. Specifically, the paper proposes a director-actor collaborative agent framework named IBSEN (Interactive-Based playhou Se for ag ENts) for generating controllable theatrical scripts. Existing large language models perform well in story creation and role-playing, but their behavior is mainly focused on the individual level, making it difficult to constrain from the perspective of the entire storyline. Therefore, the IBSEN framework introduces a central control component—the director agent—to write plot outlines, guide actor agents in role-playing, and reschedule the plot when human players participate to ensure the plot develops towards the target direction. In this way, IBSEN can generate complete and diverse theatrical scripts based only on rough plot goals while maintaining the characteristics of the characters in the play. Additionally, the framework allows human players to participate in the plot and dynamically adjust plot details based on the players' actions, ensuring that the plot development does not deviate from the original goals. Experimental results show that IBSEN can effectively generate theatrical scripts and maintain story logic and character consistency to a certain extent.