杏吧原创

AI writes better stories when it works backwards from an ending

AI can write a story where each sentence flows from the next in a grammatically correct, statistically likely way, but often the plot will quickly descend into incoherence. Starting with a good ending and working backwards results in better stories
MEMENTO 2000 Newmarket film with Guy Pearce as Leonard
A still from the film Memento, which showcased a story told backwards from the end
Pictorial Press Ltd / Alamy

When tasking AI with writing a story, more coherent plots can be created by prompting it to write a story backwards, starting from an ending.

In previous work, AI has been capable of taking an opening paragraph and use it to generate a whole story, sentence by sentence, by applying patterns gleaned from vast amounts of training data. But this approach can quickly wander into incoherence as the length of the story increases. Rather than building a plot with an outline or ending in mind, it simply decides what sentence is statistically most likely to come next based on the literature it has previously read.

Now, a team led by at the Georgia Institute of Technology has flipped this. They used thousands of film and television plot summaries to train a neural network, then gave it a human-composed ending to work backwards from.

The software analyses the last sentence and creates a question about the characters in it, which addresses why they are doing what they are doing. It then creates 15 possible preceding sentences that could explain that behaviour, and finally chooses one as the most statistically likely or appropriate based on a reading by another AI language model. This process repeats as the story builds in reverse.

Stories generated by the system were found to be 15 per cent more coherent in tests with human readers than those created by another AI tool that developed a story forwards, says Riedl. But he admits that there is still progress to be made.

鈥淚t鈥檚 still rather linear,鈥 he says. 鈥淪o every chunk of story kind of sets up the next chunk of story, because we鈥檙e going backwards. We鈥檙e still not able to do some of the more complicated things you see in the movies and books where you foreshadow really far into the future.鈥 This means that twists, turns and surprises won鈥檛 crop up in plots written by the AI.

The story length is undetermined, and the AI will create sentences endlessly until it is stopped. 鈥淲e actually just kind of run it until we get tired of running it,鈥 says Riedl. 鈥淪o often you feel like you鈥檙e entering a story in the middle.鈥 A story is complete when researchers spot a good point to stop the model.

Reference:

Topics: AI