Have you ever thought of robots writing a play script for you what to say on stage!! I wonder that a lot more advanced topic to talk about. but, hey, what if I say it is happening in the right now! yes, Researchers at Charles University, Å vanda Theater and the Academy of Performing Arts in Prague are currently working on an intriguing research project that merges artificial intelligence and robotics with theatre. you read it right!!

Their project's main objective is to use artificial intelligence to create an innovative theatrical performance, which is expected to premiere in January 2021.





"The main idea behind our study came from Tomáš Studeník, an innovator who noticed that the 100-year anniversary of the theatre play R.U.R. is approaching," said Rudolf Rosa, one of the researchers who carried out the study.

Rudolf Rosa

 "This was a key moment for robotics, as the idea of a robot, including the word 'robot' itself, was invented by Karel ÄŒapek and his brother Josef, who wrote this play. Tomáš thought that this should be properly celebrated and came up with the idea of turning the story around: 100 years ago, a man wrote a theatre play about robots; what if today, robots wrote a theatre play about men?" continued Rudolf Rosa.

Before they started working on their project, the researchers reviewed previous literature exploring the potential of artificial intelligence techniques for the creation of poetry, music, paintings, or other forms of art.

While there are now a large number of papers focusing on machine-produced art, including somewhere computational techniques were used to produce dialogues or story ideas for theatre plays, the automatic generation of an entire theatrical performance is a highly complex task that has rarely been attempted before.

Rosa and his colleagues decided to split the production of their play into several sub-parts. Their plan is to use an approach dubbed 'hierarchical generation', which entails splitting the generation of a large body of text into smaller manageable parts. While other research teams used this approach to generate dialogues, scripts or other texts in the past, very few have tried to use it to produce an entire play.


"Thanks to the approaching anniversary, our main target is clear and fixed: by January 2021, we need to have a play ready for the premiere," Rosa explained. 
"As it will be performed by a professional theatre group, we need to have the script ready in September, so that there is enough time for dramatization, rehearsals, etc. Thus, even though we are developing a general tool for theatre script generation, at the moment we only really need to generate one script." continued.

So far, the researchers started experimenting with a pre-trained language model called GPT-2. This is an open-source model developed by the OpenAI consortium and trained on a large amount of online English texts. The first results of their tests are outlined in a paper pre-published on arXiv.

"When we fed GPT-2 a scene-setting and a few lines of the drama script, it generated further lines in the same style and focusing on the topic of the input script chunk," Rosa explained. "This way, we did not have to train anything yet, as we restricted the generator a bit to keep to the task and not to diverge elsewhere. We can thus make use of the great large GPT-2 model trained for a very long time on very large texts, which we could not afford ourselves to train on our hardware, as only the largest tech companies can train such models nowadays." Rosa expressed.

They now plan to fine-tune GPT-2 by training it on existing theatre scripts, as this is far more feasible for them than developing new language generation models and it should lead to the production of a better-quality script for their play.

"We also explicitly work with the human-in-the-loop concept," Rosa said. "Basically, all computer-generated 'art' (if we want to call it so) is touched and retouched by humans in some way, but often this is not very transparent. In our work, we are trying to be very explicit on what the machine does and what a human does, making their cooperation an integral part of the system design, not a post-hoc fix."



"We also still need to ensure that the generated script is coherent and does not repeat or contradict itself, does not introduce new random characters too often, as well as minor but funny things such as preventing cases where a character leaves the scene but continues to speak," Rosa said. "Our first play should premiere in January 2021. We'll see how it goes and what the reception is and then hopefully our observations will drive our further research and development."

At this stage of their research, Rosa and his colleagues still think that robots taking part in their play will need substantial human supervision. In the future, however, they would like to produce a play that can be entirely acted out by robots, without any human performers or human guidance.so, let us wait for that moment then!!