Original PDF
Chapter 07

Conclusion

A typewriter? — why shd it only make use of the tips of the fingers as contact points of flowing multi directional creativity. If I invented a word placing machine, an “expression-scriber”, if you will, then I would have a kind of instrument into which I could step & sit or sprawl or hang & use not only my fingers to make words express feelings but elbows, feet, head, behind, and all the sounds I wanted, screams, grunts, taps, itches, I’d have magnetically recorded, at the same time, & translated into word–or perhaps even the final xpressed thought/feeling wd not be merely word or sheet, but itself, the xpression, three dimensional–able to be touched, or tasted or felt, or entered, or heard or carried like a speaking singing constantly communicating charm. A typewriter is corny!! — Amiri Baraka (Baraka, 1969)

7.1 Summary of research background and objectives

At the time that we started our research, Creative DL — the field investigating the application of DL to the production of artistic and creative works — was very much in its infancy, and was just starting to show potential (Sutskever et al., 2011; Boulanger-Lewandowski et al., 2012; Sutskever, 2013; Graves, 2013; Nayebi & Vitelli, 2015; Sturm, 2015; Ha, 2015; Gregor et al., 2015; Nguyen et al., 2015; Gatys et al., 2015a, 2015b; Mordvintsev et al., 2015; Radford et al., 2015; Nayebi & Vitelli, 2015). While these methods demonstrated great possibilities, they allowed for very little, if any, Meaningful Human Control, and no Realtime Continuous Control whatsoever. Furthermore, the outputs generated by these methods were of relatively low quality, and the methods themselves were not necessarily very stable. As a result, the majority of research in this area was focused more on improving the quality and stability of such methods, without necessarily thinking about Meaningful Human Control, or Realtime Continuous Control.

At this time, we hypothesised that both Meaningful Human Control and Realtime Continuous Control would become very important areas of research within Creative DL, and were vastly under-explored. Operating under the expectation that these methods would be improved in terms of quality and stability — especially with massive investments from industry giants such as Google, Microsoft, Facebook, Adobe, OpenAI, and Nvidia — we chose to focus our research specifically on the topic of Realtime Continuous Meaningful Human Control.

We set out to investigate Deep Visual Instruments: realtime interactive generative systems that exploit and leverage the capabilities of state-of-the-art Deep Learning algorithms, while allowing Meaningful Human Control over the generated media, in a Realtime Continuous manner. Our aim was to explore new modes of performative, artistic expression, using Deep Learning models as a medium and visual instrument.

We are very pleased to observe that over the years, Creative DL with Meaningful Human Control has become a rapidly growing, very exciting area of research (Isola et al., 2016; Zhu et al., 2017; Ha & Eck, 2017; Karras et al., 2017; Park et al., 2019; Karras et al., 2019; Simon, 2019; Bau et al., 2019; Karras et al., 2020; Härkönen et al., 2020; Jiang et al., 2020; Broad et al., 2020), and we are very pleased to have been part of this movement. However, we believe that Realtime Continuous Control within Creative DL is still vastly under-explored. We hope and believe, that this too will become an active area of research in the upcoming years, and we hope that our work will be of value.

In this thesis, we first define the two key criteria that we frame our research around, and that we believe to be incredibly valuable, and yet a major gap in current Creative DL research, both from the artistic side, and technical side.

In section 1.3: Meaningful Human Control, we first define what we mean by Meaningful Human Control, a term that we reappropiate from the Autonomous Weapons Systems literature. We provide examples of types of interactivity that we consider do not qualify as Meaningful Human Control. For example, ‘pressing a button' that triggers some autonomous process to produce some creative outputs, with no further input from a user. Or adjusting some ‘random sliders' which affect the output in an unpredictable manner. We discuss the act of curation as potentially a creative act, but not demonstrative of Meaningful Human Control over the creation process, at an algorithmic level. And we identify intent, predictability, and accountability and expression as key factors to be considered when thinking about Meaningful Human Control in a creative context.

In section 1.4: Visual instruments: Realtime Continuous Control, we also define what we mean by Realtime Continuous Control in this context, a term that we reappropiate from the cybernetics and control theory literature (Wiener, 1948). We further situate this in the context of visual instruments, and realtime performative interaction, borrowing also from visual artists developing custom performance tools ranging from Louis-Bertrand Castel (Castel, 1740), to Shuya Abe and Nam June Paik (Medienkunstnetz.de, n.d.)), and the Rutt-Etra Video Synthesizer (Collopy, 2014); as well as flow research (Mihaly Csikszentmihalyi, 1996; Csikszentmihalyi et al., 2005) and Goal-less exploration (Secretan et al., 2008; Stanley & Lehman, 2015). We provide a more comprehensive survey of these histories in chapter 2: Background.

We discuss how a system that meets both of these criteria can grant opportunities for a user to explore a massive space of possibilities in realtime. Without even necessarily having an initial goal to begin with, through Realtime Continuous Meaningful Human Control, a user can gradually steer through the space of possibilities and hone in on some previously unknown, interesting and desirable outcomes (Secretan et al., 2008; Stanley & Lehman, 2015). In fact, in such a system that meets these criteria, we prefer to think of the user that interacts with the system as more like a performer that plays with the system.

We believe this to be an incredibly valuable area of research. We believe this due to the decades of research in Artistic Expressive Human-Machine Interaction prior to DL (Krueger et al., 1985; Cadoz & Wanderley, 2000; Levin, 2000; Gillian, 2011; R. A. Fiebrink, 2011; Caramiaux, 2015). We also believe the poetically expressed words in the quote that opens this chapter, by the renowned African-American poet and writer Amiri Baraka.

7.2 Research methodology

With this thesis, we explore what DL can bring to this conversation, and we hope to encourage more researchers, artists and designers to join this conversation too.

For this reason, our aim in this thesis is not only to invent and present specific methods that bring Realtime Continuous Meaningful Human Control to Creative DL. Instead, first and foremost, our goal is to demonstrate the potential and wide range of possibilities granted by incorporating Realtime Continuous Meaningful Human Control into Creative DL. We wish to do this because we wish to help open up the discourse within Creative DL towards this direction. We wish to encourage more research, more work, more thinking and more conversations around these particular topics.

Based on these motivations, instead of focusing on going very deep in one direction and producing a single, very complete, thoroughly user-tested product that is ready to be deployed to the general public for widespread use, we chose to investigate many different approaches, and we develop each approach just enough to demonstrate its potential. We chose this route because we believe that this can provide a wider range of opportunities to build upon in future work.

We developed a total of five studies, and for each study we developed a software application that demonstrates a particular method. In addition to publishing peer-reviewed academic papers, we also use the software that we create, to produce a number of artworks that we share online and exhibit at galleries, museums and festivals. Furthermore, we use these artworks — and our own experience of producing these artworks using the methods and software that we develop — as a way of evaluating and refining our methods and software tools.

As summarised in the previous section, prior research within Creative DL did not provide any realtime continuous control over the outputs generated by a DNN. For this reason, the first step in evaluating the methods that we develop in this thesis can be assessed objectively, if the methods that we present do in fact introduce any forms of realtime, continuous interaction and control to previously non-realtime, non-interactive, non-controllable processes. However, this is not sufficient for Meaningful Human Control, and to pass the criteria that we set for ourselves in this thesis.

For this reason, through an iterative subjective evaluation process, we then fine-tune our methods and software, until we subjectively feel that they allow us to produce works that carry our intent and personal expressive signature. In other words, we create a number of artworks with the methods and software tools that we develop in this thesis, and we use these artworks to reflect upon, test, and refine the effectiveness of our methods.

At every iteration of our software, we subjectively assess i) how ‘generic' vs ‘unique' the output of our software is (in other words, how easily could it have been made by other, simpler methods; or how much it resembles existing works or outputs by others); and most importantly ii) how much of our ‘intent' is included in the output. In other words, we iteratively develop the software, continually assessing how in control of the output we — as an artist, and the alleged author of the output — feel.

It is important to note that in this context ‘being in control' does not necessarily mean that we must have absolute control over every aspect of the output, and over every pixel, as this would negate the need for using such complex systems as DNNs to begin with.

As a media artist developing and working with realtime interactive computational systems for creative expression for almost two decades, there's a number of metaphors which we have fostered over the years that adapt in context of our research within Creative DL.

The first borrows from more traditional Art practices, and in particular, Abstract Expressionism. When action painters such as Jackson Pollock or Lee Krasner splash and drip paint onto a canvas, we can think of the system that they are interacting with — comprising of a brush, paint, canvas, gravity, and fluid dynamics — as a generative system. This generative system may seem to an untrained eye (or hand) to be ‘random', unpredictable and even uncontrollable. However, over time, the Artists learn to master this system, to the extent that they are able to meaningfully control the output such that the images that they produce carries their intent, and their personal expressive signatures.

While this metaphor may feel suitable in the context of simpler generative computational systems, once we introduce higher complexity such as DNNs, we may need suitably more complex metaphors. In this latter case, and in the context of our thesis, the desired relationship between human and machine (and DL driven software) is less analogous to the relationship between an Action Painter and their paint splashing and dripping on canvas, and it is more analogous to the relationship between a director (e.g. an Art Director or a Film Director) and a skilled crafts-person such as a graphic designer, video editor, or a cinematographer. In all of these cases, a ‘visionary' (i.e. the director) communicates their vision to an ‘executor' (e.g. graphic designer, video editor, or cinematographer) who produces the final output under the direction of the visionary. Needless to say, the skills and experience of the executor is critical in shaping the output. However, the influence of the executor is not only in how they produce the output. The executor may also influence the vision of the director, in that as the director sees what the executor is capable of, and how they work, their own vision may evolve.

In this sense — provided they are not micro-managing every little detail — the director is not in full control over every aspect of the output. However, it is their vision that is being executed by a skilled executor, and they may even continually update their vision, as they see what the executor is capable of. It's also worth noting that the communication between director and executor is often realtime and continuous, in that the director can see the output produced by the executor while the executor is working, and the director can provide feedback, steering the results in a direction that they desire.

In the context of our research, we wish to put human users, artists, creators in the position of visionary director, and DNN powered Creative DL software tools in the position of skilled executors, analogous to talented graphic designers, video editors, cinematographers etc. However, we should be very clear that this analogy is merely with regards to the relationship between director and executor. Our goal is absolutely not to automate the specific tasks of graphic design, video editing or cinematography. Instead, we wish to develop these kinds of relationships between human users and semi-automated tools, while simultaneously exploring new creative roles and mediums that do not currently exist.

7.3 Summary of contributions and outcomes

As mentioned in the previous section, we developed five studies. In some ways each study builds upon the previous study, leveraging the lessons that we learnt from our experience with that study. But in many other ways, each study is quite independent and tackles the topic from very different angles.

In section 3.2: Collaborative generative sketching with MCTS and CNNs, our aim was to develop a collaborative generative sketching application in which a human user could collaborate with a DNN driven AI-agent in realtime. While our system showed potential, and technically worked, it did not produce the aesthetic results that we desired. To be more precise, the images produced by the agent consistently resemble noise. We discovered that this is due to the fact that discriminative CNN image classifiers, while performing at super-human level on natural images, produce many false positives on unnatural images. For this reason, we changed our approach, and this led to the next study that we will present. In the meantime however, the questions that we were asking in this study and the application that we were looking to build, was later replicated by researchers at Google using a very different technical approach (Ha & Eck, 2017)Footnote 1.

Despite the failure of this study to achieve the aesthetic results that we were hoping to achieve, we feel that the questions that we were asking and our proposed approach were interesting enough to be included in this thesis. And presumably for similar reasons, our paper (Akten & Grierson, 2016a) was accepted to the Constructive Machine Learning Workshop at the Thirtieth Conference on Neural Information Processing Systems (NeurIPS) in 2016. And again despite this failure, seeing our collaborative agent sketch something in realtime driven by a DNN with continuous human interaction and control, was exciting and encouraging enough to lay the foundations for our next study.

In section 3.3: Realtime interactive text generation with RNN ensembles we present a method based on an ensemble of LSTM RNNs that allows a user, or indeed a performer, to gesturally conduct the generation of text in different styles. We implement a number of different modes of interaction, ranging from playing with faders on a GUI, to gesturally and expressively conducting the generation of text through simply waving hands in the air. This latter mode of interaction, when paired with a text-to-speech system for example, removes the need for a screen altogether. This relieves the performer from having to sit behind a computer, and they can instead freely move around, while gesturally controlling the generation of a flow of text, just as a conductor conducts an orchestra.

It is important to note, that we do not claim this form of gestural interaction to be the most optimal mode of interaction for producing text. However, we do believe that it demonstrates perfectly what we set out to investigate in this thesis. That is, to demonstrate that it is possible to build visual instruments that leverage the power of generative deep models. And it is possible to design such interactive systems with both Meaningful Human Control, and Realtime Continuous Control. And that such an approach opens up a large range of new possibilities when combined with the expressive capacity of deep generative models.

We were delighted to have this work selected to be shown at the Neural Information Processing Systems (NeurIPS) 2016 conference, not just as a paper (Akten & Grierson, 2016b), but also as a live demo. In fact we showed the live demo at a number of other conferences and events. As a result, hundreds of researchers have experienced the work first-hand, and hopefully have seen the potential opportunities that Deep Visual Instruments have to offer. As expected, a (surprisingly small) number of researchers did not see the point of such an application. This is to be expected. We realise our research is quite far from current mainstream DL research. This demonstration in particular, gesturally conducting the generation of text, is perhaps too obscure for those researching applications of DL to Natural Language Processing (NLP) and Understanding (NLU). However, the majority of the feedback we received was incredibly positive. And seeing the trend in DL research in more recent years further confirms this.

This was the first of our studies that we consider to be fully successful in allowing Realtime Continuous Meaningful Human Control over the output of a generative system incorporating a DNN. Having accomplished this, working with relatively low-dimensional data (in the order of tens), we now switch to higher dimensions (in the order of hundreds of thousands to millions). Namely, we work with pixel based images.

In chapter 4: Hello World: Realtime interactive training as an informative and performative tool we develop an application that trains in realtime on a live video feed. We initially develop this application out of curiosity, in order to observe a DNN train in realtime, and hopefully gain some insights. In particular, we build our system around a Convolutional Variational Auto-Encoder (VAE). We develop an interface where we can manipulate hyperparameters in realtime via a GUI while the model is training, and we can observe the results instantly with immediate feedback. Using this system we are indeed able to observe and build a qualitative understanding of hyperparameters such as different loss functions and optimisers, varying latent dimensionality, learning-rate, momentum, gradient clipping thresholds etc.

Furthermore, an unexpected outcome of this study came as we realised the incredible performative potential of the system. We were not only able to build a qualitative understanding of these hyperparameters, but we were able to use them creatively, in an expressive and performative manner. Mapping the hyperparameters to faders on a hardware midi controller, we could manipulate multiple hyperparameters simultaneously and continuously, without taking our eyes off the screen. This allowed us to for example, find delicately balanced configurations of hyperparameters such as learning rate, momentum, and gradient clipping, such that the optimiser converges to stable oscillation points. Through further hyperparameter manipulations, we were able to cause the system to explode, and then we could bring it back under control again. Finally, on top of the hyperparameter manipulations, a second mode of interaction proved to be incredibly fruitful. This is manipulation of the video feed. In other words, simply moving ourselves or objects in front of the camera.

With these two modes of interaction combined, we felt the system really had the capacity to be performed and played, just like a visual instrument. In that sense this study also perfectly encapsulates our goal in this thesis. Through the bespoke system that we developed, we were able to manipulate the outputs of a generative DNN in realtime, with continuous and meaningful control. As a result, we were able to generate moving images and performances as we desired, that were not only not possible to create and manipulate via other means, but prior to working with this system, we did not even know that the DNN we were working with was capable of producing such images and image manipulations. This again demonstrates one of the most exciting aspects of working with systems that offer Realtime Continuous Meaningful Control.

In chapter 5: Learning to see: Digital puppetry through realtime video transformation, we build upon the application that we developed in the previous study, and we extend it into a new direction to allow more control over the aesthetic qualities of the images generated. We devise a system that allows us to train models on large datasets of images, that we can use in our software to transform a live video feed. We again employ the two modes of interaction that we found to be so useful in Hello World. The first mode of interaction involves directly manipulating the video feed which is to be transformed. This includes moving hands or objects in front of the camera, to allow for a very expressive and performative mode of interaction, resulting in a form of digital puppetry. Alternatively, sketching or painting on a surface that the camera is pointed to, allows for a form of AI augmented drawing. On top of this, we introduce a number of parameters that can be adjusted in realtime via a GUI, or faders on a hardware midi controller. This allows for more fine control over the structure and aesthetic qualities of the images generated. Combined, we found that these two modes of interaction allows for the creation of various compositions, images and videos in a very expressive and performative manner. In this respect, the system that we develop in this study again perfectly demonstrates the core principles that we investigate in this thesis.

In order to achieve this, we introduce a parametrised image processing pipeline before the DNN. This pipeline is used both during training, and during inference, and serves a number of purposes. First, during training, it acts as a form of data augmentation, as we randomise the parameters such that the model never sees the same inputs twice. This helps the model generalise to more novel inputs. As a result, it is more likely to perform more optimally when presented with the live video feed. Second, during inference, this pipeline transforms the live video feed into an aesthetic that is similar to the inputs that the model was trained on, further helping the model to more effectively parse the video feed in a desirable manner. Finally, during inference again, we allow for the realtime manipulation of the parameters. The effects of these parameters on the images generated are generally not very difficult to ascertain, as the filters themselves are relatively simple and deterministic. The fact that our system provides Realtime Continuous Control with instantaneous feedback, further aids in quickly building an intuition of how the parameters influence the images generated. As a result, we found that using an image processing pipeline in this manner, and in particular, the specific image processing pipeline that we detail in the study, affords ample opportunities for Realtime Continuous Meaningful Human Control.

We develop a number of video artworks with our system and we share them online, primarily on social media. These videos have been circulated widely on both social and mainstream media. They have been exhibited in numerous galleries and exhibitions involving AI, featured in books, and even shown during Nvidia CEO Jensen Huang's keynote at GTC (GPU Technology Conference) 2019Footnote 2, with the voiceover “[AI is] inventing new ways to bring out the creative genius in us all". Researchers from fields ranging from philosophy to architecture to cardiovascular medicine have shown interest in these videos, asking to feature them in books and lectures. We see this as an indication that creative human-machine collaboration is indeed a topic that is of major interest to a broad range parties.

In creating the video artworks, the system that we developed went through many iterations. We found that even the objects that we use in front of the camera have a significant effect on the results. Particularly with respect to how much flexibility and variety they grant the user. After trying many different kinds of objects, we found that cloth is a very versatile object in this context, as they can be scrumpled up or stretched out or twisted into all kinds of different shapes. And we found that including one dark cloth and one light cloth allows the user to combine them in different ways to sculpt a variety of different scenes. Complimenting the cloth with cables, allows the user to add many different levels of flexible detail. Again we include a mixture of dark and light, thick and thin cables to allow for maximum flexibility. As an additional bit of detail, we use some cables that have larger heads on one end (e.g. ethernet cables, headphones etc.) and we cut the heads off the other end of the cable. This again provides even more flexibility for the user to sculpt different kinds of detail where needed.

As we mention in section 5.5: Conclusion, in the images Fig. 5.17 and Fig. 5.18 where we create bouquets of flowers from cloth and headphones, we initially had no idea that these images could be created in this manner. It was through realtime playing with our own system and trying various different objects that we had lying around on our desk, that we were noticed that the cloth-and-cables combination proved to be so versatile. When we tried placing various different objects on the cloth, we saw that the earpiece of the headphones was interpreted by our software as the central area of a flower, while the cloth was interpreted as the flower's petals. Realising this, and further playing with the system in realtime with immediate feedback, we were able to arrange the composition of the physical objects in such a manner as to sculpt the final generated image as we desired. We could slightly crumple up the cloth and fine-tune it in this manner to appear more ‘petal-like' to our software, while we could fine-tune the placement and orientation of the headphone cable and earpiece to maximize the overall aesthetics and ‘flower-ness' of the final image. Again this discovery, and the images and performances that we were able to create, would not have been possible without an interaction that allowed for Realtime Continuous Meaningful Human Control.

In our final study chapter 6: Deep Meditations: Latent storytelling, we turn to a slightly different question. Having created a system in the previous study that allowed us to perform images in realtime with Meaningful Human Control, we now investigate methods of allowing users to construct stories in the latent space of a generative model. Specifically, we are interested in giving users the ability to freely explore this high-dimensional latent space, and then hone in on specific journeys to ultimately produce films. Our aim is to design a system that can provide Meaningful Human Control over the narrative of the films produced, as opposed to producing random walks in latent space, which is still the dominant paradigm when it comes to videos generated with deep generative models.

In contrast to our earlier studies where we place equal emphasis on both Meaningful Human Control and Realtime Continuous Control, for this particular study we acknowledge the role that non-realtime, non-continuous modes of interaction have played in some established, traditional creative workflows. We take a typical Non-Linear Video Editing (NLVE) workflow as base for this study, and we develop a number of stand-alone tools that integrate with an existing off-the-shelf NLVE software. This allows us to leverage the decades of research and development that went into designing and building commercial NLVE software and interfaces. As a result, we were able to develop our prototype very quickly, and we could produce a number of videos with narrative, told entirely through the latent space of generative models. We were able to synchronise these videos to music, and in fact we used our system to produce live concert visuals and a music video for the renowned electronic musician Max Cooper for his seminal audio-visual performance and tour Yearning For The Infinite which premiered at The Barbican in London (Cooper & Akten, 2019).

In addition, we have observed that trajectory planning in latent space is a very important issue if quality of both movement and image is to be preserved. This is due to the fact that the latent distribution of the generative models we are working with are typically standard normal 𝒩(0,1), and the mass of these distributions are concentrated in the shell of a hypersphere. For this reason, we know that using linear interpolation between successive latent keyframes causes the trajectory to diverge from the distribution, resulting in undesirable images. We have tested spherical interpolation on successive latent keyframes, and we have observed that this results in noticeable discontinuities in movement, which we find very undesirable. As a result, we have implemented two new methods, a dynamic particle–spring based interpolation, and a Gaussian reprojection interpolation. Both of these methods provide nice smooth trajectories with no noticeable discontinuities at all. However, the physical interpolation is able to produce trajectories that travel precisely through all desired 𝒛-keyframe positions, but not at precisely the desired times. Gaussian reprojection is able to produce trajectories that travel close to all desired 𝒛-keyframe positions, at precisely the desired times. We call this the Heisenberg Uncertainty Principle of latent space navigation. For this reason, we choose an interpolation method based on whether we prioritize precise timing, or precise positions. Generally we have found that the Gaussian reprojection is often sufficiently accurate in terms of position for our needs. We discuss this in more detail in subsection 6.4.8: Trajectory planner details.

7.4 Future directions

As we have previously mentioned, our priority in this thesis was to investigate many different approaches to Deep Visual Instruments, in order to cover as much ground as possible and maximise the likelihood of inspiring more work in these particular directions. We developed a number of different prototypes, and we chose to develop each prototype just up to the point where they could demonstrate the potential capabilities of such an approach.

For this reason, we will readily accept that the methods that we propose are just scratching the surface, and there is plenty of room to develop further. In fact, as we have mentioned numerous times, within Creative DL Meaningful Human Control and Realtime Continuous Control did not even exist at the start of our research, while today this is a rapidly growing area of inquiry. Consequently, the directions one could take from here are infinitely many. We will start by discussing some improvements that can be built upon the work that we have presented.

Of the five studies that we presented in this thesis, we consider three of them to be successful examples of Deep Visual Instruments which leverage the capabilities of Deep Neural Networks while providing Realtime Continuous Meaningful Human Control over the outputs generated. We discuss these in section 3.3: Realtime interactive text generation with RNN ensembles, chapter 4: Hello World: Realtime interactive training as an informative and performative tool and chapter 5: Learning to see: Digital puppetry through realtime video transformation. With all three of these studies, we were able to achieve our goals. Nevertheless, there are many ways in which one could build upon them. We will discuss these below.

Of the remaining two studies, section 3.2: Collaborative generative sketching with MCTS and CNNs did not achieve the results that we were hoping for at all, and we will discuss this shortly.

And our last study chapter 6: Deep Meditations: Latent storytelling, we do not consider a visual instrument, because it does not provide Realtime Continuous Control. However, for this study we intentionally wanted to replicate a typical NLVE workflow, focusing on only Meaningful Human Control. For this reason, even though this study is not an example of a visual instrument per se, we successfully achieved what we were hoping to achieve. Nevertheless, we will discuss some potential future directions for this study as well.

The first study that we presented in section 3.2: Collaborative generative sketching with MCTS and CNNs, did not produce the kinds of images that we were hoping for. We identified the reason for this as being due to the discriminative CNN that we used. We saw the potential solution for this as switching to using a generative LSTM RNN. Due to the lack of vector-based training data available at the time however, we switched domains, and investigated the same question operating on text. As a result, we produced the study that we present in section 3.3: Realtime interactive text generation with RNN ensembles.

Researchers at Google later demonstrated that using generative LSTM RNN models with the appropriate training data (Quick, Draw! Dataset, 2017; Ha & Eck, 2017), they were indeed able to fully create the functionality that we describe in this study. In particular, they use a Sequence-to-Sequence VAE. Such an architecture is able to model the entire space of possible sketches, and this allows for the kinds of latent manipulations that we discuss in subsection 2.1.3: Latent manipulations. The researchers demonstrate this with incredible examples such as interpolating between different sketches, or performing semantic vector operations to add or remove body parts to sketches. They also demonstrate these with well developed online applicationsFootnote 3. In this respect, we consider this particular application of collaborative generative sketching rather well explored. There can always be room for improvements of course, particularly with regards to using more state-of-the-art architectures such as a Transformer (Vaswani et al., 2017) or variants.

In section 3.3: Realtime interactive text generation with RNN ensembles, we use an ensemble of LSTM RNNs. For each style of text, we train a separate model. We feed the same inputs to each model, and then we perform a weighted sum of the output probability distributions. In other words, we calculate a joint probability distribution. We chose this approach because it allows more flexibility with regards to adding new styles to the system. For example, if we would like to add a new style after having already trained models on 20 different styles, we simply train a new model on the new dataset only. This typically takes a few hours, and then we can drop this model into our system. We do not need to re-train with all of the previous datasets as well.

However, if training time and compute resources are not a point of concern, then it can also be an option to train a single model on all of the styles collectively. In this case, one could train a conditional model, where each style dataset is associated with an additional input style label. Interpolating between styles would then be a case of interpolating between the input style vector. This could provide interesting results that differ from the method that we proposed.

Another interesting direction one could take, is to implement the variational sequence-to-sequence architecture mentioned in Sketch-RNN. This would provide a generative model whereby the entire space of possible sentences is captured in a static latent space. This would then allow us to perform latent manipulations such as interpolating between, or even performing semantic vector operations on sentences. This functionality has already been demonstrated with text using a very similar architecture (Kiros et al., 2015). However, our emphasis is again always on realtime performative interaction with Meaningful Human Control.

Finally, our realtime interactive system could be adapted to different domains. Perhaps one of the simplest domains which our method could be adapted to, is that of MIDI music. This would allow a performer to perform, or in this case gesturally conduct, music of different styles.

The interactive realtime training software that we developed in chapter 4: Hello World: Realtime interactive training as an informative and performative tool, allowed us to build qualitative intuitions for many of the hyperparameters involved in designing an architecture and training a model. It also allowed us to fine-tune hyperparameters in realtime such that we were able to find very particular configurations that displayed interesting behaviour, such as stable oscillations. We believe an interactive realtime training software could be beneficial to many other types of architectures, and even domains such as audio or 3D. Many modern architectures may pose a challenge with regards to performance. Even with early DCGAN architecture, our software could not run in realtime with the hardware that was available to us. With more modern, much larger architectures, it is even less likely that performance will be adequate for realtime training. Nevertheless, we believe there is still much insight to be gained, and even performances to be performed, with perhaps ‘lighter' versions of modern architectures adapted to run and train in realtime within such a system.

In our realtime video processing and transformation software chapter 5: Learning to see: Digital puppetry through realtime video transformation, we manually introduce a custom image processing pipeline before the Deep Neural Network. This grants us a number of opportunities for both Meaningful Human Control, and Realtime Continuous Control, and we summarise these in the previous section.

However, it could be questioned whether such a manually designed image processing pipeline needs to be introduced at all, or whether such a pipeline could be learnt. As we discussed in section 1.2: Why Deep Learning?, a deep Neural Network is essentially a chain of hierarchical high-dimensional transformations that are learnt end-to-end. And in fact, one of the motivations behind Deep Learning is to remove the need for such hand-crafted feature engineering pipelines. So could we remove our custom image processing pipeline, and instead train the Deep Neural Network in such a way, that the system preserves all of the functionality relating to Realtime Continuous Meaningful Human Control? We believe that at this point in time, this is not possible. However, this is exactly the area that needs more research, because we also believe that it could be possible. There are a number of challenges involved however.

We discuss the idea of semantic vectors in subsection 2.1.3: Semantic latent vectors. These are specific directions in the latent space of a generative model, such that applying these vectors to latent representations effectively apply some kind of meaningful transformation to the corresponding outputs generated by the model. For example, we can use these vectors to make an image of a face smile, or rotate an image of a car by a certain amount.

One of the key challenges of this approach, is that these semantic vectors are arbitrary directions in a very high-dimensional space, and are in no way intuitive or predictable. Outside of a few examples (Radford et al., 2015; White, 2016b), finding such vectors has been a relatively unexplored field. In the last few years however, interest in semantic vector discovery has grown rapidly (Simon, 2019; Abdal et al., 2019; Karras et al., 2019, 2020; Härkönen et al., 2020). We also believe that this is a very promising area of research.

One of the advantages of semantic vector discovery methods, is that they can be used with pre-trained models. In other words, semantic vector discovery can be applied to a pre-trained model that has been made available for download for example, without requiring access to the training code or methodology, or the training data. BigGAN (Brock et al., 2019) is an example of such a pre-trained model which was made available for download without access to the training code.

However, there is an issue with such semantic vector discovery methods with regards to our application. These methods are focused on discovering semantic latent directions. In other words, they establish key directions through analysis of the latent distribution generated by training on a particular dataset, for example via optimisation or PCA (Härkönen et al., 2020). For this reason, these methods can only discover vectors which are already somehow present in the distribution of the dataset. It is by no means guaranteed that these methods will discover a vector for a particular trait that we — as a human, creative, designer — might already be visualising in our minds. This is especially true, if the particular trait that we as the human designer are imagining, does not even exist in reality (or at least in the training dataset). For example, it is very natural that a human designer might look at a picture of a nebula, and imagine that they would like to make the edges of that nebula smoother. A semantic latent vector discovery method may or may not discover such a latent direction. In fact, if the training examples do not contain images in which it is clear that some nebula have very smooth edges, while others do not, then it is almost guaranteed that a semantic vector discovery method will not discover such a ‘edge smoothness' vector. In other words, such methods will not discover vectors for outputs that are out-of-distribution. However, as we demonstrated when discussing this study in depth in subsection 5.4.3: Live parameter manipulation, with our method, we can introduce filters which allow us to shape the results to construct images that do carry the desired aesthetic characteristics of the training examples, but can still be outside of the distribution of the training data.

One might ask, if the latent distribution of a trained model does not contain a particular desired semantic vector, could the model be re-trained in a specific way that enforces such desired latent vectors? The answer to this question is open. This is currently not possible at a level which can give the types of results that we demonstrate in our study. However, we do believe that this is potentially possible. Having said that, this would require a pre-planning of all desired parameters before training. In other words, before training a model, we would need to identify all of the human-understandable parameters that we desire, and only then can we train the model accordingly. If, after having trained the model, we realise that we desire a new parameter, we might need to re-train the model. Given that models can take weeks, even months to train. This is highly undesirable. With our method we do not need to retrain the model. If we desire a new human-understandable parameter, and we can envisage a solution with a simple filter, we can add it within seconds.

A final approach could be to introduce new layers to a pre-trained model. This is for example the approach taken in the very recent work by Broad et al. (2020). This method works with pre-trained models, so retraining a model to add new parameters is not necessary. The authors insert simple transformations, similar to ours, but instead of inserting the transformations before the trained model, they insert them as layers, in-between existing hidden layers. These transformations then directly manipulate inner representations, and can allow for out-of-distribution — but desirable — results. The authors demonstrate results with great potential, especially on simple affine transformations such as translation, rotation and scale. They also investigate applying transformations not to all of the filters within a layer, but to subsets, determined via an automated feature clustering method. This allows them to isolate and apply the transformations to only certain sections of an image. The early results of this research shows great potential, and we believe this may be a direction that can eventually produce the kinds of outputs that we demonstrate in our study.

In summary, an end-to-end deep architecture and method that can provide all of the same functionalities that we presented in our Learning to see study, does not yet exist. And there are many challenges that will need to be overcome to implement such a system, but we believe this is a very interesting area of research.

For all of the studies that we have discussed so far in this section, we developed our own software from the ground up, producing a stand-alone application complete with its own GUI, and the necessary interactions and visualisations dedicated to the task at hand. For the work that we present in chapter 6: Deep Meditations: Latent storytelling, we take a different approach.

We chose to build our solution around an existing NLVE software. As a result, we were able to very quickly prototype a system and produce the kinds of outputs that we were looking for, as we already had an interface that provided multiple layers, powerful video editing tools, music synchronisation capabilities and many more useful features. The downside of this approach however, is that it is very difficult to seamlessly integrate new DL-specific visualisation modes that would be beneficial for such an application. For this reason, while our approach does provide Meaningful Human Control, the user experience is far from optimal, and involves moving back and forth between a number of separate scripts. The solution to this would be to develop a bespoke application with a dedicated custom GUI, as we have done for the other studies. This however, would undoubtedly require a far larger investment of time to develop such an application.

The highly popular and successful online app Artbreeder (Simon, 2019), is moving in this direction, and has started adding features including a very simple timeline editor to provide functionality similar to what we produced in Deep Meditations. At the moment, this app provides only the most basic functionality in terms of sequencing ‘keyframes' and interpolating between them, without allowing for fine control over timing, synchronising to music, or other useful tools that established NLVE software provides. This is most probably due to the fact that building such functionality requires a much larger investment of time, as we mention above. However, we have no doubt that in the near future, either within Artbreeder, or other applications, such functionality will be implemented.

As we mentioned in the previous section, trajectory planning in latent space is an important topic, regardless of the UI or the host application. In addition to the methods that we have proposed, we believe a very effective method might be one that involves differential geometry and Riemannian manifolds. In this case all of the high-dimensional vector manipulations take place directly on the surface of the hypersphere. Our early tests with this method look promising, however, we do not yet have conclusive results, and we recommend this as a direction to study. Likewise another approach we believe could work, is using De Casteljau's algorithm with spherical interpolation. We discuss these options in more detail in section 6.5: Conclusion.

7.5 Final thoughts — Human-Machine Collaboration

In this thesis we have presented a number of studies that have attempted to demonstrate the potential and the possibilities that Deep Visual Instruments have to offer in the exploration and creation of artistic and creative works. We have designed and developed a number of realtime interactive systems that leverage the generative capabilities of DNNs trained on very large datasets. And we have tried to design these systems such that they offer Meaningful Human Control, and Realtime Continuous Control, such that the interaction has the potential to be expressive and performative. Given such conditions, we think of the user of such as system, as more of a performer that plays the system.

With our studies, we set out to explore what is possible, and what can be achieved with DNNs within the context of visual instruments. We believe this is a very rich and fertile area, and we have only just scratched the surface. We do not claim to have explored each of the methods that we present to their full potential. We have not conducted user studies, and we do not make claims about optimal usability, or generalisation to a wider audience.

However, we have been able to develop and demonstrate these studies as we have intended. We have managed to introduce realtime interactivity, to previously non-realtime, non-interactive processes. Using these systems, we were able to create artworks — text, images and videos — that were previously not possible to create. We have created these outputs with Meaningful Human Control, and mostly in a Realtime Continuous manner. In other words, we consider these systems to indeed be Deep Visual Instruments. We have shared our results online, and they have been circulated widely, included in presentations, exhibitions, books, magazines and the subject of many conversations.

When we started our research, creative explorations within Deep Learning was very much in its infancy. And notions such as Meaningful Human Control or Realtime Continuous Control were not being discussed within creative Deep Learning research. While today, this is an active and growing area of research.

We believe that this is a very important and upcoming area of research, and we hope to have demonstrated in this thesis that such approaches can grant affordances allowing modes of media creation that were previously not possible. We believe that such approaches to Creative DL is an investigation into new mediums, new kinds of art-making, new kinds of art and performance.

This will also inevitably have a significant impact on not only individual artistic expression, but the creative industries. And as a result, we hope to see such research find its way into various kinds of media authoring software for films, games, design, music, and creative industries in general; or deployed at mass scale for mainstream use through online or mobile applications and ‘smart filters' on social media. And we especially hope that the work that we have presented in this thesis can serve as a starting point and inspiration for similar future work and contribute to this rapidly blossoming field.

We believe this topic of Human-Machine Collaboration is a very crucial one. Not only in the production of artistic and creative works, as is the topic of this thesis, but beyond that. As AI enters every aspect of our lives, Meaningful Human Control and Realtime Continuous Control, are valuable design principles that we believe should not be overlooked.

———

Footnotes

  1. https://magenta.tensorflow.org/sketch-rnn-demo ↩

  2. Nvidia GTC 2019 Keynote: https://www.youtube.com/watch?v=Z2XlNfCtxwI&t=32 ↩

  3. https://magenta.tensorflow.org/sketch-rnn-demo ↩

Full-size image